391 Commits

Author SHA1 Message Date
Android (Google) Code Review
847669031a Merge change I9987ba41 into eclair
* changes:
  Fix 2270597: Add callback to watch ringer state and update lock screen UI when it changes.
2009-11-24 14:00:23 -08:00
Joe Onorato
067bb63f39 am 5da799e0: Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we\'re doing so because of the home key.
Merge commit '5da799e012cc4427a4f656e2416bcd73c22acd83' into eclair-mr2

* commit '5da799e012cc4427a4f656e2416bcd73c22acd83':
  Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we're doing so because of the home
2009-11-24 13:57:33 -08:00
Joe Onorato
f275f0c0f9 Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we're doing so because of the home
key.
2009-11-24 16:11:13 -05:00
Jim Miller
47088bbbef Fix 2270597: Add callback to watch ringer state and update lock screen UI when it changes. 2009-11-24 00:48:35 -08:00
Mike Lockwood
b4e2d1c2aa END_BUTTON_BEHAVIOR setting should affect end call button only (not power button)
Fixes b/2212852 ("end button behavior" in spare parts doesn't work)

Change-Id: Ia17f37ad82b17f3a0e1ceb1ab7a0211b1d3ad8be
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-23 15:54:10 -05:00
Mike Lockwood
5f892c130a When keyguard is active, only allow the status bar to be opened if it is insecure and covered by another window.
Fixes b/2215112 (When screen wakes to Playback screen, Notification Bar is active)

Change-Id: I43a8574259788d983c30b1a22e5bfc4e95d09bee
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-20 08:03:32 -05:00
Dianne Hackborn
9dc06cc2a8 Fix issue #2264162 and #2252436: Now playing screens problems when locked.
We now treat the case where the lock screen is hidden to be basically the same as
it being removed for purposes of event dispatching and other things in the policy.

Change-Id: I7386220594ad6e89e1493d643b1f0603663ae72a
2009-11-18 11:47:24 -08:00
Dianne Hackborn
a8730f985f Fix issue #2249821: Unable to start passion in safe mode
Change-Id: I4320b38ce0cda4dca560c07bc0378b507032598a
2009-11-18 11:42:38 -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
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
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
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
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
Jean-Baptiste Queru
0469e9b139 eclair snapshot 2009-11-12 18:46:07 -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
421db0f099 Fix 2209086: Update sound states in LockScreen. 2009-11-11 18:08:06 -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
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
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
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
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
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
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
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
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
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
8d93c3e46c Fix issue #2171460: Turn off background blurring of power dialog
Change-Id: I233929c363cac232de26dad20bc4011f12e3a5ab
2009-10-07 16:33:48 -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
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
Android (Google) Code Review
89062ab89e Merge change I0f10425e into eclair
* changes:
  Add some logging to help diagnose b/2164183
2009-10-05 16:33:16 -04:00
Mike Lockwood
206f07d3be Add some logging to help diagnose b/2164183
Change-Id: I0f10425e89cba9e9ddbd3ce58ad1ae0a3ae74f34
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-05 16:03:31 -04:00
Fred Quintana
261259b673 account manager api review changes 2009-10-05 10:00:08 -07:00
Dianne Hackborn
73b1ec8961 Work on issue #2163789: Way too much logging
Dr.No from mcleron.

Change-Id: I44d49221b15a6ae2c22504869b14d610d234ccc9
2009-10-04 13:44:16 -07:00
Jim Miller
36931ac9b3 Fix for 2129239: Always enable the menu hard key in LockScreen when 'ro.monkey' is set.
BUG=2129239
DRNO=discussed with hiroshi/mcleron who gave thumbs up.
2009-10-02 17:51:30 -07:00
Android (Google) Code Review
9227af0571 Merge change I46ea3489 into eclair
* changes:
  Make sure we wake up the screen if the keyguard is not visible when we think it should be.
2009-10-02 14:03:43 -04:00
David Brown
4c48b6b410 Add placeholder onGrabbedStateChange() method.
Update LockScreen to implement the latest RotarySelector
OnDialTriggerListener interface.  In a followup CL we'll use this to
display onscreen hint text while dragging.

BUG=2158434
DRNO=timsullivan
TESTED=exercised the lock screen widget, confirmed there's no new behavior.
2009-10-01 19:27:44 -07:00
Mike Lockwood
3754b0d563 Make sure we wake up the screen if the keyguard is not visible when we think it should be.
I am hoping this will fix bug b/2155529

Change-Id: I46ea34898864d7b39391d76b802858c0f092b578
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-01 14:50:15 -04:00
Mike Lockwood
db460fe7cf Move status bar disabling from KeyguardViewMediator to Phone app
This allows us to disable the keyguard while docked without disabling the status bar.

Change-Id: I06ff48dcb1922a26e356faee0aefa91b7c871e6a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-01 08:15:40 -04:00
Costin Manolache
563b3e61ca Remove GAIA string 2009-09-29 22:49:09 -07:00
Android (Google) Code Review
39187ab260 Merge change I880426e8 into eclair
* changes:
  Fix for 2133391: Allow menu hard key to be disabled in LockScreen on some devices
2009-09-29 21:20:25 -04:00
Dianne Hackborn
63b90f2885 Fix issue #2153749: Window manager deadlock around the Eclair lock screen
Don't synchronously call into the account manager from the lock screen.

Change-Id: I2741c81bb31537ddfcce96b1b199ac50fd48e727
2009-09-29 17:44:09 -07:00
Jim Miller
8ed9870f54 Fix for 2133391: Allow menu hard key to be disabled in LockScreen on some devices
Changed to use config.xml and overlays to enable.
2009-09-29 17:05:50 -07:00
Android (Google) Code Review
2034804356 Merge change Ie3edea1f into eclair
* changes:
  Fix for 2137900: Be more conservative about poking the wakelock
2009-09-29 18:41:48 -04:00
Dianne Hackborn
b1a7980800 Whoops forgot the change to actually check for safe mode!
Change-Id: Iba0ad151ed786be8ae8659bfefe2a29776ce6311
2009-09-29 15:18:31 -07:00