History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
370d3272a5fe83499a8af1d1729fb76729268499 18-Apr-2018 Adrian Roos <roosa@google.com> AOD: Add additional delayed dozeTimeTick after unpausing

Bug: 71913808
Test: n/a
Change-Id: I9e147c113acb4884fd035db75fb0727038bf085c
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
3572be2c1c6087b217eb23e1c748bb05a643f459 18-Apr-2018 Adrian Roos <roosa@google.com> AOD: Ensure WakeLock is held for delayed dozeTimeTick

Bug: 71913808
Test: n/a
Change-Id: Iefc7bb19b7a8bbab88ffe92a58c7c8cff03c89f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
f9583c41dce46321bdcd9cea7045a5bedbe0d59d 06-Apr-2018 Lucas Dupin <dupin@google.com> Trigger new frame after display is ready to turn on

Making sure that a frame will be pushed after the display is ready to
turn on by invaliding the clock after a delay.

Also removed unecessary binder call.

Test: cover prox sensor and wait 1 minute. repeat ~10 times
Change-Id: Ic1b8006781e5486822a5ab65b71b3c44980f2f16
Fixes: 71913808
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.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/doze/DozeUi.java
4df92c366edbdc9c3429a29ba41b0b57b001411a 08-Jan-2018 Lucas Dupin <dupin@google.com> Update clock whenever AoD unpauses

Clock might show wrong time otherwise.

Test: cover prox sensor, look at clock
Change-Id: I73e37f133e877ef0affa038f23b0e11787f9aa65
Fixes: 65674396
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.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/doze/DozeUi.java
5909d0134d7eaf16fd4e7c9c01f60d0d4980f499 11-Oct-2017 Lucas Dupin <dupin@google.com> Fixed problem where scrim transition would be cancelled

Change-Id: I089e499bfaf524898f5156aecaf098c94b9a1b2b
Fixes: 64077859
Test: send notifications, look at AoD
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
013fc4c5e12aa691b2c83f1f869d220bf0f45e08 02-Aug-2017 Adrian Roos <roosa@google.com> AOD: Do not change wakeup animation during DozeService teardown

When finishing the DozeService, eg. in response to pressing the
power button, we need to keep the current value of shouldAnimate.

Fixes: 64203271
Test: Disable Always-On Display. Double tap to trigger Ambient Display. Press power button. Verify that wakeup animation plays.
Change-Id: I393ac143099b45ff90c927658a6d00a2afc1124f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
51465ea3b667a4123baf7eebb8f590aeaec2aafe 27-Jul-2017 Adrian Roos <roosa@google.com> AOD: Fix wakeup transition jank

No longer do the upwards animation from AOD1, because there is a fade in instead now.

Also, because the DozeService gets finished when waking up, we were disallowing
animations again. Instead, we now ignore disallowing animations while waking up.

Also don't cancel the NotificationPanelView wakeup animation when another identical
request comes in.

Also adds tracing for various SystemUI states.

Bug: 63531607
Test: Wake up from AOD1. Ensure there is no jank or flicker
Change-Id: I383ffa320f28ac4bf5432e4f4f5c06372717f66f
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
6023ccbea1568d8b22db82cac9bf7a03367d0a61 28-Jun-2017 Adrian Roos <roosa@google.com> AOD: Add hysteresis to pausing the display

Delays pausing the display by several seconds to avoid
flickering when the prox is only covered transiently.

Also adds cooldown to the proximity sensor, such that when
it toggles too often it gets disabled for a while.

Bug: 62292293
Test: cover prox for less than 10s, observe display stays on. Cover for more, observe display turns off.
Change-Id: Ifa407b84760fc299fbbcfa92d9e942e0093c4b73
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
ef5cf2b4d11f841d3f836b9f536b2e7562ee118b 28-Jun-2017 Adrian Roos <roosa@google.com> Factor out AlarmTimeout

Factors out a helper class that allows scheduling timeouts that are
delivered through alarm manager and cause a wakeup.

Test: check that AOD time still updates every minute
Bug: 62292293
Change-Id: Iff84c01982f0757095bc8719d41bbd22dab4e329
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
540b528f359c86d521090bc960906727255b6bd4 15-May-2017 Adrian Roos <roosa@google.com> AOD: Fix time tick alarm registration

Fixes an issue where canceling the time tick
alarm was not done properly, which then prevented
the alarm from being scheduled again.

Change-Id: I233f6227eabc65ea1cd13e7c53930573fb552126
Fixes: 36506772
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
5a81ac8158e4d2061ce674137675c969b3c05cee 11-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Update wakeup animation" into oc-dev am: 40b34460ef
am: a6ca1c47a3

Change-Id: I04799d23877f1baae0acf632e5ee4b7a88844551
28f90c78b213fb436b243126e8bc10c4f554bd1c 09-May-2017 Adrian Roos <roosa@google.com> AOD: Update wakeup animation

Fixes several issues with the wakeup transition.

Bug: 34716110
Test: Trigger ambient display, press power button
Change-Id: I1fa6e0be13c80a84356a8826ed18e9477bf2aba2
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
7a2de699b26fde465c34f14f4e8126e49c5562fa 03-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Pass through pulse reason to DozeUi" into oc-dev am: 838e5f04be
am: 4c49f656fb

Change-Id: I297365d186814fe0502f8cf155a650546ce959fd
d7b9d10d569438968f75d2453c4293caf89774f2 29-Apr-2017 Adrian Roos <roosa@google.com> AOD: Pass through pulse reason to DozeUi

Fixes an issue where the Ambient Display transition
is too slow in response to double tap / lift, because
we are applying the animation for the notification case.

Bug: 34716110
Test: runtest systemuig
Change-Id: I84f2c59205d157d89baac1688dd6cd97a170a489
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
00bb0bcd4eeabc3054de2f751dd9a2a362e94362 28-Apr-2017 Adrian Roos <roosa@google.com> AOD: Fix mistaken fall-through in switch statement

Bug: 36781008
Test: Trigger AOD2, observe that SysUI does not crash after.
Change-Id: I187bd01bf32ae2d8e9bdca50209e9639f760b59d
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
e7b581bca98569c81b0c56b09f7dadbabb7e0245 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Track missed AOD time ticks" into oc-dev
67cca7442bfeffc0bace506a796cfdd39e5d511c 14-Apr-2017 Adrian Roos <roosa@google.com> AOD: Prolong AOD2 after interaction, turn off AOD when prox covered

Turns off AOD 1 and 2 when the proximity sensor is covered.
Also extends the AOD2 duration when the screen is touched or
the lift gesture is triggered.

Also fixes some issues with the fingerprint unlock transition
from AOD where the doze state for the NotificationPanelView
was cleared too early.

Also hides the wallpaper while we're dozing.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Fixes: 36893539
Fixes: 36893538
Fixes: 36033906
Fixes: 37327153
Change-Id: I3fccae1515a0daf2ff99589ed78ec947687e6262
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
e4b564c856e84f0abe9e7d32cb2d3fd82deaafed 14-Apr-2017 Adrian Roos <roosa@google.com> AOD: Track missed AOD time ticks

Adds missed AOD time ticks to the doze log.

Bug: 36506772
Test: adb shell cmd deviceidle force-idle deep && sleep 2min && adb shell dumpsys activity service com.android.systemui | grep "missedTick"
Change-Id: I12d056d01603d91ef27fa62ec0d48c8f658f0971
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
c1b50324a2286b24b691b8a7190743cbc341727e 27-Feb-2017 Adrian Roos <roosa@google.com> AOD: Add wakelock for charging text while dozing

Also refactors the WakeLocks in SystemUI.

Bug: 30876804
Bug: 35850304
Test: runtest systemui
Change-Id: Ie17eedfd266deb3aa46dabd701bc784330b2e030
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
fe54aa00e22c3542b25d7476b44adc5548169688 07-Nov-2016 Adrian Roos <roosa@google.com> AOD: Fix AoD time tick after refactor

Test: Turn on AoD, check if time keeps updating after a minute
Bug: 30876804
Fixed: 34985073
Change-Id: I7d5ce01b4f04e1a1a89b62ba321215b44f54de7b
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
ff2c4563cdee60576847e161678549bc501e8d84 03-Nov-2016 Adrian Roos <roosa@google.com> Doze: Refactor v1

Pulls appart UI, state, power, display and trigger management
into individual components controlled by a state machine.

Also adds tests.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: I6ee7e79d58a5a3ebeb975775af44ad1e5aaccf93
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/DozeUi.java