OSDN Git Service

android-x86/frameworks-policies-base.git
14 years agoDo not show keyguard if screen is turned off by proximity sensor.
Mike Lockwood [Thu, 3 Dec 2009 13:41:44 +0000 (08:41 -0500)]
Do not show keyguard if screen is turned off by proximity sensor.

Fixes bug b/2300622 (Proximity sensor always blows up the lock screen while in call)

Change-Id: I85572973c142a72b3bba0bb032e5d2f710b5e36c
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoRevert "Fix problems with KeyguardManager.exitKeyguardSecurely() and the FLAG_SHOW_WH...
Mike Lockwood [Wed, 2 Dec 2009 18:50:45 +0000 (13:50 -0500)]
Revert "Fix problems with KeyguardManager.exitKeyguardSecurely() and the FLAG_SHOW_WHEN_LOCKED window manager flag."

We have a better solution for this in the Phone app.
This reverts commit b684251e8f1e85ea9483af2b80bc92f0fd8ded1c.

14 years agoFix volume keys when in-call and screen is off due to proximity sensor.
Mike Lockwood [Wed, 2 Dec 2009 06:37:38 +0000 (01:37 -0500)]
Fix volume keys when in-call and screen is off due to proximity sensor.

Fixes bug b/2297262 (Volume keys on passion don't work while in-call and phone is pressed to my ear)

Change-Id: I775daa24295482000f87273d1f84dd796fb0f4eb
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoFix problems with KeyguardManager.exitKeyguardSecurely() and the FLAG_SHOW_WHEN_LOCKE...
Mike Lockwood [Wed, 2 Dec 2009 06:15:27 +0000 (01:15 -0500)]
Fix problems with KeyguardManager.exitKeyguardSecurely() and the FLAG_SHOW_WHEN_LOCKED window manager flag.

Fixes b/2297221 ('Add call' button has no action, if call is answered on lockpattern screen)

Change-Id: I6df8f64dedc4d2d8b02f746213c7b1b336d6560e
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoFix bug 2290852: Screen wakes up in my pocket while listening to music
Mike Lockwood [Sun, 29 Nov 2009 01:58:22 +0000 (20:58 -0500)]
Fix bug 2290852: Screen wakes up in my pocket while listening to music

When the screen is off keyguard is open but hidden by another activity
make sure that non-waking events like volume key or track ball press
do not turn the screen back on.

Change-Id: Ie6b191360b903b54388a6f65680ccc3264a51dd8
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change I9987ba41 into eclair
Android (Google) Code Review [Tue, 24 Nov 2009 22:00:23 +0000 (14:00 -0800)]
Merge change I9987ba41 into eclair

* changes:
  Fix 2270597: Add callback to watch ringer state and update lock screen UI when it changes.

14 years agoBug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we're doing so becau...
Joe Onorato [Tue, 24 Nov 2009 21:11:13 +0000 (16:11 -0500)]
Bug 2248173 - Tell listeners to ACTION_CLOSE_SYSTEM_DIALOGS that we're doing so because of the home
key.

14 years agoFix 2270597: Add callback to watch ringer state and update lock screen UI when it...
Jim Miller [Tue, 24 Nov 2009 08:40:16 +0000 (00:40 -0800)]
Fix 2270597: Add callback to watch ringer state and update lock screen UI when it changes.

14 years agoFix issue #2264162 and #2252436: Now playing screens problems when locked.
Dianne Hackborn [Wed, 18 Nov 2009 02:19:23 +0000 (18:19 -0800)]
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

14 years agoFix issue #2249821: Unable to start passion in safe mode
Dianne Hackborn [Tue, 17 Nov 2009 23:53:36 +0000 (15:53 -0800)]
Fix issue #2249821: Unable to start passion in safe mode

Change-Id: I4320b38ce0cda4dca560c07bc0378b507032598a

14 years agoHandle KeyguardViewMediator.setHidden() asynchronously to avoid deadlocks.
Mike Lockwood [Wed, 18 Nov 2009 01:25:58 +0000 (20:25 -0500)]
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>
14 years agoFix 2209086: Fix visual glitches in lockscreen.
Jim Miller [Tue, 17 Nov 2009 07:11:42 +0000 (23:11 -0800)]
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.

14 years agoFix 2209086: Fix missing callback that was preventing right tab bar text from updating.
Jim Miller [Sat, 14 Nov 2009 10:31:09 +0000 (02:31 -0800)]
Fix 2209086: Fix missing callback that was preventing right tab bar text from updating.

14 years agoFix a race condition determining whether password fallback mode is allowed.
Daniel Sandler [Sat, 14 Nov 2009 01:07:50 +0000 (17:07 -0800)]
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

14 years agoMerge change Icdb3d036 into eclair
Android (Google) Code Review [Fri, 13 Nov 2009 23:18:17 +0000 (15:18 -0800)]
Merge change Icdb3d036 into eclair

* changes:
  Don't trigger user activity in screenOnStoppedLw() if the screen is off.

14 years agoDon't trigger user activity in screenOnStoppedLw() if the screen is off.
Mike Lockwood [Fri, 13 Nov 2009 23:06:22 +0000 (18:06 -0500)]
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>
14 years agoUse new date format for lock screen.
Daniel Sandler [Fri, 13 Nov 2009 22:17:21 +0000 (14:17 -0800)]
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

14 years agoUpdate LockScreen/UnlockScreen for new UX designs.
Daniel Sandler [Thu, 12 Nov 2009 06:23:36 +0000 (22:23 -0800)]
Update LockScreen/UnlockScreen for new UX designs.

This change depends upon relevant layout changes in
frameworks/base/core/res/res.

14 years agoFix 2209086: Update sound states in LockScreen.
Jim Miller [Thu, 12 Nov 2009 02:06:35 +0000 (18:06 -0800)]
Fix 2209086: Update sound states in LockScreen.

14 years agoFix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
Jim Miller [Wed, 11 Nov 2009 05:44:58 +0000 (21:44 -0800)]
Fix for 2209086:  Initial pass at new SlidingTab widget and integration into LockScreen.

Tested:
    - unlock and mute/unmute

Not working:
- highlighting on right tab.

14 years agoRestore short screen timeout when keyguard is unhidden.
Mike Lockwood [Mon, 9 Nov 2009 21:01:37 +0000 (16:01 -0500)]
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>
14 years agoDo not apply keyguard's short timeout when the keyguard is hidden by another window.
Mike Lockwood [Sun, 8 Nov 2009 05:33:23 +0000 (00:33 -0500)]
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>
14 years agoFix 2129239: Add an override method for enabling the menu key on signed builds.
Jim Miller [Tue, 3 Nov 2009 21:56:39 +0000 (13:56 -0800)]
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.

14 years agoMerge change I13ea5a5a into eclair
Android (Google) Code Review [Thu, 29 Oct 2009 00:44:45 +0000 (20:44 -0400)]
Merge change I13ea5a5a into eclair

* changes:
  Fix 2201413: Enable login on Passion when there's no SIM

14 years agoFix 2201413: Enable login on Passion when there's no SIM
Jim Miller [Wed, 28 Oct 2009 23:08:15 +0000 (16:08 -0700)]
Fix 2201413: Enable login on Passion when there's no SIM

14 years agoFix for 2201954: Disable haptic feedback for hard keys while keyguard is showing
Jim Miller [Tue, 27 Oct 2009 21:54:09 +0000 (14:54 -0700)]
Fix for 2201954: Disable haptic feedback for hard keys while keyguard is showing

14 years agoWhen phone is ringing, power button should only mute the ringer, not hang up.
Mike Lockwood [Fri, 23 Oct 2009 15:29:52 +0000 (11:29 -0400)]
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>
14 years agoWhen phone is ringing, power button should hang up phone in addition to turning off...
Mike Lockwood [Thu, 22 Oct 2009 17:14:31 +0000 (13:14 -0400)]
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>
14 years agoDisable key repeats when the screen is off.
Mike Lockwood [Thu, 22 Oct 2009 03:01:07 +0000 (23:01 -0400)]
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>
14 years agoCherry-pick from mr2 to eclair: DO NOT MERGE
Jim Miller [Wed, 7 Oct 2009 08:30:21 +0000 (01:30 -0700)]
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.

14 years agoIgnore requests to hide the keyguard if we are in the process of waking up.
Mike Lockwood [Thu, 8 Oct 2009 18:31:25 +0000 (14:31 -0400)]
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>
14 years agoMore fix #2163209: alarm clock rings but is hidden behind lock screen
Dianne Hackborn [Thu, 8 Oct 2009 04:27:43 +0000 (21:27 -0700)]
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

14 years agoFix issue #2171460: Turn off background blurring of power dialog
Dianne Hackborn [Wed, 7 Oct 2009 23:14:02 +0000 (16:14 -0700)]
Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I233929c363cac232de26dad20bc4011f12e3a5ab

14 years agoFix issue #2171766: Device can go to sleep while in dock
Dianne Hackborn [Wed, 7 Oct 2009 21:02:10 +0000 (14:02 -0700)]
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

14 years agoFix #2163209: alarm clock rings but is hidden behind lock screen
Dianne Hackborn [Wed, 7 Oct 2009 06:25:51 +0000 (23:25 -0700)]
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

14 years agoHold a partial wakelock while showing the keyguard
Mike Lockwood [Tue, 6 Oct 2009 13:28:54 +0000 (09:28 -0400)]
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>
14 years agoMerge change I0f10425e into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 20:33:16 +0000 (16:33 -0400)]
Merge change I0f10425e into eclair

* changes:
  Add some logging to help diagnose b/2164183

14 years agoAdd some logging to help diagnose b/2164183
Mike Lockwood [Mon, 5 Oct 2009 20:03:31 +0000 (16:03 -0400)]
Add some logging to help diagnose b/2164183

Change-Id: I0f10425e89cba9e9ddbd3ce58ad1ae0a3ae74f34
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoaccount manager api review changes
Fred Quintana [Sat, 3 Oct 2009 00:19:24 +0000 (17:19 -0700)]
account manager api review changes

14 years agoWork on issue #2163789: Way too much logging
Dianne Hackborn [Sun, 4 Oct 2009 20:33:00 +0000 (13:33 -0700)]
Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: I44d49221b15a6ae2c22504869b14d610d234ccc9

14 years agoFix for 2129239: Always enable the menu hard key in LockScreen when 'ro.monkey' is...
Jim Miller [Fri, 2 Oct 2009 23:49:10 +0000 (16:49 -0700)]
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.

14 years agoMerge change I46ea3489 into eclair
Android (Google) Code Review [Fri, 2 Oct 2009 18:03:43 +0000 (14:03 -0400)]
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.

14 years agoAdd placeholder onGrabbedStateChange() method.
David Brown [Fri, 2 Oct 2009 02:27:44 +0000 (19:27 -0700)]
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.

14 years agoMake sure we wake up the screen if the keyguard is not visible when we think it shoul...
Mike Lockwood [Thu, 1 Oct 2009 18:50:15 +0000 (14:50 -0400)]
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>
14 years agoMove status bar disabling from KeyguardViewMediator to Phone app
Mike Lockwood [Thu, 1 Oct 2009 12:15:40 +0000 (08:15 -0400)]
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>
14 years agoRemove GAIA string
Costin Manolache [Wed, 30 Sep 2009 01:58:36 +0000 (18:58 -0700)]
Remove GAIA string

14 years agoMerge change I880426e8 into eclair
Android (Google) Code Review [Wed, 30 Sep 2009 01:20:25 +0000 (21:20 -0400)]
Merge change I880426e8 into eclair

* changes:
  Fix for 2133391: Allow menu hard key to be disabled in LockScreen on some devices

14 years agoFix issue #2153749: Window manager deadlock around the Eclair lock screen
Dianne Hackborn [Tue, 29 Sep 2009 23:14:59 +0000 (16:14 -0700)]
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

14 years agoFix for 2133391: Allow menu hard key to be disabled in LockScreen on some devices
Jim Miller [Tue, 29 Sep 2009 09:52:12 +0000 (02:52 -0700)]
Fix for 2133391: Allow menu hard key to be disabled in LockScreen on some devices

Changed to use config.xml and overlays to enable.

14 years agoMerge change Ie3edea1f into eclair
Android (Google) Code Review [Tue, 29 Sep 2009 22:41:48 +0000 (18:41 -0400)]
Merge change Ie3edea1f into eclair

* changes:
  Fix for 2137900: Be more conservative about poking the wakelock

14 years agoWhoops forgot the change to actually check for safe mode!
Dianne Hackborn [Tue, 29 Sep 2009 22:18:31 +0000 (15:18 -0700)]
Whoops forgot the change to actually check for safe mode!

Change-Id: Iba0ad151ed786be8ae8659bfefe2a29776ce6311

14 years agoFix for 2137900: Be more conservative about poking the wakelock
Jim Miller [Tue, 29 Sep 2009 21:16:41 +0000 (14:16 -0700)]
Fix for 2137900: Be more conservative about poking the wakelock

14 years agoFix potential race when removing keyguard view.
Dianne Hackborn [Sat, 26 Sep 2009 00:35:10 +0000 (17:35 -0700)]
Fix potential race when removing keyguard view.

Change-Id: Ia636bc8a73d18b8ebe2dca2b29bb74793a3f0396

14 years agofw/policy/base:Phonewindowmanager: Make vkey button haptics part of global haptic...
Dan Murphy [Tue, 22 Sep 2009 16:44:29 +0000 (11:44 -0500)]
fw/policy/base:Phonewindowmanager: Make vkey button haptics part of global haptic setting

This change ties the virtual key haptics to the global haptics settings

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
14 years agoMerge change 27039 into eclair
Android (Google) Code Review [Fri, 25 Sep 2009 18:54:56 +0000 (14:54 -0400)]
Merge change 27039 into eclair

* changes:
  Fix volume key handling when in-call and screen is off due to proximity sensor.

14 years agoFix volume key handling when in-call and screen is off due to proximity sensor.
Mike Lockwood [Fri, 25 Sep 2009 14:51:39 +0000 (10:51 -0400)]
Fix volume key handling when in-call and screen is off due to proximity sensor.

Fixes bug b/2136633

Change-Id: If963d0267496878978ad82d915f821af2bd03383
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoRemove keyguard view after a delay instead of just hiding it.
Karl Rosaen [Fri, 25 Sep 2009 17:24:26 +0000 (10:24 -0700)]
Remove keyguard view after a delay instead of just hiding it.

The delay should make sure the animation works, and by still removing it, we
preserve the initialization logic that depends on being reinstantiated each time
the screen turns off.  The logic could be adjusted to work without this, but
seems safer to maintain the existing behavior. Also reduces risk from having
keyguard around all the time.

14 years agoMaybe fix #2127747: IllegalStateException from window manager when resuming from...
Dianne Hackborn [Fri, 25 Sep 2009 08:35:29 +0000 (01:35 -0700)]
Maybe fix #2127747: IllegalStateException from window manager when resuming from sleep

It looks like there may have been a race when restoring that would allow
you to show the menu before it is restored.  I couldn't repro on my current
device before the fix, though.

Change-Id: I624e1306871344d3ee39f69dde832b3db2530a5f

14 years agoImplement fade out of lock screen.
Dianne Hackborn [Fri, 25 Sep 2009 02:24:56 +0000 (19:24 -0700)]
Implement fade out of lock screen.

Change-Id: I516aa2257c788a9fb618ac37c9d227b1e7a3c2ae

14 years agoInitialze battery state properly in pattern unlock screen.
Karl Rosaen [Fri, 25 Sep 2009 01:11:28 +0000 (18:11 -0700)]
Initialze battery state properly in pattern unlock screen.

14 years agoWhoops, count down text is not updating... fixed!
Karl Rosaen [Fri, 25 Sep 2009 00:13:56 +0000 (17:13 -0700)]
Whoops, count down text is not updating... fixed!

14 years agoUpdate unlock screen logic to display battery, next alarm info.
Karl Rosaen [Thu, 24 Sep 2009 23:48:14 +0000 (16:48 -0700)]
Update unlock screen logic to display battery, next alarm info.

14 years agoTweak LockScreen to make use of landscape layout.
Karl Rosaen [Thu, 24 Sep 2009 17:17:42 +0000 (10:17 -0700)]
Tweak LockScreen to make use of landscape layout.

14 years agoFix issue #2133206: dialogs/menus should auto-dismiss when screen turns off
Dianne Hackborn [Thu, 24 Sep 2009 05:21:23 +0000 (22:21 -0700)]
Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off

Perform clear system dialogs when turning on the lock screen.

Change-Id: I2a3104a9df942d59308a94377f93787f17dbb2ce

14 years agoAllow dock keep screen on to select between AC and USB power.
Dianne Hackborn [Wed, 23 Sep 2009 00:28:24 +0000 (17:28 -0700)]
Allow dock keep screen on to select between AC and USB power.

Change-Id: I2309992f5ad7b93006eb52f31758f71c48ed98f1

14 years agoThe nosensor flag wasn't being honored.
Joe Onorato [Tue, 22 Sep 2009 23:44:16 +0000 (16:44 -0700)]
The nosensor flag wasn't being honored.

14 years agoFixes and improvements to lock screen hiding, dock launching.
Dianne Hackborn [Tue, 22 Sep 2009 18:41:31 +0000 (11:41 -0700)]
Fixes and improvements to lock screen hiding, dock launching.

- Implement new window flags for dismissing non-secure lock screens.

- Implement launching of docks from the home key.

Change-Id: If29f299db47e3759c3e146983f59d0f86ed22c4c

14 years agoImprovements to lock screen management:
Dianne Hackborn [Sun, 20 Sep 2009 22:23:25 +0000 (15:23 -0700)]
Improvements to lock screen management:

- The window flag to hide the lock screen will now allow you to press home,
and automatically dismiss the lock screen if it is not needed for security.

- When opening the lid, if the lock screen will be shown, try to avoid
turning on the screen until it is ready.  There is actually still some
problem with this.

Change-Id: I51d769b8e6cff7b439b1ffea927c0a01376427b1

14 years agoMerge change 26169 into eclair
Android (Google) Code Review [Mon, 21 Sep 2009 18:09:57 +0000 (14:09 -0400)]
Merge change 26169 into eclair

* changes:
  Dock event overrides SCREEN_ORIENTATION_NOSENSOR so Home will rotate in the car dock.

14 years agoDock event overrides SCREEN_ORIENTATION_NOSENSOR so Home will rotate in the car dock.
Mike Lockwood [Mon, 21 Sep 2009 17:40:31 +0000 (13:40 -0400)]
Dock event overrides SCREEN_ORIENTATION_NOSENSOR so Home will rotate in the car dock.

Change-Id: Id768332d846d85f3d37a36bdf41a70cbaceb5332
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoHandle Emergency Callback Mode and Airplane Mode interactions
Jinghui Guo [Thu, 17 Sep 2009 19:05:27 +0000 (14:05 -0500)]
Handle Emergency Callback Mode and Airplane Mode interactions

For UI interface consistency with airplane mode change from setting menu,
an ECM exit dialog should also be shown up when user wants to change airplane
mode in ECM after long key pressing power key. Then based on the user's choice to change
airplane mode. i.e. press Yes to exit ECM and turn on airplane mode or press No
to keep ECM and do not change airplane mode.

Change-Id: I0fe7e5cdeec0f33852615b491b75f65a46257590

14 years agoShow silent mode toast immediately, and for 3.5 seconds instead of 2.
Karl Rosaen [Sun, 20 Sep 2009 22:09:42 +0000 (15:09 -0700)]
Show silent mode toast immediately, and for 3.5 seconds instead of 2.

14 years agoDon't show battery info when unplugging (fixes bug 2128323).
Karl Rosaen [Sun, 20 Sep 2009 21:01:09 +0000 (14:01 -0700)]
Don't show battery info when unplugging (fixes bug 2128323).

14 years agoMerge change 25960 into eclair
Android (Google) Code Review [Sun, 20 Sep 2009 17:04:10 +0000 (13:04 -0400)]
Merge change 25960 into eclair

* changes:
  Show silent mode icon associated with current state instead of what it will be.

14 years agoShow silent mode icon associated with current state instead of what it will be.
Karl Rosaen [Sun, 20 Sep 2009 16:53:35 +0000 (09:53 -0700)]
Show silent mode icon associated with current state instead of what it will be.

Also:
- fix bug where icons weren't showing for charging, next alarm
- tweak layout

14 years agoSupport for forcing accelerometer based orientation management when docked.
Mike Lockwood [Sun, 20 Sep 2009 05:59:02 +0000 (01:59 -0400)]
Support for forcing accelerometer based orientation management when docked.

Change-Id: I5436a7191263a0a2a5ca8108da2f7c094c49b88a
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoAdd ability to keep screen on while docked.
Dianne Hackborn [Sat, 19 Sep 2009 21:03:57 +0000 (14:03 -0700)]
Add ability to keep screen on while docked.

Change-Id: I11f22e92e85d0fb384c70b614d0a55633f74902e

14 years agoMerge change 25784 into eclair
Android (Google) Code Review [Fri, 18 Sep 2009 19:23:24 +0000 (15:23 -0400)]
Merge change 25784 into eclair

* changes:
  Tweak the lock screen date format to be like "Fri, Sep 18, 2009".

14 years agoTweak the lock screen date format to be like "Fri, Sep 18, 2009".
Karl Rosaen [Fri, 18 Sep 2009 19:05:51 +0000 (12:05 -0700)]
Tweak the lock screen date format to be like "Fri, Sep 18, 2009".

14 years agoPolicy changes for lock screen on live wallpaper.
Dianne Hackborn [Fri, 18 Sep 2009 08:55:39 +0000 (01:55 -0700)]
Policy changes for lock screen on live wallpaper.

Change-Id: Ib875ef839b7727194461b13684b77bf38ad3c52e

14 years agoShow a message about silent mode being toggled after user rotates widget to left.
Karl Rosaen [Fri, 18 Sep 2009 00:50:37 +0000 (17:50 -0700)]
Show a message about silent mode being toggled after user rotates widget to left.

This is based on feedback that users had a hard time knowing what happened
when they toggle silent mode using the lock screen.

14 years agoRevert "Don't activate keyguard if screen is turned off while proximity sensor is...
Mike Lockwood [Thu, 17 Sep 2009 15:45:06 +0000 (11:45 -0400)]
Revert "Don't activate keyguard if screen is turned off while proximity sensor is active."

This reverts commit 4daf9485eca9bab9591bef83dd117cbde1e8beec.

14 years agoMinor tweaks to address code review.
Karl Rosaen [Thu, 17 Sep 2009 10:46:54 +0000 (03:46 -0700)]
Minor tweaks to address code review.

14 years agoFirst pass at pattern lock screen that includes date / time and carrier info (andoid...
Karl Rosaen [Thu, 17 Sep 2009 10:00:15 +0000 (03:00 -0700)]
First pass at pattern lock screen that includes date / time and carrier info (andoid.policy portion)

- code to update carrier / date and time

14 years agoAllow specifying separate orientation rotations for car and desk dock.
Mike Lockwood [Wed, 16 Sep 2009 16:15:53 +0000 (12:15 -0400)]
Allow specifying separate orientation rotations for car and desk dock.

Change-Id: Ic6762d6f2882420bd7d5a13d36057599d51dfc66
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoUpdate policy for hiding navigation keys, configuration.
Dianne Hackborn [Wed, 16 Sep 2009 05:56:29 +0000 (22:56 -0700)]
Update policy for hiding navigation keys, configuration.

Change-Id: Ieeb523cdc05316d34501872d684531142132b402

14 years agoMerge change 24116 into eclair
Android (Google) Code Review [Wed, 16 Sep 2009 03:18:07 +0000 (23:18 -0400)]
Merge change 24116 into eclair

* changes:
  Add rotary based lock screen, and only show security pattern screen when pattern is set.

14 years agoAdd rotary based lock screen, and only show security pattern screen when pattern...
Karl Rosaen [Mon, 7 Sep 2009 19:43:05 +0000 (12:43 -0700)]
Add rotary based lock screen, and only show security pattern screen when pattern is set.

When a pattern is enabled, there is no informational lock screen, just the pattern
screen.  Eventually we will get a new layout that manages to show the relevent information
(date / time / charging info / alarm) on the pattern screen.

Also: I noticed that when there is no backup option available, we still showed
the "forgot pattern?" button, which would do nothing.  I fixed that; we
no longer show the "forgot pattern" button if there is no account unlock
option available.

a

14 years agoFix issue #1401973 and #2111181 (menu placement problems).
Dianne Hackborn [Wed, 16 Sep 2009 02:28:03 +0000 (19:28 -0700)]
Fix issue #1401973 and #2111181 (menu placement problems).

Issue 1401973: A dialog with menu has wrong menu placement
Issue 2111181: status bar overlaps the more menu in browser

Menus are now dialog panels, so they are placed within the entire
screen and not attached to their parent window.

Change-Id: Ia9702d5e30a6ba5ebb0254abe6a94cbbdfa9866d

14 years agoVarious fixes for back key handling.
Dianne Hackborn [Tue, 15 Sep 2009 04:23:11 +0000 (21:23 -0700)]
Various fixes for back key handling.

Change-Id: I8ad314722ce38711ce5c57c4fd3b2942cfe099a7

14 years agoFollow key event API changes.
Dianne Hackborn [Sun, 13 Sep 2009 23:14:44 +0000 (16:14 -0700)]
Follow key event API changes.

We now use the new tracking and long press dispatching in the framework
to greatly simplify this code.

Change-Id: I4c0ed51dc2d07ed3bb20c64c67eede83bdb123b9

14 years agoTweak so lock screen wallpaper is aligned with real wallpaper.
Dianne Hackborn [Mon, 7 Sep 2009 05:12:28 +0000 (22:12 -0700)]
Tweak so lock screen wallpaper is aligned with real wallpaper.

Change-Id: Iee117ae1496c0c4e9d12d16eeba69bcad351a57a

14 years agoPut vibration patterns in resources.
Dianne Hackborn [Fri, 28 Aug 2009 05:16:40 +0000 (22:16 -0700)]
Put vibration patterns in resources.

Change-Id: If7c9d4c3bee4bc3319379fbb588265d6202c2bee

14 years agoMerge change 22959 into eclair
Android (Google) Code Review [Thu, 27 Aug 2009 21:31:17 +0000 (14:31 -0700)]
Merge change 22959 into eclair

* changes:
  Don't activate keyguard if screen is turned off while proximity sensor is active.

14 years agoIncrease vibrate duration on vkey haptics so they can be felt.
Paul Eastham [Thu, 27 Aug 2009 21:11:23 +0000 (14:11 -0700)]
Increase vibrate duration on vkey haptics so they can be felt.

14 years agoDon't activate keyguard if screen is turned off while proximity sensor is active.
Mike Lockwood [Thu, 27 Aug 2009 20:27:51 +0000 (13:27 -0700)]
Don't activate keyguard if screen is turned off while proximity sensor is active.

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agopolicy/impl: Add option to disable screen-unlock-on-slider-open
Dan Murphy [Mon, 24 Aug 2009 22:35:52 +0000 (17:35 -0500)]
policy/impl: Add option to disable screen-unlock-on-slider-open

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
14 years agoAdjust 'account unlock' scenario to make 'forgot pattern' more forgiving.
Karl Rosaen [Tue, 25 Aug 2009 00:18:02 +0000 (17:18 -0700)]
Adjust 'account unlock' scenario to make 'forgot pattern' more forgiving.

When a user hits the 'forgot pattern' button, they aren't permanently forced into
using the account to unlock the screen; they can get back to the pattern screen by
hitting the back key, or by turning off the screen (e.g it's not sticky).

Also, show progress dialog while checking account, and make sure we are on the UI thread
when doing stuff from the account callback.

14 years agoPhoneWindowManager: Rotate display when phone is docked
Mike Lockwood [Mon, 24 Aug 2009 21:49:07 +0000 (14:49 -0700)]
PhoneWindowManager: Rotate display when phone is docked

Also moved the number of degrees of rotation for keyboard open state to a resource.

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoRemove unused field from PhoneWindow.DecorView.
Romain Guy [Fri, 21 Aug 2009 06:34:42 +0000 (23:34 -0700)]
Remove unused field from PhoneWindow.DecorView.