diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-09-20 11:20:31 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-09-20 11:20:31 -0700 |
commit | bc1aa7bbc753ebcd32da4507fa23215489b6d314 (patch) | |
tree | 30bd8e78d30370a7c4997543c9925699f52c4675 /core | |
parent | 2ee1ffb144800802c566bebe062f324297a791ba (diff) | |
download | frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.zip frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.tar.gz frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.tar.bz2 |
Fix issue #5312624: Lock screen very flickery
The key thing was to fix isVisibleOrBehindKeyguardLw() so that it
wouldn't count a window as not visible if it was just currently
in the process of drawing due to an orientation change.
Also improve logic in deciding when to turn screen on to better ensure
the screen is in a stable state, in particular treating screen off
as a frozen screen and not allowing it to turn on until the
update of the screen due to any config change is done.
Change-Id: If82199f3773270b2d07f9c7de9da2dad8c7b28d7
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index fdbda4c..c07faf6 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -784,9 +784,14 @@ public interface WindowManagerPolicy { public void screenTurningOn(ScreenOnListener screenOnListener); /** - * Return whether the screen is currently on. + * Return whether the screen is about to turn on or is currently on. */ - public boolean isScreenOn(); + public boolean isScreenOnEarly(); + + /** + * Return whether the screen is fully turned on. + */ + public boolean isScreenOnFully(); /** * Tell the policy that the lid switch has changed state. |