1654 Commits

Author SHA1 Message Date
Jim Miller
e14833c8e7 am 0f261b7e: am 52c55cd0: am d6523da1: Merge latest prototype changes into the framework
* commit '0f261b7ea81efe85d64059826cdaeee6a585aeed':
  Merge latest prototype changes into the framework
2012-10-26 18:20:03 -07:00
Jim Miller
325a0a0cf4 am bd5c198d: am 13056c98: am 28f1f5e6: Merge "Get basic keyguard working in new branch" into jb-mr1-lockscreen-dev
* commit 'bd5c198dd5e73c22447636b7faaf8951585b2d12':
  Get basic keyguard working in new branch
2012-10-26 18:19:52 -07:00
Jim Miller
52c55cd0d0 am d6523da1: Merge latest prototype changes into the framework
* commit 'd6523da1ad7bae805a3dbea8d7b398d86cd3c181':
  Merge latest prototype changes into the framework
2012-10-26 15:24:28 -07:00
Jim Miller
13056c982a am 28f1f5e6: Merge "Get basic keyguard working in new branch" into jb-mr1-lockscreen-dev
* commit '28f1f5e6f9a9f4a8a5e82fcb58c8dfadca7b5f93':
  Get basic keyguard working in new branch
2012-10-26 15:24:15 -07:00
Jeff Brown
74bea0665a Disable HDMI rotation lock.
We used to lock the rotation to landscape when HDMI
was plugged in because we did not have a mechanism
for independently rotating secondary displays.
Now as part of the multi-display work we do have
a way to do this so we can turn off the special HDMI
rotation lock.

Bug: 7410631
Change-Id: I7948e92ebe6312a1e2eeeb91250259cd67a00fe0
2012-10-25 16:22:22 -07:00
John Spurlock
3e98b9afe6 Revert part of fix for b/7377776 to fix b/7411356.
This means the visual glitch is possible again, but reduced since
the layout transitions are disabled.

It's more important to bring back nav buttons for incoming calls
(for the secure, screen off case).

Bug: 7411356
Change-Id: I83005a77930ec7f70a613b3396f85ab1a5fdd96c
2012-10-25 16:15:30 -04:00
Svetoslav Ganov
e1655c980d Merge "When A11y is on, use a longer interval between lockout announcements." into jb-mr1-dev 2012-10-23 17:35:24 -07:00
alanv
c2798a916e When A11y is on, use a longer interval between lockout announcements.
Bug: 7384471
Change-Id: I72ac1fe7646588c9c7185cb0186f1e990b3a2f72
2012-10-23 17:26:17 -07:00
John Spurlock
1bbd49d72e Fix nav bar glitch when quickly turning screen off then on.
Keyguard now disables all navbar buttons when turning screen off
instead of only recents.

Navbar is told about screen off/on and disables the layout transition
animation on screen off - if the user quickly turns the screen back
on they do not see the end of the fade out animation.

Bug:7377776
Change-Id: I96a050d58c6c9ce8537f50408655006fadbfcd4f
2012-10-22 17:10:25 -04:00
Amith Yamasani
cd75706117 System server should always send broadcasts to a specific or all users
Bug: 7368245

Log a warning if the system process calls unqualified sendBroadcast()
and other calls.

As a result of the logging above, found a few more method calls such as
bindService() that would benefit from being more explicit to avoid
future confusion and reduce the log warnings.

Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
2012-10-22 12:38:53 -07:00
Jim Miller
d6523da1ad Merge latest prototype changes into the framework
Specifically, this adds the following functionality:
- portrait layout on phones
- new KeyguardViewStateManager
- new SlidingChallengeLayout
- some event wiring.

Change-Id: Ie4491416f591b6d4002d33e9803a764a8ae730f6
2012-10-21 17:45:09 -07:00
Jim Miller
838906b165 Get basic keyguard working in new branch
This merges the changes from the proto app into the framework.
Basic functionality tested on phone in portrait:

- Slide
- Pattern
- PIN
- Password (wonky)
- SIM PIN

Change-Id: I21b2c30cf05dc01ffb20948f41a044e7af1db25f
2012-10-19 18:42:56 -07:00
Dianne Hackborn
7ad4438414 Fix issue #7353900: Brief flash of home screen while dream starts on lock screen.
Not very clean, this has a special hack in the window manager to
redo layout when a dream window is shown.  After MR1 we should clean
this up (and the various other special dream hacks).

Change-Id: Ic1a5a2b10a0a07b4a5dccdbf0736b614ec06dd4a
2012-10-19 16:40:13 -07:00
Jeff Sharkey
8d9a1f66d9 More migration to Global settings.
Bug: 7375796
Change-Id: I3954ce141ad30073896090a28eee743ba15fd736
2012-10-18 15:38:14 -07:00
Jeff Brown
586503d51f Merge "Add special mirroring modes for demonstration purposes." into jb-mr1-dev 2012-10-18 00:06:48 -07:00
Craig Mautner
c6ccb29b9a Merge "Call requestFocus and ensure that screenOn is set." into jb-mr1-dev 2012-10-17 20:25:12 -07:00
Jeff Brown
27f1d674bf Add special mirroring modes for demonstration purposes.
Assume rotation of HDMI display is portait.
$ adb shell setprop persist.demo.hdmirotation portrait

Don't lock rotation while HDMI is plugged in.
$ adb shell setprop persist.demo.hdmirotationlock false

Hide secondary displays from apps but continue mirroring to them.
$ adb shell setprop persist.demo.singledisplay true

Bug: 7326281
Change-Id: I8f9a3b0bc19821a3a01043b0f516806dac82ce53
2012-10-17 18:41:31 -07:00
Craig Mautner
904732c457 Call requestFocus and ensure that screenOn is set.
When maybeCreateKeyguardLocked was called from methods other than
show(), the requestFocus() call on the new KeyguardHostView was
never made.

At boot time the screen on notification was not propagated to
KeyguardViewManager because the showListener callback was null.
This passes on the notification but does not make the callback
if it is null.

Bug: 7299119 fixed.
Change-Id: Iaf058954473dc63fe4864ab1f435db4463b1110e
2012-10-17 15:35:43 -07:00
Fabrice Di Meglio
e9a33c6098 Merge "Fix bug #7363252 Popup and Dialog UI widgets should be RTL aware" into jb-mr1-dev 2012-10-17 11:18:13 -07:00
Dianne Hackborn
dec9e1640a Merge "Fix issue #7343719: GlobalActions dialog (power off / airplane mode / sound off)" into jb-mr1-dev 2012-10-17 10:45:08 -07:00
Fabrice Di Meglio
cf12897cf5 Fix bug #7363252 Popup and Dialog UI widgets should be RTL aware
- set the Configuration's layout direction in ViewRootImpl instead of PhoneWindow$DecorView
- then remove unecessary API on ListPopupWindow for passing the layout direction

Change-Id: Ia2c6e4aa8cb82aed9b088bc3b8004ea0a1ded1f3
2012-10-16 20:59:04 -07:00
Dianne Hackborn
bef0f617a0 Fix issue #7343719: GlobalActions dialog (power off / airplane mode / sound off)
does not show if you press on power button when the "low battery" dialog is showing up

Always put the global actions dialog in the keyguard dialog layer (above
the keyguard).  I don't see any reason to have it change layers based
on whether the keyguard is showing.

Change-Id: I1bd3600af9f115d662d2a4783f835e234db1b7f0
2012-10-16 18:34:48 -07:00
Steven Ross
e4728b15cb Merge "Stopping Face Unlock immediately on detaching from window fixes 7338808" into jb-mr1-dev 2012-10-16 17:44:53 -07:00
Jim Miller
48994ce945 Merge "Fix missing layout parameters in keyguard." into jb-mr1-dev 2012-10-16 17:28:08 -07:00
Jim Miller
bdffd5c3a1 Fix missing layout parameters in keyguard.
This addresses crashes caused by an upcoming change to crash
when missing layout_width and layout_height attributes are missing.

Change-Id: I71044b4623d04cab41f4aee6a7a5c01b67b0d2a5
2012-10-16 13:55:13 -07:00
Steven Ross
9a9f4ce1e2 Stopping Face Unlock immediately on detaching from window fixes 7338808
The refactoring broke my fix for 7222226.  We need to stop Face Unlock without
any messaging delay when the window is detached to avoid it starting with an
invalid window, or stopping right after it restarts.

Change-Id: Iea23989ec2ab3ad7d1a57e2d1fb85163a6396024
2012-10-16 13:56:37 -04:00
Craig Mautner
f6dbd61b10 Merge "Always layout Keyguard on config change." into jb-mr1-dev 2012-10-15 22:05:55 -07:00
Jim Miller
3398752832 Merge "Fix inoperative "Forgot pattern" button when face unlock enabled" into jb-mr1-dev 2012-10-15 18:37:00 -07:00
Jim Miller
63f9b81795 Fix inoperative "Forgot pattern" button when face unlock enabled
This fixes a bug where the forgot pattern button wasn't working because
the logic for face unlock was interfering with determining the proper
backup to use.

The fix:
- adds a new state to SecurityMode so we have an initial condition
we can check for.
- passes the current mode to SecurityModel.getBackupSecurityMode() so
it relies on the current state.
- prevents face unlock from invoking callbacks that change state
once we're no longer showing face unlock.

Fixes bug 7346989

Change-Id: I4e64515efbbad712f11c820e690b458f352bf46c
2012-10-15 18:16:24 -07:00
Svetoslav Ganov
25160a6f35 Merge "Announce changes to the keyguard security message for accessibility." into jb-mr1-dev 2012-10-15 17:15:44 -07:00
alanv
f6d1afd141 Announce changes to the keyguard security message for accessibility.
Bug: 7352702
Change-Id: I790d7be08b222ae3cb76459064802f587c3e6f30
2012-10-15 15:37:44 -07:00
Adam Cohen
ac8a59d3d3 Fix issue where pin field doesn't have focus (issue 7348937)
Change-Id: Ia926765271251248701416c001e2e73131cdf4ad
2012-10-15 14:12:55 -07:00
Craig Mautner
a3f4bf531f Always layout Keyguard on config change.
Add Keyguard to list of windows that can't be hidden by keyguard.

Don't assign Configuration to window until layout has had a chance
to compare it to window's existing Configuration.

Bug: 7094175
Change-Id: I99a9fd4af9a31871fe130db7b6bdf49bd51a6092
2012-10-15 13:45:17 -07:00
Jim Miller
87d57952af Minor layout tweaks and bug fix in keyguard
- fix wrong string in SIM PUK unlock
- use buttonBar style for "emergency" and "forgot pattern" buttons

Bug 7341237

Change-Id: Id5593b54c345e3f869b6febc8554da01e7cb319e
2012-10-15 02:10:57 -07:00
Adam Cohen
6f131416ba Fixing issues with pattern recovery / account view (issue 7341237):
-> Recovery button should only appear if account present
-> Recovery button should appear at bottom
-> Account view should have emergency call button
-> Account view should not show the clock / status area

Change-Id: Id12e8219f3fc6ecb14e82c5ec6ea4b3e28ed772d
2012-10-14 21:25:08 -07:00
Adam Cohen
6dbf8610e9 Fix for NPE with pattern recovery (issue 7341237)
-> Dealt with this NPE, and guarded against all related NPEs (which probably
   can't happen, but given the stakes of a system crash, this is safer).

Change-Id: I3c207839ae0279033b6f3dad791d710b19415439
2012-10-14 17:26:31 -07:00
Jim Miller
68c2489457 Disable security view transitions in keyguard
Now that we have a single stage unlock, there's no need for the transition. This
was causing unnecessary flickering to happen in views where we add the security view
just after inflation, which triggers the animation.

Fixes bug 7343632

Change-Id: I5bb8e37df66e4d96f00719e318424d46bf0e2e5a
2012-10-14 05:07:14 -07:00
Adam Cohen
3b9f9bceea Merge "Fix inability to start pattern outside view bounds (issue 7344325)" into jb-mr1-dev 2012-10-13 20:40:33 -07:00
Adam Cohen
258d9fc6c6 Fix inability to start pattern outside view bounds (issue 7344325)
-> At the same time, disabling the abilit to page the widget region
   and see the overscroll effect

Change-Id: Icd9d9e253404bfbfc411d8958f7c634ca4e37279
2012-10-13 20:24:26 -07:00
Adam Cohen
c4c562223b Merge "Fix blank clock (issue 7344512)" into jb-mr1-dev 2012-10-13 19:34:45 -07:00
Adam Cohen
33387b1bee Merge "Fix edge case with status message (issue 7343848)" into jb-mr1-dev 2012-10-13 19:23:49 -07:00
Adam Cohen
7e39410f95 Fix blank clock (issue 7344512)
Change-Id: Iad23f049fcc31ad8f08c99e7c3088e1523de1d45
2012-10-13 19:10:56 -07:00
Adam Cohen
61ccc162a0 Fix edge case with status message (issue 7343848)
-> When an unimportant message is set, we need to clear the security string
   so that battery / owner info takes precedence at that point.

Change-Id: I3f86b0c2cc8fb2fb0023fce77a7725d8ada96d9e
2012-10-13 17:04:44 -07:00
Adam Cohen
32f9e8ffdd Merge "Only showing important security messages in status area (issue 7341795)" into jb-mr1-dev 2012-10-13 16:38:48 -07:00
Adam Cohen
0a4f900463 Only showing important security messages in status area (issue 7341795)
Change-Id: Ie2fcd4dd7130b4684223d0442f50e76435f61768
2012-10-13 16:33:27 -07:00
Adam Powell
85341a7667 Merge "Fix keyguard dimensions; IME state for password view; layouts" into jb-mr1-dev 2012-10-13 01:44:13 -07:00
Adam Powell
70bc9f24ce Fix keyguard dimensions; IME state for password view; layouts
Fix a bug where ordering during inflation caused us not to set a
keyguard callback early enough to properly modify window flags. Add a
gross hack to work around this for now.

Fix status layouts to scale a bit more gracefully in the presence of
an IME.

Fix password layouts to scale more gracefully in the presence of an
IME

Bug 7343312
Bug 7341795
Bug 7342963
Bug 7343089

Change-Id: Ifb2c06defef11e8f7f9d0e09855632ed491bb31c
2012-10-13 01:25:51 -07:00
Jim Miller
211a18e2d6 Merge "Partial fix for blank widget page" into jb-mr1-dev 2012-10-13 01:16:32 -07:00
Jim Miller
ea06c3ed6f Disable loading widgets in single-stage keyguard
Change-Id: I8975c3a8e6ba060987fda2d0d4b9fc8dc0686d06
2012-10-12 17:55:07 -07:00
Danielle Millett
8ec3ff8dcc Merge "Suppressing Face Unlock during phone call - fix b/7339069" into jb-mr1-dev 2012-10-12 13:16:38 -07:00