304 Commits

Author SHA1 Message Date
Dianne Hackborn
d3715100b3 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
2009-09-15 19:28:03 -07:00
Dianne Hackborn
fed9cb5610 Various fixes for back key handling.
Change-Id: I8ad314722ce38711ce5c57c4fd3b2942cfe099a7
2009-09-14 21:23:11 -07:00
Dianne Hackborn
a207baaf2c 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
2009-09-14 15:10:50 -07:00
Dianne Hackborn
c4d9d21009 Tweak so lock screen wallpaper is aligned with real wallpaper.
Change-Id: Iee117ae1496c0c4e9d12d16eeba69bcad351a57a
2009-09-06 22:12:28 -07:00
Dianne Hackborn
181ceb5c78 Put vibration patterns in resources.
Change-Id: If7c9d4c3bee4bc3319379fbb588265d6202c2bee
2009-08-27 22:58:01 -07:00
Android (Google) Code Review
7ca3b4277d Merge change 22959 into eclair
* changes:
  Don't activate keyguard if screen is turned off while proximity sensor is active.
2009-08-27 14:31:17 -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
33303d76cc Don't activate keyguard if screen is turned off while proximity sensor is active.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 13:27:51 -07:00
Dan Murphy
ab97c84da5 policy/impl: Add option to disable screen-unlock-on-slider-open
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
2009-08-26 08:51:09 -07:00
Karl Rosaen
84999d69e0 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.
2009-08-25 09:27:47 -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
Romain Guy
8e9a594936 Remove unused field from PhoneWindow.DecorView. 2009-08-20 23:34:42 -07:00
Dianne Hackborn
93a0a5f2ca Update to implement new APIs. 2009-08-20 19:33:02 -07:00
Dianne Hackborn
3c3bd44fd4 New wallpaper transition constants. 2009-08-19 17:09:46 -07:00
Fred Quintana
1c01c8bc79 do not merge: cherrypicked 53f5bc273b81a3761242d3356ed8490b5e6797f2 from master branch 2009-08-15 21:46:24 -07:00
Dianne Hackborn
4bf7bcf89b Add support for new wallpaper theme attribute. 2009-08-09 17:23:00 -07:00
Dianne Hackborn
b7cd8b9144 Add knowledge about new wallpaper window type. 2009-08-08 20:53:03 -07:00
Joe Onorato
51afe5c404 Fix bug 1982892 - batteryservice turns off device even while plugged in
Also, make the battery service do it, not some keyguard thing.
2009-07-30 08:04:53 -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
Karl Rosaen
39ac33abdd am 1d903521: have "search" as the reason when dismissing system dialogs for search.
Merge commit '1d903521ffc93b5128ebc445d7dd046ee0d5fbc4'

* commit '1d903521ffc93b5128ebc445d7dd046ee0d5fbc4':
  have "search" as the reason when dismissing system dialogs for search.
2009-07-21 14:38:28 -07:00
Karl Rosaen
323216beeb have "search" as the reason when dismissing system dialogs for search.
this way search can't dismiss itself.  can't use the constant because it is
in policy.  would rather leave it this way instead of moving constants for
system dialog dismissal to framework.
2009-07-20 14:00:29 -07:00
Joe Onorato
b41c0dc334 am 83cf383b: Close the global actions menu when the screen goes off.
Merge commit '83cf383bf462ecb53b4233fc3ae7f1202938d80b'

* commit '83cf383bf462ecb53b4233fc3ae7f1202938d80b':
  Close the global actions menu when the screen goes off.
2009-07-17 15:43:01 -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
Android (Google) Code Review
36c7b19264 Merge change 7362
* changes:
  Disable fallback screen that asks for usr/pwd if we have SAML accounts which require web login.
2009-07-15 13:15:08 -07:00
Ilia Tulchinsky
24cfa450fa Disable fallback screen that asks for usr/pwd if we have SAML accounts which require web login. 2009-07-14 20:53:39 -07:00
Karl Rosaen
6bc6a508f6 am 5785bc2d: Dismiss system windows when search is launched.
Merge commit '5785bc2dad36c7ad34a548865ba77c04c46ed097'

* commit '5785bc2dad36c7ad34a548865ba77c04c46ed097':
  Dismiss system windows when search is launched.
2009-07-14 15:06:42 -07:00
Karl Rosaen
32a9cd8f69 Dismiss system windows when search is launched. 2009-07-14 14:57:47 -07:00
Joe Onorato
bea76ea3d0 am 7db439ee: Fix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
Merge commit '7db439ee518b97881625f13ee738ecb891b573a8'

* commit '7db439ee518b97881625f13ee738ecb891b573a8':
  Fix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
2009-07-06 12:43:30 -07:00
Joe Onorato
f46d2db932 Fix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged." 2009-07-06 15:02:38 -04:00
Dianne Hackborn
c3978f40b6 am ea85711f: Remove unnused variable.
Merge commit 'ea85711f1bba755e55439f7d1471067167cc15b3'

* commit 'ea85711f1bba755e55439f7d1471067167cc15b3':
  Remove unnused variable.
2009-06-29 20:20:05 -07:00
Dianne Hackborn
0a88e648b5 Remove unnused variable. 2009-06-26 18:19:32 -07:00
Karl Rosaen
61c2cb6f22 am ee09f4ad: Fix case where the lock screen information won\'t fit on screen.
Merge commit 'ee09f4ad02d04066e2ded84471e1940e91d458c8'

* commit 'ee09f4ad02d04066e2ded84471e1940e91d458c8':
  Fix case where the lock screen information won't fit on screen.
2009-06-24 13:12:24 -07:00
Android (Google) Code Review
4c72461b9a am 7baa113d: Merge change 5165 into donut
Merge commit '7baa113d5793e5cf9df15c8ffdac117672ee8af0'

* commit '7baa113d5793e5cf9df15c8ffdac117672ee8af0':
  When the sim is missing, show "press menu to unlock or place emergency call" on lock screen instead of just "press menu to unlock".
2009-06-24 13:12:23 -07:00
Karl Rosaen
3af5ee44a4 Fix case where the lock screen information won't fit on screen.
The case is in landscape, 'next alarm' showing, and the plmn is showing.
In this case, don't show the next alarm.
2009-06-23 18:21:46 -07:00
Android (Google) Code Review
ec5879f664 Merge change 5165 into donut
* changes:
  When the sim is missing, show "press menu to unlock or place emergency call" on lock screen instead of just "press menu to unlock".
2009-06-23 18:02:32 -07:00
Karl Rosaen
50645d4a09 When the sim is missing, show "press menu to unlock or place emergency call" on lock screen instead of just "press menu to unlock".
This is to make it clearer to users that they can still place an emergency call using the dialer
even with no SIM card.
2009-06-23 17:54:58 -07:00
Dianne Hackborn
918f24a8c0 am 72201963: Fix issue #1806217.
Merge commit '72201963350da86a5c200196364e18cbee70b3a5'

* commit '72201963350da86a5c200196364e18cbee70b3a5':
  Fix issue #1806217.
2009-06-23 13:08:38 -07:00
Dianne Hackborn
a7c176c341 Fix issue #1806217.
We were not clearing the background drawable if it had been set as a resource
reference.
2009-06-22 20:56:57 -07:00
Android (Google) Code Review
2850394cea am 09ac6a4e: Merge change 4484 into donut
Merge commit '09ac6a4ea898221dfc338003683bb3a34f2d30a8'

* commit '09ac6a4ea898221dfc338003683bb3a34f2d30a8':
  Fixes #1414069. Display recent activities with two lines of text.
2009-06-17 15:39:09 -07:00
Mitsuru Oshima
bdbbe68f0b am 525258d2: Pick the right rotation based on window\'s width/height.
Merge commit '525258d21cf9570461507f3668e24668e18c9f99'

* commit '525258d21cf9570461507f3668e24668e18c9f99':
  Pick the right rotation based on window's width/height.
2009-06-17 15:38:02 -07:00
Android (Google) Code Review
2350643115 Merge change 4484 into donut
* changes:
  Fixes #1414069. Display recent activities with two lines of text.
2009-06-17 10:58:10 -07:00
Romain Guy
d0ffc10947 Fixes #1414069. Display recent activities with two lines of text. 2009-06-17 10:39:48 -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
8160c8edce am 6e09858c: Don\'t enforce that search dialog is a singleton.
Merge commit '6e09858c0bd13a321ed716b670b361e62b1536e4'

* commit '6e09858c0bd13a321ed716b670b361e62b1536e4':
  Don't enforce that search dialog is a singleton.
2009-06-12 08:26:19 -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
Mike Reed
f4cd7a3187 respect FEATURE_OPENGL (at least while we test it) 2009-06-02 15:31:45 -04:00
Dianne Hackborn
efb0212d9c am 540d7de2: Implement support for new second-level media window type.
Merge commit '540d7de241b39b28480bf4b1bf6870307935fd8b'

* commit '540d7de241b39b28480bf4b1bf6870307935fd8b':
  Implement support for new second-level media window type.
2009-05-21 17:56:32 -07:00