History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
71dd484427d3da059ee43c1d6cea1352f5f85365 30-May-2018 Lucas Dupin <dupin@google.com> Do not request focus during wake and unlock

Focus was being required because the expansion of the panel
would trigger onFullyShown. Bouncer shouldn't need any
translation during WAKE_AND_UNLOCK.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: go/sysui-bouncer-tests
Change-Id: I6d5c17ba89e14384859cf7fc91ca5cc2815dbfd9
Fixes: 80345339
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
90101793e5b0a0a0ae74b5731ba6b1f396d67c3c 22-May-2018 Jian Jin <jinjian@google.com> Merge "Bugfix: PIN keyguard is clipped in Car" into pi-dev
d1b6398df8df367b65d1aa809722f6bd71bd6b66 22-May-2018 Jian Jin <jinjian@google.com> Bugfix: PIN keyguard is clipped in Car

Car is a multi-user system. There's a cancel button on the Keyguard
that allows the user to cancel the Keyguard to go back to user
switcher. Because different user may have different security mode,
the container must be resized when the security mode changes. The fix
is to destroy the old bouncer view on cancel.

Screenshot of clipped view: https://screenshot.googleplex.com/0VWdDtrLkAr

Fix: 79202566
Test: In the head unit
Change-Id: Ife33c53785ed96778f08c8f5886885e2b9d29749
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
aece5028fcd8bc532c2c270d33ab4f883f38b4ee 22-May-2018 Lucas Dupin <dupin@google.com> Bouncer shouldn't be translated when occluded

Only checking if the bouncer should be scrimmed isn't enough
since it might have been initialized for performance reasons,
but is hidden at the bottom of the keyguard.

Change-Id: If92083e2c385d51febe0ec3a5e5d3484476caf81
Fixes: 80101176
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: manual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f9ca35eb09ed8e03e11a2bc2571d908cfe772d87 17-May-2018 Lucas Dupin <dupin@google.com> Do not allow bouncer translation when scrimmed

We had special cases when the bouncer shouldn't be translated but that
doesn't really scale. It's much simpler to just check if it's being
scrimmed - because otherwse it mus be translated.

Change-Id: Ide0af6718f1792ef1a1e16fa39512a2b3a0ba8be
Bug: 78222122
Fixes: 78205990
Fixes: 78140990
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: go/sysui-bouncer-tests
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
7e4118135a6e2b685a98073e26637d5d89fdec06 14-Apr-2018 Brad Stenning <stenning@google.com> Allow for the lock screen to have a different set of nav buttons

Bug:74446022

Test: Manually. Test by switching users that have PINs set

Change-Id: Id956b0cfe76eba82235b82080c755489bdf67938
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
4e4b6ff508e1ab42e934c2c3fb64914e7467a3e8 20-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I7c48a326,I7395ecd4 into pi-dev

* changes:
Fix wrong bouncer translation during hint animation
Keep animating bouncer when fingerprint
d7344dcd6c2df6a95b80d23fb87ae63867211945 19-Apr-2018 Lucas Dupin <dupin@google.com> Fix wrong bouncer translation during hint animation

It's not correct to assume that the bouncer translation is 0 when the
unlock hint animation is running. The correct translation is 1 since
the view is completely hidden.

FalsingManager was receiving the wrong bouncer state, and this caused
the rejection swipe gestures.

Change-Id: I7c48a326f054a2c09809e5a1096ca42907472eac
Fixes: 78108854
Test: tap on scrim, swipe notification
Test: turn on flasing logs, look at logcat
Test: go/sysui-bouncer-tests
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
52a9587a1c3797a74709acce3841ad1ad086a872 20-Apr-2018 Lucas Dupin <dupin@google.com> Keep animating bouncer when fingerprint

Before we wouldn't update the bouncer expansion after being unlocked,
this leads to a border case where the bouncer would be stuck if the user
authenticates with fingerprint while dragging up.

Change-Id: I7395ecd400957c656671640c7510fb279c671af3
Fixes: 78035213
Test: go/sysui-bouncer-tests
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
42cae96f22e2dcd03d92ec6876f047516df00d9f 18-Apr-2018 Jackal Guo <jackalguo@google.com> Fix notification bar can be dragged when SIM PIN lock screen.

Set ScrimState of SIM PIN/PUK lock screen as scrimmed.

Test: manual
Change-Id: Iaa3eeee2cd2a542e5a5319af5adf8bbb81718fce
Fixes: 77946510
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
15a6b6c6c5c95fa7b4ed45107b420f0a64ddc117 16-Apr-2018 Lucas Dupin <dupin@google.com> Bouncer visibility fixes

Test: go/sysui-bouncer-tests
Change-Id: Iaf6e0ded57eb3b737cfd074bbc750aa6977e36b2
Fixes: 77921840
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
3f54fe2c973da70c6bfd6843945bac9ee65d81ae 09-Apr-2018 Lucas Dupin <dupin@google.com> Animate shade expansion when bouncer

Change-Id: Ia1b303766379cb9d917c8b60ed70730fe3c4f5b4
Fixes: 76228574
Test: Swipe up, hit back
Test: Double tap on notification, hit back
Test: Launch camera, request bouncer, hit back
Test: Repeat for PIN and password
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d2ce46d5a7597ba2eb06932f462bdf204fb6f105 05-Apr-2018 Lucas Dupin <dupin@google.com> Misc bouncer fixes

- IME flickers after dismissing a call
- IME not being triggered after rebooting
- Bouncer being shown during shade expansion animation

Test: go/sysui-bouncer-tests
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Fixes: 74523176
Fixes: 75001274
Change-Id: Iae2aa1534c34a4191311b85e81e80cea89711bf4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
223c864b65bf73d4e464204912e0771f37339342 29-Mar-2018 Lucas Dupin <dupin@google.com> Merge "Avoid clock and challenge overlap" into pi-dev
4c2aa390125dc699f020155c9f65ed1a796ac7af 29-Mar-2018 Lucas Dupin <dupin@google.com> Avoid clock and challenge overlap

Test: combination of - keyboard, pin, pattern - and different font and
display sizes
Fixes: 74758659

Change-Id: Iaa851d863cd1771c6d9fd9120e4bb743fef776e1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5f6dc61c10dc06e669dfc05c94fffddd15e4e742 27-Mar-2018 jovanak <jovanak@google.com> Bouncer should not show over the full screen user switcher on boot.

Full screen switcher is only used in auto.

Fixes: 77142022
Test: Some unit tests + Refreshing sys ui and making sure full screen switcher shows first.

Change-Id: I726a79af274c2443fca0ece007ecac0f3c42a439
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
25a2c118f433f418d4be648bc2e6c7e21ef4a5e4 27-Mar-2018 Lucas Dupin <dupin@google.com> Avoid binder call while dragging

Test: change auth method, swipe up
Test: brakpoint at binder call
Change-Id: I2a5454e1f80dae094866a5b3f32d02bd528a0696
Fixes: 76456138
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
6f0d71fbb4d45015252e0c224e71847cd647838a 24-Mar-2018 Lucas Dupin <dupin@google.com> Fix issue where bouncer would go away

Activities with the flag FLAG_DISMISS_KEYGUARD_ACTIVITY will try to
dismiss the keyguard. In this case we should show the occluded bouncer.

Ideally we should not show the lock screen, but at this point,
ActivityManager still doesn't know if the keyguard should be dismissed
or not.

Test: manual, edit emergency information on EmercencyDialer
Test: runtest -x cts/tests/framework/base/activitymanager/src/android/server/am/ActivityManagerDisplayLockedKeyguardTests.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardHostViewTest.java
Change-Id: I65b40ae47319c522c13ed3dc9420bc15cb472430
Fixes: 74726131
Fixes: 74779270
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
28dc9d7dfd28703cd1c8c80349bfb33fb439f8e3 21-Mar-2018 Lucas Dupin <dupin@google.com> Do not show bouncer when fading away

Change-Id: I2d09a84ec7cda04dab3095f16f3c6e3acd425c76
Fixes: 76035580
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: double tap on notification, dismiss bouncer
Test: swipe up, dismiss bouncer
Test: go to emergency dialer, hit back
Test: fp from lock screen
Test: fp from AOD
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
3d565fa8dd654fc2473db7a4bba5d4a41a3a6254 20-Mar-2018 Lucas Dupin <dupin@google.com> KeyguardBouncer#isShowing fix

KeyguardBouncer.isShowing should not return
true when the view is hidden.

Change-Id: I111aab356f6fc2367816b2ac132c0c4b140864c3
Fixes: 74583436
Fixes: 76151115
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: Swipe up on lock screen
Test: Unlock with fp from AOD, keyguard or bouncer
Test: Unlock from occluded bouncer
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
23ac9ac52251ea8f0893ddf13d8f6b55472519d1 21-Mar-2018 Lucas Dupin <dupin@google.com> Merge "Animate clock after unlocking" into pi-dev
93752558be6da690121024e4a9c47033c6f6ceb0 20-Mar-2018 Lucas Dupin <dupin@google.com> Animate clock after unlocking

Change-Id: I660e493e3909bf74a9d6b8f60009899ebf5dffe5
Fixes: 74586970
Test: visual
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.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/StatusBarKeyguardViewManager.java
0df9b7a893d23f237d3c8131f75e6718a3f6d144 16-Mar-2018 Lucas Dupin <dupin@google.com> Fix bouncer not showing on top of QS or notif

Bug: 74726131
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: unlock with fp
Test: unlock with pattern
Test: edit QS - look at bouncer
Test: tap on notification when locked
Change-Id: I356c2d5700531cc9bb9b4179f12d4fd65f8bfc41
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.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/StatusBarKeyguardViewManager.java
3c9df5a0a0be1e9fe8bf136c916b549793312335 27-Feb-2018 Lucas Dupin <dupin@google.com> Reset bouncer instead of just hiding it

We can't just hide the view because the state should
be propagated to other parts of the system.

Test: show bouncer, launch camera
Change-Id: I76bb316a117d9a017b55d56a0e0750586e4f81fa
Fixes: 73905701
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
dd7bd35f308bcb2428f8cd74961ce95db77d6d81 10-Feb-2018 Tej Singh <singhtejinder@google.com> Atoms: Keygaurd and Bouncer

Logs changes in the state of the keyguard and the keyguard bouncer

Test: verified logs appear in adb logcat -b stats
Change-Id: I1ffdf72ab088318c883197b3e1eb283bec2b8b2a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
657ef95a5e97f5ec604d6e760e5d8b630fd4b935 21-Feb-2018 Lucas Dupin <dupin@google.com> Hide bouncer before launching camera

Fixes: 71377043
Test: Launch camera after triggering bouncer on FLAG_SHOW_WHEN_LOCKED
activity.

Change-Id: I68ec9814e7fb46772c9724002254873f2beaef96
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
c80c67e7bc96691b6e3700bac49e819ad52db0ae 04-Dec-2017 Lucas Dupin <dupin@google.com> Allow custom keyguard "prompt reason"

Adds the possibility of presenting a custom message on
the keyboard if you're trying to dismiss the keyguard.

This is particularly useful when you're showing the
bouncer because custom authentication (SmarLock)
failed.

Test: launch FLAG_SHOW_WHEN_LOCKED activity and
call KeyguardManager#requestDismissKeyguard
Fixes: 63940122
Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
19aba8e2e71e52ff4133b1f924a6254aa62ee72f 11-Dec-2017 Lucas Dupin <dupin@google.com> Always invoke scrim callback

Callback needs to be invoked if we're trying to switch
to the same state, otherwise the window will never know
that we're done fading the keyguard.

Change-Id: I6779ecf18fbb23f621731d851ab343b82c3529e3
Fixes: 70481733
Fixes: 70392591
Test: Unlock by tapping on notification
Test: Unlock with pin, fingerprint
Test: Unlock with fingerprint when pulsing
Test: Unlock by tapping on notification when pulsing
Test: Open Settings from QS when Maps is SHOW_WHEN_LOCKED
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ea03be1056d44328b96559702791bdac2a466002 04-Dec-2017 Jason Monk <jmonk@google.com> Add latency logging for rotation

Move LatencyTracker and sysui_latency to make this possible

Fixes: 67862696
Test: atest
platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/LatencyTests.java#testRotationLatency

Change-Id: I42e3218355c162d4ba04b0f2c49e031156b5a357
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.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/StatusBarKeyguardViewManager.java
8c51ce24028d45eca82d6c8f766e51427f1a242d 21-Nov-2017 Lucas Dupin <dupin@google.com> Brightness mirror should use QS theme

Always re-inflate the brightness mirror using the
quick settings theme. It's a child of the status
bar window and needs the theme to be explicit.

Change-Id: I342cda303feba4fa9c48afc0f119d8b74657dcd7
Fixes: 68366763
Test: Look at brightness slider using a dark wallpaper
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
cb5d316646df62e9ca84cdf0b03ce7d53ae6396b 09-Aug-2017 Eliot Courtney <edcourtney@google.com> [StatusBar] Remove unused code. General clean-up.

Bug: 62602530
Test: Compile, run on Pixel
Test: runtest systemui
Change-Id: I9238dae185d4e9b3f86e53a839c71af7215ac231
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
3a49ba2e402701170a61f18632652d1a9379cf15 10-Aug-2017 Selim Cinek <cinek@google.com> Fixed that the status icons were showing in the camera

When launching to quicksettings, the camera icons showed
above the camera, clashing with their UI

Test: launch camera (locked) and click on galery
Fixes: 64317909
Change-Id: I4ef68963af11f6d0be739c79cdf352ba35d9ece0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
28f9029fde1b6c57b37b8a93f3ba1827ddb42562 09-Aug-2017 Lucas Dupin <dupin@google.com> Fix issue where keyguard wouldn't be dismissed

Keyguard wouldn't be dismissed when launching the emergency dialer
from lock screen or locked camera.

Test: Tap on 'emergency' from lock screen and camera.
Test: Unlock from lock screen and camera.
Change-Id: I5d2f0f5c6a982cf633bca19cbeb5065a9f68e355
Fixes: 64470717
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
34e65407a45370a7c47fd8a9a56bc55662de2b52 07-Aug-2017 Adrian Roos <roosa@google.com> AOD: Follow-up to I0fa53616db09be98d33ea7d06b38d8ff3037707f

Address reviewer's requests on I0fa53616db09be98d33ea7d06b38d8ff3037707f.

Bug: 64287908
Test: make SystemUI
Change-Id: I804c9408742cc5bd1d69fd5fd8ad42074953b0f6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
9f3bac52ee2590b757929b9c237bbac3c71aa886 07-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Fix launching notifications from occluded AOD" into oc-dr1-dev
81e3b48f9c63760b1a772b50e6df89b89ccce779 07-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Never show bouncer when dozing" into oc-dr1-dev
bd27fd7368c04350a37c6c117170d4a9cdc1516a 05-Aug-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix navbar flicker when launching assistant" into oc-dr1-dev
91ffdc4194181f17e74c1faef4cb002274f04a75 04-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix launching notifications from occluded AOD

Fixes an issue where launching notifications from AOD when a SHOW_WHEN_LOCKED
activity was showing did not work because the bouncer got dismissed.

After that was fixed and the bouncer showed, the launch transition did not
work because the panel was not collapsible. Instead of waiting for the panel
to collapse, just start keyguardDone directly if not collapsible.

Change-Id: I8813f91c741da372c9cb559797f4dc0fe8578d8c
Fixes: 63686192
Test: Disable TrustAgent if enabled, launch maps navigation, get notification, double tap on notification and/or actions. Verify Bouncer shows and unlock works.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
fee661cafe8847a9c620d6e495a9e1fd9201dcce 04-Aug-2017 Adrian Roos <roosa@google.com> AOD: Never show bouncer when dozing

Fixes an issue where the bouncer was appearing on AOD under
certain circumstances. To prevent that, delay showing the
bouncer until we are no longer dozing or at least guaranteed
to wake up.

Change-Id: I0fa53616db09be98d33ea7d06b38d8ff3037707f
Fixes: 64287908
Test: Go to AOD; adb shell service call window 42; verify that bouncer only comes up after waking up from AOD.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
7a56d1a4435ed1a552ff264b61b52b694a6e7ceb 04-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix navbar flicker when launching assistant

When reset() gets called during unocclusion, we were hiding the
keyguard even though it is still needed while dozing; instead,
reset is now actually called after dozing finishes.

Test: Trigger assistant from AOD; verify navigation bar buttons do not show
Fixes: 64164106
Change-Id: Ic29cf40ade7d3cd492723a3f859f8a7734edad93
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
61676aa7f4fe814b22c9beaed298f3ee13cb7b7d 03-Aug-2017 Adrian Roos <roosa@google.com> AOD: Fix RemoteInput from dozing

Launching remote input from doze was broken because:
- We reset the keyguard, calling showKeyguard and clearing the states when stopping to doze
- updateIsKeyguard cleared the state; instead clear it now when we actually show / hide the keyguard

Change-Id: I901908d96ba93a49e4104b622bdd5ca604a8e392
Fixes: 64335172
Test: Receive message on AOD2, click Reply, verify it opens reply box
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
46f2cdeb63a7d68889c1383b62ef743dddb4cfe6 02-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev
7a5e4c9161396805fefb15ffcf1f09b019daf35b 31-Jul-2017 Adrian Roos <roosa@google.com> WakeAndUnlock: Make sure to wait for screen turning on

Fixes an issue where instead of waiting for screen on
we start the unlock transition immediately when the screen
is already on. Instead, we have to wait for it to turn off
and then on again.

Change-Id: Ib1f66edc6ad2d3e71c4bf928b4b0e7531babf6e0
Fixes: 64080116
Test: Unlock via fingerprint a lot. Verify the status bar does not flicker.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f190a858c81c1c76011fbabb9bc6c37517b27ef1 01-Aug-2017 Lucas Dupin <dupin@google.com> Fix race condition when destroying view

Calling ensureView before triggering mRemoveViewRunnable
would halt view re-inflation. Now we make sure that the
view will be removed.

Test: Increased handler delay to simulate race condition.
Change-Id: Ic987f307c268b973058a80ab546da87f43fefb1b
Fixes: 63890571
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
731d4dfe60dc840764292dc2fefa9644f02a8b33 18-Jul-2017 Adrian Roos <roosa@google.com> StatusBar: Switch status bar to using the new lifecycles

Also removes some now unneeded cruft from StatusBarKeyguardViewManager.

Bug: 62446740
Test: Try unlocking phone with fingerprint and regularly from all kinds of states (AOD1, AOD2, non-AOD ambient display)
Change-Id: I3560615ce77f0c2ad9944832baaa568c300af9bb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f5304ad7be35a42b41a4e1e79ce2c62747e67bfc 17-Jul-2017 Jorim Jaggi <jjaggi@google.com> Fix wrong nav bar animation when unlocking from AOD

Visibility of navigation bar was set too late. Set it earlier
such that it gets the right animation.

In addition to that, fixes a bug where Keyguard unlock animation
was terminated too early if there was already a scrim animation
pending.

Test: Wake-and-unlock from Aod
Bug: 63726451
Change-Id: I9a45fb27db68d56904c0fade40ea1173176beae8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
89516d4bd30938264991101a4cf15988dead5777 05-Jul-2017 Lucas Dupin <dupin@google.com> Password field colors

Test: Visual. Set light/dark wallpapers, lock/unlock.
Change-Id: I16806512ef983ede22ee13cdeb41f5620cb52888
Fixes: 62590347
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
41eecffa01f010ab71aecab7a57e528f677c1707 29-Jun-2017 Adrian Roos <roosa@google.com> AOD: Hide SIM PIN entry while dozing

Fixes an issue where the SIM pin entry was still showing
on AOD instead of being hidden while the device is off.

Change-Id: I1f0493b22818a817c2e519f7b4aa1c1df4be9a20
Test: Enable SIM PIN, reboot device, ensure that SIM PIN entry dialog is not showing on AOD.
Fixes: 62657496
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ee18e78d817dd5c66ab9fcf72e96f3cfc0bb8c3c 12-Jun-2017 Jorim Jaggi <jjaggi@google.com> resolve merge conflicts of 8f1d13300f73 to oc-dr1-dev

Change-Id: I1a30ba6663041e1ce0a2d347671deb83b1d9d7ff
67b29d5d498a497cf5164e0f840b30a8d197f716 10-Jun-2017 Jorim Jaggi <jjaggi@google.com> Fix wake-and-unlock animation

Since okToDisplay was false when we started the keyguard exit
animation, no animation was applied and we didn't create a
starting window, which lead to flickering. We fix this by
allowing animations from mScreenOnEarly.

Furthermore, we synchronize the navigation bar better with the
rest of the animation.

We also need to apply no animation to the status bar window as
we go through performShowLocked because we were waiting for it
to draw.

Test: go/wm-smoke
Test: Wake-and-unlock
Test: Make sure no other regression with screen on experience
Change-Id: I5f264b74cc258e8d7f608978edfb1faa5ead385c
Fixes: 38441599
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ab1684790280be50317cfb80d5cf68913197c158 05-Jun-2017 Siarhei Vishniakou <svv@google.com> Remove unused function

Test: make

Change-Id: Ia8dd15d0490a99adc91636ad4641c3df846a024c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5c0a17ce9aa0040ca3862a8502eb5c00643eb3c9 25-May-2017 Adrian Roos <roosa@google.com> Merge "AOD: Fix wakeAndUnlockPulsing transition" into oc-dev am: 838e365581
am: e90d58ed09

Change-Id: I93ab6feaf0b4fd36fa80fdc48878a5c71df70e26
838e365581b8366c7e783c1448c8363cdf558c48 24-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AOD: Fix wakeAndUnlockPulsing transition" into oc-dev
88e61aad090a05e482e8f007cb5d92bcb338a2c1 24-May-2017 Adrian Roos <roosa@google.com> AOD: Fix wakeAndUnlockPulsing transition

Change-Id: Ia5d999f1756050a972f986357d563703abce7172
Fixes: 37878458
Test: Double-tap to trigger Ambient Display, use fingerprint to unlock. Verify transition is Buttery Smooth
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
a45d15bf38a346bef11cee77afb47006b9062f87 23-May-2017 Jorim Jaggi <jjaggi@google.com> Merge "Reset Keyguard when clicking emergency call button" into oc-dev am: ff389264d9
am: 53b96948f4

Change-Id: Id44859e9304aae7e7460bd1ebdc16b5e9c1108e7
a9d7fcdbf2917c7c9a9af932951b5efc077e41c1 18-May-2017 Jorim Jaggi <jjaggi@google.com> Reset Keyguard when clicking emergency call button

Test: Open bouncer, click emergency call
Test: Open Camera, click on the lock icon on the bottom right,
click emergency call.
Change-Id: Id03ee738ddadd52f689a8531539dc3e9abe345b3
Fixes: 37195733
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
087826ad11a3f4a6efdd5bbf376cd83a21ca584c 20-Apr-2017 Adrian Roos <roosa@google.com> AOD: Show keyguard while dozing but not locked

Fixes an issue where AOD would not work correctly between screen
off and when the keyguard actually locked.

Fixes: 30017474
Test: Settings > Security > Gear, set lock device after 30s, disable "lock immediately on power key", turn phone off, try double tap. should work without having to wait 30s
Change-Id: Ifa88e35a821b86a2ed8117ed8a63fc51b5304121
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
421a9410b462770544c6ae9a554542fa2fe1acb1 06-Feb-2017 Jason Monk <jmonk@google.com> SysUI: Add method for plugins to keep status bar full screen

Lots of things detect overlays these days (installing apps) and the
only way to avoid the problems associated with this is to live in
the status bar window. So allow plugins to hold the window open
when they want to so they can have overlays be in that.

Move StatusBarWindowManager to Dependency to make things easier
as well.

Test: Install the example plugin, test can access QS and interact
with apps

Change-Id: Ib2288bf56704960847217bad01a480ab407e0ffe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 26-Jan-2017 Jason Monk <jmonk@google.com> Delete BaseStatusBar

It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
e28cd2fa9ebae753c79898e3b6d3ccd23e73b986 19-Jan-2017 Jason Monk <jmonk@google.com> Fix nav bar visibility on lock screen

StatusBarKeyguardViewManager was assuming that the navigation bar
was the root view in its window, which it isn't anymore. Add a
getRootView() to ensure it is always the root.

Change-Id: Ifeeecc1ae8d7b6c4235a1ce4767dad3919bf90e6
Fixes: 34452399
Test: lock device, tap on nav bar area
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
bcbe9481ced5d8004714b1c76df5df498d25bafe 23-Nov-2016 Jorim Jaggi <jjaggi@google.com> Fix issue when starting FLAG_DISMISS_KEYGUARD while occluded

Since KS.dismiss comes in before KG.setOccluded, we didn't defer
Keyguard going away until the shade was closed, which lead to
an ugly switch to the normal shade during the dismissal animation.

Test: Start FLAG_DISMISS_KEYGUARD while occluded to show bouncer,
make sure unlock animation is clean.

Test: Open settings from shade while Keyguard is occluded, make
sure animation is clean.

Change-Id: I31bdeb8077570ef2c50759321178f03601f1fa0d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8d86417c8efb88282af8840ff9b26c6d8984b62e 29-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix scrim handling when dismissing Keyguard in occluded case"
e93698b8e03b5b936d78e2ff3383ce22968ea43c 12-Nov-2016 Jorim Jaggi <jjaggi@google.com> Fix scrim handling when dismissing Keyguard in occluded case

Test: Manual, no security, Keyguard occluded, pull down shade,
press settings, ensure smooth scrim animation.
Test: Manual, with pattern, Keyguard occluded, pull down shade,
press settings, solve pattern, ensure smooth scrim animations.

Change-Id: I74e13844573e94d9fdc016ba33171c7c64a4f0f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
241ae10b2189f449e57d8d660235ac56d8fb1b80 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> Add explicit method to dismiss Keyguard

The flag is a bit clunky for most cases, and a method is more
clear.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests

Test: runtest systemui -c
com.android.systemui.keyguard.DismissCallbackRegistryTest

Bug: 30961403
Bug: 27422134
Change-Id: I39de90c7cfecd99350a74f72cd76418e337f2b79
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8d5a6e7ce3c74fb4cebc0ac388e5fcf92e04cecf 03-Nov-2016 Jorim Jaggi <jjaggi@google.com> UI Keyguard fixes

- Streamline the various keyguardDone paths. The keyguard will be
dismissed if and only if both the hide animation has run and the
Keyguard is ready for dismissal. This fixes a bug in which the
hide animation was not run.
- When we get an external dismiss call, make sure to collapse the
panel as well.
- When we execute an action and Keyguard is occluded, we execute
if after the Keyguard is gone so there are no weird transition
because Keyguard might get unoccluded.

Test: Manual for the above flows.

Bug: 30961403
Bug: 27422134
Change-Id: I43decfeec270c4ed628bd9479109150c57201dae
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
56fd70cd8ce992cf7f673908540607365b643743 28-Oct-2016 Jorim Jaggi <jjaggi@google.com> The big Keyguard transition refactor (7/n)

There was some window animation jank because we ran a layout during
the animation, as the SysUI animations are slightly faster, so we
collapsed the window already during the animation which caused
a layout which caused window animation jank.

Bug: 32057734
Change-Id: I296f961be8cfc39b08859b7d3d41f1e81b2eaaa3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8d78693157cb3fa7ab1c9072ef913af4d67c6314 27-Oct-2016 Jorim Jaggi <jjaggi@google.com> The big keyguard transition refactor (6/n)

Cleanup:
- Make sure all the state is nicely dumped.
- Remove some unused stuff.
- Fix a flicker when occluded -> unlocked

Bug: 32057734
Change-Id: Id87e26adccef740d608b325c2dc1f6db14dd4ec3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
fe762344f4475a3a336bb46aef2d59c1fabf32ab 13-Oct-2016 Jorim Jaggi <jjaggi@google.com> The big keyguard transition refactor (1/n)

The heart of this change are two things:
1) Instead of using the force hide mechanism to hide windows behind
Keyguard, we actually make the activities invisible in activity manager.
2) When Keyguard is going away, we change the visibilities in activity
manager and run an app transition.

At the very core we move the responsibility of hiding activities to
ActivityStack, which checks whether Keyguard is showing, and then
hides all non-show-when-locked activities. For that, we need to check
whether any window of an activity has SHOW_WHEN_LOCKED set. We
introduce a callback from WM -> AM in case these Keyguard flags have
changed.

Furthermore, we decide whether to occlude Keyguard in KeyguardController,
which just checks whether the top activity has SHOW_WHEN_LOCKED set. When
this state changes, we prepare an occlude/unocclude app transition, and
in PWM we just inform the Keyguard about the animation so SysUI can play
along this animations in a mostly synchronized manner.

Since we now use an app transition when unlocking the phone, we get
lockscreen launch animations for free - window manager automatically
waits until the activity is drawn, or directly executes the transition
if there is nothing to animate. Thus, we can remove all the infrastructure
around "waitingForActivityDrawn".

The logic to show/hide non-app windows is moved to policy, and we add the
ability to run animations on non-app windows when executing an app
transition.

Test:
1) runtest frameworks-services -c com.android.server.wm.AppTransitionTests
2) Manually test unlocking Keyguard:
2a) Without security
2b) With security
2c) With security but trusted
2d) Portrait while activity behind is in landscape
3) Test launching things from Keyguard
3a) Without security
3b) With security
3c) Launch camera without security
3d) Launch camera with security
3e) Launch camera with securtiy and trusted
3f) Launch voice affordance
4) Set no notifications on lockscreen, drag down, make sure you get
the correct animation
5) Test clicking "emergency" on bouncer
5b) Test "Emergency info" on emergency dialer
5c) Test clicking edit button on emergency info, should show pattern on
Keyguard

Bug: 32057734
Change-Id: Icada03cca74d6a612c1f988845f4d4f601087558
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
164675414fa6e69efce447912930ce62ae2f08ef 13-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Dreams: Fix lockscreen flicker"
909fe2d4f5f9a00faa25500c012cfe475c136def 12-Oct-2016 Adrian Roos <roosa@google.com> Dreams: Fix lockscreen flicker

Fixes a bug where dreams (and other SHOW_WHEN_LOCKED activites) would
show a flicker of the lockscreen when the device locked while they are
showing.

This was caused because the lockscreen drives locking the device by
making itself expand, but does not immediately know that it should hide
itself because the occluded state is only pushed when the lockscreen is
showing.

To fix this, we simply push the occluded state also when the device
isn't locked - that way, the status bar can go into the appropriate
state immediately upon locking.

Change-Id: Ie03bfcfe902fc562d76a773d3fc3371359f63563
Fixes: 29555358
Test: adb shell am start -n com.android.systemui/.Somnambulator
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d05651790af7c3dced153876de6db00366f9f9e5 16-Sep-2016 Jorim Jaggi <jjaggi@google.com> Add latency tracking for checking PIN (1/2)

Also move tags to Keyguard as we need it in Keyguard.

Change-Id: I718581cb4081830da1c3a2f4ad9b9f0ec6f09ae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8adb30ccbc4e8a13771368872454e33abd0bc011 14-Sep-2016 Jorim Jaggi <jjaggi@google.com> Add ability to simulate fingerprint wake-and-unlock for testing

We are testing the path from onAcquired until the fading out animation
starts using a broadcast.

Note that this is *not* a backdoor as this only works if the no
unlock credential is set for the current user.

Change-Id: I13618f6ce4aae24744fa3c5ba222cfcd9d9df1b6
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
af69525d7be48f4723644f70f7c02c02c6af2448 06-Sep-2016 Muyuan Li <muyuanli@google.com> resolve merge conflicts of 1dfb41c to master

Change-Id: If389fa5e9139005766e694bc83ec6a07c025da1b
031f79560f65499281bbb500c36e57724d7b514a 02-Sep-2016 Jorim Jaggi <jjaggi@google.com> Only do slow unlock transition if real home is not running

Test: Tested the first unlock on both FDE and non-FDE device.

Change-Id: Ibfbb9d67fb83456acd7b12bbe2d03a961a998ba9
Fixes: 31203310
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
32cbdcc8c098b4a42212b3da345b929abad8ad6e 31-Aug-2016 Jorim Jaggi <jjaggi@google.com> resolve merge conflicts of c5bafe2 to master

Change-Id: I19dd5c88c664313c2f8b47d8f8fd556f630c8bf1
6626f54e658e3da44fab8a5cd6d9d3d4852e2cd1 22-Aug-2016 Jorim Jaggi <jjaggi@google.com> Add animation when unoccluding windows (1/2)

Before there was a jump-cut when a window that was occluding Keyguard
was going away, leading to an ugly flicker. To fix this, we do the
following.

- Always show windows with FLAG_SHOW_WHEN_LOCKED above lockscreen, even
if they don't "match" the currently occluding app (which is null in the
animation case)
- Move wallpaper behind last window that is not hidden by policy, so the
window doesn't get occluded by the wallpaper.
- Add a flag in the setOccluded call whether to animate or not. SystemUI
then plays a nice animation when it's set.
- Override the animation to always be the animation that happens when we
exit a window which is revealing the wallpaper behind, to make it
consistent with the home screen case.

Fixes: 30829255
Change-Id: Ib3fe20fc9003a0f9f291c974740f044ed8707e75
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
aeb2e1e91b447204733807b919306105a269fe2a 28-Jul-2016 Nick Desaulniers <ndesaulniers@google.com> resolve merge conflicts of 9db1877 to master

Change-Id: I12e14d374ab4f71d931ea2cb449354fdf42db004
1d3967506e1cb3843d3bf758187ebc42d1c83485 26-Jul-2016 Nick Desaulniers <ndesaulniers@google.com> framework: SystemUI: add tracing to Keyguard

Helps trace the phone unlock path.

Bug: 29693568
Bug: 30279403
Change-Id: I290864f525e3d08f1efc6b9fc603172a5d139ea0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d1c50f66f66bfcbff5585921490e877d50d0b0a4 11-Jul-2016 Selim Cinek <cinek@google.com> resolve merge conflicts of 6e57aae to master

Change-Id: I929929ad41df4439996755b605d084bfdcf3428a
e8fde5d9666eea10307cbc27f4b1a94d3cbb4ec9 01-Jul-2016 Jorim Jaggi <jjaggi@google.com> Improve initial unlock delay (1/2)

When checking for the credentials, we add a new callback
onEarlyVerified which gets called as soon as we know that the
credential was correct.

In KeyguardUpdateMonitor, we track the unlocked state of the user,
and if it's still locked, we slow down all the transitions to allow
for a more gradual unlock experience.

Bug: 29007436

Change-Id: I406d228f9f3e41e07fe3292a61df175a7f579e4d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
0cd02c05e309108e60be1ffae74463de47c9e744 05-May-2016 Selim Cinek <cinek@google.com> Merge changes I4d34ed4b,Iddfbdf5c into nyc-dev am: 17bc1fd090 am: a24c96986a
am: 1d25f5f2ca

* commit '1d25f5f2cabb4c6b70ad25296bbc58d975ed399b':
Fixed a bug where the pin wasn't scaled correctly
Fixed a bug where the scrim was transparent

Change-Id: I31b8f46ff2223019757cc5f761b60c83817b6ea1
17bc1fd09042f2749a1c822d32bc48eeb3b280f6 05-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I4d34ed4b,Iddfbdf5c into nyc-dev

* changes:
Fixed a bug where the pin wasn't scaled correctly
Fixed a bug where the scrim was transparent
aa8bbf1aefa03e567d56e2b62fe7e5a48e0f82a9 04-May-2016 Selim Cinek <cinek@google.com> Fixed a bug where the pin wasn't scaled correctly

When switching between different users with different
densities, the Pin entry wasn't recreated correctly.

Change-Id: I4d34ed4b2962311f28588b13dd56838c84272edf
Fixes: 27744173
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
2f221397a343a794b56fdc9c6da9561d221a2944 28-Apr-2016 Adrian Roos <roosa@google.com> Merge "Show lockscreen wallpaper on SIM screens" into nyc-dev am: f76b15057e am: e43b7d5777
am: 5eabc02021

* commit '5eabc020217e1d5ed24776ea657d5f0c4ead3ef1':
Show lockscreen wallpaper on SIM screens

Change-Id: I7c6ee2a32f5e58734bd7e8797c4cd8d4173b1300
a3760a4713de573c88fc9f14e9a25b358ef4eea2 26-Apr-2016 Adrian Roos <roosa@google.com> Show lockscreen wallpaper on SIM screens

Also fixes a bug where the lockscreen wallpaper was
showing in occluded mode and where the regular wallpaper
was flashing when going back from occluded mode.

Change-Id: Ibe6404acc4ed5db8807b3ef223b149e841730c8f
Fixes: 28271756
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
9ef8a51c04c09132123a1c308759437c9f38480d 07-Apr-2016 Vadim Tryshev <vadimt@google.com> Hiding app shelf if keyguard is occluded - the shared part for 'master'.

Look at the bug for the repro.

In this scenario, new user's setup program starts as a window with
FLAG_SHOW_WHEN_LOCKED flag, which causes 'occlusion' of the keyguard,
i.e. we simply remove it, before switching to the new user.
So, the user sees the old user's shelf with all its apps.

The fix hides the shelf while the keyguard is in an occluded state.

Bug: 28053346
Change-Id: Iedea22a114eafd2c18837a006e4eabee0fe0dd60
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d5c2db630fc816e2d9154a61ccbd6770bc57cff8 09-Mar-2016 Adrian Roos <roosa@google.com> Don't show wallpaper when backdrop is visible

Hides the wallpaper when it's not needed and fixes
the unlock animation to not unnecessairly show the
wallpaper if neither the Keyguard nor the underlying
app need it.

Also fixes a bug where the enter animation had a background
set, which led to uglyness when no wallpaper is involved.

Bug: 27533740
Change-Id: I667c6f7ca6c0e1ff7e9f793c6ddc13f6da8387b1
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
401caaedd871894620accc1d14592c08095b5523 04-Mar-2016 Adrian Roos <roosa@google.com> Fix bug and add logging in FalsingManager

Fixes bug that lead FalsingManager to be incorrect
about the screen on state.

Makes it a fatal error to query whether a touch is
falsing outside of an active session.

Prevents touch collection and logging on the locked
shade which needs no anti-falsing.

Bug: 27227578
Change-Id: I8e330ad28636156a952e61b8fe6a3d201f82e624
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
28540199793c3e0e0cc692a00ce27e7fa2f790b8 20-Feb-2016 Selim Cinek <cinek@google.com> Fixed the usage of the menu key to unlock

The menu key was not unlocking the keyguard properly
and didn't hide the notifications.

Bug: 26539875
Change-Id: I9dd89767f00d29c15d1d4e840a1ab22d59e58c8d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
1b30f79cffbe9e0c2b974fa3ee48001edcdd6c05 06-Jan-2016 Xiyuan Xia <xiyuan@google.com> Refactoring for better extendability

- Exposing members of PhoneStatusBar, StatusBarKeyguardViewManager and
KeyguardBouncer to sub class;
- Add a configuable SystemUIFactory as class factory for components;
- Add logoutCurrentUser and switchToByUserId to UserSwitcherController;

BUG:22407003
Change-Id: I3902baf3c721d89217b27a6310c4202a198cb209
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d28ccd7cab8e1a187dfd6c5733efe7cdfb652202 06-Jan-2016 Adrian Roos <roosa@google.com> Show back button while RemoteInput is active on keyguard

Bug: 22452379
Change-Id: Iea1cdb885698c717b98904453bf14e2bdd7d7562
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
6a15d528c0a4501389008ef945dec38b5ca6919a 23-Sep-2015 Jorim Jaggi <jjaggi@google.com> Do not go over handler to dispatch keyguard visibility

When going over the handler, it could happen with a bad interleaving
we thought that Keyguard was not showing when getting the
onFinishedGoingToSleep message, so we stopped fingerprint
authentication. For some reason our state machine for canceling
/restarting authentication didn't work correctly so the fingerprint
listening state was not correct.

Bug: 24178814
Change-Id: I2a4731f195982395244c12e4d33b2b7d561c5671
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
18f18ae078ee97bbdfc9da39d4a19866dceb6a3e 11-Sep-2015 Jorim Jaggi <jjaggi@google.com> Allow camera launch also when device is interactive

Bug: 23967648
Change-Id: If91df75e6325b3969dc2351a70af0c160d3eab04
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
b774e554f32fd65cac30b43d1cf679403ef4af82 24-Aug-2015 Jorim Jaggi <jjaggi@google.com> Optimize fp touch to wake: Shortcut for report next draw

When telling window manager that Keyguard window is in the correct
state for a fp-touch-to-wake sequence, it takes more than 1 frame at
the moment because the signal that WM is waiting for the next draw
is delayed by one frame because it is posted at the end of the
runnable queue.

To correctly fix this, we should post it at the beginning at the
queue, but this is way too risky this late. Instead, add a isolated
SysUI hack to report it faster.

Bug: 23401557
Change-Id: Icf64101e27611c7c01d108123021b22186f1e70c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
372d1bdd54fe977c71bdaae895687c76ac35202a 14-Aug-2015 Selim Cinek <cinek@google.com> Launching the camera now from systemUI including animations

The GestureLaunchService now informs systemUI that a launch
has been requested and the systemUI, depending on its state
will launch the Camera in the correct mode, including
animations.

Bug: 22957192
Bug: 22958025
Change-Id: I815437c8bd33638245ac61a750f64af74fe3e1e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ab45a217b0002dcf586d529ab8581cacbbfc37e9 21-Aug-2015 Jorim Jaggi <jjaggi@google.com> 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
909788500bbe54b14017be3c1f2b4fee7945c63d 19-Aug-2015 Jorim Jaggi <jjaggi@google.com> Fix jank in wake-and-unlock while pulsing

- Don't hide keyguard after the animation is done, because this
would cause a measure in the middle of the fade animation.
- Don't use a layer for the notification panel in this case - we
don't need it and it only adds latency.
- Speed up the whole thing a bit because the animation is now
smoother.

Bug: 23225107
Change-Id: Ie8264c4d0e62bd6a78227e04b9900b4348ddd649
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
83eb6bb5d83d3994a3750b566a2109a049ab1388 18-Aug-2015 Jorim Jaggi <jjaggi@google.com> Improve motion for wake-and-unlocking while pulsing

- Move all fingerprint related to logic in on central class in
SystemUI that knows all the state of the UI so there is exactly ONE
place in which we decide what to do when we acquire a fingerprint.
- When pulsing and we get a valid finger, we fade the contents of the
Keyguard out and fade the scrim out almost the same way as we would do
in a normal wake-and-unlock sequence.
- Hide shadows while dozing, so we don't see the artifacts when we fade
the dozed Keyguard out.

Bug: 23225107
Change-Id: I82f78e61f2530cf7d507ade80f6f0a340c082567
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
007f0e8f207d3d6d2f47d725b72459edf317cce9 14-Aug-2015 Jorim Jaggi <jjaggi@google.com> Fix race condition for doze mode and wake-and-unlocking

When pulse was about to turn on and at the same time we were starting
a wake-and-unlock sequence, there was jank because the scrim handling
was not correct anymore. Now, abort the pulse when we are wake-and-
unlocking so we don't see flickering with the scrims anymore.

Bug: 23217476
Change-Id: I331f513b68fb1832b4372d3e2e518b31b556a43c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
50ff3afb01f2ac4a93dba418a71d54ad8adeba9d 13-Aug-2015 Jorim Jaggi <jjaggi@google.com> Start pulse fading exactly when screen is turned on

Bug: 23163299
Change-Id: I0f6d5dbfa02e455292e06a4f8f69ab68e9da2b6b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
587488e027c41394dc6a1f2248c4dbe8d3530b69 14-Aug-2015 Jorim Jaggi <jjaggi@google.com> am 81eeef58: Merge "Update time when turning on screen, in addition to waking up" into mnc-dev

* commit '81eeef589386483722c21572d9ab6d3f95dd26be':
Update time when turning on screen, in addition to waking up
9373911d41c133fce80b8ecf6e688204f2c667e7 14-Aug-2015 Jorim Jaggi <jjaggi@google.com> Update time when turning on screen, in addition to waking up

When in ambient display mode, we didn't get a callback to
onStartedWakingUp, thus the time was never refreshed. Since
broadcasts are disabled in this low-power state, we need to refresh
the clock manually before turning on the screen, because we can't
rely on the broadcasts to be delivered.

Bug: 23171638
Change-Id: I249f4195a14995f7c1467e73ac2aa400b871f80e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
25b4d4b280c6aa07656328bd9dd90977781d00e1 12-Aug-2015 Jorim Jaggi <jjaggi@google.com> Require strong authentication after a timeout

Bug: 21594472
Change-Id: Iab169d4fa2e4ad134f8c8579654b28e96b5b1385
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
cfafe4ea6ff1610c24d94a9a9ecc7df6b841518c 11-Aug-2015 Selim Cinek <cinek@google.com> Indicating fingerprint error messages on the bouncer now

Also ensure that error messages are surfaced when the screen
comes on such that the user knows why his fingerprint is not
working.

Bug: 22035466
Bug: 22524101
Change-Id: I00b0e833cdb8a3475545ba75b8cb7bf7a419dfd4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
0d210f6395072db4a4c53d4cb8fac4a59a3965b4 10-Jul-2015 Jorim Jaggi <jjaggi@google.com> Animation for touch, wake and unlock

- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
First, start with a black scrim on top of everything, and then fade
it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
1fcafc49ad34cb8f778862653d452ac0fe61461c 20-Jul-2015 Selim Cinek <cinek@google.com> Adapted the behavior when unlocking with fingerprint is not allowed

We now keep the fingerprint running and switch to the bouncer when
the user successfully authenticated.

Bug: 21618072
Change-Id: If00061cb3914afd4d7a7d75964594484c792a890
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
740452e8756cb7f51ed185c3906a5ca61b8fcdd4 09-Jul-2015 Jorim Jaggi <jjaggi@google.com> Touch, wake and unlock

- Add onFingerprintAcquired, so Keyguard can grab a wakelock to prevent
the device from sleeping.
- If we get a successful fingerprint, wake the device up, immediately
dismiss the keyguard and tell PWM that we kicked off our frame that
will represent the correct state.
- PWM then waits for this frame to be drawn, and then turns on the
screen, which results in unlocking directly to the previsouly
opened app.

Bug: 21855614
Change-Id: I5f43df17fa5e4e9c6a6392eef4a4590b07df4f96
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
edd32b881780e52b4ecc43f8df3b6b091e70a863 24-Jun-2015 Selim Cinek <cinek@google.com> Fixed a bug with encryption where the keyguard was never shown with PIN

This led to the network being unusable.
We now ensure that the Keyguard is not notified of the SIM PIN
changes until after the initial dismissal logic is done.
In addition, the fullscreen PIN is now always shown immediately
and not until the user swipes up, which was an error before.
Also made sure that the Keyguard Scrim is correctly visible
when shown.

Bug: 21850021
Change-Id: I81804124bae30adf0e17e26cc42f67e48fc446e8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
61a7d1f5f6963a55cb519ef7364e9e7ca4059584 22-Jun-2015 Selim Cinek <cinek@google.com> Follow-up to empty keyguard issue

Bug: 21124013
Change-Id: I2f880ffe1f8a69f66a37e27f700c2e8919e46acd
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f8fbc2a7cc1449ba1f8ebc3e8f09359903293ad1 22-Jun-2015 Selim Cinek <cinek@google.com> Showing the bouncer now when waking up from touch while lagging

Bug: 21124013
Change-Id: I21fd26180c3389191e63ca728a651a3fbc98a75e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5cc86599ce0e5596655859d09c52934030da240b 08-Jun-2015 Jorim Jaggi <jjaggi@google.com> Dismiss Keyguard correctly

When authenticating with fingerprint, we didn't go through the
dismiss action, and thus launching intents was broken when
authenticating with fingerprint from the bouncer. Also fixed a crash.

Bug: 21695578
Change-Id: I61f74b5b63d4d6ddf7f8f3ce96feb63b9644cd52
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d944986fbdb3d45fab9ae4120af76ca4f6b0909c 29-May-2015 Jorim Jaggi <jjaggi@google.com> Fix API review: Camera prewarm

Let the intent receiver of a camea launch intent declare a prewarm
service instead of sending broadcasts.

Bug: 21347653
Change-Id: I11e31aad4f788ad90eb46a661b819d3e808ddb51
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
d322f1af916038816ef2a5b56fef4d9648d8433e 24-Apr-2015 Adrian Roos <roosa@google.com> Fix disappearing status bar icons with SHOW_WHEN_LOCKED

Fixes a bug where launching a SHOW_WHEN_LOCKED window from the bouncer
wouldn't properly restore PhoneStatusBar's state leading to missing
status bar icons.

Bug: 20474073
Change-Id: Ib22dc0dc5a89214af8876ddaea52569e2e24a742
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f3b3bee12994a24b60bd447dede9e8791151fcc9 16-Apr-2015 Jorim Jaggi <jjaggi@google.com> Speedup unlock when authenticating with fingerprint

Change-Id: Ib76ff7a2a42cf6fc77848ef799c2a13b77cfebb2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
25d7e51a10828e4433fcca90410d13a4b2342c34 04-Mar-2015 Jim Miller <jaggies@google.com> Change fingerprint behavior in keyguard to dismiss on notification

This changes fingerprint to dismiss the notification screen rather
than moving to a trusted state.

Fixes bug 19592835

Change-Id: I5020408df2e8b73a34c264b5ac052251e3a17b8d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
33ae80e35a1b170309999c9b33b310ca91eb3f05 04-Feb-2015 Jorim Jaggi <jjaggi@google.com> Make light status bar fade nicely during unlock transition

By using the timings supplied by window manager for the unlock
transition, the transition from dark -> light status bar looks much
nicer.

Bug: 19233606
Change-Id: I33b9048a10e2bd827ff504ab52f385cc88867112
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
568e54be71731bdbcd5338385eb6cc6a082c9456 15-Jan-2015 Jorim Jaggi <jjaggi@google.com> resolve merge conflicts of 87f5369 to master.

Change-Id: I5d1a7aaf48c4bf70f7181508aa46fbbcc2cf7086
6b88cdfba770efc5722338c240ccaada13d7b0d4 22-Dec-2014 Jorim Jaggi <jjaggi@google.com> Remove dead code #8: Remove old keyguard "bouncer"

Also squashes KeyguardViewBase and KeyguardSimpleHostView into
KeyguardHostView, uses a constant for the user activity timeout
(custom value no longer used).

Change-Id: I919b7d3de1dd1590b20e0f14f0e193ee2b3dc21e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5c60b647047f744b78f9ae1b1984a654edbda2c6 19-Dec-2014 Jorim Jaggi <jjaggi@google.com> Remove dead code #1: Remove unused Keyguard classes

Change-Id: I08327dd23072b4e793be40635f105ce0aa5f6f6f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
2231c6e1adefdb7636d9fe38a388f1b0660d30ea 19-Dec-2014 Christoph Studer <chstuder@google.com> SysUI: Log lockscreen state to eventlog

Logs the following keyguard and status bar states to
eventlog:
* statusBarState
* keyguardShowing
* keyguardOccluded
* bouncerShowing
* secure
* currentlyInsecure

Bug: 18767135
Change-Id: If27a9340dd1b5ec609f9940d9e0f32bd7aed1ed2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
826730aeb98040cd01c9b5f0656c8b9036bc07de 08-Dec-2014 Jorim Jaggi <jjaggi@google.com> Fix SysUI when an app started from the affordances crashes

- Fix infinite recursion in this case.
- If the app crashes, we are waiting for either setOccluded or
hideKeyguard to be called. However, neither of these gets called
in this case, so we recover from it by adding a timeout of 5
seconds.

Bug: 18652789
Change-Id: Ib9a043f5692a8578703df1db08e1a6b9dcfbc742
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
95e89caeb252a54807c76d60c7440766829e418c 24-Nov-2014 Jorim Jaggi <jjaggi@google.com> Fix jank when pin/pattern is shown

- Only update layout params of status bar window when needed
- Do not update security method all the time, only when needed (only
when reset gets called)
- Check for actual used security method when updating states for
bouncer

Bug: 18505838
Change-Id: Ib3d0021c0cc364fa5598e06e0a2bae059ae79cbe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ab954546dc49e1070ed8513efbddc8954b529c23 11-Oct-2014 Jim Miller <jaggies@google.com> Make IKeyguardService interface asynchronous

Add a state callback so lockscreen reports back whenever its state
relevant for PhoneWindowManager changed, instead of synchronously
calling into SysUI which can lead to deadlocks. Directly use
LockPatternUtils for isSecure, and optimize the number of calls to
this method to optimize layout performance.

Bug: 17677097
Change-Id: I5d491fc8884d4f84d9562626b9ea0d5eaa5166fc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
31b844ba0cf418b758fbe45023d0202f208c0191 21-Nov-2014 Adrian Roos <roosa@google.com> Explicitly specify user for public mode

Bug: 18417850
Change-Id: I9d564a47fe66cb8035d73c8a2eedb912920410a2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
786afcb3eec18315ec54987a08814ff28f13d09f 25-Sep-2014 Jorim Jaggi <jjaggi@google.com> Trim graphics memory when closing the shade

Graphics memory usually gets trimmed in applications when the
activity goes into the background. We use quite a lot of graphics
memory when the shade/lockscreen is open, and some of them never gets
freed unless the recents activity is closed, because we don't have
these activity-trimming-heuristics for the shade. This change
proactively trims the graphics memory when the shade gets closed or
when the lockscreen is hidden, to emulate the same heuristics as for
activities.

This change also adds trimMemory on RenderThread to systrace to
verify that no jank is introduced with this change.

This change immediately saves around 10-30 MB on an xxhdpi device
after the shade is closed.

Bug: 17581375
Change-Id: I4fb622efb51815fe08187be97ba15d012d4de5d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
416493bf66dff0aa7fcd9ea505ed10dbff1f2906 13-Sep-2014 Jorim Jaggi <jjaggi@google.com> Fix jank while unlocking and security is set

- Delay showing the bouncer and playing the entrance animation for a
couple of frames.
- Do not disable back button on the normal Keyguard. This makes the
entrance animation nicer and fixes some jank due to the need to
draw into both windows.
- Prevent setPadding(...) call when nothing changes. setPadding would
invalidate the padding for the whole view hierarchy, which results
in a slower measure() when setting the window to invisible.

Bug: 17419960
Change-Id: I4a239d4af40ad86875e4a0dd08473f19a5c9b961
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
746f7facf2c5f9a7362387806b5926b951bb024a 27-Aug-2014 Jorim Jaggi <jjaggi@google.com> Start intent chooser after Keyguard is gone

If we have an intent chooser on the camera intent, we need to launch
it after the Keyguard is fully gone because the ResolveActivity would
finish itself if it is launched behind the Keyguard.

Bug: 16570873
Change-Id: I2fdb4975fa0a6510e8853c6042383089570ec1f5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
6bad244c4e0bcfba1652f3cc3593a9034f84fd9b 26-Aug-2014 Jorim Jaggi <jjaggi@google.com> Fix invalid keyguard state after pressing back in bouncer

Bug: 16886960
Change-Id: Ib071b302f9cb2f1fec32285e05a5b8585e53e41e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
fbc88e19cb77c303b47a427a40123ccf4ba5cca7 14-Aug-2014 Jorim Jaggi <jjaggi@google.com> Fix emergency call when in launch transition.

Bug: 16831662
Change-Id: I3411decc3053a7e5fc760ffce5e8b3c52a6e0c49
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
84a3e7aacf6dbeccf4afb36a29f2f069dca7d486 13-Aug-2014 Jorim Jaggi <jjaggi@google.com> Use different unlock animation when going to full shade

Also fixes a bug that the notify flag was not reset, and fix the
transition for the phone/camera affordance (in these cases, no
animation is needed).

Bug: 15991916
Change-Id: Idbb4fa40f86bda597cd66cc38da838ef4f75514d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8de4311c51229efbe2f2d0afbf298982c5cadd96 11-Aug-2014 Jorim Jaggi <jjaggi@google.com> Lockscreen launch animations

- Get rid of ActivityManager.dismissKeyguardOnNextActivity, which was
used for two different things: Dismiss keyguard from somewhere else
(not really necessary anymore), wait to actually dismiss keyguard
after the window behind is drawn. Instead, introduce
keyguardWaitingForActivityDrawn(), and change the semantics where
necessary.
- Make wallpaper_close_enter consistent with task_open_enter and the
Keyguard launch animation.
- Close the panel even on lockscreen when launching a notification.
- Block notification shade updates during the collapsing motion so
notification don't play the disappear animation immediately after
having launched a notification.

Bug: 15991916

Change-Id: I133c177b84e926c87c1a404ba93d633593fec3ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
76a1623afc170a13923b68f3256057d8adeb7937 08-Aug-2014 Jorim Jaggi <jjaggi@google.com> Preparations for lockscreen launch animations

- Update unlock animations to new spec to make the consistent with
lockscreen launch animations.
- Introduce disappearing motion for security views which runs before
we actually dismiss Keyguard.
- If a window is running the un-force-hide animation, treat as it
would have the wallpaper flag set so the wallpaper stays until
the animation is completely done.
- Run an animation on the wallpaper if the wallpaper is going away.

Bug: 15991916
Bug: 16234603
Bug: 15326120
Change-Id: I063aa4f269ddcf75b9a705e90f0c3056b541b642
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
dbc3dce886cb7abba23a9f18e60d0f5af5c93226 01-Aug-2014 Jorim Jaggi <jjaggi@google.com> Handle go to full shade motion for redacted case

Bug: 16291973
Change-Id: Idc5ea93548e17ef9cd2d7c36416b293950554703
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
baa23274596246d03741457701ac515a73aa8818 08-Jul-2014 Selim Cinek <cinek@google.com> Implemented new camera affordance

Also fixed a bug in the touch logic where you could close the shade / hint
after going to the camera / phone.

Bug: 15126905
Change-Id: Iadfde56cb68f4048868eedec6bd3456f55823cd9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
0002a45034b1103ffc5ecf4d5a14b7d1ba225005 03-Jul-2014 Adrian Roos <roosa@google.com> Show bouncer when opening notification in occluded mode

When showing apps on top of keyguard, properly put up
a bouncer when a notification is clicked.

Bug: 15588412

Change-Id: I48bcc5cc17c32856c11e7ab28182cdc3f253ad98
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f41fc9664febbdbf138e8540fd7a8281f1278eb1 19-Jun-2014 Jim Miller <jaggies@google.com> Add fingerprint detection support to Keyguard.

Tested:
- power-on with fingerprint sensor
- dismiss bouncer with fingerprint
- fingerprint to enter trusted state

Change-Id: I6aab7591d370412a143fe219a1575b2719a4de96
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
44cf91960d74eccec45b9adec291ddb8baf84b4d 18-Jun-2014 Jorim Jaggi <jjaggi@google.com> Hide status bar in bouncer

Also, it gets faded in synchronously with the other unlock
animations.

Bug: 15407838
Change-Id: Ie161dfe970a2b4035a2d4cc7bb847285160cf691
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
4b22bdfa84eb3b62f83982281798145e56fce21d 05-Jun-2014 Dan Sandler <dsandler@android.com> Don't show private notifications if a secure lockscreen is merely occluded.

Bug: 15430088
Change-Id: I27187216462b5bb7d52c3f85b9444348138fd9ea
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
e29b2dbc762bfa66093d76f5a65f55328d8753c9 30-May-2014 Jorim Jaggi <jjaggi@google.com> Fade scrim in unlock animation.

This also introduces a startTime which gets sent from window manager
to SystemUI, which tells when the animation should start, to allow
for a more synchronized animation with fading out the scrim and
fading in the activity behind.

Bug: 15163546
Change-Id: I16212b1ef9eb76f1f98734da1d14fc5b7e626937
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
2fbad7b6a724cf0a5b98b66fe639d58f5ab10af3 26-May-2014 Jorim Jaggi <jjaggi@google.com> Show bouncer immediately when MOTION_UP is received

Bug: 15163546
Change-Id: Ie50905b78352e54298cb7e0e3f13152e6c2becd0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
ecc798e6668046c2f67cf30c6ab1db2eba80cab1 26-May-2014 Jorim Jaggi <jjaggi@google.com> Improve scrim handling

Bug: 15163546
Change-Id: I0d2c05b035f832f4b4e6a2fc34113fe9d5677525
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
a0be6d53a823f8115d3863773398d640ec2a8c44 26-May-2014 Jorim Jaggi <jjaggi@google.com> Do not destroy the security method when pressing back.

Fixes jank when the user wants to unlock it next time.

Bug: 15088101
Change-Id: If7bc3d92d0f17abb5077b4c06248f368acb2879f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
7d7090d66692170b0584a5b9f4fe3e47285ee615 21-May-2014 Adrian Roos <roosa@google.com> DO NOT MERGE Only send notification activity intents after dismissing Keyguard

Defers delivery of contentIntent and activity actions until
the lockscreen has been dismissed, so that activities don't
launch beneath it.

Bug: 14491010
Change-Id: Ic8c61c18a75d4f0da2d82a0a8a038a5d98ebb71f
(cherry picked from commit 79f640dd0d02c1cc199937b160d8f7abd3c1eaeb)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
75c95044a8c5c073d30dcc9bd21157939f161043 16-May-2014 Jorim Jaggi <jjaggi@google.com> Animate clock position on Keyguard.

Also disable animations when on Keyguard and screen is turned off.

Change-Id: Iec031ab336357194b5d387bc0aad00a702a8ef54
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
b601162a60663329355720083bfa199909dbf6ef 14-May-2014 Adrian Roos <roosa@google.com> Fix visibility and add bouncer event in KeyguardUpdateMonitor

Bug: 14087751
Change-Id: I45bc2213dfcce751180762d18ead0382f68cac74
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
df993513fbfe0e952175c1c5384458deaa1ff01a 13-May-2014 Jorim Jaggi <jjaggi@google.com> Handle media key events correctly on Keyguard.

Bug: 14490267
Change-Id: Ib8f8ee3ee7f1fbec70f1dd8b6fb04cd7c242bdce
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5fd4d05aae4b8b0dc1d1b21a206e218f47b0ea3a 13-May-2014 Jorim Jaggi <jjaggi@google.com> Fix Keyboard over Keyguard when password is set.

Bug: 14842750
Change-Id: Ie7d92ee60191f8083c8ff65aba3754c71e4a5819
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
43bdbbdad6c54c732b2caa09d7544cfdd677ac5b 09-May-2014 Jorim Jaggi <jjaggi@google.com> Fix lockscreen occluded states #2.

Bug: 14656767
Bug: 14294001
Change-Id: Ibc428cbba8b48b6adc26756d8276a63183b8a690
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
3806c771336a378b650b2ec14aa1ae7e5927f137 08-May-2014 Dan Sandler <dsandler@android.com> Don't show notifications above FLAG_SHOW_WHEN_LOCKED windows.

We need to hide the bouncer when the lockscreen is occluded
by a show-when-locked window, but we also need to double-check
any time the screen comes on in case the bouncer has been
shown for some other reason since the occlusion originally
happened.

Bug: 14294001
Change-Id: Ief4ea8e39322d9c4b26ec217dbc14b6c6f16ad45
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
f593c9d728529cc2a58d48b4dd6535a237f5b26a 05-May-2014 Jason Monk <jmonk@google.com> Merge "Add null check on navigation bar visibility"
1e68fb3c3842bb90ed3f474cef0ddf7116eace0e 02-May-2014 Jason Monk <jmonk@google.com> Add null check on navigation bar visibility

When there are hardware keys getNavigationBarView() returns null,
this just checks before setting the visibility.

Bug: 14491311
Change-Id: I2ea8b62b1dfe05ca09636870b37dff184730369e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
4222d9a7fb87d73e1443ec1a2de9782b05741af6 23-Apr-2014 Jorim Jaggi <jjaggi@google.com> Change interaction for dragging down to full shade.

Starts expanding the card if it is expandable. If it's not, we
rubberband the expansion a lot. After the threshold has been reached,
we scale all the notifications up and make it fully white and opaque.

Change-Id: I9ecd020ca263b0f84e87fd6ab2332519ac5e9984
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
1568250853d81befcdaef63cc8588435353c3d12 23-Apr-2014 Jorim Jaggi <jjaggi@google.com> Move redaction logic showing from Keyguard to PhoneStatusBar.

This removes a race condition and makes redaction more stable.

Change-Id: I4084cdf490c0e52fe26f45cb00524e0876a068bc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
a6310293c5a861cdb54f2c894e90a8d9da87f8d7 16-Apr-2014 Jorim Jaggi <jjaggi@google.com> Hide navigation bar on Keyguard.

This also moves the camera affordance from navbar to the navigation
panel, so it is still visible on the Keyguard.

Bug: 14086354
Bug: 14085922
Bug: 14110532
Bug: 14059294
Change-Id: I93b51381915a67c688cdffd055fd149f2a220b00
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
2e50f28f4154ce289748ef5c5cfdd8bd9c38c682 18-Apr-2014 John Spurlock <jspurlock@google.com> Revert "Fix broken status bar when activity is showing above keyguard"

This reverts commit 25ab3d94387597a24619723df687214320f17e76.

Change-Id: I7dba397a9fe09d70b87ff4e638805c010c192599
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
25ab3d94387597a24619723df687214320f17e76 17-Apr-2014 Adrian Roos <roosa@google.com> Fix broken status bar when activity is showing above keyguard

Bug: 14077213
Change-Id: I5d45fd1780498983995a469d0799e024ca25f3c7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
8c8bcc160aba9a5e93c8df2a99a39a856fafffab 16-Apr-2014 Jorim Jaggi <jjaggi@google.com> Make MENU key work again to dismiss insecure Keyguard.

Bug: 14110426
Change-Id: Iab8ec9633a2169e6def13a0c6e09b77543adbb41
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
a005f1b6853e8852c328f4fdc02fb8f9c9ae1cd6 16-Apr-2014 Jorim Jaggi <jjaggi@google.com> Show enter PIN/PUK before notifications on Keyguard.

Change-Id: Icec12a43487fe76378e10bb8aaaa163c53b69075
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
e5c7a894635d72514d6f1e952d0f18ba6035e86d 10-Apr-2014 Jorim Jaggi <jjaggi@google.com> Hide back button on keyguard and make it work for bouncer.

Bug: 13635952
Change-Id: Ie9824dd9926c9deb0a38c8e0a6161f605a489622
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
0bed7f258ba1fffc10f986ee043b769f1fd40ad3 03-Apr-2014 Jorim Jaggi <jjaggi@google.com> Always go through bouncer when unlocking

Previously, we skipped the bouncer when the user didn't had a
security method set. Users without a security method couldn't unlock
their SIM cards though. This change moves the responsibility to
decide what to do to bouncer, so SIM pin is still shown with users
without secrity methods. The bouncer will still be skipped if no
authentication is required.

Bug: 13635952
Change-Id: I0b43628c37d769515e97c29fc5fb5337fe46526f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
03c701ec58ff6de3cc3c53b05342a475a63a11cf 02-Apr-2014 Jorim Jaggi <jjaggi@google.com> Basic implementation for notifications on lockscreen.

This change makes PhoneStatusBar expand while the lockscreen is
showing. Further, the KeyguardSimpleHostView is shown by
KeyguardBouncer, and the Bouncer is shown whenever the user tries to
unlock the phone (closing the shade).

Bug: 13635952
Change-Id: I4354b7a7937af6e1c93abf16ad6e485376d16bc2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
cff0acb6b1eea23c3f44a078a0a5e81c11faea35 31-Mar-2014 Jorim Jaggi <jjaggi@google.com> Wait for Keyguard to be drawn after boot.

The old logic with waiting for the Keyguard to be drawn assumed that
it is in an own window, and just checked for the visibility. This is
no longer possible as the Keyguard is in the status bar, and the status
bar might have been drawn without the Keyguard. So we have to wait
explicitely until Keyguard told PhoneWindowManager that it has now been
drawn and we can turn on the screen.

In addition, the starting logic of SystemUI is moved into
SystemUIApplication such the we can make sure that the status bar
already exists when the callbacks from PhoneWindowManager reach
KeyguardService. This simplifies the logic a lot.

Bug: 13635952
Change-Id: Ifd6ba795647edcf3501641e39052e4d04bc826fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
13b67a9cd5c84c586d71f81873191fe2d00d9cd2 28-Mar-2014 Jorim Jaggi <jjaggi@google.com> Switch to KeyguardHostView to reenable clock and multi user switch.

Bug: 13635952
Change-Id: I8996dd55be220637bc028cfedc62583850a538a2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java
5cf17879a31b7b78c09ec50b727f921840dcf783 26-Mar-2014 Jorim Jaggi <jjaggi@google.com> Reuse KeyguardViewMediator for new Keyguard implementation.

This change reuses KeyguardViewMediator for the new Keyguard
implementation in status bar. KeyguardViewManager is replaced by
StatusBarKeyguardManager which handles adding the view, setting the
state etc. StatusBarWindowManager is introduced to managed the window
of the status bar, which has the logic of both the old Keyguard window
and the old status bar window. In the current implementation, Keyguard
gets displayed like it would be in the bouncer state, but that's likely
to change in the future. Also, setHidden in IKeyguardService is also
renamed to setOccluded, as the word hidden interferes with the
terminology when dismissing the Keyguard.

Bug: 13635952
Change-Id: I1c5d5a49d810d8532089f464cb2efe35e577f517
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java