commit | 497b56dbfb5346b399c40dc59fed2c8aecf55feb | [log] [tgz] |
---|---|---|
author | Jiaming Liu <jiamingliu@google.com> | Fri Nov 18 00:02:07 2022 +0000 |
committer | Jiaming Liu <jiamingliu@google.com> | Fri Nov 18 18:58:31 2022 +0000 |
tree | ecf3c9b7a861a3deed140af9e1fd853c163751da | |
parent | a33294cf8e5091367bc1b22648b79e4c8964ecf6 [diff] |
Do not report state change when receiving invalid sensor values Currently we report the default state when none of the declared states matches the sensor values. This causes the device to switch to the CLOSED state when we receive invalid sensor values. We should instead make it a noop when receiving bad sensor data. Fix: 258990181 Test: atest com.android.server.policy.DeviceStateProviderImplTest#create_sensor Change-Id: I56c4513b7056911d5147f96223a410fe4332af3c