OSDN Git Service

Optimize fp touch to wake: Shortcut for report next draw
authorJorim Jaggi <jjaggi@google.com>
Mon, 24 Aug 2015 21:52:45 +0000 (14:52 -0700)
committerJorim Jaggi <jjaggi@google.com>
Fri, 28 Aug 2015 20:07:35 +0000 (20:07 +0000)
commitb774e554f32fd65cac30b43d1cf679403ef4af82
tree357b74b83c3f9096089d29398c7e5d49e16ab36a
parent9b2f9bcb56765c52a2fc9cdcdcf11c6707403210
Optimize fp touch to wake: Shortcut for report next draw

When telling window manager that Keyguard window is in the correct
state for a fp-touch-to-wake sequence, it takes more than 1 frame at
the moment because the signal that WM is waiting for the next draw
is delayed by one frame because it is posted at the end of the
runnable queue.

To correctly fix this, we should post it at the beginning at the
queue, but this is way too risky this late. Instead, add a isolated
SysUI hack to report it faster.

Bug: 23401557
Change-Id: Icf64101e27611c7c01d108123021b22186f1e70c
core/java/android/view/ViewRootImpl.java
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java