1045 Commits

Author SHA1 Message Date
Brian Colonna
81cdada882 Fix 5437700: Underlying backup method was exposed
At one point we added a timeout to the black box that covers the
underlying backup unlock method so if Face Unlock doesn't start or
crashes, the user will see the backup method rather than being stuck
looking at a black box.  However, when powering the phone on and off
quickly, the message to time out the black box could be received at
the wrong time, causing it to expose the underlying backup method
when it shouldn't.

This solution clears the existing SHOW/HIDE messages from the
handler's message queue before sending a new SHOW/HIDE message.  In
particular, it clears out a delayed HIDE message when a SHOW is sent
so the SHOW can't be undone by a pending delayed HIDE message.

Also, logging errors for a couple of exceptions instead of rethrowing
so we can gracefully go to the backup in these cases.

Patch set 2 fixes problem where rare exceptions could prevent ever
binding to the service again because mBoundToFaceLockService was still
true.

Change-Id: Ieb7b6723161070f509277f67dc9ef100cf7c1aa6
2011-10-13 12:14:49 -04:00
Brian Colonna
42dd441417 am a324c9d0: am 63c8a47b: Merge "Fixes 5446301" into ics-mr0
* commit 'a324c9d05dc1afac36c0f018c7b90f1083ad6a6e':
  Fixes 5446301
2011-10-12 21:11:50 -07:00
Jim Miller
d7766658ed am 4defcef1: am 207c6731: Merge "Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens." into ics-mr0
* commit '4defcef1cb643e998b64c594b94af287de317a41':
  Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.
2011-10-12 21:11:47 -07:00
Jeff Brown
8324d388a8 am 2b5b83bd: Merge "Improve screenshot chord debouncing. Bug: 5011907"
* commit '2b5b83bda80253a6ff0925ae65da636ed2856def':
  Improve screenshot chord debouncing. Bug: 5011907
2011-10-12 20:43:15 -07:00
Brian Colonna
a324c9d05d am 63c8a47b: Merge "Fixes 5446301" into ics-mr0
* commit '63c8a47b7fb8244e8ee9fbcf40a77a30a9c98ca9':
  Fixes 5446301
2011-10-12 19:15:48 -07:00
Brian Colonna
63c8a47b7f Merge "Fixes 5446301" into ics-mr0 2011-10-12 19:14:03 -07:00
Jim Miller
4defcef1cb am 207c6731: Merge "Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens." into ics-mr0
* commit '207c67315c8668b72cbb7bd370f1d6c8479eabd4':
  Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.
2011-10-12 18:52:06 -07:00
Jim Miller
aef555bcf2 Fix 5444675: Fix vibrate regression on Pattern and PIN unlock screens.
This fixes a regression caused by a resource change to the vibrate
pattern.  It used to contain an array of delays and values.  Now it has
another mode with just one value with an associated change to the vibrate
API.

Instead of using a custom vibration pattern, it now just follows the system
vibrate pattern for HapticFeedbackConstants.VIRTUAL_KEY, which is shared by the
home key, among other things.

Change-Id: Ib58493a96a42383955ae59f8ac3865bb46a86a31
2011-10-12 17:44:08 -07:00
Steven Ross
4841e29d0f Fixes 5446301
If the user is making an emergency call, don't bring up Facelock
Has the side effect of not bringing up Facelock if they cancel dialing

Change-Id: I5d23e89b7f687f260670d41f1cc55ebf2a135181
2011-10-12 18:31:22 -04:00
Jeff Brown
d5bb82d18c DO NOT MERGE. Improve screenshot chord debouncing.
Bug: 5011907

Introduce a 150ms delay in handling volume down keys
while waiting to see if a power key will follow.

Don't trigger the screenshot chord if both volume up and
volume down are pressed together.

Don't trigger the long-press power menu if volume keys are
also pressed.

Require the user to press both keys in the chord within
the debounce time and continue long-pressing them in order
to trigger the screenshot action.

Change-Id: I248968d37b73c09d6d08e7f62667c443eba32da0
2011-10-12 15:05:59 -07:00
Jeff Brown
905805ad7c Improve screenshot chord debouncing.
Bug: 5011907

Introduce a 150ms delay in handling volume down keys
while waiting to see if a power key will follow.

Don't trigger the screenshot chord if both volume up and
volume down are pressed together.

Don't trigger the long-press power menu if volume keys are
also pressed.

Require the user to press both keys in the chord within
the debounce time and continue long-pressing them in order
to trigger the screenshot action.

Change-Id: I248968d37b73c09d6d08e7f62667c443eba32da0
2011-10-12 14:34:23 -07:00
Daniel Sandler
ec3f05e707 Stop enabling all disabled status bar features from GlobalActions. (DO NOT MERGE)
Leaky singleton bug! GlobalActions, recents, and the
keyguard are all in the same process and therefore receive
the same StatusBarManager instance. Therefore, their calls
to enable() and disable() clobber one another.

Bug: 5423182
Change-Id: Ie535d88f5a5bb940dabee5f1ac176027e1793c5c
2011-10-12 16:53:48 -04:00
Adam Powell
d42c029100 am b24f45d5: am 1a4c4334: Merge "Fix bug 5396097 - menu theme consistency" into ics-mr0
* commit 'b24f45d542d2838c6f910e4fd57dc5bf738a1ffd':
  Fix bug 5396097 - menu theme consistency
2011-10-12 12:37:47 -07:00
Adam Powell
b24f45d542 am 1a4c4334: Merge "Fix bug 5396097 - menu theme consistency" into ics-mr0
* commit '1a4c4334f02152c96cfc71136dc31085826c6894':
  Fix bug 5396097 - menu theme consistency
2011-10-11 15:33:33 -07:00
Nick Pelly
24d7b5f22a Send ACTION_USER_PRESENT when provisioning is completed.
This is needed for application to know when the keyguard becomes
unlocked, because isKeyguardLocked() is typically true while
provisioning (setup wizard), but ACTION_USER_PRSENT was
not sent when it transitions to false after provisioning.

Bug: 5436867
Bug: 5430833
Change-Id: Icae13ff9cab84774a002a426eb9cb353fa1dc530
2011-10-11 13:50:33 -07:00
Adam Powell
538e565c06 Fix bug 5396097 - menu theme consistency
Fix a bug where action bar menus were using the wrong context to
inflate stock views. This was causing them to use the action bar's
themed widget context instead of the current theme's specific action
bar items.

Note that action views in the menu will still be inflated using the
themed widget context. This can produce some weird side effects if
the action views use theme attributes relating to these action bar
item attributes.

Change-Id: Ied3614d1fedb10a0f5366bbe7b90cd5f2f1ff969
2011-10-11 13:49:28 -07:00
Daniel Sandler
fe1d0ace8d am b545851d: Merge "Stop enabling all disabled status bar features from GlobalActions."
* commit 'b545851dd59766f5e9471a08fdd7b60318492eb9':
  Stop enabling all disabled status bar features from GlobalActions.
2011-10-11 12:02:40 -07:00
Daniel Sandler
b545851dd5 Merge "Stop enabling all disabled status bar features from GlobalActions." 2011-10-11 12:01:15 -07:00
Jim Miller
81ff5596ee am 12b6fa1d: Merge "Fix 5386408: Fix battery state information propagation in Lock Screen"
* commit '12b6fa1da82567b9a36664b759d10464f4970e6f':
  Fix 5386408: Fix battery state information propagation in Lock Screen
2011-10-10 22:07:58 -07:00
Jim Miller
baa2812b37 Fix 5386408: Fix battery state information propagation in Lock Screen
This fixes a bug where Lock Screen would sometimes inappropriately show
"charged" if it took a while for Lock Screen to get an update on the
battery state.  It now starts with the state set to BATTERY_STATUS_UNKNOWN
so we properly update listeners when we finally get battery information
in handleBatteryUpdate().

Change-Id: I71018a233f38b2f897ff2e6592d7e310550fa016
2011-10-10 22:02:54 -07:00
Jim Miller
2b29f307b8 am 2b78c700: Merge "Fix 5406921: Register for receiving phone state changes when KGSVM gets created."
* commit '2b78c7006aabe9473ad7da932b0bc221684013e4':
  Fix 5406921: Register for receiving phone state changes when KGSVM gets created.
2011-10-10 16:32:41 -07:00
Steven Ross
004dd5f6ac am 51ee6a7a: Merge "Fixes 5429869 Only displaying FaceUnlock when window is focused"
* commit '51ee6a7ad9ca66451e2c17c9ac169920a30bb692':
  Fixes 5429869 Only displaying FaceUnlock when window is focused
2011-10-10 16:30:41 -07:00
Jim Miller
2b78c7006a Merge "Fix 5406921: Register for receiving phone state changes when KGSVM gets created." 2011-10-10 16:30:06 -07:00
Steven Ross
c3892c525d Fixes 5429869 Only displaying FaceUnlock when window is focused
Makes sure that the screen is on and the window is focused before bringing up FaceUnlock

Change-Id: I4c138c5c60fde217b6243627bd043194278835c2
2011-10-10 06:46:20 -04:00
Daniel Sandler
d27a0cb96e Stop enabling all disabled status bar features from GlobalActions.
Leaky singleton bug! GlobalActions, recents, and the
keyguard are all in the same process and therefore receive
the same StatusBarManager instance. Therefore, their calls
to enable() and disable() clobber one another.

Bug: 5423182
Change-Id: I724d17dfc5289141690560cc8ff83cc8543b25b1
2011-10-09 21:21:04 -04:00
Dianne Hackborn
be870e81e8 am ba8ecd20: Merge "Fix how we hide and show the nav bar."
* commit 'ba8ecd206cc6f175767f952d380c88f70ece04cf':
  Fix how we hide and show the nav bar.
2011-10-07 15:14:55 -07:00
Dianne Hackborn
ba8ecd206c Merge "Fix how we hide and show the nav bar." 2011-10-07 15:12:17 -07:00
Steven Ross
074a6a856a am 705a6642: Merge "Fixing alarm clock bug"
* commit '705a6642c40156648d9b426e142975cf86c93bd8':
  Fixing alarm clock bug
2011-10-07 14:38:05 -07:00
Dianne Hackborn
df89e65bf0 Fix how we hide and show the nav bar.
The PhoneWindowManager is now responsible for hiding and showing
the nav bar.

For hiding, it just moves it off the screen (easy way to get a
nice slide animation on and off).  At the same time, we use a
new WM facility to put up a fake input window to capture all
touch events.

When a touch event is received, we force the system UI to clear
the navigation hiding bit so it will be shown again.

This removes a bunch of code from the system UI for hiding and
showing the nav bar.  Also removes the code calling from userActivity()
to the system UI, which was bad.  (Also no longer using userActivity()
fixes bugs around re-showing the nav bar due to key presses and
other wrong things.)

Change-Id: I8c3174873b5bcaa36a92322a51e8f7993e88e551
2011-10-07 14:32:01 -07:00
Jim Miller
19eb7014bd Fix 5406921: Register for receiving phone state changes when KGSVM gets created.
This fixes a bug where the state wasn't being updated because it wasn't
registered for KeyguardUpdateMonitor state changes when the view first created, like on first boot.

Change-Id: Ic6838afffd0de51decdc43a8e8a796696aed49df
2011-10-07 13:47:46 -07:00
Steven Ross
9c2df26179 Fixing alarm clock bug
The alarm clock doesn't actually hide the view until AFTER Facelock starts
hence the need to kill Facelock after it has started when the even is caught
Also fixing phone black box background in case the user cancels the call quickly

Also eliminating blackscreen after 4s for multiple reasons
so people can login if lockscreen locks up
also so cancel fade is to the backup lock

Change-Id: I8162ff67453038559f289408f4f0d452d4f79ab3
2011-10-07 16:11:08 -04:00
Dianne Hackborn
3c32c7a92e am 85b9edf2: Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately"
* commit '85b9edf2da0534bc53d139bb88cda8866d265afe':
  Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
2011-10-06 15:21:12 -07:00
Dianne Hackborn
85b9edf2da Merge "Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately" 2011-10-06 15:15:32 -07:00
Dianne Hackborn
9a230e01a1 Fix issue #5371530: SYSTEMUI_FLAG_HIDE_NAVIGATION reasserts itself immediately
This cleans up how ui flags are managed between the client and window manager.
It still reports the global UI mode state to the callback, but we now only clear
certain flags when the system goes out of a state (currently this just means the
hide nav bar mode), and don't corrupt other flags in the application when the
global state changes.

Also introduces a sequence number between the app and window manager, to avoid
using bad old data coming from the app during these transitions.

Change-Id: I40bbd12d9b7b69fc0ff1c7dc0cb58a933d4dfb23
2011-10-06 14:57:37 -07:00
Jeff Brown
b070aff670 am 219f3c71: Merge "Make SENSOR orientation modes trump rotation lock. Bug: 5371750"
* commit '219f3c71269ff0bd8949b88af07f92c4e4eddc67':
  Make SENSOR orientation modes trump rotation lock. Bug: 5371750
2011-10-05 17:27:49 -07:00
Jeff Brown
219f3c7126 Merge "Make SENSOR orientation modes trump rotation lock. Bug: 5371750" 2011-10-05 17:24:29 -07:00
Jeff Brown
4dfce20cac Make SENSOR orientation modes trump rotation lock.
Bug: 5371750

Change-Id: I4d18b6c8ba1de0afd5929ddb8d7123272e35fbe2
2011-10-05 16:12:07 -07:00
Brian Colonna
9fbc048b06 am fe7fcd23: Merge "Added callback for Face Unlock service to poke the wakelock"
* commit 'fe7fcd23d5b306db7b1fb31c901cbcbb6b66db1d':
  Added callback for Face Unlock service to poke the wakelock
2011-10-05 14:00:32 -07:00
Brian Colonna
0c422a72ed Added callback for Face Unlock service to poke the wakelock
Change-Id: I76a4e0f8ac0fe17e39195f4593fac7e36d7281f0
2011-10-05 16:13:18 -04:00
Steven Ross
45a976440c am 94d2f366: Merge "Killing Facelock when a phonecall comes in"
* commit '94d2f366f971bc052da9856e9f8867094e738cd1':
  Killing Facelock when a phonecall comes in
2011-10-05 12:47:59 -07:00
Steven Ross
dce0bb62ce Killing Facelock when a phonecall comes in
This needs to actively listen for phonecall callbacks,
or calls that come in while Facelock is active will drop.

Change-Id: I818433e5de9085f0357f61d6a04b395e58871396
2011-10-05 13:51:45 -04:00
Jim Miller
656d086c1d am 85b10b0d: Fix 5317948: Don\'t display facelock when transport controls are showing.
* commit '85b10b0dd0e568699f349ba500ddc8d3e6c1c12d':
  Fix 5317948: Don't display facelock when transport controls are showing.
2011-10-05 06:37:26 -07:00
Jim Miller
85b10b0dd0 Fix 5317948: Don't display facelock when transport controls are showing.
Change-Id: I0061fa9ec184846b0ed82c977a2e48b36cb079af
2011-10-04 21:14:15 -07:00
Ben Komalo
f98a21ee7f am a1aebdf7: Merge "New PIN unlock screen layout."
* commit 'a1aebdf787443413ba870fc9203639405a5ff7bf':
  New PIN unlock screen layout.
2011-10-04 14:29:51 -07:00
Ben Komalo
a1aebdf787 Merge "New PIN unlock screen layout." 2011-10-04 14:27:24 -07:00
Amith Yamasani
ea7f9f473d am e5320a02: Merge "Tie the lockscreen sounds with the ringer volume."
* commit 'e5320a0270816122ba7939431cc80ed37a5b691b':
  Tie the lockscreen sounds with the ringer volume.
2011-10-04 13:04:12 -07:00
Amith Yamasani
e5320a0270 Merge "Tie the lockscreen sounds with the ringer volume." 2011-10-04 13:02:31 -07:00
Ben Komalo
51ea88a86e New PIN unlock screen layout.
Moves "OK" to the right and moves backspace up to beside the text field.

Bug: 5255976
Change-Id: I1b97ee108c9f10f11e5feb361810150bd6dbc776
2011-10-03 18:29:39 -07:00
Danielle Millett
24a936febd am fee5cb54: Merge "Reworked biometric weak check functions"
* commit 'fee5cb54af9c86c045f1cb5d129c2cc395fe56db':
  Reworked biometric weak check functions
2011-10-03 17:39:54 -07:00
Danielle Millett
fee5cb54af Merge "Reworked biometric weak check functions" 2011-10-03 17:38:47 -07:00