Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b204db1e authored by dshivangi's avatar dshivangi Committed by Shivangi Dubey
Browse files

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
parent cb533be7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment