47 Commits

Author SHA1 Message Date
Jorim Jaggi
e82f90e72e Remove different layout for landscape in Keyguard
Bug: 15422177
Change-Id: I8a643a8f6dcfed1530f17e8de6a5cc69533528b4
2014-09-02 21:54:25 +02:00
Jorim Jaggi
31e0ae0cad Merge "Make date consistent with spec when alarm is set" into lmp-dev 2014-08-26 10:35:41 +00:00
Jorim Jaggi
20060091e2 Merge "Fix password unlock method" into lmp-dev 2014-08-25 16:09:23 +00:00
Jorim Jaggi
e070018b3e Fix password unlock method
- Update layouts/assets to material
- Fix that the virtual keyboard didn't always come up
- Fix window layout of status bar window, so it's above the IME when
  on Keyguard

Bug: 16957208
Change-Id: I1785af9ac73103abe6cd9968ed27582fbfc9a1d9
2014-08-25 17:21:05 +02:00
Jorim Jaggi
38a7c658c5 Make date consistent with spec when alarm is set
Bug: 17162597
Change-Id: I7855d8f40af77cf4d91791c899e0b6147ee17071
2014-08-25 15:37:06 +02:00
Jorim Jaggi
321583d540 Content description for next alarm
Also fixes a bug where "status" was read out with TalkBack for no
good reason.

Bug: 15694080
Change-Id: Id295eb70af880d93ff928ebc337b09a8d679120d
2014-08-22 01:33:33 +02:00
Jorim Jaggi
d7c1fae12e Don't scale notifications on Keyguard for devices < xxhdpi
Bug: 16824061
Change-Id: Iccccebcd17357764aef325df0cd220508fcf7403
2014-08-14 19:16:33 +00:00
Jorim Jaggi
76a1623afc Preparations for lockscreen launch animations
- Update unlock animations to new spec to make the consistent with
  lockscreen launch animations.
- Introduce disappearing motion for security views which runs before
  we actually dismiss Keyguard.
- If a window is running the un-force-hide animation, treat as it
  would have the wallpaper flag set so the wallpaper stays until
  the animation is completely done.
- Run an animation on the wallpaper if the wallpaper is going away.

Bug: 15991916
Bug: 16234603
Bug: 15326120
Change-Id: I063aa4f269ddcf75b9a705e90f0c3056b541b642
2014-08-12 20:52:26 +00:00
Jorim Jaggi
f479792e05 New swipe-up assist animation for L.
Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
2014-08-05 15:24:26 +02:00
Jorim Jaggi
c7dea6ee9b Implement next alarm info in expanded QS.
Also make the representation of alarm on lockscreen consistent with
QS. In addition, fix a bug where pending app transition was overriden
to make the alarm click interaction look nice.

Bug: 15392951
Bug: 15856205
Change-Id: Iacdf6a38c5c1a7484b4b328c9a3fa4d25e071c64
2014-07-28 15:34:59 +02:00
Selim Cinek
4e8b9ed30b Implemented new PIN unlock design
The pin unlock design was changed according to the spec
and new animations where introduced for the password field.

Bug: 13735707
Change-Id: I76f5e873bd0ea4f34ca3d2cd971223f0a83e2f28
2014-06-30 18:48:41 +00:00
Jorim Jaggi
220bf5cf9a Bigger clock.
Also fixes a bug where notifications would be wrongly padded
on Keyguard after rotating the screen.

Bug: 15244051
Change-Id: I2418692c3d2ffdd5fe642361f2924629bf9a75eb
2014-06-14 22:43:12 +02:00
Adrian Roos
12c1ef57d0 Display time to charge on lock screen
Bug: 14410848
Change-Id: I7ffad4dcc83ceeaeb29342439de11c91b4d63ce8
2014-06-04 17:15:40 +02:00
Jorim Jaggi
93afa1dba6 Move owner info to main lockscreen.
Bug: 14307636
Bug: 15283575
Change-Id: I8cba9c0e78f825920aca1468d965e8da9b402da8
2014-06-03 20:57:35 +02:00
Selim Cinek
3018197cf0 Implemented the appear animation for the pattern security.
Also refactored AppearAnimationUtils slightly to support this.

Bug: 15163546
Change-Id: I411fad20c410875dcf7bc465ea545ed90aac187e
2014-05-30 17:29:22 +02:00
Jorim Jaggi
15a77f7da8 Appear animation for PIN view.
Bug: 15163546
Change-Id: I05bc2920cc6e3d19ab64b8b43417b328552e9e2a
2014-05-28 17:31:33 +02:00
Jorim Jaggi
cc12a9daf6 Visual refinements for lockscreen.
Bug: 15244051
Bug: 14999913
Change-Id: I48896cfa3d88a25ae9c244968ae8e457b6d4e82d
2014-05-26 02:06:20 +02:00
Jorim Jaggi
069cd03740 Position clock and notifications dynamically.
The positioning is dependant on how many notifications are currently
showing. This makes sure that the lockscreen always looks balanced
and harmonic.

Bug: 14592994
Change-Id: Ic647b887dd23e6cc5ecd07d70f279ff2f218f4ca
2014-05-17 02:01:41 +02:00
Jorim Jaggi
412cc7049f Fix padding for SIM pin entry.
Bug: 14224920
Change-Id: Icd8bf48a5946adeef9bfc6b00e4522c7fa3e56c3
2014-05-02 21:10:13 +02:00
Jorim Jaggi
25807936e8 Add carrier text on lockscreen in top left corner.
Change-Id: I88c96eabc4b97295da5c1094db3fd22fcc637390
2014-04-25 14:18:07 +02:00
Jorim Jaggi
9a6eba3ce7 Move bouncer to the bottom, but only on phones.
Change-Id: Ibe03964a10a8cab9e179ff0618a6ed312c8b1b4a
2014-04-17 21:44:53 +02:00
John Spurlock
2396e29d31 am ae3f7cca: Merge "Add app_name to keyguard package."
* commit 'ae3f7cca5235b9c3da080e7f8210a21ecf48285b':
  Add app_name to keyguard package.
2014-04-11 18:48:17 +00:00
John Spurlock
99155e257e Add app_name to keyguard package.
Bad label referenced in the manifest.  Found while listing
installed packages in settings.

Change-Id: Ieb4a764d2a8e7f27245ce2c41998cdc77ecead92
2014-04-10 10:31:31 -04:00
Jorim Jaggi
03c701ec58 Basic implementation for notifications on lockscreen.
This change makes PhoneStatusBar expand while the lockscreen is
showing. Further, the KeyguardSimpleHostView is shown by
KeyguardBouncer, and the Bouncer is shown whenever the user tries to
unlock the phone (closing the shade).

Bug: 13635952
Change-Id: I4354b7a7937af6e1c93abf16ad6e485376d16bc2
2014-04-05 16:50:36 +02:00
Alan Viverette
6259933ec9 Switch framework Holo references to Quantum.Light
Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
2014-04-01 14:57:39 -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
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
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
Jim Miller
94a52da03b Update clock to use 14dp instead of 12dp for status info.
Fixes bug 11195120

Change-Id: Ifa24ad80f64363e2cc815de67d2e99a27eef3425
2013-10-13 14:13:56 -07:00
Jim Miller
0c48689b08 Enable time format localization in keyguard
Fixes bug 11173871

Change-Id: Ife44c93b01770a3349343d034fe6adb1c6d66185
2013-10-11 17:50:35 -07:00
Jim Miller
38ab277ad4 Fix default clock localization in keyguard.
Uses new DateFormat.getBestDateTimePattern() to get localized format
string.

Fixes bug 11120830

Change-Id: If49a95ac4f222da7d16523c99476c5895326d71e
2013-10-08 15:32:09 -07:00
Adam Powell
31049d76c5 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
2013-10-07 16:14:17 -07:00
John Spurlock
bd95740648 Transparent system ui flags -> Translucent WM flags.
Migrate View.SYSTEM_UI_FLAG_TRANSPARENT_(STATUS/NAVIGATION) to
WindowManager.LayoutParams.FLAG_TRANSLUCENT_(STATUS|NAVIGATION).

Add associated public attrs for both new window flags:
  windowTranslucentStatus
  windowTranslucentNavigation

Introduce convenient four new themes that set translucent decor:
  Theme.Holo.NoActionBar.TranslucentDecor
  Theme.Holo.Light.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.NoActionBar.TranslucentDecor
  Theme.DeviceDefault.Light.NoActionBar.TranslucentDecor

Update PhoneWindowManager mechanism to plumb these values back to
SystemUI to drive bar mode state.

The new translucent flags come from the top fullscreen window, not
the focused window, so translucency does not change when opening
dialogs.

Imply some window-level system-ui visibility if one or both of these
new flags are present, specifically:
  FLAG_TRANSLUCENT_STATUS implies LAYOUT_STABLE, LAYOUT_FULLSCREEN
  FLAG_TRANSLUCENT_NAVIGATION implies LAYOUT STABLE, LAYOUT_HIDE_NAV

Rename all associated variable & resource names to use the term
translucent instead of transparent. (Retain the term semi-transparent
for the transient bar style).

Recents activity allowed to inherit translucent decor state via the
new PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR.  Compensating changes
to use the full screen area more appropriately.

Update keyguard to use new WM flags.

Update docs and various api artifacts.

Sanity-check fixes:
 - Toasts and alerts given stable layout.
 - Suppress nu-gradient when in transient (hidey) mode.
 - New translucent flags use top-fullscreen window, dialogs don't clear.

Bug:10674960
Bug:11062108
Bug:10987178
Bug:10786445
Bug:10781433
Change-Id: If667a55bea4cf5e008549524b9899197fab55ebe
2013-10-06 16:03:53 -04:00
Adam Powell
d6239b9229 Merge "Add a scrubber to keyguard; layout tweaks" into klp-dev 2013-10-03 22:35:35 +00:00
Jim Miller
b0da1e70ad Update default keyguard clock to new UX specification
Change-Id: I0d5f302d8bd5922acd45cfe1de42cb76cebc02e5
2013-10-03 15:19:21 -07:00
Adam Powell
f8895248e2 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
2013-10-03 14:55:18 -07:00
John Reck
da7af95d81 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
2013-10-01 14:52:03 -07:00
Michael Wright
02cefe27f3 Merge "Move slide to unlock circle up" into klp-dev 2013-10-01 01:46:53 +00:00
Michael Wright
f40ec0f00f Move slide to unlock circle up
Because HH is such a tall device, we need to move the circle up in
order to put it in the correct physical location.

Bug: 10900855
Change-Id: Idf90839e19f89784a96d110dd897bdacb58cb616
2013-09-30 18:38:36 -07:00
Amith Yamasani
e64318bda0 Adjust padding for keyguard pin entry keys
Increase padding on the left to more visually center the text within the touch target

Bug: 10074982
Change-Id: I2c622b0edd427a4b15f2f3b25a0a124853ed2367
2013-09-30 13:38:14 -07:00
Jim Miller
1962e26466 Fix keyguard widget pager accessibility
- announce when widget hovers over drop target
- announce when widget leaves drop target

Fixes bug 10151121

Change-Id: Ia36400f4e8651149590e004b82f66d43c9deaa08
2013-09-25 19:29:02 -07:00
Jim Miller
04b0840b2e Merge "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" into klp-dev 2013-09-25 22:41:26 +00:00
Jim Miller
138f25d756 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
2013-09-25 15:01:19 -07:00
Jim Miller
e38c8e28ba Fix accessibility for all-caps items in keyguard
This fixes a bug where TTS on all-caps items doesn't work for
Buttons.  The fix is to use translation (ala. TextView.setAllCaps()),
which just affects rendering and not the original text string.

Fix bug 10912259

Change-Id: Id8cba927819c979fe699353219d45f8b0f9f5aac
2013-09-24 15:54:04 -07:00
John Spurlock
257f283b0e 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
2013-09-23 15:59:15 -04:00
Jim Miller
c0b676dcc2 Add keyguard background scrim and protection around keyguard APIs
With this change, the system process will put up a scrim in the
event keyguard crashes to protect underlying content.

It also adds permission checks to prevent unathorized access
through the binder APIs.

Cleaned up KeyguardTestActivity to build separately.

Removed unused resources.

Change-Id: I9e370c6bfb7dca68eae9eae304c815fb84a753d2
2013-04-26 14:34:21 -07:00
Jim Miller
5ecd81154f 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
2013-02-27 17:27:53 -08:00