504 Commits

Author SHA1 Message Date
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
20400abdb8 am 9916eb6e: am 39541bfa: am a0bc738f: Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev
* commit '9916eb6ecbb6225d0b98c7090b75b8d1f4c0833e':
  Move coalescing to callback, optimize KeyguardStatusView.
2013-10-31 11:47:57 -07:00
John Spurlock
9916eb6ecb am 39541bfa: am a0bc738f: Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev
* commit '39541bfad07c4f13d61981c1e231144168b41aa8':
  Move coalescing to callback, optimize KeyguardStatusView.
2013-10-31 11:46:15 -07:00
John Spurlock
39541bfad0 am a0bc738f: Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev
* commit 'a0bc738f46f62ba1a02e956a8c262323ab4ab75c':
  Move coalescing to callback, optimize KeyguardStatusView.
2013-10-31 11:43:28 -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
94976ef825 am c74d0b6c: am 744e0a33: am 6dc499c6: Merge "Save and restore media metadata." into klp-dev
* commit 'c74d0b6cf4a51a24057255452edb2fce4941347c':
  Save and restore media metadata.
2013-10-30 14:15:10 -07:00
Craig Mautner
c74d0b6cf4 am 744e0a33: am 6dc499c6: Merge "Save and restore media metadata." into klp-dev
* commit '744e0a330937f97a6cc24830e4433cb00b1422d2':
  Save and restore media metadata.
2013-10-30 14:12:49 -07:00
Craig Mautner
744e0a3309 am 6dc499c6: Merge "Save and restore media metadata." into klp-dev
* commit '6dc499c6da2affa427dc982e5a50ddf3cb9d5aa9':
  Save and restore media metadata.
2013-10-30 14:10:13 -07: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
146a9effd2 Import translations. DO NOT MERGE
Change-Id: I6562d76f34b2bc4a701796a3a18fce1c919fd8f9
Auto-generated-cl: translation import
2013-10-30 08:57:05 -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
d2a46a9a6a am ea1a439a: am 3641571c: am ae47d826: Merge "Add an intermediate dimens resource for 540dp device." into klp-dev
* commit 'ea1a439a900b27cf1eb67ec6ed9e6ae43d754b43':
  Add an intermediate dimens resource for 540dp device.
2013-10-29 19:51:49 -07:00
Jim Miller
ea1a439a90 am 3641571c: am ae47d826: Merge "Add an intermediate dimens resource for 540dp device." into klp-dev
* commit '3641571c93f12720b7f4769175e302a6875a9dce':
  Add an intermediate dimens resource for 540dp device.
2013-10-29 19:48:38 -07:00
Jim Miller
3641571c93 am ae47d826: Merge "Add an intermediate dimens resource for 540dp device." into klp-dev
* commit 'ae47d826d883657a4332f549c165ae85124bd1cf':
  Add an intermediate dimens resource for 540dp device.
2013-10-29 19:46:36 -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
3ec7e54c8a am 646f19c9: am de50a5e7: am 927d854f: Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev
* commit '646f19c929ae85ab703533c36962292fa6c990ca':
  Optimize sysui ui queue during keyguard unlock.
2013-10-29 14:59:35 -07:00
John Spurlock
646f19c929 am de50a5e7: am 927d854f: Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev
* commit 'de50a5e7e116870cded377c77c5dbe8fa2498b40':
  Optimize sysui ui queue during keyguard unlock.
2013-10-29 14:01:56 -07:00
John Spurlock
de50a5e7e1 am 927d854f: Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev
* commit '927d854ff4dc66edd22c109400233eb2d76dfce6':
  Optimize sysui ui queue during keyguard unlock.
2013-10-29 13:57:16 -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
7aff326aa7 am e0b3f3e1: am 4742fe3c: am 64742f84: Merge "show duration instead of remaining time." into klp-dev
* commit 'e0b3f3e106d5b0b9eb31ed3bd43c8a536eb8d1ee':
  show duration instead of remaining time.
2013-10-29 10:43:13 -07:00
Chris Wren
38363d14d6 am af5d6e49: am f535a6ae: am 5ab93d87: Merge "reduce garbage generation in KeyguardTransportControlView." into klp-dev
* commit 'af5d6e49526e97a267bedf076797fde6e9589bba':
  reduce garbage generation in KeyguardTransportControlView.
2013-10-29 10:43:09 -07:00
Chris Wren
e0b3f3e106 am 4742fe3c: am 64742f84: Merge "show duration instead of remaining time." into klp-dev
* commit '4742fe3cd79cf1f7d0c84ba87ee3ebdd5eb175d0':
  show duration instead of remaining time.
2013-10-29 10:41:09 -07:00
Chris Wren
af5d6e4952 am f535a6ae: am 5ab93d87: Merge "reduce garbage generation in KeyguardTransportControlView." into klp-dev
* commit 'f535a6aef04b9673a0f6748da0018b962833dd9e':
  reduce garbage generation in KeyguardTransportControlView.
2013-10-29 10:41:06 -07:00
Chris Wren
4742fe3cd7 am 64742f84: Merge "show duration instead of remaining time." into klp-dev
* commit '64742f8469ce270b6ecf437a624b69dde7a5a056':
  show duration instead of remaining time.
2013-10-29 10:39:28 -07:00
Chris Wren
f535a6aef0 am 5ab93d87: Merge "reduce garbage generation in KeyguardTransportControlView." into klp-dev
* commit '5ab93d873f95256fdcddb8a78fa3c4a6697ec01a':
  reduce garbage generation in KeyguardTransportControlView.
2013-10-29 10:39:25 -07: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
f9262149c2 Import translations. DO NOT MERGE
Change-Id: I6a172dbe72caf48442610101a7092737175c19e5
Auto-generated-cl: translation import
2013-10-28 09:22:35 -07: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
8fd09e8d8f am 854b63f6: am 8b98e040: am 5357f8fd: Merge "Remove \'?\' icon in layout for "Forgot pattern" button" into klp-dev
* commit '854b63f67464e9679d3dcb7e68d626e55ad3520b':
  Remove '?' icon in layout for "Forgot pattern" button
2013-10-25 13:18:27 -07:00
Jim Miller
854b63f674 am 8b98e040: am 5357f8fd: Merge "Remove \'?\' icon in layout for "Forgot pattern" button" into klp-dev
* commit '8b98e04092d6ef92f84e198853535dffb0d0610a':
  Remove '?' icon in layout for "Forgot pattern" button
2013-10-25 13:15:09 -07:00
Jim Miller
8b98e04092 am 5357f8fd: Merge "Remove \'?\' icon in layout for "Forgot pattern" button" into klp-dev
* commit '5357f8fd24bc578a1a584cac9c1943227816ea05':
  Remove '?' icon in layout for "Forgot pattern" button
2013-10-25 13:12:02 -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
a11d955b8e am 568513d3: am 4bc35650: am 604cfc2d: Merge "Enhance pin/puk support" into klp-dev
* commit '568513d32c628285eda2da59fd3751e0d1a96d6a':
  Enhance pin/puk support
2013-10-25 09:47:42 -07:00
Wink Saville
568513d32c am 4bc35650: am 604cfc2d: Merge "Enhance pin/puk support" into klp-dev
* commit '4bc356506429cd85773ee0b36be2a99bffe71584':
  Enhance pin/puk support
2013-10-25 09:45:54 -07:00
Wink Saville
4bc3565064 am 604cfc2d: Merge "Enhance pin/puk support" into klp-dev
* commit '604cfc2de963c17ed53fef745b93e3afcfd5a5f8':
  Enhance pin/puk support
2013-10-25 09:43:00 -07:00
Wink Saville
604cfc2de9 Merge "Enhance pin/puk support" into klp-dev 2013-10-25 16:40:55 +00:00
Baligh Uddin
6c36b31124 Import translations. DO NOT MERGE
Change-Id: Ie99771a16508911eeda206d3bb81a27b87168a91
Auto-generated-cl: translation import
2013-10-23 17:10:38 -07:00
Baligh Uddin
ef9d04a2b6 Import translations. DO NOT MERGE
Change-Id: If44c0d3258a9b125cfc1afe930af8f6524200ffd
Auto-generated-cl: translation import
2013-10-23 17:08:47 -07:00
Wink Saville
b896b9f742 Enhance pin/puk support
Add supplyPinReportResult & supplyPukReportResult that
returns the result code and attempts remaining.

Display "Attempts remaining" in Keyguard

Bug: 9928717
Change-Id: Ibad0635dd1375fabce11ba2b7b9f95f8868489e6
2013-10-23 15:44:26 -07:00
Chet Haase
28e8db1940 am 43757cc8: am 2a8eaff4: am c9d8e383: Merge "Fix leak with transitions when views get removed" into klp-dev
* commit '43757cc8438e85bf0633580c660c4861338f1da2':
  Fix leak with transitions when views get removed
2013-10-23 12:30:20 -07:00
Chet Haase
43757cc843 am 2a8eaff4: am c9d8e383: Merge "Fix leak with transitions when views get removed" into klp-dev
* commit '2a8eaff4ec10f5d554043c73c0e3424186e09a8a':
  Fix leak with transitions when views get removed
2013-10-23 12:27:27 -07:00
Jim Miller
ca71f48e03 Remove '?' icon in layout for "Forgot pattern" button
Fixes bug 11234297

Change-Id: I5fbb54997b7a2bcf29b3a98b10a2ba4e908283ef
2013-10-22 16:29:17 -07:00
Chet Haase
df32aa8715 Fix leak with transitions when views get removed
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
2013-10-22 16:27:56 -07:00
Jim Miller
85d7ecfa4b am 6ed3ce0b: am 253f7295: am 1693f6a5: Prevent having multiple seek runnables in flight.
* commit '6ed3ce0b71b8d2c180fc9f610eb13cd35dc8ab5e':
  Prevent having multiple seek runnables in flight.
2013-10-21 17:30:29 -07:00
Jim Miller
6ed3ce0b71 am 253f7295: am 1693f6a5: Prevent having multiple seek runnables in flight.
* commit '253f7295c820bf960c0411288495145582a0d3b2':
  Prevent having multiple seek runnables in flight.
2013-10-21 17:27:25 -07:00
Jim Miller
1693f6a563 Prevent having multiple seek runnables in flight.
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
2013-10-21 17:17:40 -07:00