OSDN Git Service

android-x86/frameworks-policies-base.git
14 years agomove the power off and reboot the upper positions eclair-x86
yisun [Wed, 13 Jan 2010 23:40:38 +0000 (15:40 -0800)]
move the power off and reboot the upper positions

14 years agomake nicer keyguard window for PC
Yi Sun [Wed, 6 Jan 2010 20:04:38 +0000 (12:04 -0800)]
make nicer keyguard window for PC

14 years agoDisable the provision check
Yi Sun [Tue, 5 Jan 2010 23:08:50 +0000 (15:08 -0800)]
Disable the provision check

Sometimes, the value of provision changed randomly and cause
the keyguard to not show up. Disabling the provision check
for now until I find the real bug.

14 years agoKeyguardViewMediator: fix a race condition
Yi Sun [Fri, 18 Dec 2009 09:40:43 +0000 (01:40 -0800)]
KeyguardViewMediator: fix a race condition

There could a race condition where the lock screen does not show up before
the machine went into sleep. Remove the screenon flag check so that machine
can go back to sleep after show the lock screen.

14 years agoenable softkeyboard
Kelly2.Blue [Thu, 17 Dec 2009 01:30:08 +0000 (09:30 +0800)]
enable softkeyboard

14 years agomake the mouse events wake event
Yi Sun [Tue, 15 Dec 2009 07:41:42 +0000 (23:41 -0800)]
make the mouse events wake event

14 years agoport sleep, wifi and volume mute support from mid policy to phone policy
Yi Sun [Mon, 14 Dec 2009 00:21:57 +0000 (16:21 -0800)]
port sleep, wifi and volume mute support from mid policy to phone policy

14 years agoswitch to use phone policy
Yi Sun [Sun, 13 Dec 2009 07:22:03 +0000 (23:22 -0800)]
switch to use phone policy

1. force the status bar to show up in all the cases so that touch
only device can always use the touch events on the status bar to
simulate the menu,back and home key.
2. port the power dialog changes from mid policy.

14 years agoChange EndCallBehavior while in UTS test mode.
Wink Saville [Fri, 12 Feb 2010 20:12:06 +0000 (12:12 -0800)]
Change EndCallBehavior while in UTS test mode.

When in UTS test mode this reverts the behavior
of the end key as it was in cupcake. When not in
UTS test mode the behavior is as before the change.

The UTS test mode is enabled when presist.sys.uts-test-mode is 1.

Bug: 2402366
Change-Id: I81359f3870a1e4da513f76c32aecdb7dfdf3bacf

14 years agoreconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:09:38 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair

14 years agoreconcile android-2.1_r1 snapshot
The Android Open Source Project [Fri, 29 Jan 2010 22:09:18 +0000 (14:09 -0800)]
reconcile android-2.1_r1 snapshot

14 years agoFix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.
Jim Miller [Sat, 23 Jan 2010 03:07:47 +0000 (19:07 -0800)]
Fix 2287263: Change carrier TextView to be 1 line and marquee if text is too long.

This is intended as a workaround for the long text lines introduced in https://android-git.corp.google.com/g/#change,38100.
Added explicit TextView.setColor() to workaround bug with TextView.setSelected().

14 years agoMerge "Update carrier display in lockscreen." into eclair
John Wang [Fri, 22 Jan 2010 18:08:23 +0000 (10:08 -0800)]
Merge "Update carrier display in lockscreen." into eclair

14 years agoUpdate carrier display in lockscreen.
John Wang [Fri, 22 Jan 2010 01:30:07 +0000 (17:30 -0800)]
Update carrier display in lockscreen.

For bug 2352904, lockscreen need clearly show "Emergency Calls Only" status no matter with SIM status.

The change is to show both SIM card status and carrier PLMN including "Emergency Calls Only" status.

14 years agoWorkaround for a keyguard problem that appeared in the in call screen.
Mike Lockwood [Thu, 21 Jan 2010 21:38:44 +0000 (16:38 -0500)]
Workaround for a keyguard problem that appeared in the in call screen.

While in call, pressing the power key to turn off the screen caused the Home button
to no longer work after rewaking the screen due to the KeyguardViewMediator mHidden flag not being set.

Change-Id: I322317671b2e5e32de23ed524f6e4808b0334c12
BUG: 2382766

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge "Fix for 2292713: Remove workaround that hides SlidingTab widget while internal...
Jim Miller [Sat, 16 Jan 2010 01:20:35 +0000 (17:20 -0800)]
Merge "Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent." into eclair

14 years agoFix for 2292713: Remove workaround that hides SlidingTab widget while internal state...
Jim Miller [Sat, 16 Jan 2010 00:39:16 +0000 (16:39 -0800)]
Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent.

The previous workaround for this race condition prevented glitches by postponing drawing the SlidingTab until the internal state was consistent.  Unfortunately, the InCallScreen seems to trigger this most of the time if the keyboard is open or the last application was in landscape mode.

Instead, we'll handle this separately in lockscreen.

14 years agoDo not turn off screen immediately after undocking.
Mike Lockwood [Thu, 14 Jan 2010 05:11:08 +0000 (21:11 -0800)]
Do not turn off screen immediately after undocking.

Change-Id: I1d01d141961d1e26d814a202745ce77678fd4518
BUG: 2356385

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoandroid-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:19:04 +0000 (15:19 -0800)]
android-2.1_r1 snapshot

14 years agoStill use ro.monkey
Ying Wang [Tue, 5 Jan 2010 02:49:49 +0000 (18:49 -0800)]
Still use ro.monkey

http://b/issue?id=1681101

14 years agoRename ro.monkey to monkey.running
Ying Wang [Mon, 4 Jan 2010 19:57:30 +0000 (11:57 -0800)]
Rename ro.monkey to monkey.running

So that Monkey can set it before running and reset it after running.

14 years agoFix issue #2302336: System dialogs are not being given a layer
Dianne Hackborn [Thu, 3 Dec 2009 19:37:44 +0000 (11:37 -0800)]
Fix issue #2302336: System dialogs are not being given a layer

Define a new dedicated layer for system dialogs and use it.

Change-Id: Iaa8b7a48617ae37ea3e83c9f77b1d357f750f5bc

14 years agoMerge change I85572973 into eclair
Android (Google) Code Review [Thu, 3 Dec 2009 19:00:06 +0000 (11:00 -0800)]
Merge change I85572973 into eclair

* changes:
  Do not show keyguard if screen is turned off by proximity sensor.

14 years agoTiny code fix required for http://b/2260798 .
Daniel Sandler [Thu, 3 Dec 2009 16:17:09 +0000 (11:17 -0500)]
Tiny code fix required for http://b/2260798 .

(We were trying to place the emergency call button beneath a
layout object that no longer exists, which is why it was
showing up at the top of the screen on top of other things.)

Change-Id: I10b8b90f0e5923edf5d672b822ee8da6e28933d2

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 agoeclair snapshot
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:46:07 +0000 (18:46 -0800)]
eclair snapshot

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