OSDN Git Service

Make wake-and-unlock faster
authorJorim Jaggi <jjaggi@google.com>
Thu, 20 Aug 2015 23:59:44 +0000 (16:59 -0700)
committerJorim Jaggi <jjaggi@google.com>
Fri, 21 Aug 2015 19:29:30 +0000 (19:29 +0000)
commitab45a217b0002dcf586d529ab8581cacbbfc37e9
tree666b35067defcdc2602b3fc2f7a3112ca2180ce2
parent86bed40605e407459496ee2bfdf6b8af1ae1a581
Make wake-and-unlock faster

- Scrims: When dismissing Keyguard, don't wait until the next frame
to start the animation. Saves 16ms
- Scrims: Skip first frame, because it's completely black anyways.
Saves 16ms.
- Don't wait with navigation bar to show until the screen has turned
on. Window manager is blocked on DisplayPowerController anyways, so
the animation will exactly be started when the screen turns on. Fixes
some jank as well.
- Window manager: Don't wait for the window below Keyguard for draw
completion until turning on screen. Saves a lot of time depending on
how the app is behaving.

Bug: 23401557
Change-Id: I9734f9a12143f0e3c0647e9aa066831a29a6de63
packages/SystemUI/res/anim/navbar_fade_in.xml
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
services/core/java/com/android/server/wm/WindowManagerService.java