summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author William Xiao <wxyz@google.com> 2023-07-14 16:48:02 -0700
committer William Xiao <wxyz@google.com> 2023-07-19 18:00:44 +0000
commitf4e8a1c448faff095a89d1d5fa8b156d4324bb54 (patch)
tree2d3866b4858e5e9561a27c844779cd63ed9f8b18 /libs/androidfw/ObbFile.cpp
parent321ed901a30484e8c1a7e86d1f784ebcc8367fc1 (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 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:fc3cacb063077fcde131917d1a2bde919e3e70d9) Merged-In: I47c9561756ac27370b597a69a948892641ff47bb Change-Id: I47c9561756ac27370b597a69a948892641ff47bb
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions