summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author dshivangi <dshivangi@google.com> 2024-03-12 18:35:32 +0000
committer Shivangi Dubey <dshivangi@google.com> 2024-04-02 13:03:17 +0000
commit1343e6cbb1893712484856f502d0c593dfe8f43a (patch)
tree2c838a9c904f5aefafd918e6e66c1491a8ff83f7 /libs/androidfw/StringPool.cpp
parent059ac2d1fae0ea78941e899c06071eeca0501afa (diff)
Selectively expect device to stay awake on fold
Currently, whenever a device is folded waitingToSleepDevice is marked as true. As a result, switching of device state on fold is delayed by the timeout of 500ms. This affects the new fold setting(go/fold-lock-behavior-setting) and apps with wakelocks on fold. As in both cases device is not supposed to sleep on fold. This CL checks value of fold setting and only mark waitingToSleepDevice boolean true when Fold setting is set to "Never". Test: atest LogicalDisplayMapperTest and manually checked before and after perfetto traces Fixes: 329245260 Flag: ACONFIG fold_lock_setting_enabled NEXTFOOD Change-Id: I2845ffd73102d664eac226042318ad16f75efce6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions