commit | 012ae9ccccc90306008e661a1c4ad5dd3c6c0e67 | [log] [tgz] |
---|---|---|
author | Hsin-Yi Chen <hsinyichen@google.com> | Mon Dec 07 02:37:58 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Dec 07 02:37:58 2020 +0000 |
tree | a8a08bf6fc129fb145338bdb9c2d8106ad97195f | |
parent | 11a9329702a95aee059566162065b0e2634ce2d7 [diff] | |
parent | 3f4034f02b7c09941bdd794accec223a3aaba6a5 [diff] |
Merge "Adjust the parameters of accelerometer and hinge angle sensor" am: 3f4034f02b Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1517637 Change-Id: If9e9fe78d17d354e3afc1d3db301a8247993d1ef
diff --git a/sensors/2.1/default/SensorsV2_1.cpp b/sensors/2.1/default/SensorsV2_1.cpp index 2e3d315..4c5386a 100644 --- a/sensors/2.1/default/SensorsV2_1.cpp +++ b/sensors/2.1/default/SensorsV2_1.cpp
@@ -45,7 +45,8 @@ mSensorInfo.fifoReservedEventCount = 0; mSensorInfo.fifoMaxEventCount = 0; mSensorInfo.requiredPermission = ""; - mSensorInfo.flags = static_cast<uint32_t>(V1_0::SensorFlagBits::ON_CHANGE_MODE); + mSensorInfo.flags = static_cast<uint32_t>(V1_0::SensorFlagBits::ON_CHANGE_MODE | + V1_0::SensorFlagBits::WAKE_UP); } };
diff --git a/sensors/common/default/2.X/Sensor.cpp b/sensors/common/default/2.X/Sensor.cpp index 4701579..642fc89 100644 --- a/sensors/common/default/2.X/Sensor.cpp +++ b/sensors/common/default/2.X/Sensor.cpp
@@ -207,7 +207,7 @@ mSensorInfo.maxRange = 78.4f; // +/- 8g mSensorInfo.resolution = 1.52e-5; mSensorInfo.power = 0.001f; // mA - mSensorInfo.minDelay = 20 * 1000; // microseconds + mSensorInfo.minDelay = 10 * 1000; // microseconds mSensorInfo.maxDelay = kDefaultMaxDelayUs; mSensorInfo.fifoReservedEventCount = 0; mSensorInfo.fifoMaxEventCount = 0;