History log of /frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
81190befe66e297d93ad0c7661d02d56f8f01f24 06-Nov-2013 Jim Miller <jaggies@google.com> 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
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
4d20ed3f26d1ec2c47519484bcc968098581c3d6 19-Oct-2013 Jim Miller <jaggies@google.com> Revert "Fix dodgy states of keyguard transport controls"

This reverts commit bdb5ac7ddbabec0ba947a32937d8b95738d513dc.

Change-Id: Iea8db9a590a2a3b65d941b2918345eb27f690240
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
bdb5ac7ddbabec0ba947a32937d8b95738d513dc 16-Oct-2013 Adam Powell <adamp@google.com> Fix dodgy states of keyguard transport controls

If a layout has already been requested when we want to show the
correct widget pane, post the event for later and immediately return.

This works because PagedView has some interesting ideas about
maintaining a consistent state. It will attempt to recalculate the
current page position during measurement, but thanks to a reliance on
this measurement to establish scrolling boundaries that scrollTo uses
for clamping plus other code that depends on the idea that it can add
a new widget pane view and immediately scroll to it, this attempt to
scroll fails if the target page was added and measurement is not yet
complete. This patch ensures we don't hit these edge cases in a few
known ways.

While this ends things in the correct state, it predictably has a few
visual artifacts. Situations where things would completely fail
before, positioning pages incorrectly or fading out wrong pages now
will briefly flash and fade the widget frames or in some cases will
visibly animate from the starting page to the correct one. We should
address these issues in a future release.

Bug 11217368
Bug 9760604

Change-Id: I989d03b5bfdd5b6403a6b67a8aae7585ca0c8ae0
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
9ccf123ee0596ec9cab724f252a4932961c083af 11-Oct-2013 Jim Miller <jaggies@google.com> Delay all widget additions in keyguard until after boot completes

Fixes bug 11013685

Change-Id: Ic74b2d5cf80f090b0168d384f65c15b0d256c74c
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
26b7bf6e3cf6be009cd4baf59e083bce37633a4a 10-Oct-2013 Daniel Sandler <dsandler@android.com> Properly size KG camera animation for translucent bars.

The KGHV now plumbs insets information down into the camera
so that it can leave space for the navigation bar if the KG
window happens to extend underneath it. The camera widget
preview must therefore be rendered to fit the size of the
smaller inset content area, which means there's now a hole
at the bottom; we fill this bottom area during animation
with a fake navigation bar: a black view occupying the area
underneath the real navbar.

Bug: 11048015
Change-Id: Ia23b62e155686ad9f17a25ccc14f6c97b53dafea
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
c23ee579ac21f1f67a30d75e8ac7cbd49ba2fe7d 08-Oct-2013 Jim Miller <jaggies@google.com> Merge "Disable dragging the challenge area when there are no widgets" into klp-dev
5547b55bae92e6674e528d671f7700d7f5a9b3d0 08-Oct-2013 Jim Miller <jaggies@google.com> Disable dragging the challenge area when there are no widgets

Fixes bug 10784855

Change-Id: Id1d752eb4bdc64a9d09fd478087d16dc17682c77
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
9c993bd6ba75eb07e2f8e68cf57c780a83699116 08-Oct-2013 Jim Miller <jaggies@google.com> Disable camera and search from some security screens.

This disables showing the camera and search buttons in the
navbar while SIM, PUK and Account security screens are showing.

Fixes bug 10991981

Change-Id: Ic64adc079685948f8c1114dbdefa42a671948350
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.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/KeyguardHostView.java
7fc27ea451dac0c89c8c4e6b80182ed1a7620a87 02-Oct-2013 Chet Haase <chet@google.com> Make onClickHandler in KeyguardHostView a weak reference

The strong reference OnClickHandler caused bitmaps in keyguard to be
referenced when keyguard was not visible. This change makes the click
handler a static class with a weak reference to the hostView instance,
allowing those bitmaps to get collected and shaving ~845k off of the
heap size when the keyguard isn't showing.

Issue #10918599 SystemUI should have a round of Svelting

Change-Id: I69de8659ac14c1a4723d082dd3cd394d8b6097f1
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
da7af95d81fc609a8f02ea3ab6b55d0224556a5c 01-Oct-2013 John Reck <jreck@google.com> Remove old animation

Bug: 10918599
Shaves ~1.5MB off of Keyguard creation from usage of an
old-style Alpha animator that would create a draw cache
The animation is unseen due to screen timings, so simply remove it
Also adds a bit of de-jank to the non-svelte case by avoiding
a potential GC_FOR_ALLOC

Change-Id: Id49742d95988f670a44305e4033e7a850d20e675
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
461b345886bc3c82b8e264158a7a754d59ea41ce 29-Sep-2013 Jim Miller <jaggies@google.com> Disable keyguard widgets on low memory devices

Fixes bug 10784493

Change-Id: I6271ea94f6832bb061ba9f64efea460d28ee5695
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.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/KeyguardHostView.java
e5b14ee1281325dc7e54df3fd820ff4bd830ef3c 27-Sep-2013 John Spurlock <jspurlock@google.com> Merge "Restore scrim views to former place in view hierarchy." into klp-dev
256ae67b9a629178b458dfc01102c9c0b9963d03 26-Sep-2013 John Spurlock <jspurlock@google.com> Restore scrim views to former place in view hierarchy.

By enabling KeyguardHostView to extend into the full screen area
and updating custom measure/layout in the Challenge layouts
appropriately.

Bug:10939005
Change-Id: I06fb187c4100cf0f2e48b1206cc4450afa4567dd
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
138f25d75665bd07d34294364c5b6f530b33503f 25-Sep-2013 Jim Miller <jaggies@google.com> Accessibility improvements in keyguard
- add accessibility descriptions to camera and search light
- add new onClick handler to simplify launching search and camera
- plumb camera launch through KeyguardService interface

Fixes bug 10914360

Change-Id: Ic85eda9afadba7381be78b477180f7204030cd17
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
257f283b0e4cc1c1fa4e7f2472d3ee4ab3b451d0 22-Sep-2013 John Spurlock <jspurlock@google.com> Introduce transparent bars to the keyguard.

Driven by a new framework config bool. Tested on all layouts,
but disabled by default. Can be enabled with a config overlay.

(Sliding/MultiPane)ChallengeLayout have custom measure/layout
logic that peeks at the root view's padding (!). So we must keep
the root view's padding = system window insets. However, we need
the scrims + the fullscreen camera widget preview to use the entire
display size if the bars are transparent.

So the approach is to maintain the root view's
(KeyguardViewManager$ViewManagerHost) padding as before via
setFitsSystemWindows(true) but allow non KeyguardHostViews to
extend into the padding if bars are transparent via a custom
measure/draw on the root view.

KeyguardHostView background + challege scrims moved up to the
root view.

Also:
- Remove logspam line for fixed bug.

- Fix status bar staying opaque on interaction on secure keyguard.

Known issues:
- Nav bar blip dismissing global actions, keyguard app widget picker
bars are opaque. Both will use the new inherit flag once it exists.

- Emergency dialer layout dance, will be fixed in the phone project.

Bug:10606085
Change-Id: I2648b4ee9a54a67324ce9dcbab976ad4da4bbcfa
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
caf24fc2c4bb9747eb80138bf3ce0be067851749 11-Sep-2013 Jim Miller <jaggies@google.com> Add camera affordance to navigation bar on phones

This adds a camera button on phones that can be used to show
and launch the camera.

- Minor refactoring of touch event dispatch in PagedView.
- Disables usability hints when keyguard loads.
- Only add a touch handler for camera icon once during layout.
- Update after review.
- Updated with latest UX camera and camera background assets

Change-Id: I09cd5cb0e501fd0f4659bea96d00c92b07f805c4
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
65a6ba347848069b198869a7500d07a419aaf15d 11-Sep-2013 Sandeep Siddhartha <sansid@google.com> Remove HotwordRecognition APIs

- and its usage from Keyguard

Bug: 10708010
Change-Id: Ic4a695a1d0e9312706a3b4ff01e59e2567b6ad9c
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
1f0ef2cc33e5b8fe00a869c22eabfd08cf7de504 07-Sep-2013 Sandeep Siddhartha <sansid@google.com> Move public consts to HotwordRecognitionService

- The HotwordRecognitionService is the only public component of
Hotword recognition allowing others to implement hotword recognition
- The client API is not available for use by all, hence the consts need
to be moved to the service class.
- Ideally we'd have retained the public consts in the client side API
(HotwordRecognizer)

Change-Id: Ibd0d1c0d0514ec4e8f7c284e22c5fa6b7ef3df26
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
4473f020037ed2a01e8288497b9f27cff1b6b8d4 06-Sep-2013 Sandeep Siddhartha <sansid@google.com> Use the permission for hotword recognition

- Also fixes an issue with PendingIntents being launched from the
lockscreen taking a lot of time

Change-Id: I91b44328ba68b225454322b90a5b19a0d4c9a772
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
eec83dcadd1dca722d3070fe5eae7d4e0561aa2b 04-Sep-2013 Sandeep Siddhartha <sansid@google.com> Move the hotword code to KeyguardHostView

- Try hotword detection on Pattern unlock screen as well - disabled in
this CL
- Explicitly stop hotword detection when starting the assist intent.

Change-Id: I3d22a9029abf888431113b86e4410ea9e9866c57
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
2ec4ff435b0af87a6c0f933e6eaf1155e34c430f 29-Aug-2013 Jim Miller <jaggies@google.com> Attempt to fix missing clock bug

This attempts to fix a bug where the clock wasn't being added
when widgets are disabled.

Fixes bug 10473246

Change-Id: I63f4c04778da938b6fa1bc74de3fa0463412da0f
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
f45bb403884f30ecb383698ef1bcb1c7dc1964b8 21-Aug-2013 Jim Miller <jaggies@google.com> Add setting to disable keyguard widgets

This allows disabling keyguard widgets through Settings.
On new devices, the setting is turned off by default. If the
user currently has widgets in keyguard, then we keep them
and re-enable the setting.

Change-Id: I7258921231d439925ac8627105710efa99309094
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
e51cf7aeb6157017801a802b4c1d74cbf51b7a01 26-Jun-2013 Jim Miller <jaggies@google.com> Simplify wake management code in keyguard.

Removes onWakeKey/Motion handling from keyguard since it's no longer used.
The legacy code was originally intended to have keyguard filter wake events
which is now done in PhoneWindowManager. Ultimately it just needs to call
PowerManager.wakeUp() since keyguard no longer filters these keys.

Change-Id: I5b8ef9b422abf850a85b57f21944e5eb09fbedc2
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
e77737f4cd4d2070405ea549bca297e6b66a5234 01-Jun-2013 Jim Miller <jaggies@google.com> am 2542fd54: am 00d4c946: Merge "Fix keyguard issue where an incoming SMS would switch widget" into jb-mr2-dev

* commit '2542fd54ac943002cb7537029404dcc80a6491ac':
Fix keyguard issue where an incoming SMS would switch widget
08763af07e9f6f2c9dd0d4b5e73f9c341c628b84 10-May-2013 Jim Miller <jaggies@google.com> am 8f1b2e0b: am 00553835: Merge "Attempt to fix NPE in keyguard" into jb-mr2-dev

* commit '8f1b2e0b7fdb1de3537fe3f45ba634fb74a94b4e':
Attempt to fix NPE in keyguard
6168317f31d45cb4dad9d24d4b68cf6e7c40565a 19-Apr-2013 Winson Chung <winsonc@google.com> resolved conflicts for merge of 7b2ad857 to master

Change-Id: I72472e56b2303aa6ccabd784fadc7da4eabcb0e8
c8c0d0964e1efa666698198920665aa539398468 12-Apr-2013 Jim Miller <jaggies@google.com> am cce961c1: am 22626107: Merge "Fix bug where transport shows all the time in keyguard" into jb-mr2-dev

* commit 'cce961c13417eeafba78fd5f785984b54997d897':
Fix bug where transport shows all the time in keyguard
5950bf3a47661caa081f00dbde7c6d3b448eddda 20-Mar-2013 Jim Miller <jaggies@google.com> resolved conflicts for merge of 7d7443bc to master

Change-Id: I5d777dad0fb4019c1f718c4109c5c973eeac8840
ef9f5276f250312cfcfe6a377feb2aa022495a4e 14-Mar-2013 John Spurlock <jspurlock@google.com> am e8b24ddd: am adb9554d: Merge "Enable back button in keyguard security account mode." into jb-mr2-dev

* commit 'e8b24ddd6769a431b8fa3462e00c85211787a08d':
Enable back button in keyguard security account mode.
105beddcb98efc24f37259881d9b4c267aa0d198 28-Feb-2013 Jim Miller <jaggies@google.com> Fix bad merge in KeyguardHostView

This restores the fix detailed in Change-Id: I866d4b42493df3a6449d8eabc3ea140dc39dac57

Change-Id: Ibe75afd7a612cf96a56e5815a198c2047c7ff5bd
/frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
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/KeyguardHostView.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/KeyguardHostView.java