summaryrefslogtreecommitdiffstats
path: root/policy/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Wake up device in the case a touch is encountered in theater mode ↵Bryce Lee2014-11-121-0/+10
|\ | | | | | | | | | | | | | | | | when the screen is off and no dream is running." into lmp-sprout-dev automerge: 68f9773 automerge: 5c14bc2 automerge: 70532bf * commit '70532bf46433519a27ecada265b6de9364f51f39': Wake up device in the case a touch is encountered in theater mode when the screen is off and no dream is running.
| * Merge "Wake up device in the case a touch is encountered in theater mode ↵Bryce Lee2014-11-121-0/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | when the screen is off and no dream is running." into lmp-sprout-dev automerge: 68f9773 * commit '68f97736e65f1be4664fd3c3765fc621f3b76c3a': Wake up device in the case a touch is encountered in theater mode when the screen is off and no dream is running.
| | * Wake up device in the case a touch is encountered in theater mode when the ↵Bryce Lee2014-11-101-0/+10
| | | | | | | | | | | | | | | | | | | | | screen is off and no dream is running. Bug: 18297399 Change-Id: I5a520e8bf861e46d61e54d7d0849e55b2e5d9239
| | * Change boot screen title to "Android is starting" when not upgrading.Jeff Hao2014-11-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17565501 Bug: 18247218 (cherry picked from commit 9f60c08a446e38f9e2d5271546ef69ca5941eba9) Change-Id: I1ec32b318b6221277fc3ffbc19966bf3330c2d93
* | | am eba923cc: am 04a1557c: Merge "Fix inset hinting when adding window" into ↵Dan Sandler2014-11-101-7/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | lmp-mr1-dev * commit 'eba923ccce573ac9f426d58d79e23a1fcd8ee1a7': Fix inset hinting when adding window
| * | Fix inset hinting when adding windowAdrian Roos2014-11-101-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows with FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS were getting an incorrect content inset hint, because the hinting didn't see the adjusted systemUiVisibility. Also adds hinting for the stable insets. Bug: 17508238 Change-Id: If9647277feb6811b15665b801accd896c51dbd12
* | | Merge "When keyguard exits use same anim for all windows" into lmp-mr1-dev ↵Craig Mautner2014-11-051-20/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | automerge: 3f36ba6 automerge: a72b222 * commit 'a72b2228c278363c2ff5bd38f9a8b36e3c4cd70c': When keyguard exits use same anim for all windows
| * | Merge "When keyguard exits use same anim for all windows" into lmp-mr1-devCraig Mautner2014-11-051-20/+14
| |\ \
| | * | When keyguard exits use same anim for all windowsCraig Mautner2014-11-051-20/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The entering animations were only applied to the incoming windows one time. If those windows weren't drawn yet then they never had an animation assigned. Furthermore if a starting window was drawn in time it would get the animation but its main window would not get it if it weren't drawn. Even if an animation were assigned later they wouldn't be synced with each other. This change creates a single animation which is shared by all incoming windows. As windows are drawn they can then animate with the starting window. (Also refactorings to eliminate redundant code and unnecessary variables.) Fixes bug 15991916. Change-Id: I844d102439b6eda8c912108431916e04b12f7298
* | | | am 1ae5dc12: am ca7f9a4d: am 5a818e55: Merge "Add config to control going to ↵Bryce Lee2014-11-051-1/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | sleep when entering theater mode." into lmp-sprout-dev * commit '1ae5dc12d0013835ed5c567b6e8ca3343524f2e3': Add config to control going to sleep when entering theater mode.
| * | | am 5a818e55: Merge "Add config to control going to sleep when entering ↵Bryce Lee2014-11-051-1/+8
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | theater mode." into lmp-sprout-dev * commit '5a818e55a7faee421567eb037ac4e42f20bca0c4': Add config to control going to sleep when entering theater mode.
| | * Add config to control going to sleep when entering theater mode.Bryce Lee2014-11-041-1/+8
| | | | | | | | | | | | | | | Bug: 18241209 Change-Id: I7fa29d92391b1c8ab74585008d6599fd7174cc61
* | | am 3ea1a3e7: am 44eb8b77: Revert "When keyguard exits use same anim for all ↵Alan Viverette2014-11-051-11/+15
|\ \ \ | |/ / | | | | | | | | | | | | | | | windows" * commit '3ea1a3e781717dee16e3338db6fc59d1358d76ed': Revert "When keyguard exits use same anim for all windows"
| * | Revert "When keyguard exits use same anim for all windows"Alan Viverette2014-11-041-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Broke window animations. This reverts commit b83408018176ec58f50e792590a22fdc9eb87fff. BUG: 18248641 Change-Id: Ic456a5666c3199e8bb8c9c2fb1ecdbb82afaad86
* | | am bf8e9884: am 26a733ce: Merge "When keyguard exits use same anim for all ↵Craig Mautner2014-11-051-15/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | windows" into lmp-mr1-dev * commit 'bf8e9884f1ea096254d04eff266aa3dfa1bc5e11': When keyguard exits use same anim for all windows
| * | When keyguard exits use same anim for all windowsCraig Mautner2014-11-041-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The entering animations were only applied to the incoming windows one time. If those windows weren't drawn yet then they never had an animation assigned. Furthermore if a starting window was drawn in time it would get the animation but its main window would not get it if it weren't drawn. Even if an animation were assigned later they wouldn't be synced with each other. This change creates a single animation which is shared by all incoming windows. As windows are drawn they can then animate with the starting window. (Also refactorings to eliminate redundant code and unnecessary variables.) Fixes bug 15991916. Change-Id: I9949ef0a1639c831754316da34de97cb86403f5a
* | | am 68993a41: am 99a6c1cb: Merge "[Theater Mode] Add framework support for ↵Bryce Lee2014-11-041-6/+28
|\ \ \ | |/ / | | | | | | | | | | | | | | | screen double tapping out of theater mode." into lmp-sprout-dev automerge: abf33e4 * commit '68993a41b35eb82459b3686c9baff54f980168ed': [Theater Mode] Add framework support for screen double tapping out of theater mode.
| * | Merge "[Theater Mode] Add framework support for screen double tapping out of ↵Bryce Lee2014-11-041-6/+28
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | theater mode." into lmp-sprout-dev automerge: abf33e4 * commit 'abf33e48baff1ffc14562a499ec3eabc09a5dbb5': [Theater Mode] Add framework support for screen double tapping out of theater mode.
| | * [Theater Mode] Add framework support for screen double tapping out of ↵Bryce Lee2014-11-031-6/+28
| | | | | | | | | | | | | | | | | | | | | theater mode. Bug: 18120031 Change-Id: Ia70d62b26d63e3d6708e44239c9a33001548207d
* | | am 808fe6f9: Merge "Fix colored status bar panning issues" into lmp-mr1-devAdrian Roos2014-11-031-0/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | automerge: fcad9e1 * commit 'fcad9e17413da20db95a2cccbfc8641d2f30a4e6': Fix colored status bar panning issues
| * | Merge "Fix colored status bar panning issues" into lmp-mr1-devAdrian Roos2014-11-031-0/+20
| |\ \
| | * | Fix colored status bar panning issuesAdrian Roos2014-10-291-0/+20
| | | | | | | | | | | | | | | | | | | | Bug: 17695293 Change-Id: I6a1267f8dff27e7b78ab312a71648ef16ab9483b
* | | | am 862d72e2: Merge "Improve dump of status bar service" into lmp-mr1-devAdrian Roos2014-11-031-2/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | automerge: 8af07f4 * commit '8af07f4717359c8421bc91c8171fcf749714b08f': Improve dump of status bar service
| * | | Merge "Improve dump of status bar service" into lmp-mr1-devAdrian Roos2014-11-031-2/+3
| |\ \ \
| | * | | Improve dump of status bar serviceAdrian Roos2014-10-291-2/+3
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tracks which window caused the disable flags instead of just blaming PhoneWindowManager. Bug: 17830264 Change-Id: If6c957120bb2ee8e0083f80e35c71eb21b8672b6
* | | | am 13f00f07: Implement multi-press behavior for power key. automerge: a71601aJeff Brown2014-11-011-162/+348
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | automerge: 634ffc4 * commit '634ffc4211de6bfbc06d6f67084b2d664c2f4f2a': Implement multi-press behavior for power key.
| * | | am 13f00f07: Implement multi-press behavior for power key.Jeff Brown2014-11-011-162/+348
| |\ \ \ | | | |/ | | |/| | | | | | | | | * commit '13f00f07d69f087cf186c23ae6c6fc938e2be561': Implement multi-press behavior for power key.
| | * | Implement multi-press behavior for power key.Jeff Brown2014-10-311-162/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support for brightness boost or setting theater mode from the power key. This behavior is disabled by default and must be enabled for specific products in a config.xml overlay. Because the power key is already so overloaded, refactored the code to split out handling of the similar ENDCALL button and renamed all of the state that has to do with screenshot chord detection to avoid confusion. Bug: 17949215 Change-Id: Id282133188e3781472aabb64fabcee7b98d0c77d
* | | | am a1b9e3d7: Merge "Animate starting windows when keyguard dismissed." into ↵Craig Mautner2014-11-011-1/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev automerge: ec5f374 * commit 'ec5f374f296791ebb28fb265b15e40b38844f2e7': Animate starting windows when keyguard dismissed.
| * | | Animate starting windows when keyguard dismissed.Craig Mautner2014-10-311-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting windows are displayed prior to their app windows visibility being set. Consequently the WindowToken.hidden boolean for starting windows is still true even when it is shown. The keyguard logic uses the method WindowState.isVisibleNow to determine whether to animate each window. This method incorrectly determined that starting windows were not visible based on WindowToken.hidden and consequently didn't animate in the starting window. This change fixes isVisibleNow() to correctly determine when starting windows are visible and animates them in as part of the keyguard transition. This change also adds keyguard debug. Partially fixes bug 15991916. Change-Id: Iac3e5f3f33876be5801ec619bbe7a1579e648322
* | | | am baed009e: am 2d3443fc: Merge "Add setters for window elevation and ↵Alan Viverette2014-10-301-0/+16
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | clipToOutline properties" into lmp-mr1-dev * commit 'baed009eaeaacffef7cc0972517434451e357aef': Add setters for window elevation and clipToOutline properties
| * | | Merge "Add setters for window elevation and clipToOutline properties" into ↵Alan Viverette2014-10-291-0/+16
| |\ \ \ | | | | | | | | | | | | | | | lmp-mr1-dev
| | * | | Add setters for window elevation and clipToOutline propertiesAlan Viverette2014-10-291-0/+16
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | These are available as XML attributes but were lacking setters. None of the Window properties have getters, so just adding setters here. BUG: 16847753 Change-Id: I9c032903e94b7f12125210bd73c911243612df69
* | | | am 73577862: am b1346d78: Merge "Change boot screen title to "Android is ↵Jeff Hao2014-10-301-1/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | starting" when not upgrading." into lmp-mr1-dev * commit '73577862ffe6332f326628febfa1fbb9e693bb40': Change boot screen title to "Android is starting" when not upgrading.
| * | | Change boot screen title to "Android is starting" when not upgrading.Jeff Hao2014-10-291-1/+5
| |/ / | | | | | | | | | | | | Bug: 17565501 Change-Id: Id5741e6e7a40750feee1cd7306e79f7baeec67de
* | | am bd6fabe2: Merge "APIs for an accessibility service to put interaction ↵Svetoslav2014-10-241-5/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | tracking overlays." into lmp-mr1-dev automerge: 89e7ffe * commit '89e7ffedadd20a3091e72b42f86c500452df193c': APIs for an accessibility service to put interaction tracking overlays.
| * | Merge "APIs for an accessibility service to put interaction tracking ↵Svetoslav2014-10-231-5/+8
| |\ \ | | | | | | | | | | | | overlays." into lmp-mr1-dev
| | * | APIs for an accessibility service to put interaction tracking overlays.Svetoslav2014-10-211-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An accessibility service may register to observe the interactive windows on the primary display. These windows are the one that has input focus and ones a sighted user can touch. It is sometimes beneficial for an accessibility service to overlay a window to intercept user interaction and based on that introspect and perform an action on the windows that are on the screen. This is problematic as overlaying a full screen window that is touchable prevents the accessibility service to introspect the content under this window. This change adds a special type of window that only an accessibility service can place which does not affect what an accessibility service can "see" on the screen. Hence, even putting such a window full screen the service will be able to interact with the other interactive windows it covers. Change-Id: I053ccc3a5c6360a98dc40bdb172b54dab35d8b31
* | | | am 477fa012: am 49cb52e2: Merge "resolved conflicts for merge of f03ba4f1 to ↵Bryce Lee2014-10-231-6/+45
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev" into lmp-mr1-dev * commit '477fa012865c3c59ebc2dd834c53c7ee33fe3a95': [Theater Mode] framework implementation through global setting
| * | | resolved conflicts for merge of f03ba4f1 to lmp-mr1-devBryce Lee2014-10-221-6/+45
| |\ \ \ | | | |/ | | |/| | | | | Change-Id: I9e4cabd2d8a34a348ae888f096c8d3c35226e960
| | * | [Theater Mode] framework implementation through global settingBryce Lee2014-10-211-6/+45
| | | | | | | | | | | | | | | | | | | | Bug: 17684570 Change-Id: I64a9c9c0620049cdfcca0150648fa201281f7178
* | | | am 1546422e: am d0aae5a2: Merge "Fix issue #17789629: PopupWindow overlaps ↵Wale Ogunwale2014-10-222-4/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | with navigation bar." into lmp-mr1-dev * commit '1546422ea7b0c62e6205ab9e85a370caf1d01756': Fix issue #17789629: PopupWindow overlaps with navigation bar.
| * | | Fix issue #17789629: PopupWindow overlaps with navigation bar.Wale Ogunwale2014-10-212-4/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Lollipop release introduced a feature that allowed apps to extend under the navigation bar. This also means any popup window that is anchored to the bottom of its parent window will overlap with the navigation bar if the parent window is extending underneath the navigation bar. This change introduces a new window flag (FLAG_LAYOUT_ATTACHED_IN_DECOR) that allows the app to specify if the popup window should be attached to the decor frame of the parent window thereby avoiding an overlap with the screen decorations. By default the flag is set on SDK version LOLLIPOP_MR1 or greater and cleared on lesser SDK versions. Also, replaced flags FLAG_NEEDS_MENU_KEY and PRIVATE_FLAG_NEEDS_MENU_KEY_SET with needsMenuKey state variable to make room for the new FLAG_LAYOUT_ATTACHED_IN_DECOR flag. Bug: 17789629 Change-Id: I2150e0c6ac688c966c0e8f7e54d42fd20285bea6
* | | am 2f6fd874: am 5f978bfa: Merge "Retire RecentApplicationsDialog" into ↵Adrian Roos2014-10-202-349/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | lmp-mr1-dev * commit '2f6fd874510cd333f7fc0b08e146d5d069fa2013': Retire RecentApplicationsDialog
| * | Merge "Retire RecentApplicationsDialog" into lmp-mr1-devAdrian Roos2014-10-202-349/+0
| |\ \
| | * | Retire RecentApplicationsDialogAdrian Roos2014-10-082-349/+0
| | | | | | | | | | | | | | | | | | | | Bug: 5162991 Change-Id: I429da977502f33e2091496f3a075b2c507a88e1f
* | | | am 50a0e305: am 8c63f98b: Merge "Allow home to be pressed while in incoming ↵Yorke Lee2014-10-141-9/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | call screen" into lmp-mr1-dev * commit '50a0e30525b1d67b5e9a9cb686ffb4d2dd729672': Allow home to be pressed while in incoming call screen
| * | | Allow home to be pressed while in incoming call screenYorke Lee2014-10-101-9/+0
| | |/ | |/| | | | | | | | | | Bug: 10692603 Change-Id: I2c213d553013bdd906f0ce54eba90a57bd7ae34c
* | | am a53995be: am d853a900: am 1840bfee: Merge "Make GlobalKeyManager ↵Justin Koh2014-10-101-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | broadcasts send as foreground" into lmp-sprout-dev * commit 'a53995be1d6f91c3415ed59f839275d81c73d2b4': Make GlobalKeyManager broadcasts send as foreground
| * | Merge "Make GlobalKeyManager broadcasts send as foreground" into lmp-sprout-devJustin Koh2014-10-091-0/+1
| |\ \