0xdroid:frameworks_policies_base.git
8 years agoFix issue #1999179: search -> click result -> press home = search dialog is shown... android-1.6_r1 android-1.6_r1.1 android-1.6_r1.2 android-sdk-1.6-docs_r1 android-sdk-1.6_r1 android-sdk-tools_r2 beagle-donut-startpoint
Dianne Hackborn [Wed, 29 Jul 2009 00:51:07 +0000 (17:51 -0700)]
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.

9 years agohave "search" as the reason when dismissing system dialogs for search.
Karl Rosaen [Mon, 20 Jul 2009 21:00:29 +0000 (14:00 -0700)]
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.

9 years agoClose the global actions menu when the screen goes off.
Joe Onorato [Fri, 17 Jul 2009 17:09:27 +0000 (13:09 -0400)]
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.

9 years agoDismiss system windows when search is launched.
Karl Rosaen [Tue, 14 Jul 2009 21:56:53 +0000 (14:56 -0700)]
Dismiss system windows when search is launched.

9 years agoFix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."
Joe Onorato [Mon, 6 Jul 2009 18:58:50 +0000 (14:58 -0400)]
Fix bug 1317754 - "Idle screen displays "Charging (100%)" even when fully charged."

9 years agoRemove unnused variable.
Dianne Hackborn [Sat, 27 Jun 2009 01:19:32 +0000 (18:19 -0700)]
Remove unnused variable.

9 years agoFix case where the lock screen information won't fit on screen.
Karl Rosaen [Wed, 24 Jun 2009 00:54:58 +0000 (17:54 -0700)]
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.

9 years agoMerge change 5165 into donut
Android (Google) Code Review [Wed, 24 Jun 2009 01:02:32 +0000 (18:02 -0700)]
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".

9 years agoWhen the sim is missing, show "press menu to unlock or place emergency call" on lock...
Karl Rosaen [Wed, 24 Jun 2009 00:54:58 +0000 (17:54 -0700)]
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.

9 years agoFix issue #1806217.
Dianne Hackborn [Tue, 23 Jun 2009 03:56:57 +0000 (20:56 -0700)]
Fix issue #1806217.

We were not clearing the background drawable if it had been set as a resource
reference.

9 years agoMerge change 4484 into donut
Android (Google) Code Review [Wed, 17 Jun 2009 17:58:10 +0000 (10:58 -0700)]
Merge change 4484 into donut

* changes:
  Fixes #1414069. Display recent activities with two lines of text.

9 years agoFixes #1414069. Display recent activities with two lines of text.
Romain Guy [Wed, 17 Jun 2009 17:39:48 +0000 (10:39 -0700)]
Fixes #1414069. Display recent activities with two lines of text.

9 years agoPick the right rotation based on window's width/height.
Mitsuru Oshima [Wed, 17 Jun 2009 01:27:18 +0000 (18:27 -0700)]
Pick the right rotation based on window's width/height.

9 years agoDon't enforce that search dialog is a singleton.
Bjorn Bringert [Mon, 8 Jun 2009 22:20:15 +0000 (23:20 +0100)]
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.

9 years agoImplement support for new second-level media window type.
Dianne Hackborn [Fri, 22 May 2009 00:34:15 +0000 (17:34 -0700)]
Implement support for new second-level media window type.

9 years agoFix issue #1737531: Don't allow applications to prevent the user from leaving them
Dianne Hackborn [Wed, 20 May 2009 01:51:21 +0000 (18:51 -0700)]
Fix issue #1737531: Don't allow applications to prevent the user from leaving them

9 years agoIf a window specifies flag to show even when screen is locked, the keyguard is hidden...
Suchi Amalapurapu [Fri, 15 May 2009 01:01:07 +0000 (18:01 -0700)]
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.

9 years agoMerge change 702 into donut
Android (Google) Code Review [Fri, 15 May 2009 01:24:56 +0000 (18:24 -0700)]
Merge change 702 into donut

* changes:
  Accessibility feature - event population and firing

9 years agoAccessibility feature - event population and firing
svetoslavganov [Wed, 29 Apr 2009 02:17:02 +0000 (19:17 -0700)]
Accessibility feature - event population and firing

9 years agoFix typos
Marco Nelissen [Tue, 12 May 2009 21:15:17 +0000 (14:15 -0700)]
Fix typos

9 years agoImprove the rendering speed of the lock screen by reporting the appropriate opacity...
Romain Guy [Mon, 11 May 2009 22:28:49 +0000 (15:28 -0700)]
Improve the rendering speed of the lock screen by reporting the appropriate opacity for the background wallpaper.

9 years agoSwitch to new improves shutdown class that is now in framework.
Dianne Hackborn [Thu, 7 May 2009 22:55:42 +0000 (15:55 -0700)]
Switch to new improves shutdown class that is now in framework.

9 years agomerge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:58 +0000 (17:56 -0700)]
merge cupcake into donut

9 years agoAI 145778: Manual merge changes 145382-145384 from cupcake.
Andy Stadler [Fri, 10 Apr 2009 23:24:49 +0000 (16:24 -0700)]
AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778

9 years agoAI 145382: API review: change new media keycode names to avoid ambiguity. android-1.5 android-1.5r2 android-1.5r3 android-1.5r4 android-sdk-1.5-pre android-sdk-1.5_r1 android-sdk-1.5_r3
Dianne Hackborn [Thu, 9 Apr 2009 19:31:16 +0000 (12:31 -0700)]
AI 145382: API review: change new media keycode names to avoid ambiguity.
  Updates the key maps.  During this I noticed that the dream keymap didn't have all of the media buttons like the sapphire key map...!  So this is now changed to match.
  BUG=1779435

Automated import of CL 145382

9 years agoAI 144185: Integrate cdma into the main code base.
Wink Saville [Thu, 2 Apr 2009 08:37:02 +0000 (01:37 -0700)]
AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185

9 years agoAI 143899: am: CL 143896 Fix issue #1748954 and #1737952:
Dianne Hackborn [Wed, 1 Apr 2009 01:00:37 +0000 (18:00 -0700)]
AI 143899: am: CL 143896 Fix issue #1748954 and #1737952:
  #1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden.  To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big...  actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
  #1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix.  This involved a few things to clean up hiding/showing the status bar:
  - We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window.  This required tweaking the layout API so the policy can request a second layout pass if needed.
  - When doing layout, we are now much more aggressive about skipping the layout of windows.  Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen.  The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
  Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143899

9 years agoAI 143896: Fix issue #1748954 and #1737952:
Dianne Hackborn [Wed, 1 Apr 2009 00:58:46 +0000 (17:58 -0700)]
AI 143896: Fix issue #1748954 and #1737952:
  #1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden.  To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big...  actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
  #1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix.  This involved a few things to clean up hiding/showing the status bar:
  - We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window.  This required tweaking the layout API so the policy can request a second layout pass if needed.
  - When doing layout, we are now much more aggressive about skipping the layout of windows.  Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen.  The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
  BUG=1748954,1737952

Automated import of CL 143896

9 years agoAI 143414: am: CL 143413 Fix issue #1742588 (Crash phone while switching between...
Dianne Hackborn [Sat, 28 Mar 2009 03:56:50 +0000 (20:56 -0700)]
AI 143414: am: CL 143413 Fix issue #1742588 (Crash phone while switching between keyboard settings and Gmail)
  Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143414

9 years agoAI 143413: Fix issue #1742588 (Crash phone while switching between keyboard settings...
Dianne Hackborn [Sat, 28 Mar 2009 01:51:15 +0000 (18:51 -0700)]
AI 143413: Fix issue #1742588 (Crash phone while switching between keyboard settings and Gmail)
  BUG=1742588

Automated import of CL 143413

9 years agoAI 143173: am: CL 142879 Fix issue #1732012 (Only show screen rotation animation...
Dianne Hackborn [Fri, 27 Mar 2009 23:16:03 +0000 (16:16 -0700)]
AI 143173: am: CL 142879 Fix issue #1732012 (Only show screen rotation animation when triggered by sensor) -- set the new surface flag as appropriate.
  Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143173

9 years agoAI 143169: am: CL 142870 Fix issue #1724917 (Applications (browser, maps, gmail)...
Dianne Hackborn [Fri, 27 Mar 2009 23:04:08 +0000 (16:04 -0700)]
AI 143169: am: CL 142870 Fix issue #1724917 (Applications (browser, maps, gmail) fail to retain their landscape state after coming out of sleep mode).  We now rely on the listeners last known orientation, and make sure to clear it when enabling/disabling.
  Also do most of the work for issue #1732012 (Only show screen rotation animation when triggered by sensor).  This just needs to be hooked up to the surface flinger API when that appears.
  Original author: hackbod
  Merged from: //branches/cupcake/...

Automated import of CL 143169

9 years agoAutomated import from //branches/cupcake/...@142879,142879
Dianne Hackborn [Thu, 26 Mar 2009 07:04:52 +0000 (00:04 -0700)]
Automated import from //branches/cupcake/...@142879,142879

9 years agoAutomated import from //branches/cupcake/...@142870,142870
Dianne Hackborn [Thu, 26 Mar 2009 05:39:21 +0000 (22:39 -0700)]
Automated import from //branches/cupcake/...@142870,142870

9 years agoAutomated import from //branches/donutburger/...@142361,142361
Karl Rosaen [Wed, 25 Mar 2009 05:35:17 +0000 (22:35 -0700)]
Automated import from //branches/donutburger/...@142361,142361

9 years agoAutomated import from //branches/donutburger/...@142291,142291
Suchi Amalapurapu [Wed, 25 Mar 2009 05:24:47 +0000 (22:24 -0700)]
Automated import from //branches/donutburger/...@142291,142291

9 years agoAutomated import from //branches/donutburger/...@141746,141746
Dianne Hackborn [Wed, 25 Mar 2009 03:50:09 +0000 (20:50 -0700)]
Automated import from //branches/donutburger/...@141746,141746

9 years agoAutomated import from //branches/cupcake/...@142360,142360
Karl Rosaen [Wed, 25 Mar 2009 02:31:39 +0000 (19:31 -0700)]
Automated import from //branches/cupcake/...@142360,142360

9 years agoAutomated import from //branches/cupcake/...@142231,142231
Suchi Amalapurapu [Wed, 25 Mar 2009 02:18:40 +0000 (19:18 -0700)]
Automated import from //branches/cupcake/...@142231,142231

9 years agoAutomated import from //branches/donutburger/...@140911,140911
Karl Rosaen [Wed, 25 Mar 2009 01:55:19 +0000 (18:55 -0700)]
Automated import from //branches/donutburger/...@140911,140911

9 years agoAutomated import from //branches/cupcake/...@141745,141745
Dianne Hackborn [Wed, 25 Mar 2009 01:18:49 +0000 (18:18 -0700)]
Automated import from //branches/cupcake/...@141745,141745

9 years agoauto import from //branches/cupcake_rel/...@141571
The Android Open Source Project [Fri, 20 Mar 2009 06:08:56 +0000 (23:08 -0700)]
auto import from //branches/cupcake_rel/...@141571

9 years agoauto import from //branches/cupcake_rel/...@140373
The Android Open Source Project [Thu, 19 Mar 2009 00:39:47 +0000 (17:39 -0700)]
auto import from //branches/cupcake_rel/...@140373

9 years agoauto import from //branches/cupcake_rel/...@138607
The Android Open Source Project [Fri, 13 Mar 2009 20:04:23 +0000 (13:04 -0700)]
auto import from //branches/cupcake_rel/...@138607

9 years agoauto import from //branches/cupcake/...@137873
The Android Open Source Project [Wed, 11 Mar 2009 19:11:58 +0000 (12:11 -0700)]
auto import from //branches/cupcake/...@137873

9 years agoauto import from //branches/cupcake/...@137197
The Android Open Source Project [Mon, 9 Mar 2009 18:52:14 +0000 (11:52 -0700)]
auto import from //branches/cupcake/...@137197

9 years agoauto import from //depot/cupcake/@136745
The Android Open Source Project [Fri, 6 Mar 2009 04:00:44 +0000 (20:00 -0800)]
auto import from //depot/cupcake/@136745

9 years agoauto import from //depot/cupcake/@136594
The Android Open Source Project [Thu, 5 Mar 2009 22:34:37 +0000 (14:34 -0800)]
auto import from //depot/cupcake/@136594

9 years agoauto import from //depot/cupcake/@135843
The Android Open Source Project [Wed, 4 Mar 2009 03:32:13 +0000 (19:32 -0800)]
auto import from //depot/cupcake/@135843

9 years agoauto import from //depot/cupcake/@135843
The Android Open Source Project [Wed, 4 Mar 2009 02:28:48 +0000 (18:28 -0800)]
auto import from //depot/cupcake/@135843

9 years agoauto import from //depot/cupcake/@132589
The Android Open Source Project [Tue, 3 Mar 2009 22:04:28 +0000 (14:04 -0800)]
auto import from //depot/cupcake/@132589

9 years agoauto import from //depot/cupcake/@137055
The Android Open Source Project [Tue, 3 Mar 2009 06:54:37 +0000 (22:54 -0800)]
auto import from //depot/cupcake/@137055

9 years agoauto import from //branches/cupcake/...@132569
The Android Open Source Project [Fri, 20 Feb 2009 15:38:32 +0000 (07:38 -0800)]
auto import from //branches/cupcake/...@132569

9 years agoauto import from //branches/cupcake/...@132276
The Android Open Source Project [Thu, 19 Feb 2009 18:57:35 +0000 (10:57 -0800)]
auto import from //branches/cupcake/...@132276

9 years agoauto import from //branches/cupcake/...@131421
The Android Open Source Project [Fri, 13 Feb 2009 20:57:52 +0000 (12:57 -0800)]
auto import from //branches/cupcake/...@131421

9 years agoauto import from //branches/cupcake/...@130745
The Android Open Source Project [Tue, 10 Feb 2009 23:44:04 +0000 (15:44 -0800)]
auto import from //branches/cupcake/...@130745

9 years agoauto import from //branches/cupcake/...@127436
The Android Open Source Project [Thu, 22 Jan 2009 08:13:43 +0000 (00:13 -0800)]
auto import from //branches/cupcake/...@127436

9 years agoauto import from //branches/cupcake/...@126645
The Android Open Source Project [Fri, 16 Jan 2009 00:12:12 +0000 (16:12 -0800)]
auto import from //branches/cupcake/...@126645

9 years agoCode drop from //branches/cupcake/...@124589
The Android Open Source Project [Thu, 18 Dec 2008 02:05:50 +0000 (18:05 -0800)]
Code drop from //branches/cupcake/...@124589

9 years agoInitial Contribution android-1.0
The Android Open Source Project [Tue, 21 Oct 2008 14:00:00 +0000 (07:00 -0700)]
Initial Contribution