1876 Commits

Author SHA1 Message Date
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
Amith Yamasani
fe49af266e Merge "Temporarily disable multiuser for specific builds" into jb-mr1-dev 2012-10-12 13:13:25 -07:00
Danielle Millett
d95c659a1d Suppressing Face Unlock during phone call - fix b/7339069
Now that there isn't a swipe before launching face unlock, face unlock
needs to be suppressed during a phone call.  If it isn't it will popup
on top of the phone call screen.

Change-Id: Id6c4165bf4df606ebf396c151f1c80603d5abca3
2012-10-12 15:51:09 -04:00
Amith Yamasani
ff54920ed2 Temporarily disable multiuser for specific builds
Enable switching through power menu for other builds

Change-Id: I0bd8450583e078b0a83fb639337427ab84db5ab8
2012-10-12 12:44:49 -07:00
Uriel Rodriguez
94c7b14b1a Fix bug 7338736. Only starting FUL if the screen is on
Change-Id: Id767cf1394218a7e9dccabcdd9aae5af27b493b1
2012-10-12 15:17:25 -04:00
Jim Miller
0ff7f010f8 Change keyguard to use single-stage unlock.
Change-Id: Ica175a90ef4400941c7c4f05a494003b85d5e88c
2012-10-12 03:53:57 -07:00
Jim Miller
e955121d6e Partial fix for blank widget page
The code really shouldn't select the page until after the view has been
removed and had a chance to measure itself.  The fix is to post a message
to select the correct widget page.

Bug 7334209

Change-Id: I5c2d59b00b3c502893da6000154ce6cdc79ecc1c
2012-10-11 18:30:33 -07:00
Danielle Millett
8f89e6f8e6 Merge "Face Unlock is shown correctly during a phone call - fix b/7271718" into jb-mr1-dev 2012-10-11 12:07:38 -07:00
Adam Cohen
e60cdf1291 Merge "Final keyguard tablet layout integration" into jb-mr1-dev 2012-10-11 11:08:19 -07:00
Jeff Brown
4fc452795f Don't enable input dispatch until the screen is visible.
When we defer making the screen visible (waiting for the lock screen
to be ready) the screen may actually be on but covered by a black
surface.  We need to make sure to ignore any touches on the screen
during this time until the black surface is about to be removed.

Bug: 7318962
Change-Id: I50eb7dcf05295cd276925625240996c4b80c5fe2
2012-10-10 21:46:56 -07:00
Jim Miller
71b3cd56a6 Final keyguard tablet layout integration
This change integrates the finalized tablet layouts for keyguard.  It supports
both 7" and 10" tablets and makes some minor tweaks on phones.

Bug 7094419

Change-Id: I7b683382974de509e8045210544ea959db82e72d
2012-10-10 19:02:40 -07:00
Brian Colonna
6b17799b25 Merge "Suppressing FUL after user switch (fix b/7316467)" into jb-mr1-dev 2012-10-10 16:28:29 -07:00
Craig Mautner
0a75ed0805 Merge "Revert "Remove debugging statements before final ROM."" into jb-mr1-dev 2012-10-10 15:38:58 -07:00
Svetoslav Ganov
96179213ba No sound produced on global actions dialog pops up if no vibrator is present.
1. If the global gesture to enable accessibility is enabled there should
   be a haptic or auditory feedback after the global actions dialog pops up
   as a result of a long press on power. On devices with no vibrator an
   attempt to vibrate was performed evne if not hardware support exists
   As a result no sound was played because the it was assumed a haptic
   feedback was provided.

bug:7324903

Change-Id: Ic76db232d761a2899c1ca5f59ca55ff15ae575dd
2012-10-10 14:17:50 -07:00
Craig Mautner
64ecc0e101 Revert "Remove debugging statements before final ROM."
The bug cropped up again. Need these statements to pin it down.

This reverts commit f1f3b49b949af72692f7f85a1c1ef220e8630e30

Change-Id: Ie0548232daff32ee2541249b0950e23bd98c08d2
2012-10-10 13:22:10 -07:00
John Spurlock
59a9603664 Merge "Disable Camera + Search until USER_SETUP_COMPLETE." into jb-mr1-dev 2012-10-09 17:24:58 -07:00
Craig Mautner
0cd641001a Merge "Remove debugging statements before final ROM." into jb-mr1-dev 2012-10-09 17:18:30 -07:00
John Spurlock
fafdb6f9ca Disable Camera + Search until USER_SETUP_COMPLETE.
Check the status of Settings.Secure.USER_SETUP_COMPLETE for the current
user when showing the keyguard, disabling the Camera + Search touchpoints
entirely until the user makes it through the setup wizard.

Bug:7308791
Change-Id: Ic8e3596582c2aefc7fe15af1824ed6bfd541dffa
2012-10-09 19:10:33 -04:00
Danielle Millett
61413b5ed2 Face Unlock is shown correctly during a phone call - fix b/7271718
If the user was in the middle of a phone call and went to the lock screen
it would show a black box with an X, but Face Unlock wouldn't pop up and
the X was unresponsive.

There were a few issues causing this.  The X on the default view wasn't a
button, so it has been changed to a button which will go to the backup
lock.  The concept of show() and hide() in FaceUnlock.java are obsolete
because Face Unlock is no longer being overlayed on top of the backup so
there's isn't a black box to show or hide. In addition, since it's not being
overlayed, Face Unlock doesn't cover the backup lock so fading to the backup
looks janky.  The flip animation is more appropriate.

Change-Id: I730aa4bbce42b4656ee1bce61352b8aefbd6892d
2012-10-09 18:15:49 -04:00
Jim Miller
74bc9b6851 Merge "Implement music and user priority scheme in keyguard" into jb-mr1-dev 2012-10-09 15:12:44 -07:00
Brian Colonna
cc4104fd71 Suppressing FUL after user switch (fix b/7316467)
When switching users, Face Unlock starts in onResume().  However,
there is no signal to indicate when the user actually sees their
unlock screen.  This means Face Unlock could be running unseen, timing
out soon after it becomes visible, or letting the user in before they
see the preview.

This fix simply suppresses Face Unlock immediately after switching
users.  This is not the ideal behavior, but there is no easy way to
make Face Unlock start only after the unlock screen becomes visible.
When the user changes screens it becomes unsuppressed, so if they go
back to the multi-select widget screen or login, Face Unlock works as
expected and is only suppressed again when the user is switched.

Change-Id: I80a302b0aefc1dee3c2dc77557978cbe062de435
2012-10-09 17:50:46 -04:00
Craig Mautner
f1f3b49b94 Remove debugging statements before final ROM.
Change-Id: I18afd1a4c4f8f945308edc9b3af48b8c8adb3b9e
2012-10-09 13:23:08 -07:00
Winson Chung
e45c4e42d2 Merge "Increasing timeout for screenshot chord in keyguard. (Bug 6941775)" into jb-mr1-dev 2012-10-09 12:18:02 -07:00
Jim Miller
223ce5c732 Implement music and user priority scheme in keyguard
This fixes an issue where the music transport hangs around indefinitely.
It used to get dismissed when music stopped playing and a notification came in.
This was due to a bug in JB.

Now that the bug is fixed,  the music control hangs around indefinitely until
the application actually releases it.

Since we have widget support, we can now leave the transport control in place
for as long as it's possible to resume music (state = playing | paused).

If music is playing, we start with the trasport showing
If not, and multi-user is enabled for more than one user, we show the user switcher.
Otherwise, we show the clock.

Bug 7290707

Change-Id: I6f0553a64b7b66bac7b35eca6d8a8793c15b918c
2012-10-08 21:48:30 -07:00
Winson Chung
1cea2f3d87 Increasing timeout for screenshot chord in keyguard. (Bug 6941775)
Change-Id: Ie846ce18878f9597e9f0cd97d78322b59042d43c
2012-10-08 20:42:31 -07:00
Brian Colonna
9ded0e1d48 FUL fallback is no longer account login - fix b/7280196
When Face Unlock failed the maximum number of times (3), it was asking
for account login when it should have been asking for the backup lock
that the user chose when setting up Face Unlock.

This change splits the isBiometricUnlockEnabled() function into two.
One of them strictly checks whether it exists and is selected.  The
other one checks whether too many attempts have occurred.  When
deciding which backup to choose, the decision is now based only on
whether Face Unlock is enabled.  Checking whether too many attempts
had occurred caused the bug because the check indicated it had already
'fallen back' to pattern, and the backup for pattern was being
selected instead of the backup for biometric unlock.

Change-Id: I6b9cf2c5155e8c14933cbfc8f5d58ebc007e53cb
2012-10-08 13:02:41 -04:00
Dianne Hackborn
ec799e883c Merge "More on #7296510 Transition from lock screen to dreaming is really bad" into jb-mr1-dev 2012-10-07 15:30:30 -07:00
Dianne Hackborn
297d789d44 More on #7296510 Transition from lock screen to dreaming is really bad
The final iteration of that change was a little too aggresive in
deciding when it turns off the dream's enter animation, so it was
doing this always instead of just when it needed to (when it is
being displayed to hide the lock screen).

This change fixes a dumb typo that was causing the dream to always
turn off its own animation (duh!) and tweaks the logic for deciding
when the dream should be able to cause the lock screen to hide to
better ensure that it is shown before the lock screen gets hidden.

Change-Id: Ie73a5be9ee597713644fb2a0202f36c32b4f1fca
2012-10-07 15:14:45 -07:00
Jeff Brown
c7505bc9dd Increase lock screen timeout when on custom widget page.
Bug: 7290676
Change-Id: I93c48fb24adb24d16ec278a4fdd51a13a85a96c3
2012-10-06 14:25:09 -07:00