summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
...
* add local focus mode and input event injection API to Windowkeunyoung2013-08-081-0/+23
| | | | | | | | | | | | - This enables keyboard navigation for window without focus. - FLAG_LOCAL_FOCUS_MODE puts window into local focus mode. - Application needs to put window in local focus mode, control focus, and inject events to make dpad navigation work. - Window in local focus mode does not interact with window manager or ime regarding focus related events. - Also renamed ViewRootImpl.dispatchKey to dispatchInputEvent to allow both key and touch events injection. Change-Id: I8e8561f29e0dade3797fb7ae3ee7690e6b7f8895
* Fix propagation of display overscan information.Jeff Brown2013-08-071-2/+4
| | | | | | | | | | Fix several problems in the way that the overscan was plumbed in which could result in information not being delivered to applications. There was also a violation of certain invariants regarding the immutability of returned DisplayInfo objects. Bug: 10213771 Change-Id: I21184a14305e44278b5e81353bf95d511e8517fb
* Introduce new transparent bars sysui flags.John Spurlock2013-08-061-90/+98
| | | | | | | | | | | | | | | | | | | | Two new public sysui flags for views to request transparent bars: View.SYSTEM_UI_FLAG_TRANSPARENT_STATUS View.SYSTEM_UI_FLAG_TRANSPARENT_NAVIGATION This first change simply introduces the flags at the framework level, and makes the requisite layout tweaks to WM. As part of this change, expunge the term "hideybars" from the codebase. The flag to declare support for transient bars is called: View.SYSTEM_UI_FLAG_ALLOW_TRANSIENT Final visuals/transitions between opaque/transparent bars will be done as a subsequent change. Right now the transparent style is identical to the transient bars. Change-Id: I5ead9c5e7b77f212df5b2a5f6e770596cd2226f3
* Merge "Collapse/disable shade when hiding status bar window."John Spurlock2013-08-051-28/+41
|\
| * Collapse/disable shade when hiding status bar window.John Spurlock2013-07-311-28/+41
| | | | | | | | | | | | | | | | | | | | Provide system bar window visibility (showing/hiding) to sysui, information it did not have before. Use this new info to disable shade interaction when bars are hiding. Bug: 8682123 Change-Id: I4105b789866f847582af1c68a703240d773fa71e
* | Merge "Add force default orientation."Craig Mautner2013-08-031-19/+40
|\ \
| * | Add force default orientation.Craig Mautner2013-08-021-19/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Devices can be configured to remain in their default landscape or portrait orientation by setting config_forceDefaultOrientation true in overlay/.../values/config.xml. Activities that desire to run in the non-default orientation are supported by creating a logical display within the physical display. Transitions to and from the activity perform a crossfade rather than the normal rotation animation. Also, improve SurfaceTrace debug output. Fixes bug 9695710. Change-Id: I053e136cd2b9ae200028595f245b6ada5927cfe9
* | | Fix a regression where android:windowContentOverlay did not draw properly.Adam Powell2013-08-011-0/+7
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | This was the victim of an earlier refactoring. Have the ActionBarOverlayLayout draw this directly over the content so that it can stay properly in sync with any animations and also remove an extra couple of views from the decor layout. Some apps now expect the broken behavior in default themes. Protect them from themselves until they bump their targetSdkVersion. Public bug https://code.google.com/p/android/issues/detail?id=58280 Change-Id: I4284503577e322f3e68d4a7fabda8441d3749b98
* | Tweak system gesture listener.John Spurlock2013-07-291-5/+7
|/ | | | | | | | | Swipe gestures now need only travel a status bar's length to trigger. Name distance threshold variable appropriately to avoid future confusion. Bug: 10045892 Change-Id: I70fcf218e97c85e2653560bf2e2242d9c36537fd
* Limit TYPE_SYSTEM_ERROR to system decor bounds.Craig Mautner2013-07-231-1/+2
| | | | | | | | | | Because windows of TYPE_SYTEM_ERROR lie in a layer above the Navigation Bar they cannot be allowed to extend into the Navigation Bar area or it will block touches to the Home button. Fixes bug 9626315 Change-Id: Ib5e4a2d2954cb79adc98d69e3c43108cb1389cc9
* Restore nav bar position when wm size is reset.Craig Mautner2013-07-221-4/+2
| | | | | | | | | | The mNavigationBarCanMove variable was not reset when the dimensions were restored using 'adb shell wm size reset'. This change restores the correct value to it. Fixes bug 9885741. Change-Id: I6c9d3107fbc8a1e7acc0249691f4542cd8c07e93
* Merge "Add a keycode to switch audio tracks (1/2)"michaelwr2013-07-162-3/+7
|\
| * Add a keycode to switch audio tracks (1/2)Jaekyun Seok2013-07-122-3/+7
| | | | | | | | | | | | | | A key to switch audio tracks is general on media devices like blu-ray. Bug: 9728155 Change-Id: Ib61822b8aa9c143a8febc3cff4707fa775119448
* | add TYPE_PRIVATE_PRESENTATION window typekeunyoung2013-07-121-0/+4
|/ | | | | | | | | - This window type can be used for Presentation created on top of virtual private display. - There can be PRIVATE_PRESENTATION specific policy / behavior, but for now, there is nothing special. Change-Id: I9fde0f0376e57fcc60000d3a3f8657a21ef58993
* Resolve car dock home activities properly.John Spurlock2013-07-111-2/+13
| | | | | | | | | Look up the actual user id (package manager does not understand UserHandle.USER_CURRENT) and return metadata during resolution for subsequent checking. Bug: 9738229 Change-Id: Ib060bacc84473b27a1fb2e717651dc84f018d6f9
* Remove debug logging.Craig Mautner2013-07-011-9/+0
| | | | | | Bug has been fixed. Change-Id: Ifda11ac6e83012498855e0c7254c99491b128f04
* Change order of setting isOpenCraig Mautner2013-07-011-5/+8
| | | | | | | | | | | | Because the WindowManager.addView() method can indirectly call PhoneWindow.closePanel() it is critical to set isOpen after the addView call returns in PhoneWindow.openPanel. Otherwise when closePanel sets isOpen to false PhoneWindow will be in to an inconsistent state. Fixes bug 9404689. Change-Id: If0129a0859546b35445df0f4be2f422c4807fba7
* Merge "More debug for 9404689."Craig Mautner2013-06-281-0/+6
|\
| * More debug for 9404689.Craig Mautner2013-06-281-0/+7
| | | | | | | | | | | | Changing focus to PhoneWindow. Change-Id: I75c2ce6b1a20729daf8d2b7f83b2a871e1a7e642
* | Simplify wake management code in keyguard.Jim Miller2013-06-273-49/+5
| | | | | | | | | | | | | | | | | | Removes onWakeKey/Motion handling from keyguard since it's no longer used. The legacy code was originally intended to have keyguard filter wake events which is now done in PhoneWindowManager. Ultimately it just needs to call PowerManager.wakeUp() since keyguard no longer filters these keys. Change-Id: I5b8ef9b422abf850a85b57f21944e5eb09fbedc2
* | Single-user restrictionsAmith Yamasani2013-06-251-0/+2
|/ | | | | | | | | | | Introduces a new "blocked" state for each package. This is used to temporarily disable an app via Settings->Restrictions. PIN creation and challenge activities for use by Settings and other apps. PIN is stored by the User Manager and it manages the interval for retry attempts across reboots. Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
* Remove concept of system bar from window manager.John Spurlock2013-06-141-49/+15
| | | | | | It was already hardcoded to false, this change removes the dead code. Change-Id: I5e543344e60f69cb9882a70ba29f7c09404ad9fc
* Show the default activity icon in the action bar if one is not suppliedAdam Powell2013-06-131-2/+25
| | | | | | | | | | Fix a regression where the system default activity icon was not used in the action bar if neither the activity nor application supplied one. Bug 9409846 Change-Id: I80a95a0bee511f21cd326372edaf6af811272825
* Centralize all system InputEventReceiver monitors.Craig Mautner2013-06-122-58/+19
| | | | | | | | Implement all system level InputEvent monitors as new InputEventListeners. Only one InputChannel required and monitoring can be enabled or disabled by registering with WindowManagerService. Change-Id: I64714ab858342ed183c62b421098478ffb6637bc
* Hide "Take bugreport" for secondary usersAmith Yamasani2013-06-101-7/+15
| | | | | | | In QuickSettings and GlobalActions. Bug: 9304471 Change-Id: Ia3118b3258b1f6983c47e96168b7b875b6fc798b
* Put overlay system bar testing behind a setting.John Spurlock2013-06-071-4/+7
| | | | | | | And disable the system gesture by default. Also remove observer for obsolete "fancy_rotation_anim" setting. Change-Id: I08012c164e10bfa5f10a1df8a3db4a3f0203f236
* Merge "Extend stacks up under status bar"Craig Mautner2013-06-061-1/+1
|\
| * Extend stacks up under status barCraig Mautner2013-06-051-1/+1
| | | | | | | | | | | | Retain compatibility with earlier behavior. Fixes bug 8685941. Change-Id: Ida800a2476ba3a18cd97deccbc65c8a02739d118
* | am b093ea59: am f8038bdd: Merge "Fix regression in long-press home behavior ↵Jeff Brown2013-06-051-14/+23
|\ \ | | | | | | | | | | | | | | | | | | on tablets." into jb-mr2-dev * commit 'b093ea59fec05d3644a8dfbeda90c635f04a88fc': Fix regression in long-press home behavior on tablets.
| * \ Merge "Fix regression in long-press home behavior on tablets." into jb-mr2-devJeff Brown2013-06-051-14/+23
| |\ \
| | * | Fix regression in long-press home behavior on tablets.Jeff Brown2013-05-311-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some config.xml resources have values that vary based on the configuration. A previous change caused initialization to occur at a time when the configuration is was not yet available. This change fixes the problem. Bug: 8891502 Change-Id: Ia768dc2308cc6ae5f11812c6bce6a6e116cfd759
| * | | Merge "Fix keyguard issue where an incoming SMS would switch widget" into ↵Jim Miller2013-05-311-8/+15
| |\ \ \ | | |/ / | |/| | | | | | jb-mr2-dev
| | * | Fix keyguard issue where an incoming SMS would switch widgetJim Miller2013-05-301-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where an incoming notification from AudioManager would trigger showAppropriateWidgetPage() to be called even though nothing has changed. Fixes bug 9202611 Change-Id: If8bbd30b6b324233b5ad6552183c10cc5a335061
| * | | Check for invalid pointer index in PagedViewJim Miller2013-05-221-1/+4
| |/ / | | | | | | | | | | | | | | | Fixes bug 9088039 Change-Id: I54897df39adbf224ef3dd3de4ce7254fb70b587c
* | | Fix a bug resolving the correct icon/logo in action barsAdam Powell2013-05-312-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove some abstraction-breaking magic in ActionBarView and replace it with proper resolution of the icon/logo when creating a window. The old implementation relied on the ActionBarView's context being an Activity. Bug 9171554 Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
* | | Merge "Clear low profile bit when showing hideybars."John Spurlock2013-05-291-0/+2
|\ \ \
| * | | Clear low profile bit when showing hideybars.John Spurlock2013-05-281-0/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | Consider this an interaction, ensures that the hideybar does not reveal itself in low profile mode. Bug: 9102473 Change-Id: I8819a7d3d7aef0e08afb6f8c574c0ac519066cca
* | | Hideybars feature confirmation toast bar.John Spurlock2013-05-281-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enhance Toast to support new standard toast bar style, similar to the undo bar in Gmail. Toast bars can be interactive, and can have a single action. Add a new toast duration to indicate persistent toasts (no auto-hide delay). Use the new toast bar to implement a feature hint when hiding the navigation bar in hideybars mode. Per UX, the feature confirmation bar can also be dismissed on any outside touch as long as the user confirmed it using the OK button at least once globally. Bug: 8754108 Change-Id: Iaa85d3b4da7ada1952a562f1e31de04380f5d587
* | am 04be10a5: am 36b3b1dd: Merge "Support double-tap home to go to recents." ↵Jeff Brown2013-05-201-92/+143
|\ \ | |/ | | | | | | | | | | into jb-mr2-dev * commit '04be10a5b1053d3d263a5522239f5ff6faf283e4': Support double-tap home to go to recents.
| * Support double-tap home to go to recents.Jeff Brown2013-05-201-92/+143
| | | | | | | | | | | | | | | | | | | | | | | | Add config resources to enable the following behavior for certain devices: * press home - go home * long-press home - launch assist intent * double-tap home - open recents Bug: 8891502 Change-Id: I4564d9e4d127f782ed5bd8eb613ef8f2255176cc (cherry picked from commit b7805698035622a633b2d76f7ca60169aaa9f0ca)
* | am 6ffce75f: am 154bb559: Merge "Fix PhoneWindowManager#getUserRotationMode" ↵Brett Chabot2013-05-171-2/+3
|\ \ | |/ | | | | | | | | | | into jb-mr2-dev * commit '6ffce75fa78fba82bde8f1df5828d177457b7a7a': Fix PhoneWindowManager#getUserRotationMode
| * Fix PhoneWindowManager#getUserRotationModeBrett Chabot2013-05-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This method should be reading from the ACCELEROMETER_ROTATION instead of the USER_ROTATION setting. Needed for uiautomator to properly restore the current auto rotation setting after test run finishes. Bug 8985351 Change-Id: I50f100117c0590dd65a646b584d027751ad5d3ce
| * Merge "Attempt to fix NPE in keyguard" into jb-mr2-devJim Miller2013-05-101-2/+7
| |\
| | * Attempt to fix NPE in keyguardJim Miller2013-05-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This attempts to fix a bug where it looks like we have null content in one of the widget pages in keyguard. Based on the bug description, it's likely the transport control was just removed from the view hierarchy. Not sure how the content can be null in this case, but this will hopefully prevent the crash and give us some insight into what caused it. Fixes bug 8886916 Change-Id: I22c26c49f22fa5b06987e8199070a9aaead2ff8a
* | | Window manager cleanup.John Spurlock2013-05-131-30/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically: - Fix policy vs wm lock management issues. - Share runnable to avoid allocation. - Remove unused noop runnable. - Make sure to handle status bar = null case. - Fix javadoc typo. Bug: 8890313 Change-Id: I242eaef8e946025f6885d6dba3225722fb0ca7ce
* | | Fix build error due to incorrect mergeAmith Yamasani2013-05-091-42/+0
| | | | | | | | | | | | | | | | | | Keyguard package was moved, so a new file didn't get to the right directory. Change-Id: I2cdf2d9ef785ca7852c38278f51b5af9f96320f7
* | | resolved conflicts for merge of 069d7e9b to masterAmith Yamasani2013-05-091-0/+42
|\ \ \ | |/ / | | | | | | Change-Id: Ia8fd5de3d4cc275fd358132bcb2c198d1e7b6877
| * | Cache the scaled avatar drawables in the keyguard user switcherAmith Yamasani2013-05-096-12/+128
| |/ | | | | | | | | | | | | | | | | | | | | | | Loading the avatar icons and drawing them into the sized bitmap turns out to be quite expensive and the cost increases with number of users. Caching them shaves off several hundred milliseconds from Keyguard inflation time during user switching on the lockscreen. For instance, 15ms vs. 750ms with 3 avatars on a certain 7" tablet. Bug: 7986933 Change-Id: I3e2065bfa25aa263133ba204ca364c3b04d7c0ff
| * Lockscreen widgets not always announced.Svetoslav2013-04-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The accessibility events for switching a widget were dispatched before we update the important for accessibility property. We were lucky to get events in some cases since the pages in the pager had alpha grater than zero, i.e. the page was already set as important for accessibility, due to a running animation. 2. Accessibility focus clear event not fired if we give focus to another view. The old focus was correctly cleared just the events were not dispatched. bug:8599670 Change-Id: Ia2647d77eaa4e10fbaf3a047dc9ea5b728f9c3c3
| * Merge "Fix system server crash when uninstalling paid LS widget that has ↵Adam Cohen2013-04-191-3/+7
| |\ | | | | | | | | | been added (issue 8647398)" into jb-mr2-dev