History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a54bf6583380cf328b9858d942b4c387c6163f0f 11-Dec-2014 Wink Saville <wink@google.com> Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.

Rename isValidSubId to isValidSubscriptionId.

Bug: 18668873
Change-Id: Ie709a62bbb74e0a767daeb9e3fb3aecd4c45df44
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
4b9f8ede4e012e5522716bba84c6037a83ee52f9 01-Dec-2014 Benjamin Franz <bfranz@google.com> Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user.

This intent is needed by Smart Lock agents to check whether a given user is
active on the device.

Bug: 18530771
Change-Id: I5d460cb0cfa8ec4f7952702a3d25d089db78a50f
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
d09c4cad65c708f2c4810d24295456708a2000d2 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
0284e5e49864a6e039d77210bbea0a013b0e23ec 21-Nov-2014 Jim Miller <jaggies@google.com> Merge "Add multi-sim support to keyguard" into lmp-mr1-dev
481a6df99fea124bc4354da34ff668750cdc9041 20-Nov-2014 Adrian Roos <roosa@google.com> Add device locked API for TrustAgentService

Bug: 18414067
Change-Id: I96c68af9ccc9940acf9fab3b5bd39a3485f01045
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
52a6133f4ba8b1d08f5158d802790d6a1b16568d 13-Nov-2014 Jim Miller <jaggies@google.com> Add multi-sim support to keyguard

Use new telephony APIs.
Clean up SIM state machine code.
Use cached copy of SubscriptionInfo.
Make SIM PIN and SIM PUK work.

Tested on single and multi-SIM devices.

Fixes bug 18147652

Change-Id: Ic69a4d2898999a5438e6a70b5851705bc05443f1
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
f8d77da969edc2f191d349f7d9a30d02edcbd388 11-Nov-2014 Jorim Jaggi <jjaggi@google.com> Improve lockscreen launch animations

- Add a timeout so if WindowManager "forgets" to tell that the
activity has drawn, we still unlock after 3 seconds, so the user
is not completely stuck.

- Use the screen height instead of the window height for the
translation animation.

- Don't run the animation if the attached window is not null. The
animation from the attached window will influence the transformation
as well, so there is no need to run an additional animation in this
case (apps with SurfaceView's had broken unlock transitions because
of this).

- If the starting window needs to go away while the unlock transition
is running, modify the existing animation such that it fades out in
the same transition.

Bug: 15991916
Change-Id: Ia5dfa31e1bc0d5745fe228e1daf08e268733b6f1
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
44f60cca7bb31e2f9b4b7bf25bb2e0cfb0e3e1e1 07-Nov-2014 Jorim Jaggi <jjaggi@google.com> Fix lockscreen launch animations once and for all

In SysUI, make sure not to dismiss Keyguard multiple times when just
waiting for a deferred dismissal, so WindowManager doesn't get
multiple calls to keyguardGoingAway.

Change heuristics how notifying Keyguard about activity drawn works.
Always notify Keyguard after executing an app transition, and notify
it also when not doing a transition after a startActivity call.

For that to work, update AppWindowToken.startingDisplayed also when
the window is displayed, but force hidden because of Keyguard.

Further, handle the case correctly when a window gets added during
the Keyguard exit animation by overriding the start time for the
animation of that new window. Also don't apply a transition animation
for a window when executing keyguard exit animation, so by removing
a starting window we don't break this animation.

Last but not least, tell Keyguard to start exiting immediately if
animations for exiting are disabled, like when going to phone/camera
on lockscreen. Before, we always had a delay of 1 second because we
waited for the timeout.

Bug: 1599196
Bug: 18272544
Change-Id: I596b2489f814b934abd256e16079d3d3f326e209
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
b256e4e209afd33bff360ec2652b6ca508df74de 01-Nov-2014 Jim Miller <jaggies@google.com> Fix SetupWizard black screen issue for EDU devices

This fixes a problem where EDU devices show a black screen if
the device is rebooted after setting a pin/pattern/password but
before completing SetupWizard.

The issue is that the system doesn't expect to see a state
where the device is not provisioned but has a pin/pattern/password
because it wasn't possible before. With the addition of the ability
for EDU devices to add a pin/pattern/password, we can now get
into this unforseen state.

The fix ignores provisioning if a password is set so that the
user can reach the security screen to unlock the device and
continue with SetupWizard.

Fixes bug 18022051

Change-Id: Ie88a75530d964c02458c25866f0629877214edf4
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
2bc75f0821a509e22b23f6718cb5f0543bc4ad4d 18-Sep-2014 Jason Monk <jmonk@google.com> Merge "Fix crash from USER_PRESENT broadcast in sysui" into lmp-dev
cf5a9530f7ded49e830a064526f4290f3a81062c 17-Sep-2014 Jason Monk <jmonk@google.com> Fix crash from USER_PRESENT broadcast in sysui

Since sending the USER_PRESENT broadcast too early in the boot
process can result in a SecurityException, don't do auto-unlock
until after the boot has completed.

Bug: 17464800
Change-Id: Iee3d0b9723ed38abddf0bdde009f95331881008b
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
61d9409239c5ed360ffc2181eee6b981aad9192b 16-Sep-2014 Adam Lesinski <adamlesinski@google.com> Show the lockscreen when more than 1 user is present

Bug:17399024
Change-Id: Iaf2ea2747cbcd9db45ba9faa7c8fe0389a799855
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
b60d47ccefc7e4bcee81a91b108244b7dbdd7081 08-Sep-2014 Adrian Roos <roosa@google.com> Initilize LockPatternUtils with the current user

Prevents us from ending up with the wrong user in case
of SystemUI restarts.

Bug: 17343537
Change-Id: I40282380740f8b58adc72d24cb01d1018f07cfe7
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
705004bebf919b2d851fa86a31f17fc21b0dca34 05-Sep-2014 Jim Miller <jaggies@google.com> Send USER_PRESENT broadcast after keyguard animation finishes

This fixes a potential race between receiving USER_PRESENT
broadcast and testing if keyguard is finished
(KeyguardManager.isKeyguardLocked())

This also fixes an issue where USER_PRESENT isn't sent when
device encryption is enabled.

Fixes bug 17322844
Fixes bug 17301385

Change-Id: Icab3068c24032942ffdf6554d6d53cc656ae6666
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
053ff3c776d51dd216f3b87b692336570439033b 03-Sep-2014 Adrian Roos <roosa@google.com> Merge "Auto dismiss lockscreen when switching to guest" into lmp-dev
be47b07bef0596dd9bf7137ea08cc1112328c6e8 03-Sep-2014 Adrian Roos <roosa@google.com> Auto dismiss lockscreen when switching to guest

Bug: 16659674
Change-Id: I8d24a3997ac7493cd8a8317f8a35532eaf5c3cfe
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
7ff6eb6429ae3b0facc93214acefd657d378f4da 03-Sep-2014 Selim Cinek <cinek@google.com> Correctly forwarding the screen off event on lockscreen

Bug: 17364635
Change-Id: I88730238e3622522674268438d266fd2334410cd
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
118aecea584499fb41966fd8a0ea0ac60ac6bdb6 25-Aug-2014 Jorim Jaggi <jjaggi@google.com> Fix swipe up affordance bugs

- Fix that you could invoke the gesture from bouncer
- Fix that sometimes the card got stuck
- Decrease threshold to invoke the gesture

Bug: 17201962
Bug: 17200912
Bug: 17199841
Change-Id: I19f1e1a69395c3bcd82cdad0d814916a3cdd3428
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
49e057d7eedb44f5397781254acab4e0ef08a9cf 13-Aug-2014 Adrian Roos <roosa@google.com> Play "device trusted" sound when onTrustInitiatedByUser fires

Bug: 16840500
Change-Id: I73fbe5c2cff665ccb637abb9039d57f377d9df53
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
b690f0d5023fcf144f2701058d5a6f88d66cc97a 03-Jul-2014 Jorim Jaggi <jjaggi@google.com> Clean up user activity handling

- Only call userActivity in down touch event
- Use normal timeout when QS is open
- Clean up old code regarding user activity in Keyguard

Change-Id: I968eeed33fef44def37b68eb1ddc63f1a531ab35
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
d0b698f074a8a251781b62346a791de48d39d2a4 02-Jul-2014 Jorim Jaggi <jjaggi@google.com> Fix "None" lock screen option

Now that we have a user switcher in quick settings, we don't need to
show the lockscreen if multi-user is enabled.

Bug: 15864584
Change-Id: I1a7ea69963fdd5a4f79584f565beff36612468f5
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
53c68a44acbd9343dda648c17652e921c28fda1d 18-Jun-2014 Jorim Jaggi <jjaggi@google.com> Fix bug when Keyguard gets hidden.

We make sure in Keyguard that we only hide ourselves in
startKeyguardExitAnimation ourselves when we requested a hide.

In addition, this change also fixes a bug in WindowAnimator that
it should only call startKeyguardExitAnimation when Keyguard actually
requested a hide.

Bug: 15676717
Change-Id: I2279cccb9916985b7e9a2f41137878be5782cb9c
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
34f521e2af11b82b131b92a149ee30e23452a41e 04-Jun-2014 Jorim Jaggi <jjaggi@google.com> am 7a49d92b: Merge "Fix invalid Keyguard state with encrypted devices." into lmp-preview-dev

* commit '7a49d92bf6fd23af7dff29fd3cb97fcd5c05cfc9':
Fix invalid Keyguard state with encrypted devices.
b9d6079120747205e2ae18162aa730fad3b58d9c 03-Jun-2014 Jorim Jaggi <jjaggi@google.com> Fix invalid Keyguard state with encrypted devices.

Bug: 15389720
Change-Id: I0a18e78043e5c08f40cf3288abc07f75ea6261a0
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
897752a6f7a061e3a0463baee5040b18c21fec60 02-Jun-2014 Adrian Roos <roosa@google.com> Disable now defunct touch analysis facility - DO NOT MERGE

Bug: 15381470
Change-Id: I2ab252e4c0122d79c9a78b3df643bfd46a105cf0
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
bba9a212a07ed95a14e86b5d6a18792a90b47f7b 02-Jun-2014 Adrian Roos <roosa@google.com> Remove now defunct touch analysis facility

Bug: 15381470
Change-Id: I2ab252e4c0122d79c9a78b3df643bfd46a105cf0
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
0d674623facfbd3e9c520d2be4ed98977b92a1a2 21-May-2014 Jorim Jaggi <jjaggi@google.com> Add methods to coordinate unlock animation.

Introduce IWindowManager.keyguardGoingAway to notify that Keyguard
wants to dismiss it self. This method starts the state machine in
WindowAnimator which animates in the activity behind the keyguard.
Animating out the keyguard is done by the StatusBar/Keyguard
software when it receives the startKeyguardExitAnimation() callback.

Bug: 14118756

Change-Id: Id3b8f41189410bad808b4892fbec74245e59efce
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
fb0448ab4b42c1b390cd75c3660ec0de511b7b3b 02-May-2014 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 4f8cd188 to master

Change-Id: I148cd616cd14d834915978aa2dc3f9e27188dbd3
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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.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/keyguard/KeyguardViewMediator.java
ae6ffcc3c74d12ebf59a26cce24d04fdd2b56f4e 02-Apr-2014 Jorim Jaggi <jjaggi@google.com> Merge "Wait for Keyguard to be drawn after boot." into master-lockscreen-dev
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/keyguard/KeyguardViewMediator.java
d2cf756996be2cbc915227f1f384704427ab88e6 01-Apr-2014 Paul Lawrence <paullawrence@google.com> am df42723d: Merge "Don\'t double prompt on booting encrypted device"

* commit 'df42723d6b717fd2882c98c930a0f93c75af2474':
Don't double prompt on booting encrypted device
78d9aece821cf8f40eb95aa962cb3ea707669413 31-Mar-2014 Adrian Roos <roosa@google.com> am 46842d94: Make Keyguard trust aware

* commit '46842d946d1777c22f05e6bb96933c1b5cbd00d4':
Make Keyguard trust aware
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/keyguard/KeyguardViewMediator.java