diff options
author | Anthony Stange <stange@google.com> | 2020-02-14 17:46:18 -0500 |
---|---|---|
committer | Anthony Stange <stange@google.com> | 2020-02-18 15:24:38 -0500 |
commit | 535c63e672c8aa2ba0ba21e899dc6e72b09ca4f8 (patch) | |
tree | b2d8b36bedd59a5839507ef8222f8e6e488fbad2 /sensors/common/default/2.X/Sensor.cpp | |
parent | 1d71acc129331cca3bedbfd6c1b350682f0d2fae (diff) |
Add Hinge Angle Sensor to default impl for HAL 2.1
Bug: 144139857
Test: Verify this type is exposed when VTS is run
Change-Id: I994f1b4c77729b76760b7cafc19b825c98ca97ca
Diffstat (limited to 'sensors/common/default/2.X/Sensor.cpp')
-rw-r--r-- | sensors/common/default/2.X/Sensor.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sensors/common/default/2.X/Sensor.cpp b/sensors/common/default/2.X/Sensor.cpp index 4c40d1f33b..1841dffe2e 100644 --- a/sensors/common/default/2.X/Sensor.cpp +++ b/sensors/common/default/2.X/Sensor.cpp @@ -26,16 +26,14 @@ namespace sensors { namespace V2_X { namespace implementation { -using ::android::hardware::sensors::V1_0::Event; using ::android::hardware::sensors::V1_0::MetaDataEventType; using ::android::hardware::sensors::V1_0::OperationMode; using ::android::hardware::sensors::V1_0::Result; using ::android::hardware::sensors::V1_0::SensorFlagBits; -using ::android::hardware::sensors::V1_0::SensorInfo; using ::android::hardware::sensors::V1_0::SensorStatus; -using ::android::hardware::sensors::V1_0::SensorType; - -static constexpr float kDefaultMaxDelayUs = 10 * 1000 * 1000; +using ::android::hardware::sensors::V2_1::Event; +using ::android::hardware::sensors::V2_1::SensorInfo; +using ::android::hardware::sensors::V2_1::SensorType; Sensor::Sensor(ISensorsEventCallback* callback) : mIsEnabled(false), |