Commit Graph

74 Commits

Author SHA1 Message Date
Mike Lockwood
4c8156e615 am e7ef4241: Fix volume keys when in-call and screen is off due to proximity sensor.
Merge commit 'e7ef42416088235d9e220e3b031d4f612f436a06' into eclair-mr2

* commit 'e7ef42416088235d9e220e3b031d4f612f436a06':
  Fix volume keys when in-call and screen is off due to proximity sensor.
2009-12-02 09:49:45 -08:00
Mike Lockwood
99ff0a8290 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>
2009-12-02 01:56:24 -05:00
Mike Lockwood
ea5ea98eb1 resolved conflicts for merge of b64c72df to eclair-mr2
Change-Id: If3c6a28281b08464fd3f24e752f5e07f6f8a420e
2009-12-01 21:21:06 -05:00
Mike Lockwood
f791330dd1 Remove some unused window manager methods.
Change-Id: Idd23ea4adb7328781ea81c45d61392b51dee1374
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-28 22:27:48 -05:00
Mike Lockwood
c72b15f2ee 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>
2009-11-28 20:58:22 -05: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
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
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
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
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
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
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
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
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
Dianne Hackborn
b1a7980800 Whoops forgot the change to actually check for safe mode!
Change-Id: Iba0ad151ed786be8ae8659bfefe2a29776ce6311
2009-09-29 15:18:31 -07:00
Dan Murphy
cd3d3f22ab 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>
2009-09-25 14:10:44 -07:00
Mike Lockwood
a53e381665 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>
2009-09-25 14:47:10 -04:00
Dianne Hackborn
01ad2f4a2d Implement fade out of lock screen.
Change-Id: I516aa2257c788a9fb618ac37c9d227b1e7a3c2ae
2009-09-24 19:33:30 -07:00
Dianne Hackborn
0572658afd Allow dock keep screen on to select between AC and USB power.
Change-Id: I2309992f5ad7b93006eb52f31758f71c48ed98f1
2009-09-22 18:59:46 -07:00
Joe Onorato
1b58b3ebee The nosensor flag wasn't being honored. 2009-09-22 17:30:34 -07:00
Dianne Hackborn
39c2d71950 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
2009-09-22 13:31:29 -07:00
Dianne Hackborn
b446e9767a 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
2009-09-21 17:39:09 -07:00
Mike Lockwood
cbc51607ac 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>
2009-09-21 13:40:31 -04:00
Mike Lockwood
e9867d2862 Support for forcing accelerometer based orientation management when docked.
Change-Id: I5436a7191263a0a2a5ca8108da2f7c094c49b88a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-20 09:03:59 -04:00
Dianne Hackborn
f54c8f9dd8 Add ability to keep screen on while docked.
Change-Id: I11f22e92e85d0fb384c70b614d0a55633f74902e
2009-09-19 14:03:57 -07:00
Dianne Hackborn
abe0da0a79 Policy changes for lock screen on live wallpaper.
Change-Id: Ib875ef839b7727194461b13684b77bf38ad3c52e
2009-09-18 09:27:35 -07:00
Mike Lockwood
2d1efbde2f Allow specifying separate orientation rotations for car and desk dock.
Change-Id: Ic6762d6f2882420bd7d5a13d36057599d51dfc66
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-16 12:15:53 -04:00
Dianne Hackborn
2862fff6c2 Update policy for hiding navigation keys, configuration.
Change-Id: Ieeb523cdc05316d34501872d684531142132b402
2009-09-15 22:56:29 -07:00
Dianne Hackborn
181ceb5c78 Put vibration patterns in resources.
Change-Id: If7c9d4c3bee4bc3319379fbb588265d6202c2bee
2009-08-27 22:58:01 -07:00
Paul Eastham
d6b903d950 Increase vibrate duration on vkey haptics so they can be felt. 2009-08-27 14:11:23 -07:00
Mike Lockwood
1753f7f64d 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>
2009-08-24 15:40:28 -07:00
Dianne Hackborn
3c3bd44fd4 New wallpaper transition constants. 2009-08-19 17:09:46 -07:00
Dianne Hackborn
b7cd8b9144 Add knowledge about new wallpaper window type. 2009-08-08 20:53:03 -07:00
Dianne Hackborn
dad563e3f3 am 1dc1ccaf: Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
Merge commit '1dc1ccaf5c8cc136b71537f310a3f13150aaef41'

* commit '1dc1ccaf5c8cc136b71537f310a3f13150aaef41':
  Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
2009-07-29 16:45:08 -07:00
Dianne Hackborn
94a679daba Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
Re-arrange various things to ensure that the search dialog is told about system windows being
closed before it is told about the navigation back to home.
2009-07-28 17:51:07 -07:00
Dianne Hackborn
0041e97ce6 Update for virtual key haptic feedback, deal with canceled keys. 2009-07-24 17:14:43 -07:00
Eric Laurent
413cb9debd Fix issue 1795088 Improve audio routing code
Initial commit for review.
2009-07-23 09:58:08 -07:00
Joe Onorato
78866b1e07 Close the global actions menu when the screen goes off.
Previously, the global actions menu was closed when the keyguard was shown, but
when the menu was shown from within the keyguard, it wasn't closed ever again
when the screen goes off.  That had the result that if your pocket managed to
bring up the dialog, the menu would likely never go away on its own, and
eventually do something awful like go into airplane mode.
2009-07-17 13:09:27 -04:00
Dianne Hackborn
0a88e648b5 Remove unnused variable. 2009-06-26 18:19:32 -07:00
Mitsuru Oshima
831d0d9c40 Pick the right rotation based on window's width/height. 2009-06-16 19:27:23 -07:00
Bjorn Bringert
a163bdcf5c Don't enforce that search dialog is a singleton.
There was code in PhoneWindowManager from last time when
the search dialog was a system dialog that caused an exception
if the search was added to the window manager twice.
Generally there should only be one search bar, but because
window manager calls are asynchronous and don't execute in order,
we can't be sure that a call to stopSearch() has removed the search
dialog before a subsequent call to startSearch() tries to add it again.

SearchManagerTest.testSearchManagerFastInvocations() crashed the system
process before this change.
2009-06-08 23:20:15 +01:00
Dianne Hackborn
5cb8d79f8a Implement support for new second-level media window type. 2009-05-21 17:34:15 -07:00
Dianne Hackborn
256dd3ba3c Fix issue #1737531: Don't allow applications to prevent the user from leaving them 2009-05-19 18:51:21 -07:00
Suchi Amalapurapu
9cdc90365f If a window specifies flag to show even when screen is locked, the keyguard is hidden and conversely if the keyguard has been hidden
its shown. this lets the window manager to hide or unhide the keyguard based on activities that specify if they want to be displayed
inspite of the keyguard being shown or not.
2009-05-18 10:47:44 -07:00