commit | d629681a7c13fcbd550b47ed8a3c5823f09770b7 | [log] [tgz] |
---|---|---|
author | Alex Salo <asalo@google.com> | Thu Jun 18 20:44:35 2020 -0700 |
committer | Brian Quezada <bquezada@google.com> | Wed Aug 18 18:22:28 2021 +0000 |
tree | 946a95eeeca0b53aa066447208a57e0013b0222a | |
parent | 6bad1e88c967a69a651bfddd907a7825d2694978 [diff] |
Keep screen on when user undims it manually When user manually undims the screen x times - it's a clear indication that they want to keep it on and dimming is not wanted. For such case, keep the screen on temporarily by acquiring a wakelock, without changing the actual timeout setting. Bug: 162367114 Bug: 162422938 Test: atest ScreenUndimDetectorTest Change-Id: Ib80b569fc9d230d8f77e0baec67c17a3e90be516 (cherry picked from commit 7df24e5936ff41997f58cae94ed2c8dcd37eab62)