summaryrefslogtreecommitdiff
path: root/api/api.go
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 14:57:44 +0000
commitb204db1ed08ec5d697a471289d8017bb3d2bd950 (patch)
treed5701f2de61d5fefcfc07cf1dc930df1584fe35e /api/api.go
parentcb533be77fb7fd1c5a3ed23299ba1243743be6f5 (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 Merged-In: I2845ffd73102d664eac226042318ad16f75efce6
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions