summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Hide back button on keyguard and make it work for bouncer.Jorim Jaggi2014-04-101-15/+1
| | | | | Bug: 13635952 Change-Id: Ie9824dd9926c9deb0a38c8e0a6161f605a489622
* Always go through bouncer when unlockingJorim Jaggi2014-04-051-2/+4
| | | | | | | | | | | | 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
* am 46842d94: Make Keyguard trust awareAdrian Roos2014-03-314-7/+36
|\ | | | | | | | | * commit '46842d946d1777c22f05e6bb96933c1b5cbd00d4': Make Keyguard trust aware
| * Make Keyguard trust awareAdrian Roos2014-03-315-8/+39
| | | | | | | | | | Bug: 13723878 Change-Id: If1f54de4112a120848df72192b82e35b341e8ed3
* | Reuse KeyguardViewMediator for new Keyguard implementation.Jorim Jaggi2014-03-3129-2095/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Make Keyguard a library and make StatusBar the new Keyguard.Jorim Jaggi2014-03-283-158/+5
|/ | | | | | | | | | | | | | | This change achieves a couple of things: - Let Keyguard be a library, so we can use it in SystemUI. - Introduce FLAG_KEYGUARD for windows and deprecate TYPE_KEYGUARD. Make all the TYPE_KEYGUARD behaviour dependant on the flag. - Implement a new KeyguardService in SystemUI, and bind that service from PhoneWindowManager. - Introduce BaseStatusBar.setKeyguardState and inflate KeyguardSimpleHostView there and use FLAG_KEYGUARD for the window, such that the status bar window essentially gets the Keyguard. Bug: 13635952 Change-Id: I059d80d8b9b9818a778ab685f4672ea2694def63
* Revert "Don't prompt at boot if we already did that when decrypting"Paul Lawrence2014-03-261-7/+0
| | | | | | | | | | This reverts commit 493e3e7e6523fd94cc1acae3e45935a1227d58c3. Should fixes Bug: 13611885 Bug: 13656830 Change-Id: I117c988bb6679f44f8add4fcc18f45cb8238dfb4
* Merge "Don't prompt at boot if we already did that when decrypting"Paul Lawrence2014-03-211-0/+7
|\
| * Don't prompt at boot if we already did that when decryptingPaul Lawrence2014-03-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | vold will store password securely until KeyGuard requests it and hands it on to KeyStore. Needs matching vold changes from https://googleplex-android-review.git.corp.google.com/#/c/432050/ Bug: 12990752 Change-Id: I930ed8180cf0b8feb1e58db043d5fb6dff1bab20
* | am 1d6c2573: am aebe3b6c: am abde0aaa: am 375ff2c4: am 2598fbd7: Merge ↵Jim Miller2014-03-201-0/+1
|\ \ | | | | | | | | | | | | | | | | | | "Attempt to fix a bug where SIM progress dialog gets stuck." into klp-dev * commit '1d6c2573d4b2824511354d651d7350df327f454f': Attempt to fix a bug where SIM progress dialog gets stuck.
| * \ am abde0aaa: am 375ff2c4: am 2598fbd7: Merge "Attempt to fix a bug where SIM ↵Jim Miller2014-03-201-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | progress dialog gets stuck." into klp-dev * commit 'abde0aaa7958976b8f3a66e348d6a5152b0d838e': Attempt to fix a bug where SIM progress dialog gets stuck.
| | * \ am 375ff2c4: am 2598fbd7: Merge "Attempt to fix a bug where SIM progress ↵Jim Miller2014-03-201-0/+1
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dialog gets stuck." into klp-dev * commit '375ff2c4a7b42d6dfd333e0ffa351be88fdab034': Attempt to fix a bug where SIM progress dialog gets stuck.
| | | * \ Merge "Attempt to fix a bug where SIM progress dialog gets stuck." into klp-devJim Miller2014-03-201-0/+1
| | | |\ \
| | | | * | Attempt to fix a bug where SIM progress dialog gets stuck.Jim Miller2014-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix makes sure onPause() is called when KeyguardHostView is removed. Bug 10323372 Change-Id: I20dd1f68c270adbd4582f2cd8ed9b03964b4477c
* | | | | | am 99689a68: am 9208bb4a: am 00efaea9: am dac29800: Merge "Prevent ↵Chris Craik2014-03-201-0/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | / | |_|_|_|/ |/| | | | | | | | | | | | | | Lockscreen album art from activating FLAG_KEEP_SCREEN_ON" * commit '99689a6874c7c465ed97dba625d38e3f1599963f': Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON
| * | | | am 00efaea9: am dac29800: Merge "Prevent Lockscreen album art from ↵Chris Craik2014-03-201-0/+1
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | activating FLAG_KEEP_SCREEN_ON" * commit '00efaea980c7a9f84f326b22aef740cb5438d282': Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON
| | * | | Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ONJeanette Löfgren2014-02-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a small fix to the showWallpaper method, in which a power consumption problem has been introduced. This showWallpaper method toggles the window flag FLAG_SHOW_WALLPAPER, when album art is being shown in Lockscreen. It is important to set pixel format to PixelFormat.OPAQUE if flag FLAG_SHOW_WALLPAPER is not being set. If not, an application that uses window flag FLAG_KEEP_SCREEN_ON will prevent the keyguard from going to sleep and drain battery. Change-Id: I1808be28047977ae5ac4dd1168ea25cac8a55a78
| * | | | am 16858164: am cd0d8cb2: Merge "DO NOT MERGE - Fix keyguard pattern lockout ↵Adrian Roos2014-03-141-11/+12
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | | | | | | | | | bug" into klp-dev * commit '16858164c73f0696d12161e97bad9cb22c55e603': DO NOT MERGE - Fix keyguard pattern lockout bug
| | * | DO NOT MERGE - Fix keyguard pattern lockout bugAdrian Roos2014-03-131-11/+12
| | |/ | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 7c11f8b4659c3444d5037b756b6e5f45a2ea61a6) Conflicts: packages/Keyguard/src/com/android/keyguard/KeyguardPatternView.java Bug: 13302967 Change-Id: Ifa4c01e630bd3aa8cadfea8dbbbb4686d50eb945
* | | Merge "Fix bug that allowed avoiding lockout if too many wrong patterns are ↵Adrian Roos2014-03-101-11/+12
|\ \ \ | | | | | | | | | | | | entered."
| * | | Fix bug that allowed avoiding lockout if too many wrong patterns are entered.Adrian Roos2014-03-101-11/+12
| | | | | | | | | | | | | | | | | | | | Bug: 13302967 Change-Id: I78404acd700c338e58270471ba307dad9a6884d6
* | | | Keyguard Analytics: Remove unused constant.Adrian Roos2014-03-031-2/+0
|/ / / | | | | | | | | | Change-Id: I6fce6640e391d5f78468212aac7d14a8a6170115
* | | Add session analytics to Keyguard.Adrian Roos2014-03-036-5/+770
| | | | | | | | | | | | | | | | | | On eng and userdebug builds, adds the possibility to track touch and sensor events on the Keyguard. Change-Id: I9ff9fe5545cb9b7e6833a6af0b5a97a6c204dbd2
* | | Disable simple keyguard when notifications enabled.Jim Miller2014-02-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Enabling notifications on keyguard tripped keyguard into simple mode which isn't ready for prime-time. Disabled with variable. Fixes bug 13172958 Change-Id: Ia281b06d754cd62455010f9e31c0ee81e4937977
* | | Hide managed profiles from user switchers.Kenny Guy2014-02-243-50/+41
| | | | | | | | | | | | | | | | | | | | | | | | Hide managed profiles from lockscreen user switcher on tablets. Hide managed profiles from power menu user switcher on phones. Add flag to enable multi user ui turned off by default. Change-Id: I4c69a6f7b0f39c249fc85fd940318df1ddab073f
* | | Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS.Dan Sandler2014-02-182-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ adb shell settings put global lock_screen_show_notifications 1 Previously a per-user secure setting (Settings.Secure.LOCK_SCREEN_ALLOW_NOTIFICATIONS), but this doesn't really make a lot of sense since this behavior pertains to areas of the system (keyguard, status bar) that exist outside of any one user. This setting now effectively enables notifications on the secure lockscreen for all users. Change-Id: I9c5179498dbbba9343184efdedb1587ea862cf96
* | | Fix problem where input wasn't being requestedJim Miller2014-02-065-80/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where input wasn't being enabled when the security method changed. The solution is to propagate changes back to the parent Add missing copyright header to simplified keyguard view. Bugs 12135931, 12879769 Change-Id: I0fc6cf8ef3b628c96a045797a5b9cdecd3a1007a
* | | Add KeyguardSimpleHostView and make it the defaultJim Miller2014-02-065-22/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a simplified KeyguardHostView that's intended to be used as an overlay or dialog for asking the user's credentials. Bug 12135931 Change-Id: Iecede0715d671e88024e7bb77e7432cd1c7ec356
* | | Move launch, verification and menu logic to base classJim Miller2014-02-064-282/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add simplified KeyguardHostView - Move common functions to KeyguardViewBase.java - Create new KeyguardSimpleHostView class for simplified view implementation. Bug 12135931 Change-Id: I8d6b0a61c36a0c7ceb87da4da54b1dfbed0054ff
* | | SystemUI support for notification visibility.Dan Sandler2014-01-301-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this implementation, DISABLE_NOTIFICATION_TICKER (which was never really used on its own and can be safely subsumed by DISABLE_NOTIFICATION_ICONS) is now DISABLE_PRIVATE_NOTIFICATIONS; when this SystemUI bit is set by the keyguard, SystemUI knows to switch its presentation into "public" mode, in which VISIBILITY_PRIVATE notifications are replaced with their publicVersion's contentView (or a placeholder view, synthesized by SystemUI, that leaks no additional information about the notification). VISIBILITY_SECRET notifications are suppressed altogether in this mode. This behavior is enabled but not activated by default. To turn it on, run: $ adb shell settings put secure lock_screen_allow_notifications 1 and restart SystemUI. Change-Id: Id660bef7737580e16a83f60567c22b53ee81c602
* | | Clean up KeyguardSecurityCallback documentation and add copyright header.Jim Miller2014-01-282-2/+17
| | | | | | | | | | | | | | | | | | Bug 12135931 Change-Id: I9f2e20fb4c1a2cb6a9fb49f4b6939fd7687ef262
* | | Move majority of security-related logic from KeyguardHostViewJim Miller2014-01-279-577/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to KeyguardSecurityContainer. This removes and/or simplifies the interface between modules to allow easier separation of KeyguardSecurityContainer into a stand-alone component. Bug 12135931
* | | am dafb2420: am d4b688cf: am d165f365: am 5d2d911a: am d1eeb674: Merge ↵Wink Saville2014-01-261-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | "Telephony: Modify code to check that PUK code length is always 8." * commit 'dafb2420a34a5b39aca6ddf993e86778edd76b5d': Telephony: Modify code to check that PUK code length is always 8.
| * | Telephony: Modify code to check that PUK code length is always 8.Rakesh Pallerla2014-01-081-1/+1
| |/ | | | | | | | | | | | | As per 3GPP TS 31.101 Release 11 section 9.6, the number of digits for UNBLOCK PIN (PUK) is always 8. Change-Id: I4ea69fd8e2e8e96330d10a67b2d1f5a1859c1016
* | Fixed issue on Keyguard camera icon, where dragging on itSelim Cinek2014-01-162-53/+76
| | | | | | | | | | | | | | | | | | did not properly trigger abortion of the camera animation. Also minorly simplified the touch slop calculation BUG: 12036618 Change-Id: If01b48c815200066b32a37ffc44949edde1376f9
* | Adding INfcUnlockSettings and NfcUnlock interface class.Andres Morales2013-12-093-0/+41
| | | | | | | | Change-Id: Ie55a5d4bb58c2944952fc84cce32d3573a3a1a22
* | Remove unused imports from frameworks/base.John Spurlock2013-11-2012-33/+0
|/ | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Don't show external presentation until keyguard actually showsJim Miller2013-11-141-8/+0
| | | | | | | | | | The previous code was looking for just the display to turn off. It should wait until keyguard is actually shown before enabling the external presentations. Fix for bug 11694904 Change-Id: Iebf3aa04fc094cd4e5c8f56bc771aca1e5921d04
* Don't show keyguard until the device has been provisioned.Jim Miller2013-11-141-1/+2
| | | | | | | | This fixes a bug where we'd show keyguard on top of setup. Fixes bug 11689756 Change-Id: I38ecdafc00fc34fdd79e3ac517042a1e5eea93de
* Merge "Don't set up external displays from binder thread" into klp-devJim Miller2013-11-141-1/+8
|\
| * Don't set up external displays from binder threadJim Miller2013-11-131-1/+8
| | | | | | | | | | | | | | | | | | | | This fixes a bug where keyguard was attempting to set up external presentation displays from the binder thread instead of the UI thread. Bad dog. Fixes bug 11676486 Change-Id: Iadbe485691acc56a41b23219fe399f7eda40cb7c
* | Merge "Report keyguard as initially showing and secure until we know" into ↵Jim Miller2013-11-141-1/+4
|\ \ | |/ |/| | | klp-dev
| * Report keyguard as initially showing and secure until we knowJim Miller2013-11-131-1/+4
| | | | | | | | | | | | | | | | | | | | This fixes a bug where an app calls KeyguardManager.isLocked() before keyguard has had a chance to show. The fix is to assume keyguard is showing and secure until we know otherwise. Fixes bug 11670159 Change-Id: Ifbe4cdf40e3b76d2069ecace940f85fa58f31187
* | Merge "Enable fast camera transition when launched from navbar" into klp-devJim Miller2013-11-133-2/+14
|\ \
| * | Enable fast camera transition when launched from navbarJim Miller2013-11-123-2/+14
| |/ | | | | | | | | | | | | | | This reduces the camera transition timeout to 0 if launched from the navigation bar. The transition cannot be aborted once launched. Change-Id: I7c376fbb90fd51cd301ef49fbd3411370bc2e4b5
* | Reduce camera launch time by about 250ms.Jim Miller2013-11-122-5/+4
|/ | | | | | | | | | | | This reduces the amount of time available to the user to cancel launching the camera in order to improve average launch time. It also increases the threshhold for flings and motions to prevent unintentional launches which are costly in terms of falsing. Fixes bug b/11657355 Change-Id: I852abbe3ce8ddddcb65f3a48a2f8111d20126189
* Delay tearing down external displays until keyguard finishesJim Miller2013-11-072-3/+15
| | | | | | | | | This waits until the keyguard window is actually removed before turning off external presentations to avoid flashing the user's password. Fixes bug 11562369 Change-Id: I74bfc0d5e23dccc5a8628abfe02868c71c371f6e
* Show keyguard scrim on external displays while keyguard showingJim Miller2013-11-072-0/+181
| | | | | | Fixes bug 11562369 Change-Id: I577f9d3683e62689954b4640601b3f360b78cb31
* Merge "Fix scrubbing behavior on keyguard music transport" into klp-devJim Miller2013-11-071-72/+85
|\
| * Fix scrubbing behavior on keyguard music transportJim Miller2013-11-061-72/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where the music scrub position would snap back to a previous position. The problem was caused by latency in the music application responding to scrub position changes. The latency would mean that we'd get a response periodically to some historical scrub position change. Since we can't know when the state will become stable, we just wait a little bit since the last update change before continuing to update the scroll position. In order to keep the music client from falling behind, we throttle scrub updates. Fixes bug 11351267 Change-Id: I6204833328751d1da781b4e078a2d557c1f93ff3