diff options
| author | 2023-07-14 16:48:02 -0700 | |
|---|---|---|
| committer | 2023-07-17 11:34:09 -0700 | |
| commit | fc3cacb063077fcde131917d1a2bde919e3e70d9 (patch) | |
| tree | 279659764fb704989ca7b53254d3d30294d63b27 /libs/androidfw/BackupData.cpp | |
| parent | 17bb645ade7e5e80f2b3cfca0b3e310335140cf4 (diff) | |
Send user activity when dream quits unexpectedly
If a dream quits unexpectedly after the device has been idle for longer
than the user's screen timeout, the device will go straight to a black
screen. This happens routinely when GMSCore or the dream app itself are
updated and is jarring for the user experience.
This CL sends a user activity signal to PowerManager when we see a
dream quit unexpectedly so that instead the device goes to keyguard and
will timeout back to dreaming after a short wait. This is the same
behavior as if a dream quit unexpectedly before the user activity
timeout expired and allows for a graceful recovery.
Bug: 286777009
Test: atest DreamControllerTest
Test: manually verified that crashing the dreams app goes to keyguard
instead of a black screen
Change-Id: I47c9561756ac27370b597a69a948892641ff47bb
Diffstat (limited to 'libs/androidfw/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions