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

Skip to content
Commit ce7e8a7f authored by Arthur Hung's avatar Arthur Hung
Browse files

Introduce new wake lock level for screen timeout

The new wake lock would allow system to override the current
screen timeout by the specified value in config.

There are some restrictions for this:
- Require the new permisson: SCREEN_TIMEOUT_OVERRIDE
- Allow the wake lock acquired when device is interactive.
- This won't hold the wakefulness change and change current state.
- Timeout value should be specified in config.xml
- All locks would be released automatically when other user activity
  occured or a screen wake lock is acquired.

Bug: 295035108
Test: atest PowerManagerServiceTest
Flag: enable_early_screen_timeout_detector

Change-Id: I4d3280d2fb494ac9cc011e0029dd5cfef3d260c1
parent 99e09fc8
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