Commit Graph

239 Commits

Author SHA1 Message Date
Mike Lockwood
d7fa591521 am 129b69f3: Handle KeyguardViewMediator.setHidden() asynchronously to avoid deadlocks.
Merge commit '129b69f368bd30cb1caa75cf13961b5b44982d4b' into eclair-mr2

* commit '129b69f368bd30cb1caa75cf13961b5b44982d4b':
  Handle KeyguardViewMediator.setHidden() asynchronously to avoid deadlocks.
2009-11-17 18:07:42 -08:00
Mike Lockwood
9200a3987e Handle KeyguardViewMediator.setHidden() asynchronously to avoid deadlocks.
Fixes b/2267046 (Could not shut off alarm; then device reboot)

Change-Id: Id8f3e24edc5e1242a39c5d43bd549b5cb05abb36
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-17 20:25:58 -05:00
Jim Miller
0fd1f53cdf am 263bdabc: Fix 2209086: Fix visual glitches in lockscreen.
Merge commit '263bdabc8770fed981bb52f8e3ff4110dfefc0e1' into eclair-mr2

* commit '263bdabc8770fed981bb52f8e3ff4110dfefc0e1':
  Fix 2209086: Fix visual glitches in lockscreen.
2009-11-17 00:12:23 -08:00
Jim Miller
5425930bd1 Fix 2209086: Fix visual glitches in lockscreen.
Call new setHoldAfterTrigger() method to enable feature added in https://android-git.corp.google.com/g/#change,33380.
2009-11-16 23:13:53 -08:00
Jim Miller
5abfc111a2 am a7a4e518: Fix 2209086: Fix missing callback that was preventing right tab bar text from updating.
Merge commit 'a7a4e518a61dc09e281d1072fca8ccca864d289a' into eclair-mr2

* commit 'a7a4e518a61dc09e281d1072fca8ccca864d289a':
  Fix 2209086: Fix missing callback that was preventing right tab bar text from updating.
2009-11-15 14:51:16 -08:00
Daniel Sandler
9db384c789 am f31bb1af: Fix a race condition determining whether password fallback mode is allowed.
Merge commit 'f31bb1aff8005525749df7b519fd60ef08157bfc' into eclair-mr2

* commit 'f31bb1aff8005525749df7b519fd60ef08157bfc':
  Fix a race condition determining whether password fallback mode is allowed.
2009-11-15 14:49:47 -08:00
Jim Miller
c119f1299b Fix 2209086: Fix missing callback that was preventing right tab bar text from updating. 2009-11-15 13:35:49 -08:00
Daniel Sandler
16541e4f88 Fix a race condition determining whether password fallback mode is allowed.
The fix is in LockPatternKeyguardView, whose constructor was
firing off an asynchronous request to the AccountManager to
find out about the specifics of the account on the device.
(If it's SAML, we don't have the password in cleartext and
therefore can't use it to unlock.) Unfortunately, if the
AccountManager responds too quickly, we get the answer (in
LPKV.run()) before the UnlockScreen has even been
instantiated (later in LPKV's ctor).

The fix is to create the unlock screen first and *then* ping
the AccountManager for details.

Bug: http://b/2216308
Change-Id: Iedc84675c0ab8a001d062d806e2bee7ed1a29758
2009-11-13 17:10:46 -08:00
Mike Lockwood
f885e1cdef am 1d697192: Merge change Icdb3d036 into eclair
Merge commit '1d697192404e3f556b8e87c9f048f16cb3256608' into eclair-mr2

* commit '1d697192404e3f556b8e87c9f048f16cb3256608':
  Don't trigger user activity in screenOnStoppedLw() if the screen is off.
2009-11-13 15:20:00 -08:00
Android (Google) Code Review
a40bd508e6 Merge change Icdb3d036 into eclair
* changes:
  Don't trigger user activity in screenOnStoppedLw() if the screen is off.
2009-11-13 15:18:17 -08:00
Mike Lockwood
47e5023eea Don't trigger user activity in screenOnStoppedLw() if the screen is off.
Fixes b/2260437 (device wakes itself back up when camera is last application running)

Change-Id: Icdb3d0369df752a3838fa8e58c7a4bb08efe00a6
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-13 18:06:22 -05:00
Daniel Sandler
a47fc99553 am c5eb3fa4: Use new date format for lock screen.
Merge commit 'c5eb3fa4bdce22c15f4fef74a51a293399f9a980' into eclair-mr2

* commit 'c5eb3fa4bdce22c15f4fef74a51a293399f9a980':
  Use new date format for lock screen.
2009-11-13 14:59:17 -08:00
Daniel Sandler
6f2da1e578 Use new date format for lock screen.
Fixes http://b/issue?id=2247356 (well, it will once the
format is updated to include the full day-of-week).

Change-Id: Iaafbc60b7ff3edbfee7208052ecc1575cb8c226c
2009-11-13 14:17:21 -08:00
Daniel Sandler
1d7ed54139 am 96757ff1: Update LockScreen/UnlockScreen for new UX designs.
Merge commit '96757ff1498345bef8735791da1ca147b2247f13' into eclair-mr2

* commit '96757ff1498345bef8735791da1ca147b2247f13':
  Update LockScreen/UnlockScreen for new UX designs.
2009-11-12 10:38:18 -08:00
Daniel Sandler
8633ea9b7a Update LockScreen/UnlockScreen for new UX designs.
This change depends upon relevant layout changes in
frameworks/base/core/res/res.
2009-11-12 02:05:38 -08:00
Jim Miller
56e5fbecb1 am 07fba524: Fix 2209086: Update sound states in LockScreen.
Merge commit '07fba524a1dfa1a53b417a3e59c1a4797c49a9eb' into eclair-mr2

* commit '07fba524a1dfa1a53b417a3e59c1a4797c49a9eb':
  Fix 2209086: Update sound states in LockScreen.
2009-11-11 20:16:53 -08:00
Jim Miller
421db0f099 Fix 2209086: Update sound states in LockScreen. 2009-11-11 18:08:06 -08:00
Jim Miller
593b6a2060 am 9ea1107d: Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
Merge commit '9ea1107df165518909883429fb5cf20fce7a81e6' into eclair-mr2

* commit '9ea1107df165518909883429fb5cf20fce7a81e6':
  Fix for 2209086:  Initial pass at new SlidingTab widget and integration into LockScreen.
2009-11-11 17:13:21 -08:00
Jim Miller
80080e54ef Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
Tested:
    - unlock and mute/unmute

Not working:
	- highlighting on right tab.
2009-11-11 02:44:38 -08:00
Mike Lockwood
e9304f3b41 am c6e1493f: Restore short screen timeout when keyguard is unhidden.
Merge commit 'c6e1493f164d62f7dc99a5a9df6a064c054b219f' into eclair-mr2

* commit 'c6e1493f164d62f7dc99a5a9df6a064c054b219f':
  Restore short screen timeout when keyguard is unhidden.
2009-11-10 07:14:29 -08:00
Mike Lockwood
b17b2fbcef Restore short screen timeout when keyguard is unhidden.
This is part of a fix for bug b/2248320 (Lock screen does not time out after 5 seconds, after call-decline)

Change-Id: I9ad8cc54fe50d8c9862eec27341fabbd0e871bdd
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-10 09:56:35 -05:00
Mike Lockwood
16e004f26c am 68569321: Do not apply keyguard\'s short timeout when the keyguard is hidden by another window.
Merge commit '68569321db63908a8531ff1b8ae7f9a3610d3337' into eclair-mr2

* commit '68569321db63908a8531ff1b8ae7f9a3610d3337':
  Do not apply keyguard's short timeout when the keyguard is hidden by another window.
2009-11-09 12:04:02 -08:00
Mike Lockwood
09a404081a Do not apply keyguard's short timeout when the keyguard is hidden by another window.
Fixes bug b/2215852 (Music player doesn't grab screen wakelock)

Change-Id: I6c402cdb460d216314ad72e37dbcdc7e19518941
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-08 00:33:23 -05:00
Jim Miller
9fbf1a84e6 am 4ca21590: Fix 2129239: Add an override method for enabling the menu key on signed builds.
Merge commit '4ca21590d8b5615e6ec302c41868a40417c1d33a' into eclair-mr2

* commit '4ca21590d8b5615e6ec302c41868a40417c1d33a':
  Fix 2129239: Add an override method for enabling the menu key on signed builds.
2009-11-03 15:05:08 -08:00
Jim Miller
bd998018ed Fix 2129239: Add an override method for enabling the menu key on signed builds.
There are now 3 ways to enable the menu key:
- by config file (config_disableMenuKeyInLockScreen)
- by 'adb shell setprop ro.monkey=1' (for automated testing on userdebug builds)
- by creating file '/data/local/enable_menu_key (for automated testing on signed user builds)

Security: this only affects the insecure lock screen (not lock pattern) which is generally enabled.
2009-11-03 14:29:22 -08:00
Jim Miller
5ed66f0a41 am 7526eb40: Merge change I13ea5a5a into eclair
Merge commit '7526eb404a652e2ca9beddd79eb672a7f1069574' into eclair-mr2

* commit '7526eb404a652e2ca9beddd79eb672a7f1069574':
  Fix 2201413: Enable login on Passion when there's no SIM
2009-10-29 18:08:12 -07:00
Jim Miller
37286a08cc am 3179826b: Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing
Merge commit '3179826b1694e89ab48a487a41cf20a8d84b7822' into eclair-mr2

* commit '3179826b1694e89ab48a487a41cf20a8d84b7822':
  Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing
2009-10-29 18:08:07 -07:00
Android (Google) Code Review
90fc2d5f97 Merge change I13ea5a5a into eclair
* changes:
  Fix 2201413: Enable login on Passion when there's no SIM
2009-10-28 20:44:45 -04:00
Jim Miller
1b152029cc Fix 2201413: Enable login on Passion when there's no SIM 2009-10-28 16:46:48 -07:00
Jim Miller
89b17225f8 Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing 2009-10-27 15:10:57 -07:00
Mike Lockwood
4c11d6ce87 am b17c8696: When phone is ringing, power button should only mute the ringer, not hang up.
Merge commit 'b17c86966b29f3b2604bc256c3ee056576133a03' into eclair-mr2

* commit 'b17c86966b29f3b2604bc256c3ee056576133a03':
  When phone is ringing, power button should only mute the ringer, not hang up.
2009-10-23 11:54:16 -07:00
Mike Lockwood
2eb4796590 When phone is ringing, power button should only mute the ringer, not hang up.
Fixes my previous fix for bug b/2201585 (Pressing power button when phone ringing should mute ringer)

Change-Id: I9460e21245b9719f715818f7ad878b121857d773
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-23 11:36:40 -04:00
Mike Lockwood
767cc6793f am 146ef723: When phone is ringing, power button should hang up phone in addition to turning off the screen.
Merge commit '146ef723bc0fc87aba00400196a5e64ab128ee17' into eclair-mr2

* commit '146ef723bc0fc87aba00400196a5e64ab128ee17':
  When phone is ringing, power button should hang up phone in addition to turning off the screen.
2009-10-22 19:53:05 -07:00
Mike Lockwood
5a5bf77699 am d6adf0ae: Disable key repeats when the screen is off.
Merge commit 'd6adf0ae620ca3b64eee38cd53aaeedb7bd98457' into eclair-mr2

* commit 'd6adf0ae620ca3b64eee38cd53aaeedb7bd98457':
  Disable key repeats when the screen is off.
2009-10-22 10:49:00 -07:00
Mike Lockwood
75d3caafc4 When phone is ringing, power button should hang up phone in addition to turning off the screen.
Fixes bug b/2201585 (Pressing power button when phone ringing should mute ringer)

Change-Id: Ief3e26044f9b0ceaf41c5dc6be52f0d1e9897810
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-22 13:14:31 -04:00
Mike Lockwood
fcb39240b1 Disable key repeats when the screen is off.
This prevents an endless stream of key repeats spamming the keyguard
if a volume key is pressed at the same time you turn off the screen
with the power button.

This is part of a fix for bug b/2198537

Change-Id: I0d7e335fee79cbebba96b2cd908458c3c94c839e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-21 23:01:07 -04:00
Jim Miller
562074bf7d am eb44da50: (-s ours) Cherry-pick from mr2 to eclair: DO NOT MERGE
Merge commit 'eb44da5077ae21571f39bae86d6be49b74c68e24' into eclair-mr2

* commit 'eb44da5077ae21571f39bae86d6be49b74c68e24':
  Cherry-pick from mr2 to eclair: DO NOT MERGE
2009-10-08 18:28:21 -07:00
Jim Miller
22dfe722df Cherry-pick from mr2 to eclair: DO NOT MERGE
commit 149c0543a3d5f450686b7c3d142ac5f8fcf61ed4

BUG=2176949

Partial fix for 2069703: Fix race condition in KeyguardViewManager.hide() that could result in a blank screen.

This fixes a race condition seen whenever show() is called before the timer in hide() triggers. This can happen
for example if the user hits "Emergency Dial" followed by the back button before the 0.5s timeout completes. The result
is a blank screen with no keyguard view and no means to recover on devices w/o a keyboard.

The bug caused us to sometimes remove the newly created KeyguardView instead of the old one, leaving the view empty.

The fix is to always remove the last view.
2009-10-08 17:55:05 -07:00
Mike Lockwood
a3d12ce260 am f184c681: Ignore requests to hide the keyguard if we are in the process of waking up.
Merge commit 'f184c68119489aa00eccba41d3babedce282518b' into eclair-mr2

* commit 'f184c68119489aa00eccba41d3babedce282518b':
  Ignore requests to hide the keyguard if we are in the process of waking up.
2009-10-08 17:30:06 -07:00
Mike Lockwood
b4a5842157 Ignore requests to hide the keyguard if we are in the process of waking up.
This should fix a race condition that results in the screen waking up
and displaying nothing but wall paper

Bug b/2168660

Change-Id: I55bac0aaab8425cde282e7fc7e7c6b82217fbc9d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-08 14:32:44 -04:00
Dianne Hackborn
9f7135b5b4 am 2ae4f37c: More fix #2163209: alarm clock rings but is hidden behind lock screen
Merge commit '2ae4f37c435ae02cf9038216e1dfce0b82d9caab' into eclair-mr2

* commit '2ae4f37c435ae02cf9038216e1dfce0b82d9caab':
  More fix #2163209: alarm clock rings but is hidden behind lock screen
2009-10-07 22:07:48 -07:00
Dianne Hackborn
e7c8c7c1a4 More fix #2163209: alarm clock rings but is hidden behind lock screen
Another way we could miss the application's flags is because the
system now force hides application windows behind the lock screen.  So
we need to use this new API to actually take those into account when
looking for the top-most window that can specify for the lock screen
to be removed or hidden.

I have tested with pulling the device in and out of the desktop with
all kinds of random speeds and ways and this -seems- to now cover
everything.  Keeping fingers crossed.

Change-Id: Ice640eea6ee06ee27f069d60856fb394c7eeae51
2009-10-07 21:29:44 -07:00
Dianne Hackborn
ba5e592ef2 am 08b8108e: Fix issue #2171460: Turn off background blurring of power dialog
Merge commit '08b8108e5873a758bb694aa0a64d758153145a76' into eclair-mr2

* commit '08b8108e5873a758bb694aa0a64d758153145a76':
  Fix issue #2171460: Turn off background blurring of power dialog
2009-10-07 17:45:08 -07:00
Dianne Hackborn
8d93c3e46c Fix issue #2171460: Turn off background blurring of power dialog
Change-Id: I233929c363cac232de26dad20bc4011f12e3a5ab
2009-10-07 16:33:48 -07:00
Dianne Hackborn
bf29460f2a am b4ccee6f: Fix issue #2171766: Device can go to sleep while in dock
Merge commit 'b4ccee6f4c4bff3e063a06b26a3314121d06467d' into eclair-mr2

* commit 'b4ccee6f4c4bff3e063a06b26a3314121d06467d':
  Fix issue #2171766: Device can go to sleep while in dock
2009-10-07 16:05:01 -07:00
Dianne Hackborn
80fa166bf6 Fix issue #2171766: Device can go to sleep while in dock
The issue I saw was then when plugging into the dock, we the battery
first is in the "USB" state before going to "AC".  The phone window
manager would pick up the first state, but not the second.

This change reworks this code to always monitor the battery status
while plugged in to the dock, to update itself whenever that state
changes.  When not in the dock, we don't monitor, since this is
only used to determine whether to keep the device on while in the
dock.

Change-Id: Ic1e8b584082a44c4e5df13ee19dab450775027f6
2009-10-07 14:02:10 -07:00
Dianne Hackborn
9f7d80e171 am e526c56e: Fix #2163209: alarm clock rings but is hidden behind lock screen
Merge commit 'e526c56eb01db55706f07afc3b763786565d251b' into eclair-mr2

* commit 'e526c56eb01db55706f07afc3b763786565d251b':
  Fix #2163209: alarm clock rings but is hidden behind lock screen
2009-10-07 11:41:13 -07:00
Jim Miller
6c0a563e67 Partial fix for 2069703: Fix race condition in KeyguardViewManager.hide() that could result in a blank screen.
This fixes a race condition seen whenever show() is called before the timer in hide() triggers. This can happen
for example if the user hits "Emergency Dial" followed by the back button before the 0.5s timeout completes. The result
is a blank screen with no keyguard view and no means to recover on devices w/o a keyboard.

The bug caused us to sometimes remove the newly created KeyguardView instead of the old one, leaving the view empty.

The fix is to always remove the last view.
2009-10-07 02:03:02 -07:00
Dianne Hackborn
d70bc2f662 Fix #2163209: alarm clock rings but is hidden behind lock screen
The lock screen's flag to force the status bar on was sometimes
interfering with the flag of the alarm behind to hide the lock screen.

Change-Id: I91368c56d09d35b03db548530aa1eb59197206bd
2009-10-06 23:25:51 -07:00
Mike Lockwood
674d3e4021 Hold a partial wakelock while showing the keyguard
This ensures that the keyguard is fully displayed before the processor suspends,
which avoids a race condition when the device is powered back up.
Fixes one instance of bug b/2164183

Change-Id: Ifd7f928068cf779ec725937db82af69306c02107
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-06 09:28:54 -04:00