OSDN Git Service

Display blanking logic improvements
authorLucas Dupin <dupin@google.com>
Mon, 5 Feb 2018 18:49:03 +0000 (10:49 -0800)
committerLucas Dupin <dupin@google.com>
Mon, 5 Feb 2018 23:52:56 +0000 (15:52 -0800)
commit8c7cb02f1faae349c0653b4b594ce8ea9f305cee
tree3dca9ee20f29a81c9c8fd61737d106ec337774a7
parent7b2354ece2809819255f64b0dd60b108745a5739
Display blanking logic improvements

Blank display immediatelly when requested, display power controller
will fade out the screen using ColorFade.

SysUI just needs to fade the UI back in when we're in control of
the transition again.

Change-Id: I9d58de3d39c0288f5c82c0c04c86cb43bb3d02c4
Fixes: 72527083
Test: receive notification on AOD, wait.
Test: receive notification on AOD, fp unlock
Test: wake up, unlock, pull notification shade
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Bug: 71913808
packages/SystemUI/res/values/ids.xml
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java