summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardInputView.java
AgeCommit message (Collapse)Author
2021-03-15Improve IME hiding animation when uncloked by passwordMing-Shin Lu
- Clean up KeyguardPasswordViewController#onPause to reset the state afer IME hiding animation finished. - Clean up startDisappearAnimation for IME WindowInsets animation and {begin, end}JankInstrument logic to make easier maintain. - Make sure invoking resetPasswordText only when the password is not match or after IME hiding animation finished to prevent unexpected show request by TextView#setText - > InputMethodManger#restartInput. Fix: 178385387 Test: manual as issue steps Test: atest KeyguardSecurityContainerControllerTest Change-Id: Ib0d481919dc3afe104eb45d668619c45377f9b29
2021-03-10Add continuous falsing to keyguard.Dave Mankoff
With this change, taps outside of the bouncer inputs increase the FalsingManager's belief that erroneous taps are happening. If the belief becomes strong enough, the bouncer will be retracted. Special attention is given to ensure that actual password inputs are not recorded by the falsing manager. Valid button and pattern inputs do not have their motion events recorded, but do _decrease_ the FalsingManager's belief in pocket dialing. Thus, a few bad taps mixed with good taps will not retract the bouncer. Test: atest SystemUITests && manual Bug: 172655679 Change-Id: Iac8d2a2f41764f3c1cccb66b9d332c489cabca77
2021-01-15Add jank instrumentation logic in keyguardAhan Wu
Add instrument logic in keyguard for jank. Bug: 169221091 Bug: 169220724 Test: Manually Change-Id: I18e36bd7ae10693ce974c1bb54b384a29d890ef7
2021-01-06Merge changes from topic "b172655679-tap-falsing"Dave Mankoff
* changes: Connect FalsingManager to HistoryTracker. Add ability to ignore gestures in FalsingManager
2021-01-05Add ability to ignore gestures in FalsingManagerDave Mankoff
This gives other parts of the system the ability to temporarily override the falsing manager, telling it to ignore a given gesture. The intent is to give other parts of the system a chance to include their own falsing information (such as whether a button was tapped or not), giving the FalsingManager more context about what is going on. As of right now, their is no way to feedback this context-aware falsing information back to the FalsingManager. An API for this is still being explored. Bug: 172655679 Test: atest SystemUITests && manual Change-Id: I87ee94a2386622ebff7580346325ae07e3bb5f5d
2021-01-05Keyguard: Fix missing IME, and apply better animationsMatt Pietal
Password bouncer: animate the text field alpha and y positioning along with the IME reveal. Also fix the ordering of focus events to ensure the soft keyboard appears. Fixes: 174020436 Fixes: 175243820 Test: SystemUITests Change-Id: I62898870f57da1cd5b3da6bc4a2cfb23fe95097f
2020-09-24Revert^2 "9/N Clean Up Keyguard Class Structure"Dave Mankoff
b00c929394cb6bce158265af9606a8eb5a79e47a Change-Id: I42d17262a789d2eb106a924b442a9d3debcc35e4
2020-09-24Revert^2 "4/N Setup Controller fo KeyguardSecurityContainer."Dave Mankoff
0d6a9012a73a2d999d52aaefca0a6ad52322db31 Change-Id: I881bbcdc63fcbafa8966064cccb7ce1edc710062
2020-09-22Revert "4/N Setup Controller fo KeyguardSecurityContainer."Dave Mankoff
Revert submission 12585643-b166448040-keyguard-message-area Reason for revert: http://b/169081305 & http://b/169020145 Reverted Changes: I6fa05012c:4/N Setup Controller fo KeyguardSecurityContainer.... Iecf265744:5/N Add KeyguardSecurityViewFlipperController. I90ab99b2f:6/N Add Controller for KeyguardPatternView I4b74eddd1:7/N controllers for remaining Keyguard Password Vi... I805286374:8/N Remove View Injection from KeyguardMessageArea... I362755980:9/N Clean Up Keyguard Class Structure Change-Id: I7683b2234b601032ee606fbaabd474c5e2f6e989 Fixes: 169081305 Fixes: 169020145
2020-09-22Revert "9/N Clean Up Keyguard Class Structure"Dave Mankoff
Revert submission 12585643-b166448040-keyguard-message-area Reason for revert: http://b/169081305 & http://b/169020145 Reverted Changes: I6fa05012c:4/N Setup Controller fo KeyguardSecurityContainer.... Iecf265744:5/N Add KeyguardSecurityViewFlipperController. I90ab99b2f:6/N Add Controller for KeyguardPatternView I4b74eddd1:7/N controllers for remaining Keyguard Password Vi... I805286374:8/N Remove View Injection from KeyguardMessageArea... I362755980:9/N Clean Up Keyguard Class Structure Change-Id: Ic62f199a51a15d8384450b8f181f3c5a0b988d7f Fixes: 169081305 Fixes: 169020145
2020-09-169/N Clean Up Keyguard Class StructureDave Mankoff
KeyguardInputView no longer implements KeyguardSecurityView. This cl seeks to clean up some of the lingering vestiges from this large chain of refactors. I have manually tested none, swipe, pattern, pin, and password views for successfully unlocking, as well as multiple failed attempts resulting in temporary lock outs. Fixes: 166448040 Test: atest SystemUITests && manual Change-Id: I36275598001184e774677cf2dbb16dec8dc7ab5b
2020-09-164/N Setup Controller fo KeyguardSecurityContainer.Dave Mankoff
Move the guts of KeyguardSecurityContainer into KeyguardSecurityContainerController. This removes a lot of Dependency#get calls, and is another step towards simplifying our view inflation process. CustomViews that previously implemented KeyguardSecurityView now all extend KeyguardInputView, allowing them to be simultaneously treated as one while also being recognized as a View (the interface required a lot of casting back and forth to a View). LockscreenUtil is made a Singleton in this CL. Bug: 166448040 Test: atest SystemUITests && manual Change-Id: I6fa05012c55f5e003ab551d2f8360891a62fa2a7