History log of /frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5cf17879a31b7b78c09ec50b727f921840dcf783 26-Mar-2014 Jorim Jaggi <jjaggi@google.com> Reuse KeyguardViewMediator for new Keyguard implementation.

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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
cc747ad2da3e6e0ebf97dff3a0a65964319af583 25-Oct-2013 Jim Miller <jaggies@google.com> 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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
6dc499c6da2affa427dc982e5a50ddf3cb9d5aa9 30-Oct-2013 Craig Mautner <cmautner@google.com> Merge "Save and restore media metadata." into klp-dev
83341929740cf56240ff883b92191b5a67349c40 30-Oct-2013 Craig Mautner <cmautner@google.com> 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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
6af85cc2c60f51356ddc5db141cd0fd07d3693b9 29-Oct-2013 Chris Wren <cwren@android.com> show duration instead of remaining time.

Bug: 11351406
Change-Id: I1238408c439f9cd12382d9a0889321bbb75618d3
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
cab6965b191da02e783bc578ae3921fc0bca019f 29-Oct-2013 Chris Wren <cwren@android.com> reduce garbage generation in KeyguardTransportControlView.

Bug: 11243508
Change-Id: I8315c27faf935d2465b3ce9e958e6edee00a4d4d
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
df32aa87150768795816852c6393306893467eca 22-Oct-2013 Chet Haase <chet@google.com> 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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
1693f6a5639a1f993bdc1dca9dade5e3eb3c14f2 21-Oct-2013 Jim Miller <jaggies@google.com> 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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
ee186de4b2abc3c0156d2fb96f3d22e2bb39b9ab 22-Oct-2013 Jim Miller <jaggies@google.com> Workaround for corner case in TransitionManager

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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
a9412556d213e07b248ef7e924f0e4cee183efc5 17-Oct-2013 Adam Powell <adamp@google.com> Merge "Fix stale data in keyguard transport control display" into klp-dev
b2c64690a3d1fe4d2100b34e9f3d823985349eed 16-Oct-2013 Jim Miller <jaggies@google.com> Fix memory leak and slowness in keyguard

This fixes an issue where the mUpdateSeekBars runnable was being
repeatedly posted to the handler while keeping a reference to
the transport control (and hence keyguard). Even after the view
was detached from keyguard it would continue to post events that
would ultimately keep the instance of keyguard from being GC'd and
cause keyguard to slow down.

Fixes 11169793

Change-Id: If2bb238adf6d78101589926b60a61d9f187c6d1c
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
3b435fb2f0c868c468f3fb2cb2e3ea8314a1755a 16-Oct-2013 Adam Powell <adamp@google.com> Fix stale data in keyguard transport control display

Make sure that caches are cleared at the right times and views have
their data populated correctly. Also fix a caching issue in
RemoteController.

Bug 11218218

Change-Id: Ieb833b5dc440ccd1b82050f12eb7059a4e0a412f
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
f51769221c6defd75cd412964715c0a181e31722 13-Oct-2013 Adam Powell <adamp@google.com> Use INVISIBLE instead of GONE to hide KG transport buttons

Maintain a stable/predictable button layout when a remote control
client shows or hides specific transport control buttons.

Bug 11195246

Change-Id: I0e745150127c5e354ed2752c379e05ea8e0bd33d
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
31049d76c55b18a6d9993f0d9687598740b16014 07-Oct-2013 Adam Powell <adamp@google.com> Use SCREEN Xfermode for keyguard badges; update SeekBar

Plumb through the necessary API features through Drawables and
ImageView but leave it hidden for now pending future API review and
plumbing through the rest of the framework Drawable implementations.

Update SeekBar assets used for keyguard transport control.

Set selected status directly instead of finding views by id.

Bug 10531608
Bug 10784913

Change-Id: Ia38bd04ad1bc26e9e6da1dda8a374c9ba3ceccb3
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
20daffd91e4a53054f8c4d7a66c2a68100abee03 07-Oct-2013 Jim Miller <jaggies@google.com> Disable keyguard text marquee when the display turns off.

Fixes bug 11116666

Change-Id: Id9abb9d0531bcf4c5da7014ed4b9b202652b3754
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
bacb5422bc4670d2b8905d9f58d068a97836561f 07-Oct-2013 Jean-Michel Trivi <jmtrivi@google.com> Merge "Also rely on enabled notification listeners for RemoteController registration" into klp-dev
f108cdd9ee5efe354d87edd02a07b323298c116c 28-Sep-2013 Jean-Michel Trivi <jmtrivi@google.com> Also rely on enabled notification listeners for RemoteController registration

Registration of a RemoteController may succeed only if:
- the caller has the MEDIA_CONTENT_CONTROL permission,
- or if the RemoteController.OnClientUpdateListener it
registers if one of the enabled notification listeners.

For using the "enabled notification listener" functionality,
the CL involved:
- making OnClientUpdateListener an interface so a 3rd-party
application may have its implementation extend
NotificationListenerService, which is required for a
listener to be enabled by the user.
- add the concept of "enabled" status in an
IRemoteControlDisplay, so a RemoteController (which
encapsulates the IRemoteControlDisplay implementation)
may be registered, but later temporarily disabled by
the user, as a result of a user action in the security
settings, or a user switch.
- making MediaFocusControl, the component tied to
AudioService, monitor changes in enabled notification
listeners, and act upon enable/disable changes.

Bug 8209392

Change-Id: Ia8dfa2156c65668b2b0d4ae92048005912652d84
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
aa006133228facf2f9b61e0492fd8f724fac472f 04-Oct-2013 Chet Haase <chet@google.com> Enable transitions in lockscreen media controller

Media controller now fades between different states. The code for
doing this was already there, but this CL enables them and changes
the behavior of transition's OnPreDrawListener to do the right thing.

Also, this CL fixes a bug in ChangeText found while testing this change.

Issue #11083563 ChangeText transition crashes when KEEP transition type used

Change-Id: I5e04c28e1b5faac017b0a4e49734d9faa7fe79cd
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
f8895248e2ac4dbb46622f3e04c7256f03175b4f 01-Oct-2013 Adam Powell <adamp@google.com> Add a scrubber to keyguard; layout tweaks

Switch KeyguardTransportControlView over to using RemoteController
instead of the internal API.

Guard transition animations behind a flag until we can work out some
intermittent issues.

Change-Id: Ie9f41339ce6e735c5d524db88437672f2c9859e2
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
43a372f38ad642f86047e8112e3d43edb7300439 28-Sep-2013 Adam Powell <adamp@google.com> Keyguard transport controls: fullscreen art

When the transport controls are active, set the relevant art as a
fullscreen background for the keyguard.

Change-Id: I1e8a87f242153a2a2c5bf94dbd15f0fd3e07dde3
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
314b25d0fd9fae7eff7930fef32458518e8a227d 03-Apr-2013 Jean-Michel Trivi <jmtrivi@google.com> resolved conflicts for merge of ca762bee to master

Change-Id: Ib57124c30352b4f6ed66f384b386eb6f49b505c1
7678a7beea7d457d20c60dc226328fd2252214ef 29-Mar-2013 Jean-Michel Trivi <jmtrivi@google.com> resolved conflicts for merge of 99bd302c to master

Change-Id: I858f67d0c61f6403b336c82a300f69027fc16bd1
5950bf3a47661caa081f00dbde7c6d3b448eddda 20-Mar-2013 Jim Miller <jaggies@google.com> resolved conflicts for merge of 7d7443bc to master

Change-Id: I5d777dad0fb4019c1f718c4109c5c973eeac8840
8fac5869d460cad3432c2805edb79c5be9114e82 12-Mar-2013 Jean-Michel Trivi <jmtrivi@google.com> am 0e23dd63: am 998b692d: Merge "Keyguard remote control display artwork size" into jb-mr2-dev

* commit '0e23dd635aae47463fa457c43938898babd7e42c':
Keyguard remote control display artwork size
5ecd81154fa039961f65bb4e36d18ac555b0d1d6 10-Jan-2013 Jim Miller <jaggies@google.com> Move keyguard to its own process.

This is in preparation to moving keyguard into its own process.

Moved keyguard source and resources into new .apk.

Got basic test app working. Still need to implement MockPatternUtils
and means to pass it into KeyguardService with local binder interface.

Added new ACCESS_KEYGUARD_SECURE_STORAGE permission.

Temporarily disabled USER_PRESENT broadcast.

Remove unintentional whitespace changes in PhoneWindowManager, etc.

Checkpoint basic working version.

Move to systemui process.

Synchronize with TOT.

Sync with recent user API changes.

Fix bug with returing interface instead of stub for IKeyguardResult. Create KeyguardServiceDelegate to allow
for runtime-selectable local or remote interface.

More keyguard crash robustness.

Keyguard crash recovery working. Currently fails safe (locked).

Fix selector view which was still using frameworks resources.

Remove more references to internal framework variables. Use aliases for those we should move but
currently have dependencies.

Allow runtime switching between service and local mode.

Fix layout issue on tablets where orientation was reading the incorrect constant
from the framework. Remove more framework dependencies.

Fix PIN keyboard input.

Remove unnecessary copy of orientation attrs.

Remove unused user selector widget and attempt to get multi user working again.

Fix multi-user avatar icon by grabbing it from UserManager rather than directly since
keyguard can no longer read it.

Merge with AppWidget userId changes in master.

Change-Id: I254d6fc6423ae40f6d7fef50aead4caa701e5ad2
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
25a272a9f6323f6a3513bb522d45e839449878ce 10-Jan-2013 Jim Miller <jaggies@google.com> Move keyguard source and resources into new package

This is part 1 of two commits. This commit moves all keyguard
source and resources to a new com.android.keyguard package.
The second part of this change applies an overlay that makes
it work.

Change-Id: I360e9ac7783c6cb289c992733818b9535df185b9
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java