summaryrefslogtreecommitdiff
path: root/sensors/common/default/2.X/Sensor.cpp
diff options
context:
space:
mode:
authorHsin-Yi Chen <hsinyichen@google.com>2020-12-04 11:16:47 +0800
committerHsin-Yi Chen <hsinyichen@google.com>2020-12-04 09:55:51 +0000
commit92f8f4847a8f288ecda4e79a3f18e374e82ab7e8 (patch)
treed022e2b971535600d5ef8da595ceabe2d4f9153a /sensors/common/default/2.X/Sensor.cpp
parente07fd9fce2d111e8ec94d5262f24568d0cb9ede0 (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.cpp2
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;