Revert "dubai: sensors: Implement UDFPS sensor"
This reverts commit ec3f93036c
.
Change-Id: Ieb25d3b8e55e7039a6bbe1906562890c6dda0b5c
This commit is contained in:
parent
71330fa79f
commit
cbc3e04878
4 changed files with 0 additions and 18 deletions
|
@ -5,8 +5,6 @@ on post-fs
|
|||
# Sensors
|
||||
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled
|
||||
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
|
||||
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled
|
||||
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed
|
||||
|
||||
on post-fs-data
|
||||
|
||||
|
|
|
@ -165,9 +165,6 @@
|
|||
<!-- Type of the double tap sensor. Empty if double tap is not supported. -->
|
||||
<string name="config_dozeDoubleTapSensorType" translatable="false">org.lineageos.sensor.double_tap</string>
|
||||
|
||||
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
|
||||
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
|
||||
|
||||
<!-- Control whether the always on display mode is available. This should only be enabled on
|
||||
devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND
|
||||
states. -->
|
||||
|
|
|
@ -134,18 +134,6 @@ class DoubleTapSensor : public SysfsPollingOneShotSensor {
|
|||
static_cast<SensorType>(static_cast<int32_t>(SensorType::DEVICE_PRIVATE_BASE) + 1)) {}
|
||||
};
|
||||
|
||||
const std::string kTsUdfpsPressedPath = kTsPath + "udfps_pressed";
|
||||
const std::string kTsUdfpsEnabledPath = kTsPath + "udfps_enabled";
|
||||
|
||||
class UdfpsSensor : public SysfsPollingOneShotSensor {
|
||||
public:
|
||||
UdfpsSensor(int32_t sensorHandle, ISensorsEventCallback* callback)
|
||||
: SysfsPollingOneShotSensor(
|
||||
sensorHandle, callback, kTsUdfpsPressedPath, kTsUdfpsEnabledPath,
|
||||
"UDFPS Sensor", "org.lineageos.sensor.udfps",
|
||||
static_cast<SensorType>(static_cast<int32_t>(SensorType::DEVICE_PRIVATE_BASE) + 2)) {}
|
||||
};
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace subhal
|
||||
} // namespace V2_1
|
||||
|
|
|
@ -34,7 +34,6 @@ using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock;
|
|||
|
||||
SensorsSubHal::SensorsSubHal() : mCallback(nullptr), mNextHandle(1) {
|
||||
AddSensor<DoubleTapSensor>();
|
||||
AddSensor<UdfpsSensor>();
|
||||
}
|
||||
|
||||
Return<void> SensorsSubHal::getSensorsList_2_1(ISensors::getSensorsList_2_1_cb _hidl_cb) {
|
||||
|
|
Loading…
Reference in a new issue