Merge commit '83cf383bf462ecb53b4233fc3ae7f1202938d80b'
* commit '83cf383bf462ecb53b4233fc3ae7f1202938d80b':
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.
Merge commit '5785bc2dad36c7ad34a548865ba77c04c46ed097'
* commit '5785bc2dad36c7ad34a548865ba77c04c46ed097':
Dismiss system windows when search is launched.
Merge commit 'ee09f4ad02d04066e2ded84471e1940e91d458c8'
* commit 'ee09f4ad02d04066e2ded84471e1940e91d458c8':
Fix case where the lock screen information won't fit on screen.
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".
Merge commit '09ac6a4ea898221dfc338003683bb3a34f2d30a8'
* commit '09ac6a4ea898221dfc338003683bb3a34f2d30a8':
Fixes#1414069. Display recent activities with two lines of text.
Merge commit '525258d21cf9570461507f3668e24668e18c9f99'
* commit '525258d21cf9570461507f3668e24668e18c9f99':
Pick the right rotation based on window's width/height.
Merge commit '6e09858c0bd13a321ed716b670b361e62b1536e4'
* commit '6e09858c0bd13a321ed716b670b361e62b1536e4':
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.
Merge commit '540d7de241b39b28480bf4b1bf6870307935fd8b'
* commit '540d7de241b39b28480bf4b1bf6870307935fd8b':
Implement support for new second-level media window type.
Merge commit 'a56b1c78713257bc0e138ddf73f7c72e917e7d0d'
* commit 'a56b1c78713257bc0e138ddf73f7c72e917e7d0d':
Fix issue #1737531: Don't allow applications to prevent the user from leaving them
Merge commit '1615d63b8fd58d1e8d19207ffb0aeccf09840021'
* commit '1615d63b8fd58d1e8d19207ffb0aeccf09840021':
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.
Merge commit 'e41d81948e1f8e89c19ae30037b260ae3b2adea2'
* commit 'e41d81948e1f8e89c19ae30037b260ae3b2adea2':
Improve the rendering speed of the lock screen by reporting the appropriate opacity for the background wallpaper.
Merge commit 'cbaa463dd167ad9a1f0f4e1eba65bb3f0285db95'
* commit 'cbaa463dd167ad9a1f0f4e1eba65bb3f0285db95':
Switch to new improves shutdown class that is now in framework.
- added an AccountManagerActivity, a base Activity that can be
used by activities that are launched by AccountAuthenticator
intents. This makes it easy for an Activity to send a result
using an AccountAuthenticatorResponse
- added debug strings to the AccountAuthenticatorCache
- improved the API for the AccountAuthenticatorResponse and
made it Parcelable so that it can be passed to an Activity
via an Intent
- changed the AccountManager to use Futures for the
asynchronous calls and to notify the user via a callback
when the request is complete
- changed the AccountManager to convert any errors that are
returned into Exceptions
- added constants for the error codes that are passed across
the IAccountManagerResponse and
IAccountAuthenticatorResponse interfaces
- added a dump() method to the AccountManagerService so that
it can display the list of active sessions and registered
authenticators
- added an way to interrogate the AccountManagerService for
the list of registered authenticators
- removed more methods from the GoogleLoginServiceHelper and
GoogleLoginServiceBlockingHelper and changed the callers to
use the AccountManager
Automated import of CL 145177
#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/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143901
#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