summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jiaming Liu <jiamingliu@google.com> 2022-11-18 00:02:07 +0000
committer Jiaming Liu <jiamingliu@google.com> 2022-11-18 18:58:31 +0000
commit497b56dbfb5346b399c40dc59fed2c8aecf55feb (patch)
treeecf3c9b7a861a3deed140af9e1fd853c163751da /libs/androidfw/StringPool.cpp
parenta33294cf8e5091367bc1b22648b79e4c8964ecf6 (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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions