diff options
| author | 2020-07-06 17:38:03 -0700 | |
|---|---|---|
| committer | 2020-07-07 08:30:34 -0700 | |
| commit | 29adc8ccbea56ca1bd00a054cb8a1f572ff0c114 (patch) | |
| tree | 74e8ead08e6e4383ae0654155719ac91c55fcb8a /opengl/libagl/matrix.cpp | |
| parent | 9b2526e50d375d60e5a6a43992649d9bb25c176a (diff) | |
Check if sensor is accessible on flush
In cases where halVersion is less than or equal to 1 or the sensor is
virtual the sensor service does not first check that the sensor is
accessible. This was causing failures for tests where a virtual sensor
was used because the flush command was not returning error. Now
INVALID_OPERATION is returned when flush is called on an idle sensor.
Test: set IGNORE_HARDWARE_FUSION to true and cts-tradefed && run cts -m
CtsSensorTestCases -t
android.hardware.cts.SensorTest#testBatchAndFlushUidIdle which fails
before this change, but passes now
Bug: 160282248
Change-Id: I6860bcdb9be341b5e2025caf7606d071779c9b39
Diffstat (limited to 'opengl/libagl/matrix.cpp')
0 files changed, 0 insertions, 0 deletions