fogos: Remove double tap support from sensors hal
* It's handled by power-libpermgr in common tree. Change-Id: I57b0a0cfdd9981bf09e6386689b7963515432dec
This commit is contained in:
parent
7e373b6a01
commit
2e92796079
3 changed files with 0 additions and 21 deletions
|
@ -329,9 +329,6 @@
|
||||||
<!-- MMS user agent profile url -->
|
<!-- MMS user agent profile url -->
|
||||||
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>
|
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>
|
||||||
|
|
||||||
<!-- 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>
|
|
||||||
|
|
||||||
<!-- Whether the device enable the standalone (SA) mode of 5G NR.-->
|
<!-- Whether the device enable the standalone (SA) mode of 5G NR.-->
|
||||||
<bool name="config_telephony5gStandalone">true</bool>
|
<bool name="config_telephony5gStandalone">true</bool>
|
||||||
|
|
||||||
|
|
|
@ -120,20 +120,6 @@ class SysfsPollingOneShotSensor : public OneShotSensor {
|
||||||
int mPollFd;
|
int mPollFd;
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::string kTsPath = "/sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/NVT-ts/";
|
|
||||||
|
|
||||||
const std::string kTsDoubleTapPressedPath = kTsPath + "double_tap_pressed";
|
|
||||||
const std::string kTsDoubleTapEnabledPath = kTsPath + "double_tap_enabled";
|
|
||||||
|
|
||||||
class DoubleTapSensor : public SysfsPollingOneShotSensor {
|
|
||||||
public:
|
|
||||||
DoubleTapSensor(int32_t sensorHandle, ISensorsEventCallback* callback)
|
|
||||||
: SysfsPollingOneShotSensor(
|
|
||||||
sensorHandle, callback, kTsDoubleTapPressedPath, kTsDoubleTapEnabledPath,
|
|
||||||
"Double Tap Sensor", "org.lineageos.sensor.double_tap",
|
|
||||||
static_cast<SensorType>(static_cast<int32_t>(SensorType::DEVICE_PRIVATE_BASE) + 1)) {}
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace implementation
|
} // namespace implementation
|
||||||
} // namespace subhal
|
} // namespace subhal
|
||||||
} // namespace V2_1
|
} // namespace V2_1
|
||||||
|
|
|
@ -32,10 +32,6 @@ namespace implementation {
|
||||||
using ::android::hardware::Void;
|
using ::android::hardware::Void;
|
||||||
using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock;
|
using ::android::hardware::sensors::V2_0::implementation::ScopedWakelock;
|
||||||
|
|
||||||
SensorsSubHal::SensorsSubHal() : mCallback(nullptr), mNextHandle(1) {
|
|
||||||
AddSensor<DoubleTapSensor>();
|
|
||||||
}
|
|
||||||
|
|
||||||
Return<void> SensorsSubHal::getSensorsList_2_1(ISensors::getSensorsList_2_1_cb _hidl_cb) {
|
Return<void> SensorsSubHal::getSensorsList_2_1(ISensors::getSensorsList_2_1_cb _hidl_cb) {
|
||||||
std::vector<SensorInfo> sensors;
|
std::vector<SensorInfo> sensors;
|
||||||
for (const auto& sensor : mSensors) {
|
for (const auto& sensor : mSensors) {
|
||||||
|
|
Loading…
Reference in a new issue