summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | 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
* 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
* | Merge "Disable face unlock when returning from camera." into klp-devRuben Brunk2013-11-061-0/+5
|\ \
| * | Disable face unlock when returning from camera.Ruben Brunk2013-11-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11063890 - Workaround for bug 11063890. Avoids the acquire/release race when resuming face unlock while pausing the camera widget. Change-Id: I0a58f3a07f346da72ea55772242b4f9c54537235
* | | Merge "Fix lockscreen camera preview position in RTL." into klp-devJohn Spurlock2013-11-061-2/+3
|\ \ \ | |_|/ |/| |
| * | Fix lockscreen camera preview position in RTL.John Spurlock2013-11-061-2/+3
| | | | | | | | | | | | | | | Bug:11263914 Change-Id: Ic3e5157ceb82495d10afd74b3af2655434a9467c
* | | Merge "Fix issue where transport control shows up off-screen on tablets" ↵Jim Miller2013-11-061-9/+22
|\ \ \ | |/ / |/| | | | | into klp-dev
| * | Fix issue where transport control shows up off-screen on tabletsJim Miller2013-11-051-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix selects the current page ealier in the reconstruction of Keyguard to ensure the layout bounds of KeyguardWidgetPager are correct by the time it does the initial layout. In addition this change postpones selecting the transport page if the transport was just added. Fixes bug 11287144 Change-Id: I92ba8bb5e13c166d13fbaa26881f5034d5ab2104
* | | Merge "Work around nested SaveLayerAlpha bug" into klp-devChris Craik2013-11-061-0/+1
|\ \ \ | |/ / |/| |
| * | Work around nested SaveLayerAlpha bugChris Craik2013-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:11481077 Because TextView marquee and KeyguardSecurityViewFlipper use SaveLayer (for the marquee fading effect and view alpha, respectively), both can be nested, which hits a bug in the renderer resulting in artifacts. Workaround this by setting a hardware layer on the marquee, so that those marquee effects are drawn outside of the ViewFlipper. Change-Id: If8b7ebb20d3959cb930a8bea2146ba3f8e659612
* | | Add explicit refererences and logging to KeyguardSim/PukJim Miller2013-11-042-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds explicit references to the given threads in case they are the victims of a GC and adds logging to help track down this issue if not. Bug 10323372 Change-Id: I8e2fe46e10bbc5d14e631d45d8869b3214213045
* | | Merge "Focus security fields before widgets." into klp-devCraig Mautner2013-11-041-0/+10
|\ \ \ | |_|/ |/| |
| * | Focus security fields before widgets.Craig Mautner2013-11-041-0/+10
| |/ | | | | | | | | | | | | | | | | | | Focus normally proceeds top down through the view tree. Change the order of focus so that the security fields have a chance to receive focus before the widget fields. Fixes bug 11203748. Change-Id: Ie7f16e59652edbe64fa8342197fda81b53976360
* | Merge "Compose singleLine & textAllCaps transforms" into klp-devVictoria Lease2013-11-041-0/+27
|\ \
| * | Compose singleLine & textAllCaps transformsVictoria Lease2013-11-011-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TextView only supports a single TransformationMethod per TextView, and singleLine and textAllCaps are both implemented as TransformationMethods. Composing both operations into a single TransformationMethod gives us all-caps text (if requested by kg_use_all_caps) on a single line. Bug: 11421105 Change-Id: I069721b887ea90b8daf2af2cf82081319e499962
* | | Fix flash caused by frame resize codeJim Miller2013-11-015-17/+10
|/ / | | | | | | | | | | | | | | | | | | | | | | | | This fixes a problem where the frame would resize mid-animation because the widget frame was being always being resized. The issue was caused by having an extra fadeOutChallenge() in onPageSwitching(). The fix is to remove this and handle this case special for warping in onPageEndWarp() Fixes bug 11190745 Change-Id: I6dbda4d09c77e3923887f8d41efb2215e1afb1b9
* | Merge "Fix weird page snap bug when long pressing on music controls (issue ↵Adam Cohen2013-11-011-1/+1
|\ \ | | | | | | | | | 11420449)" into klp-dev
| * | Fix weird page snap bug when long pressing on music controls (issue 11420449)Adam Cohen2013-10-311-1/+1
| | | | | | | | | | | | Change-Id: Ie789d74c03656b93f26b9afef16356862f1982a8
* | | Manage keyguard nav elements using transitions.John Spurlock2013-11-012-9/+46
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the logic for managing dimming the navigation bar elements on the lockscreen into BarTransitions. Replace search light + camera assets with new versions at full brightness, and apply 50% dimming at runtime, including the IME dismiss button. Remove unused StatusBarManager _NOP hints. Improve choreography between camera button + password security (w/ IME). Fix a few found bugs in PagedView. Improve password security unlock transition, manually fade in back along with the rest of the icons. Bug:11221659 Change-Id: Ifd1f8c9f400d90542f0ca858b9a4deacabbd518a
* | Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-devJohn Spurlock2013-10-314-26/+54
|\ \
| * | Move coalescing to callback, optimize KeyguardStatusView.John Spurlock2013-10-314-26/+54
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the recent keyguard hidden coalescing down to the callback level. The lifetime of each callback can be short, make sure they see visibility changes at least once for each change local to their lifetime. KeyguardStatusView.refresh() is called multiple times, and instances are recreated often. This results in expensive computations filling the sysui/keyguard ui queue, adding to overall sluggishness. Traceview points to DateFormat.getBestDateTimePattern as the main culprit. As of this change, refresh() will only call the expensive date pattern computations when absolutely necessary, resulting in better performance turning the screen off/on. Bug:11221659 Bug:11447043 Change-Id: I3d4105af7db608803b82d8ef0ff141e42c154257
* | Merge "Save and restore media metadata." into klp-devCraig Mautner2013-10-301-5/+49
|\ \ | |/ |/|
| * Save and restore media metadata.Craig Mautner2013-10-301-5/+49
| | | | | | | | | | | | | | | | | | | | Do not lose media information when configuration changes. Also, do not wipe out that saved information when the RemoteController is reconstructed. Fixes bug 11293859. Change-Id: Id9e539367bfda2cc6833dc61c922c57ae45dd7b7
* | Merge "Optimize sysui ui queue during keyguard unlock." into klp-devJohn Spurlock2013-10-291-0/+5
|\ \
| * | Optimize sysui ui queue during keyguard unlock.John Spurlock2013-10-291-0/+5
| |/ | | | | | | | | | | | | | | | | | | | | Target the two biggest offenders: - Coalesce keyguard setHidden(false) calls during unlock. - Make sysui->WM call async. Found during investigation into b/11221659. Bug: 11221659 Change-Id: Icab48376bc356a933e0f9940bc2f924e2e77ab22
* | show duration instead of remaining time.Chris Wren2013-10-291-8/+8
| | | | | | | | | | Bug: 11351406 Change-Id: I1238408c439f9cd12382d9a0889321bbb75618d3
* | reduce garbage generation in KeyguardTransportControlView.Chris Wren2013-10-291-8/+15
|/ | | | | Bug: 11243508 Change-Id: I8315c27faf935d2465b3ce9e958e6edee00a4d4d
* Merge "Enhance pin/puk support" into klp-devWink Saville2013-10-252-25/+139
|\
| * Enhance pin/puk supportWink Saville2013-10-232-25/+139
| | | | | | | | | | | | | | | | | | | | Add supplyPinReportResult & supplyPukReportResult that returns the result code and attempts remaining. Display "Attempts remaining" in Keyguard Bug: 9928717 Change-Id: Ibad0635dd1375fabce11ba2b7b9f95f8868489e6
* | Fix leak with transitions when views get removedChet Haase2013-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Transitions, when started, add an OnPreDrawListener to the current ViewTreeObserver (which is global to the view hierarchy). This listener is removed when the listener is called. It is possible to add this listener and then remove the view from the hierarchy before the listener is called. This could result in either the listener not getting called at all (since there was no drawing event) or (in the case of this bug) the listener getting called when the sceneRoot had no AttachInfo (which is the case when that root has been removed from the hierarchy). This results in the listener trying to remove itself from a *different* ViewTreeObserver than the one it added itself to, leaving the actual listener still sitting on a list of listeners in that original VTO. This can result in a growing list of listeners and a growing amount of work that gets done on every frame. It can also lead to a serious memory leak, since the objects referred to by the transition may be non-trivial (as in the case of this bug). The fix is to add another mechanism for the listener to get removed. Specifically, we now listen for detach events on the sceneRoot. If that view gets detached before the listener is called, then we have a chance to remove it from the correct VTO before the AttachInfo becomes null. Issue #11307391 keyguard is slow after updating to krt16c and playing music Change-Id: I108413ea2f18f5351df0a11d4ae56fec0b4aa154
* | Prevent having multiple seek runnables in flight.Jim Miller2013-10-211-4/+4
| | | | | | | | | | | | | | | | | | | | This fix ensures that only one runnable is running at a time, no matter how many events come in. There's probably a better way to do this, but this is a safe fix. Fixes bug 11307391 Change-Id: I007c95062b20285571f39603c95fb9174b9a2da3
* | Workaround for corner case in TransitionManagerJim Miller2013-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | This works around a problem where removing a review with unfinished transitions results in leaked object references to KeyguardTransportControlView. The workaround disables transitions until we have a better fix. Fixes bug 11307391 Change-Id: I1df82f2c6f1cd9f5c9076d4c76cfd4aec3b6806c
* | Merge "Revert "Fix dodgy states of keyguard transport controls"" into klp-devJim Miller2013-10-192-17/+9
|\ \ | |/ |/|
| * Revert "Fix dodgy states of keyguard transport controls"Jim Miller2013-10-192-17/+9
| | | | | | | | | | | | This reverts commit bdb5ac7ddbabec0ba947a32937d8b95738d513dc. Change-Id: Iea8db9a590a2a3b65d941b2918345eb27f690240
* | Merge "Fix issue where keyguard adds widgets before the system is ready" ↵Jim Miller2013-10-173-6/+10
|\ \ | | | | | | | | | into klp-dev
| * | Fix issue where keyguard adds widgets before the system is readyJim Miller2013-10-163-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While under heavy system load, keyguard was able to create widgets before before ActivityManagerService was ready. The result was a race between keyguard adding widgets and ActivityManagerService being ready to send broadcasts. This fix provides keyguard with an additional signal to know when the system is booted and widgets are safe to load. Fixes bug b/11217169 Change-Id: I7a714d65b068678f961e52bdde4e1c20f9c287f0