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
This commit is contained in:
parent
e07fd9fce2
commit
92f8f4847a
2 changed files with 3 additions and 2 deletions
|
@ -45,7 +45,8 @@ class HingeAngleSensor : public OnChangeSensor {
|
|||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue