History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
eb840eacf6785e1e20e4f1d840a2cd4671972da7 01-Jun-2018 Lucas Dupin <dupin@google.com> Blank screen when coming from pulse

We need to fade from black to the app to achieve a nice transition.

Test: visual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I13edd9c5f7a1bf9378851ac50c513d36ab821c43
Fixes: 87939048
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
932f3b9413897f1d104001cf58acd38196591d85 02-May-2018 Lucas Dupin <dupin@google.com> Default keyguard scrim should be 45% transparent

Wallpapers were barely visible on lock screen because value was set to
70%. The unlocked scrim (on the notification shade) was kept at 70% to
improve readability.

Also fixed a bug where scrim opacity wouldn't be overridden via overlay.

Bug: 63868547
Test: visual
Test: atest ScrimControllerTest
Change-Id: I17f277c917dc55604762420c0027b552993f1916
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
ea0116eac2627854a4470138b996c445594ce976 05-Apr-2018 Lucas Dupin <dupin@google.com> Do not animate scrim when ColorFade

AOD scrims should only animate when sysui will control the screen-off
transition.

Test: manual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Bug: 77539750
Change-Id: Iba79ea09c149068e75163fabddd3608254dd83f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
4749f1b9e04091b2e5b3cb15ff22ca12695f9e85 05-Apr-2018 Lucas Dupin <dupin@google.com> Fade scrims slower when entering AOD

Test: visual
Change-Id: I32117a6351c3d652f845b1b46bffaade52f1fbc4
Fixes: 77539750
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
067136c6164c68a6d5d9fadfd17bf2e590be3fdf 28-Mar-2018 Lucas Dupin <dupin@google.com> Fix scrim animation when unlocking with fp

Notification panel expansion was overriding the animation.
The expansion needs to be ignored during "wake and unlock"
states.

Test: visual
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I781aece52c845f3fee9149c109ad598c7b555751
Fixes: 76018235
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
16cfe45dec96154d37b36364f67cedce16ca2484 08-Feb-2018 Lucas Dupin <dupin@google.com> Screen off animation

SysUI can now control the screen off animation as long as
config_dozeAfterScreenOff is set to false.

The current implementation collapses the notification shade and moves
the clock whenever the use is on the lock screen, or will fade the
scrims and show the clock when the keyguard is occluded.

Display state change (on, doze, doze_suspended) is delayed to let the
animations occur at 60Hz.

Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeParametersTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/WakefulnessLifecycleTest.java
Fixes: 73178121
Change-Id: Id5d964452f342d4e97bedf1084efa808604e602c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
0487601e57fa1d808ede432a86337bc1625677a6 19-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Disable scrim focus on AOD" into pi-dev
05726cd4b6805fb5a60f0830314f87cde7e106c9 13-Mar-2018 Lucas Dupin <dupin@google.com> Bouncer notification and QS scrim

Show front scrim when the notification panel is expanded,
otherwise pin would be overlayed on top of notifications.

Change-Id: Ia438f4a2794eb9510ec05ad86cc8c19e2e716358
Fixes: 74550013
Test: double tap on notification when locked
Test: tap on QS edit button when locked
Test: unlock by swipping up
Test: fling quickly on keyguard
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
38962d7821a9f0f6bd82cecc72e09a771ebd8ce0 14-Mar-2018 Lucas Dupin <dupin@google.com> Disable scrim focus on AOD

Test: tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I5ca941454fe7d0d058970323838b1f3e94fa5f33
Fixes: 74726963
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
bc9aac10e2a2c59fbea5a806f636c1bf7b6427c1 05-Mar-2018 Lucas Dupin <dupin@google.com> Bouncer animation

More obvious animation where bouncer position is influenced
by touches.

Test: Pull up bouncer, press back button
Test: Pull up bouncer, unlock with fp
Test: Unlock with fp with bouncer hidden
Test: Unlock with SmartLock
Test: Ask for auth on top of FLAG_SHOW_WHEN_LOCKED activity, press back
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 3699775
Change-Id: I016dfa17f17571261691669c82385d2d844c5917
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
b380c882a2767405b004dd9c2cbab1444fe18526 26-Feb-2018 Lucas Dupin <dupin@google.com> Fix scrim busyness regression

Scrim opacity on the keyguard should vary according to how many
notifications are visible.
A busy lock screen has a more opaque scrim, and an empty lock screen
has a more transparent scrim.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: swipe away or receive notifications on the keyguard
Change-Id: I672b5e1a82d65dd326b40069d61223c3c0161493
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
8c7cb02f1faae349c0653b4b594ce8ea9f305cee 05-Feb-2018 Lucas Dupin <dupin@google.com> 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
5866aafe3b1b6dd184ed2479c2d53c7e327bb1af 02-Feb-2018 Lucas Dupin <dupin@google.com> Show scrim state on systraces

Adding scrim controller state to systrace to make
it easier to debug scrim issues.

Bug: 71913808
Test: ./external/chromium-trace/systrace.py power gfx view -a com.android.systemui
Change-Id: I5d372de14400c846a43e19a5484d22aa47e91f88
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
82aa1630962e712878301aa46333f1510dbe46a5 13-Dec-2017 Lucas Dupin <dupin@google.com> Hide AoD wallpaper after 1min

Hide wallpaper by cross fading back scrim. This increases
battery life since black pixels won't drain power.

Bug: 64155983
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: set AoD wallpaper, wait for 1 min.
Test: set AoD wallpaper, wait for 50 sec, go to pulsing, wait 10 sec.
Change-Id: Ie830c2fd20f9e60efbfd9e78f248603df07ae93c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
7517b5dcce8dde3a22177857b8fff6439fd98d82 22-Aug-2017 Lucas Dupin <dupin@google.com> Support wallpapers in AoD

Such wallpaper has to define supportsAmbientMode,
and set it to true on its android.service.wallpaper
meta data.

Also introduces WallpaperService.Engine#onAmbientModeChanged
to notify a live wallpaper that the display state has changed.

Change-Id: I49e846069a698b3cc3bb6e7cda98172920eaae4c
Bug: 64155983
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/app/WallpaperInfoTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/service/wallpaper/WallpaperServiceTest.java
Test: set AoD wallpaper, go to aod, lock screen, launcher
Test: set regular wallpaper, go to aod, lock screen, launcher
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
43d0d73d0789025cd92336ec241d2e2e21f558a3 16-Nov-2017 Lucas Dupin <dupin@google.com> Add support for seamless transion from/to AoD

Bug: 64155983
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
Test: manual
Change-Id: I06e72cd5964944c79fb7bfda6881fc4a5a79ca7b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java
9e3fa1033c1fb43c82abf93f231636a4b103c0e4 09-Nov-2017 Lucas Dupin <dupin@google.com> Refactoring ScrimController

ScrimController is now a state machine with tests.

The main motivation for refactoring this class was to
centralize ownership of the scrim state. Before, animations
could be triggered by StatusBar, StatusBarKeyguardViewManager
or DozeScrimController simultaneously, causing collision,
sometimes overriding an expected state due to the call order
and making it hard to calculate an actual state.

Change-Id: I4f4d82549235d3fc7be35b235a2668e70b956cb7
Fixes: 64397851
Fixes: 65688233
Bug: 64155983
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: runtest -x tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: unlock using fingerprint, or challenge (pin/password/pattern)
Test: trigger in-app bouncer (camera app)
Test: pull down notification shade locked and unlocked
Test: lock, look at AoD (or black display when AoD isn't supported)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java