OSDN Git Service

Fix doze jank by removing a fullscreen layer of overdraw
authorJorim Jaggi <jjaggi@google.com>
Tue, 11 Nov 2014 21:51:10 +0000 (22:51 +0100)
committerJorim Jaggi <jjaggi@google.com>
Thu, 13 Nov 2014 16:54:21 +0000 (17:54 +0100)
commit048af1f727dc81a6450e004391d072599ac449ee
tree997e7728ac4e4e84d458dd8f6d53ad4b1cf002e8
parent68b83a784a0c9f3d2483a8a38b8e1ae047c4914e
Fix doze jank by removing a fullscreen layer of overdraw

Move all doze related stuff into DozeScrimController, and combine
both alpha values from the regular ScrimController and
DozeScrimController before applying it to a view. Move the black
background from NotificationPanelView to DozeScrimController, which
saves a fullscreen layer of overdraw during the transition.

Bug: 18238168
Change-Id: Ifb133bf4a0f8255f5c2f5e205509af339cac8c8f
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java