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