238 Commits

Author SHA1 Message Date
Baligh Uddin
db41eaef90 Import translations. DO NOT MERGE
Change-Id: Id35b27dea34c2fbad7dcfe2b30a34b26beb4e989
Auto-generated-cl: translation import
2013-12-18 15:11:27 -08:00
Baligh Uddin
9ad3907169 Import translations. DO NOT MERGE
Change-Id: I3065b51a4d5b72fc2dbd65f34f2b7dec89fb37d7
Auto-generated-cl: translation import
2013-12-11 12:55:02 -08:00
Jim Miller
d31fd404e3 Don't show external presentation until keyguard actually shows
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
2013-11-14 16:47:26 -08:00
Jim Miller
299422baeb Don't show keyguard until the device has been provisioned.
This fixes a bug where we'd show keyguard on top of setup.

Fixes bug 11689756

Change-Id: I38ecdafc00fc34fdd79e3ac517042a1e5eea93de
2013-11-14 14:15:02 -08:00
Jim Miller
39af5a78c0 Merge "Don't set up external displays from binder thread" into klp-dev 2013-11-14 01:47:32 +00:00
Jim Miller
c8867b2807 Merge "Report keyguard as initially showing and secure until we know" into klp-dev 2013-11-14 01:45:52 +00:00
Jim Miller
80cb9bcfc0 Don't set up external displays from binder thread
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
2013-11-13 16:47:20 -08:00
Jim Miller
e5f17ab5a6 Report keyguard as initially showing and secure until we know
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
2013-11-13 15:40:48 -08:00
Jim Miller
3714473f1a Merge "Enable fast camera transition when launched from navbar" into klp-dev 2013-11-13 22:23:34 +00:00
Jim Miller
c816b8eedb Enable fast camera transition when launched from navbar
This reduces the camera transition timeout to 0 if launched
from the navigation bar.  The transition cannot be aborted once
launched.

Change-Id: I7c376fbb90fd51cd301ef49fbd3411370bc2e4b5
2013-11-12 19:52:12 -08:00
Jim Miller
aa89847f4e Reduce camera launch time by about 250ms.
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
2013-11-12 18:14:26 -08:00
Jim Miller
505329b21b Restore permission check in keyguard.
Fixes bug 11584685

Change-Id: I80621f5608505bdc365930e0276c297c0d5bff67
2013-11-08 14:08:10 -08:00
Jim Miller
0b9d8accc5 Delay tearing down external displays until keyguard finishes
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
2013-11-07 19:15:49 -08:00
Jim Miller
3192148fb4 Show keyguard scrim on external displays while keyguard showing
Fixes bug 11562369

Change-Id: I577f9d3683e62689954b4640601b3f360b78cb31
2013-11-07 18:44:56 -08:00
Jim Miller
8cba0d0b21 Merge "Fix scrubbing behavior on keyguard music transport" into klp-dev 2013-11-07 22:52:57 +00:00
Jim Miller
cc747ad2da Fix scrubbing behavior on keyguard music transport
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
2013-11-06 17:53:32 -08:00
Ruben Brunk
e77d2a9c62 Merge "Disable face unlock when returning from camera." into klp-dev 2013-11-06 23:22:55 +00:00
John Spurlock
10b9ac807f Merge "Fix lockscreen camera preview position in RTL." into klp-dev 2013-11-06 21:48:41 +00:00
Jim Miller
3229346994 Merge "Fix issue where transport control shows up off-screen on tablets" into klp-dev 2013-11-06 21:15:17 +00:00
John Spurlock
b6c3b20d71 Fix lockscreen camera preview position in RTL.
Bug:11263914
Change-Id: Ic3e5157ceb82495d10afd74b3af2655434a9467c
2013-11-06 14:44:54 -05:00
Ruben Brunk
21a99ddd9c Disable face unlock when returning from camera.
Bug: 11063890

- Workaround for bug 11063890.  Avoids the acquire/release
  race when resuming face unlock while pausing the camera
  widget.
Change-Id: I0a58f3a07f346da72ea55772242b4f9c54537235
2013-11-06 10:21:43 -08:00
Jim Miller
81190befe6 Fix issue where transport control shows up off-screen on tablets
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
2013-11-05 21:14:18 -08:00
Chris Craik
6fbd4829a9 Merge "Work around nested SaveLayerAlpha bug" into klp-dev 2013-11-06 02:20:20 +00:00
Chris Craik
362adb84d9 Work around nested SaveLayerAlpha bug
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
2013-11-05 17:41:21 -08:00
Baligh Uddin
b8ea1228c2 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-05 15:54:58 +00:00
Jim Miller
4fc2b01fd0 Add explicit refererences and logging to KeyguardSim/Puk
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
2013-11-04 17:11:46 -08:00
Craig Mautner
eadd21343c Merge "Focus security fields before widgets." into klp-dev 2013-11-04 23:55:23 +00:00
Craig Mautner
f83324504e Focus security fields before widgets.
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
2013-11-04 13:31:45 -08:00
Baligh Uddin
8e47c49db2 Import translations. DO NOT MERGE
Change-Id: I7a9d5895f35087999c286b2970e7867b0994fc9a
Auto-generated-cl: translation import
2013-11-04 09:19:30 -08:00
Victoria Lease
cd4919c032 Merge "Compose singleLine & textAllCaps transforms" into klp-dev 2013-11-04 15:53:52 +00:00
Victoria Lease
1d80e977da Compose singleLine & textAllCaps transforms
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
2013-11-01 16:44:08 -07:00
Jim Miller
6b0afaddae Fix flash caused by frame resize code
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
2013-11-01 15:03:04 -07:00
Adam Cohen
c548134362 Merge "Fix weird page snap bug when long pressing on music controls (issue 11420449)" into klp-dev 2013-11-01 18:48:42 +00:00
John Spurlock
b7824a9475 Merge "Manage keyguard nav elements using transitions." into klp-dev 2013-11-01 18:48:00 +00:00
John Spurlock
56d007b998 Manage keyguard nav elements using transitions.
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
2013-11-01 11:33:48 -04:00
Baligh Uddin
50bdac61a1 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:35:02 +00:00
Adam Cohen
3f1c3c7436 Fix weird page snap bug when long pressing on music controls (issue 11420449)
Change-Id: Ie789d74c03656b93f26b9afef16356862f1982a8
2013-10-31 18:41:59 -07:00
John Spurlock
a0bc738f46 Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev 2013-10-31 18:41:08 +00:00
John Spurlock
385a63d56a Move coalescing to callback, optimize KeyguardStatusView.
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
2013-10-31 10:49:50 -04:00
Craig Mautner
6dc499c6da Merge "Save and restore media metadata." into klp-dev 2013-10-30 21:05:59 +00:00
Craig Mautner
8334192974 Save and restore media metadata.
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
2013-10-30 10:33:01 -07:00
Baligh Uddin
88c5345964 Import translations. DO NOT MERGE
Change-Id: Ic406ab6515206bfd57a79d866f503dcd4f8cd288
Auto-generated-cl: translation import
2013-10-30 08:55:24 -07:00
Jim Miller
65a788585b Add an intermediate dimens resource for 540dp device.
A 540dp device causes keyguard to select SlidingChallengeLayout
and a height of 400dp which isn't enough space for the security
area.  This fix adds an intermediate value to grow the security
area slightly.

Fixes bug 11344424

Change-Id: I35c979f619c593b604e4bf45afd3e591329229e4
2013-10-29 16:31:58 -07:00
John Spurlock
927d854ff4 Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev 2013-10-29 20:55:04 +00:00
John Spurlock
e7c285725d Optimize sysui ui queue during keyguard unlock.
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
2013-10-29 14:27:41 -04:00
Chris Wren
6af85cc2c6 show duration instead of remaining time.
Bug: 11351406
Change-Id: I1238408c439f9cd12382d9a0889321bbb75618d3
2013-10-29 13:19:54 -04:00
Chris Wren
cab6965b19 reduce garbage generation in KeyguardTransportControlView.
Bug: 11243508
Change-Id: I8315c27faf935d2465b3ce9e958e6edee00a4d4d
2013-10-29 13:04:00 -04:00
Baligh Uddin
4aef4ca530 Import translations. DO NOT MERGE
Change-Id: I74c7510762c6c2591784ea2997695449f8aa2e53
Auto-generated-cl: translation import
2013-10-28 09:19:49 -07:00
Jim Miller
5357f8fd24 Merge "Remove '?' icon in layout for "Forgot pattern" button" into klp-dev 2013-10-25 20:08:40 +00:00
Wink Saville
604cfc2de9 Merge "Enhance pin/puk support" into klp-dev 2013-10-25 16:40:55 +00:00