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
Loading
Please register or sign in to comment