summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java
Commit message (Collapse)AuthorAgeFilesLines
* [Bouncer] Add button for esim bouncer.Aaron Liu2022-09-141-28/+1
| | | | | | | | Refine "Disable esim" button in sim boucner when using an esim. Fixes: 238190632 Test: Manual on device with dark mode and light mode. Change-Id: I54c386738735915e8607f58da9b0435beb2a5043
* Bouncer: Add style in sim pin view.Aaron Liu2022-04-011-0/+19
| | | | | | | | | We have this style in the normal pin view but not the sim pin view. This should set the text to primary. Bug: 224895279 Test: Manual Change-Id: I61751d5c6afc352c616f8be8c9e82fbfb832c420
* [MEP] Update switchToSubscription API in KeyGuardEsimArea and ↵Muralidhar Reddy2022-02-161-1/+2
| | | | | | | | | | MultiSimSettingController to switchToSubscription with port index API. From android T, devices might support multiple enabled profiles(MEP) on eSIM. Apps targeting android T, should not use switchToSubscription(without port) API for disable subcription, instead use the newly introduced switchToSubscription with port API. Otherwise RuntimeException is thrown. Bug: 218393363 Test: build Change-Id: I27e6917c818a9133aff5509dda2888521182606d
* Revert^2 "9/N Clean Up Keyguard Class Structure"Dave Mankoff2020-09-241-20/+0
| | | | | | b00c929394cb6bce158265af9606a8eb5a79e47a Change-Id: I42d17262a789d2eb106a924b442a9d3debcc35e4
* Revert^2 "7/N controllers for remaining Keyguard Password ..."Dave Mankoff2020-09-241-304/+4
| | | | | | | | | | | | | | | | | | | | | | | Revert submission 12656261-revert-12585643-b166448040-keyguard-message-area-NUUJOVRYJS This also fixes the original issue introduced in this CL. KeyguardAbsKeyInputViewController#reset would call mView#resetState instead of its own internal resetState method. However, all the logic from the various resetState methods had been moved from the views to their controllers. Simply calling resetState direclty resolves the issue (line 105 of KeyguardAbsKeyInputViewController). Reason for revert: Fixing http://b/169231892 and http://b/169145796 Reverted Changes: I7683b2234:Revert "4/N Setup Controller fo KeyguardSecurityCo... I5cbe04c0c:Revert "5/N Add KeyguardSecurityViewFlipperControl... I11dff38ad:Revert "6/N Add Controller for KeyguardPatternView... I55c250121:Revert "7/N controllers for remaining Keyguard Pas... Ie84234cb8:Revert "8/N Remove View Injection from KeyguardMes... Ic62f199a5:Revert "9/N Clean Up Keyguard Class Structure" Change-Id: Ie3669e0c9a23ffd4443ced0fb08ec754f1df55db Fixes: 169145796
* Revert "7/N controllers for remaining Keyguard Password Views."Dave Mankoff2020-09-221-4/+304
| | | | | | | | | | | | | | | | | 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: I55c250121c2e234a41b30f2d647c44f6cb631028 Fixes: 169081305 Fixes: 169020145
* Revert "9/N Clean Up Keyguard Class Structure"Dave Mankoff2020-09-221-0/+20
| | | | | | | | | | | | | | | | | 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
* 9/N Clean Up Keyguard Class StructureDave Mankoff2020-09-161-20/+0
| | | | | | | | | | | | | | | 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
* 7/N controllers for remaining Keyguard Password Views.Dave Mankoff2020-09-161-304/+4
| | | | | | | | | No real functionality changes (hopefully). Just moving objects into controllers. Test: manual Bug: 166448040 Change-Id: I4b74eddd18d29dd8966caa32c5960ff8be2e6f43
* Merge "Update language to comply with Android's inclusive language guidance" ↵Treehugger Robot2020-07-281-1/+1
|\ | | | | | | | | | | | | | | am: 17867fdf87 am: 0071fe0249 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1373531 Change-Id: I66ac5c84d1b5230657c867bf36bf7d0f5a4cd785
| * Update language to comply with Android's inclusive language guidanceCurtis Belmonte2020-07-281-1/+1
| | | | | | | | | | | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: If0192e33d6d063c7dfda72af1509a3fbd16e3044
| * Created typed class for the pin resultDaniel Bright2020-02-281-21/+25
| | | | | | | | | | | | | | | | | | | | The initial goal was to remove PhoneConstants. But in doing so, it made sense to replace an int[] array as a return type with a strongly typed class called PinResult. Bug: 147774309 Test: SystemUITests Merged-In: I42f2141f9378fc4f7a6f11af6073d38f917528bc Change-Id: I42f2141f9378fc4f7a6f11af6073d38f917528bc
| * Use proper Telephony API to supply sim pin and puk.Malcolm Chen2020-01-081-16/+15
| | | | | | | | | | | | | | | | Bug: 146593004 Test: manual - pin and puk Change-Id: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d Merged-In: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d
| * Removing unnecessary R.java declaration for subpackages, to make gradle ↵Sunny Goyal2019-08-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setup simpler Removed: com.android.settingslib.restrictedlockutils com.android.settingslib.helputils com.android.keyguard Moving sysui settings to use sysui settings resource package name Test: Everything compiles / presubmit Bug: 130289146 Change-Id: I5d760fa2f04439d24b455839f7bdd5cc499e840f
* | Created typed class for the pin resultDaniel Bright2020-01-201-21/+25
| | | | | | | | | | | | | | | | | | The initial goal was to remove PhoneConstants. But in doing so, it made sense to replace an int[] array as a return type with a strongly typed class called PinResult. Bug: 147774309 Test: SystemUITests Change-Id: I42f2141f9378fc4f7a6f11af6073d38f917528bc
* | Use proper Telephony API to supply sim pin and puk.Malcolm Chen2020-01-021-16/+15
| | | | | | | | | | | | | | Bug: 146593004 Test: manual - pin and puk Change-Id: Ic64cc8a48c6e28f3ac8a013cbb4c15e7e58f7f4d
* | Remove usage of IccCardConstants hidden APIJayachandran C2019-11-081-5/+3
| | | | | | | | | | | | | | | | | | | | | | This CL replaces all the reference of IccCardConstants.State with TelephonyManager SIM card state values. Bug: 111498835 Test: Manual atest com.android.systemui.statusbar.policy Change-Id: I810cce9ff418e34a8dbea06e91fa25b2300647e0
* | Remove usage of hidden API in System UIJayachandran C2019-11-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | TelephonyManager.getSimCount() TelephonyManager.getDefault() TelephonyManager.from() Bug: 111498835 Test: Manual DSDS test cases atest com.android.systemui.statusbar.policy Change-Id: I676a70a5dbd2dcbdbbee6cd889ffd614dc42fb9d
* | [DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791Hyunyoung Song2019-09-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: presubmit setup on source branch Bug: 130289146 Create a Gradle build for SystemUI Bug: 136279712 Daggerize FalsingManager Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests Bug: 137563419 Remove Bouncer reveal delay from bypass flow Bug: 138787339 Allow Services and Activities to be injected into directly. Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap Bug: 64712476 Import translations for dev branches Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d
* | Fix the looper that KeyguardUpdateMonitor is using.Dave Mankoff2019-08-311-6/+7
|/ | | | | | Bug: 139051615 Test: atest SystemUITests && atest SystemUIGoogleTests Change-Id: Ic4dd5978001c208504c137cee41f363d7e70b1b5
* Fix issue where SIM PIN message would be visibleLucas Dupin2019-08-021-1/+1
| | | | | | | | | | | | We're resetting the view state when a config change happens, but they can arrive even after the view is not visible anymore. Let's not update the message area if we're GONE, since the message area is shared with the Pattern and PIN pad views. Test: manual Fixes: 138751729 Change-Id: Idb4877f8ed22e8b640670bb9da66bb124a2f8166
* Fix SIM PIN listener registrationLucas Dupin2019-04-191-11/+6
| | | | | | | | | | User correct lifecycle methods for listener regristion, otherwise error messages would show up on the shared text field Test: add/remove locked sim card Test: solve sim challenge, go to bouncer Fixes: 130906933 Change-Id: I5327c447b770da1148c3e3ef19c6a75e69832a90
* Move padlock to the top of the lock screenLucas Dupin2019-04-181-2/+8
| | | | | | | | | | | | | | | | | | | | | Test: tap on notification on lock screen Test: tap on notification on shade locked Test: swipe down from the top expanding QS Test: swipe up from LS Test: switch between pin, pattern and password Test: add and remove locked sim card Test: atest KeyguardBottomAreaTest Test: atest KeyguardClockPositionAlgorithmTest Test: atest KeyguardMessageAreaTest Test: atest KeyguardIndicationControllerTest Test: atest StatusBarKeyguardViewManagerTest Test: atest KeyguardBouncerTest Test: atest KeyguardPatternViewTest Fixes: 130398499 Fixes: 130298363 Fixes: 129784068 Fixes: 130223966 Change-Id: Ib1706de259fa4b1f4ef13f654cbd931457733d82
* Show carrier name on pin lock screenFabian Kozynski2019-03-281-10/+10
| | | | | | | | | | | When user has DSDS and both sims are locked, the pin lock screen doesn't show which carrier is requiring the pin. b/128994337 tracks fixing the "Card 1" name on turning on the phone. Test: manual Bug: 125290365 Change-Id: I8c6b6ecd6b3c1e5f111ebbb1ceabbfb2b083ed0d
* WIP - Improves PIN/PUK handling events in keyguardBrad Ebinger2018-12-211-11/+0
| | | | | | | | | | | | | 1) Remove old bypass code for ABSENT in KeyguardPin/Puk class and move it into KeyguardViewMediator where it belongs. 2) Fix issue where pulling out sim and then putting it back in doesnt trigger PIN/PUK screen until turn off->on screen by clearing SimData state for the slot that became ABSENT. Bug: 119560495 Test: Move across eSIM and pSIM as well as manually remove PIN/PUK'ed SIMs Change-Id: Iebf2cb046b1a1d7e0689a2329a9f78e1cbb6aca4
* Fixes import ordering.Gus Prevas2018-11-141-10/+9
| | | | | Test: n/a Change-Id: I432e11b52deb7974e50f62076af3b7aa07e364b6
* Fix the TalkBack say wrong sentence after sim unlockfelkachang2018-04-101-0/+5
| | | | | | | | | | | | | After sim unlock, Telephony manager return result is ready and the remainAttemp is 0. The remainAttemp zero will make the following process get the password error message in showDefaultMessage. So, the process should reset the mRemainingAttempts to be -1 after confirming the sim state is ready. To reset the mRemainingAttempts will make the showDefaultMessage not to trigger the wrong talkback. Bug: 72663742 Test: atest SystemUITests Change-Id: I1b9b14282f74b3f41932af73c65d67379b9ed916
* Use accessibility pane API in keyguardPhil Weaver2018-02-221-0/+6
| | | | | | | | | | | | Using the new accessibility pane title API to identify the pattern, pin, and password unlock screens. Bug: 73131182 Test: Verified that accessibility events are properly sent when unlocking the phone with each of the lock methods. Change-Id: I32594f4736b503e7f9e3be96e9f77a84ffcadc54
* Add alert dialog for disabling current eSIM profile failedQingxi Li2018-01-291-1/+5
| | | | | | | | | This CL add an alert dialog under SIM PIN/PUK screen when users try to disable current eSIM profile and failed. Bug: 62680294 Test: E2E Change-Id: I97d8cf1ae8fb30ece48c4731e72bfdfedf69d49a
* Allow custom keyguard "prompt reason"Lucas Dupin2018-01-111-1/+1
| | | | | | | | | | | | | | 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
* Fix available/remaining PIN/PUK attempts.Ruthwar Kumar Ambeer2017-12-071-31/+81
| | | | | | | | | | | | | | * Fix to properly display attempts remaining for PIN/PUK. * On bootup show the available PIN/PUK attempts if sim is locked on PIN/PUK. * Show incorrect password message on entering wrong PIN/PUK password. In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on PIN and reset the flags to show the default message. Bug: 37782683 Change-Id: I46d7d5dd86977cddecf3147add73ef6ccc64b257
* Merge "Fix NPE when removing PIN locked SIM during E911 call"Brad Ebinger2017-10-061-1/+5
|\ | | | | | | | | | | am: b7dc3a3b21 Change-Id: I16555b53bbf9c743921cbd36578af3550705a242
| * Fix NPE when removing PIN locked SIM during E911 callBrad Ebinger2017-10-051-1/+5
| | | | | | | | | | | | | | | | | | | | There is the possibility of mCallback being null while the Keyguard still has a PhoneStateListener registered for onSimStateChanged callback. This can cause a NPE. Bug: 66986066 Test: Manual, PIN/PUK locked SIM Change-Id: I799c9521f787e800e259c3bdce9edee3f844f5f3
* | Merge "Remove PIN/PUK keyguard when SIM is removed/ready"Brad Ebinger2017-09-011-3/+13
|\| | | | | | | | | | | am: 43f9f0290c Change-Id: I9e28e3975331a7af11747065761632a0566deb56
| * Remove PIN/PUK keyguard when SIM is removed/readyBrad Ebinger2017-09-011-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) If the PIN/PUK keyguard comes up for a locked SIM, it can not be removed by removing the affected SIM. It can only be removed by rebooting the device or entering a bogus PIN. This change automatically clears the keyguard when when the locked SIM is removed. It will be shown again if the locked SIM is re-entered. 2) If the device is PUK locked and the code **05*PUK*new pin* new Pin# is entered in the emergency dialer, it will unlock the SIM. By listening to the READY state, we can remove the keyguard when the SIM is unlocked by other means. Bug: 64469515 Bug: 64044132 Test: Manual Merged-In: I7b576ee7e38f141075cae094e3d1f74b7145d53f Change-Id: I9507f80edcd4c04dfa0cc3b48a25e619aafa9eb3
* | Only show the "Disable eSIM" when eSIM profile is enabledqingxi2017-06-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Before this CL, we always show "Disable eSIM" button in SIM lock screen if the device has eSIM chip. This may make the user who has never used eSIM or currently is not activated the eSIM Profile confused. This CL makes the "Disable eSIM" button only be shown iff the device has eSIM chip and the current activated Profile is eSIM profile. Bug: 37518023 Test: E2E Change-Id: Id5a1325f49733528a370ec7145fe49731243bcf7
* | Merge "Add disable carrier button for eSIM"Qingxi Li2017-04-171-1/+7
|\ \ | |/ |/|
| * Add disable carrier button for eSIMqingxi2017-04-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | This button is used for eSIM devices. For the phone without eSIM, when the SIM is lock, the user can remove the SIM card to unlock the phone. This button is used to let the user disable the current carrier to unlock the phone (the same as removing SIM card for non-eSIM devices). Bug: 37275510 Test: manual test Change-Id: I7e648e4bb5033c1ab3bfdfea9513e65632c49f2a
* | Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-1/+1
|/ | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Move Keyguard to SystemUIJason Monk2017-02-101-0/+318
Test: make Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7