diff options
author | Hsin-Yi Chen <hsinyichen@google.com> | 2020-12-04 11:16:47 +0800 |
---|---|---|
committer | Hsin-Yi Chen <hsinyichen@google.com> | 2020-12-04 09:55:51 +0000 |
commit | 92f8f4847a8f288ecda4e79a3f18e374e82ab7e8 (patch) | |
tree | d022e2b971535600d5ef8da595ceabe2d4f9153a /sensors/common/default/2.X/Sensor.cpp | |
parent | e07fd9fce2d111e8ec94d5262f24568d0cb9ede0 (diff) |
Adjust the parameters of accelerometer and hinge angle sensor
This commit fixes the following CTS failures:
CtsSensorTestCases:android.hardware.cts.SingleSensorTests#testSensorProperties
CtsSensorTestCases:android.hardware.cts.SensorTest#testSensorOperations
Test: atest VtsHalSensorsV2_0TargetTest
Test: atest VtsHalSensorsV2_1TargetTest
Test: atest CtsSensorTestCases
Bug: 169548171
Change-Id: Ie295a06a539ed6788bdff0f9c936a4186e5f1d0f
Diffstat (limited to 'sensors/common/default/2.X/Sensor.cpp')
-rw-r--r-- | sensors/common/default/2.X/Sensor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sensors/common/default/2.X/Sensor.cpp b/sensors/common/default/2.X/Sensor.cpp index 4701579364..642fc89145 100644 --- a/sensors/common/default/2.X/Sensor.cpp +++ b/sensors/common/default/2.X/Sensor.cpp @@ -207,7 +207,7 @@ AccelSensor::AccelSensor(int32_t sensorHandle, ISensorsEventCallback* callback) 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; |