Skip to content
Commit 497b56db authored by Jiaming Liu's avatar Jiaming Liu
Browse files

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
parent a33294cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment