Skip to content
Commit a380572c authored by Calin Tataru's avatar Calin Tataru
Browse files

Keep track of the last sleep reason

This is needed to implement Doze for Android TV. The DeviceIdleController needs to know whether the screen turned off due to a timeout and adjust its own timeouts accordingly. This is particularly important if the screen off timeout is longer than 30 minutes which is how long the DeviceIdleController normally waits before going from STATE_INACTIVE to STATE_IDLE_PENDING.

Test: make -j
Bug: 111443261
Change-Id: Icd6a7ba43077fed3ac6ac9f77b5a017c42138337
parent f989a15e
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