Skip to content
Commit f5358585 authored by Antony Sargent's avatar Antony Sargent
Browse files

Workaround for doze/AOD problem with global wakefulness

When the global wakefulness is dozing and a non-default group
VirtualDisplay wakes up, the global wakefulness becomes awake and the
default display's individual wakefulness remains dozing. But some of
our code in Notifier and PhoneWindowManager that listen to the global
wakefulness kick off a chain of events that results in
KeyguardViewMediator thinking dozing has stopped, and the display gets
stuck in what feels like a sort of half on / half off state where it
shows keyguard at the low brightness and refresh rate we're supposed
to use for AOD, but it isn't responsive to touch inputs.

The workaround in this CL is to restart dreaming in this case to get
the AOD unstuck.

Bug: 187231320
Test: atest PowerManagerServiceTest
Change-Id: I8e348ffe52c7f2d5cbdd11b058254cb087b1021d
parent fe8b17d4
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