Commit Graph

94 Commits

Author SHA1 Message Date
Wink Saville
d13e213396 am 79484171: am f010b5d2: Change EndCallBehavior while in UTS test mode.
Merge commit '794841710d11f59fd1736d1c889cc9b91f38f78e'

* commit '794841710d11f59fd1736d1c889cc9b91f38f78e':
  Change EndCallBehavior while in UTS test mode.
2010-02-12 16:02:27 -08:00
Wink Saville
72c94b9f38 am f010b5d2: Change EndCallBehavior while in UTS test mode.
Merge commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e' into eclair-plus-aosp

* commit 'f010b5d26f1e1c93b93576995e76ffd63db2f96e':
  Change EndCallBehavior while in UTS test mode.
2010-02-12 15:57:25 -08:00
Amith Yamasani
c33cb7117e Add a new KEYBOARD_TAP haptic feedback type for very short, low-latency vibration.
The minimum value varies from device to device, so this is useful for defining
the shortest and most efficient vibration. The VibratorService creates a Thread
when playing back vibration patterns, so this allows you to avoid thread creation
and associated scheduling delays by specifying a one-shot duration in the config
file.
2010-02-12 15:19:54 -08:00
Dianne Hackborn
c777e071d1 Add pointer location to window manager. 2010-02-12 13:10:56 -08:00
Wink Saville
d2e6a33cb1 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
2010-02-12 12:12:06 -08:00
Adam Powell
9d86fafe63 Added haptic feedback support for scroll barriers 2010-02-10 11:40:31 -08:00
Mike Lockwood
28569306e3 Add implementation for ALLOW_LOCK_WHILE_SCREEN_ON flag to PhoneWindowManager
This allows the lockscreen to activate after the normal screen timeout while the
screen is on.  Needed for dock apps, screen savers, etc.

Change-Id: I25c3579e4363c2b19d503fdbd45d2ff41cdd11bb
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-29 07:15:43 -05:00
Jean-Baptiste Queru
5704f326e0 resolved conflicts for merge of f05f7ab1 to master
Change-Id: Id39b4f1f0aefb387261bbe721050814d5517cea1
2010-01-28 08:15:50 -08:00
The Android Open Source Project
33cafac65a am 44f9f23e: merge from open-source master
Merge commit '44f9f23ea227c62ce9250f49f5bf338cbb5f5dd7'

* commit '44f9f23ea227c62ce9250f49f5bf338cbb5f5dd7':
  Added missing media keycode (KEYCODE_MEDIA_REWIND), removed duplicate keycode (KEYCODE_MEDIA_PREVIOUS)
2010-01-27 16:15:13 -08:00
Mike Lockwood
85e70956eb am ccd5aeef: Workaround for a keyguard problem that appeared in the in call screen.
Merge commit 'ccd5aeef0bccfa7963a3dc5d33d467a1446865f1' into eclair-plus-aosp

* commit 'ccd5aeef0bccfa7963a3dc5d33d467a1446865f1':
  Workaround for a keyguard problem that appeared in the in call screen.
2010-01-21 18:27:50 -08:00
Mike Lockwood
3cdda0c3d7 am 5fdf6a91: am 5b2151ae: Do not turn off screen immediately after undocking.
Merge commit '5fdf6a917c563df953c5215fe00b6ae8fe70a501'

* commit '5fdf6a917c563df953c5215fe00b6ae8fe70a501':
  Do not turn off screen immediately after undocking.
2010-01-21 14:29:32 -08:00
Mike Lockwood
f3bfed513e 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>
2010-01-21 16:38:44 -05:00
The Android Open Source Project
9f686a4eb3 merge from open-source master 2010-01-21 11:21:25 -08:00
Mike Lockwood
e224cefb3c Do not turn off screen immediately after undocking.
Change-Id: I1d01d141961d1e26d814a202745ce77678fd4518
BUG: 2356385

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-14 20:20:31 -05:00
Romain Guy
cc6828c676 Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:06:37 -08:00
Johan Redestig
2e2a3d0a4b Added missing media keycode (KEYCODE_MEDIA_REWIND), removed duplicate keycode (KEYCODE_MEDIA_PREVIOUS) 2010-01-05 08:45:33 +01:00
Dianne Hackborn
0874372554 Don't perform app transition if app is not currently visible.
Tell the window manager if we are not visible due to the lock screen
or status bar.
2009-12-21 15:31:05 -08:00
Dianne Hackborn
0347b09958 am 4dbf514c: Fix issue #2302336: System dialogs are not being given a layer
Merge commit '4dbf514c6c73832630e4c9bb068cf950ff044a34' into eclair-mr2

* commit '4dbf514c6c73832630e4c9bb068cf950ff044a34':
  Fix issue #2302336: System dialogs are not being given a layer
2009-12-03 12:28:53 -08:00
Dianne Hackborn
6a294ce7a5 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
2009-12-03 11:37:44 -08:00
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
Jean-Baptiste Queru
0469e9b139 eclair snapshot 2009-11-12 18:46:07 -08:00
Mike Lockwood
09a404081a Do not apply keyguard's short timeout when the keyguard is hidden by another window.
Fixes bug b/2215852 (Music player doesn't grab screen wakelock)

Change-Id: I6c402cdb460d216314ad72e37dbcdc7e19518941
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-08 00:33:23 -05:00
Jim Miller
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