summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Disable color view animations when stable insets changeAdrian Roos2015-02-171-2/+2
| | | | | | | | | | | Prevents color view from showing up on phones when the orientation changes to landscape. Previously, the animation was only prevented when the stable inset of a bar became nonzero; now we disable animations whenever the nonzeroness changes. Bug: 19353466 Change-Id: I31b4103fe984d158a98cd446ac2ddbe15a408e49
* Fix crash caused by disabling the Options panel on TVsJose Lima2015-01-281-1/+1
| | | | | | | | | Address more cases where calls to getPanelState may cause a crash when the options panel is disabled on a platform. Bug: 19178531 Bug: 18780696 Change-Id: Ib72bb8483e636181788ed3919c4cb9e99a94b7b1
* Allow disabling the Options Pannel feature for TVsJose Lima2015-01-261-15/+24
| | | | | | | | | | - Added a config entry in velues-television to disable the options panel feature for TVs. - Fixed parts of the code in PhoneWindow that assumed this feature is supposed to always be available, which was causing exceptions when it was turned off. Bug: 18780696 Change-Id: I923bd4b5019d634e5352a6e893005133edb475f6
* Update docs for Window.setElevation(), apply changes immediatelyAlan Viverette2015-01-121-0/+1
| | | | | BUG: 18983689 Change-Id: I471104092d6296dc0ba2689da96783be088fbce8
* Don't allow windows with invalid types to be added.Wale Ogunwale2015-01-121-2/+8
| | | | | Bug: 18950225 Change-Id: Ia7ead72d036c7628e0a97f8fe9fef2a35525e4df
* Merge "Revert "Allow home to be pressed while in incoming call screen"" into ↵Yorke Lee2014-12-171-0/+9
|\ | | | | | | lmp-mr1-dev
| * Revert "Allow home to be pressed while in incoming call screen"Yorke Lee2014-12-151-0/+9
| | | | | | | | | | | | | | This reverts commit ad84e0637f43311a05e894393be6538909b937fb. Bug: 18742942 Change-Id: I6c0a1651526a37cca8e27be9fbd36a2f59943366
* | Revert "Revert "Attempt to fix keyguard missing bug""Jim Miller2014-12-152-7/+14
| | | | | | | | | | | | | | | | This reverts commit 1991590ddd0ca6d3a0cac290b65120c147034dbc and fixes a bug where we were showing the scrim on devices without keyguard. Bug: 18468369 Change-Id: Idce1370dadacd09c4a8f1a7fd9728c23b218d19c
* | Revert "Attempt to fix keyguard missing bug"Tim Kilbourn2014-12-121-12/+5
| | | | | | | | | | | | This reverts commit a5faf2415d5760d2239f85271b889d655b5c271b. It prevents the launcher from showing up on Android TV. Bug: 18724479
* | Attempt to fix keyguard missing bugJim Miller2014-12-101-5/+12
| | | | | | | | | | | | | | | | | | | | This attempts to fix a bug where the device sometimes shows the home screen before keyguard starts. The fix ensures we show the scrim when KeyguardServiceDelegate is created and stays there until KeyguardService connects. Fixes bug 18468369 Change-Id: Ib560889663c0c4dd84135d949fefc2b9819ce9a1
* | Handle keyguard dismiss flags correctlyCraig Mautner2014-12-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | When FLAG_SHOW_WHEN_LOCKED was set over an unsecure lockscreen the behavior was incorrect. In such cases the lockscreen was not being dismissed with or without FLAG_DISMISS_KEYGUARD. This change causes the lockscreen to be dismissed when FLAG_SHOW_WHEN_LOCKED is set over an insecure logckscreen. Fixes bug 18563298. Change-Id: Iba0d096a59789bf41332e109f1bd3e70834bbb83
* | Dismiss insecure keyguards if FLAG_SHOW_WHEN_LOCKEDCraig Mautner2014-12-021-4/+8
| | | | | | | | | | | | | | | | | | | | | | Windows that had FLAG_SHOW_WHEN_LOCKED and FLAG_DISMISS_KEYGUARD set would ignore the FLAG_DISMISS_KEYGUARD if the lockscreen was insecure. This change adds a test for insecure keyguards when the two flags are set together. Fixes bug 18563298. Change-Id: I3027c7ec476d3ac15978f7e6a78b3c2050cbab02
* | Make IKeyguardService interface asynchronousJim Miller2014-11-254-129/+172
| | | | | | | | | | | | | | | | | | | | | | Add a state callback so lockscreen reports back whenever its state relevant for PhoneWindowManager changed, instead of synchronously calling into SysUI which can lead to deadlocks. Directly use LockPatternUtils for isSecure, and optimize the number of calls to this method to optimize layout performance. Bug: 17677097 Change-Id: I5d491fc8884d4f84d9562626b9ea0d5eaa5166fc
* | Merge "Add animations for the system bar color views" into lmp-mr1-devAdrian Roos2014-11-181-40/+133
|\ \
| * | Add animations for the system bar color viewsAdrian Roos2014-11-171-40/+133
| | | | | | | | | | | | | | | | | | | | | | | | Smoothly animates them in and out when their visibility changes. Bug: 17882303 Change-Id: I04bf585bb253c655b4be2f5cc2304d5060cb1657
* | | am 8f7b84e0: Merge "Always wake device on power key from non interactive ↵Bryce Lee2014-11-181-9/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | immediately." into lmp-sprout-dev * commit '8f7b84e037e35db9d3b46873bc1adf712b307cbe': Always wake device on power key from non interactive immediately.
| * | Always wake device on power key from non interactive immediately.Bryce Lee2014-11-171-9/+7
| | | | | | | | | | | | | | | Bug: 18410573 Change-Id: Ic5ec4a1ac6d5e06fed8eb0c5cc6b2741e03b7f53
* | | Merge "implement HDMI-like demo mode for remote display" into lmp-mr1-devChong Zhang2014-11-151-0/+16
|\ \ \
| * | | implement HDMI-like demo mode for remote displayChong Zhang2014-11-141-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding the following two system properties to control remote display rotation and device orientation lock: "persist.demo.rotationlock"=true|false "persist.demo.remoterotation"=landscape|portrait Bug: 18317603 Change-Id: Id5fe115f895c6a0e72563036b9a98ff3b5037763
* | | | am 1cbff0e3: Merge "Improve screen brightness boost behavior." into ↵Jeff Brown2014-11-131-0/+4
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | lmp-sprout-dev * commit '1cbff0e310b0fba6b25ca1c1e14eaefeabdee0d9': Improve screen brightness boost behavior.
| * | | Improve screen brightness boost behavior.Jeff Brown2014-11-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wake-up when entering brightness boost mode, don't boost in ambient mode since some display device drivers do strange things in that mode and boost doesn't work. Waking up feels more natural as well. Don't flutter the power HAL's interactive mode bit simply due to changes in display ready state since that may result in visible artifacts such as display flashes. Don't stop the auto-brightness sensor while temporarily boosted. Don't prevent the display from entering the ready state while in brightness boost since that would unnecessarily delay the transition from DOZING to AWAKE until boost is finished. Restart the user activity timeout when brightness boost ends and prevent the display from dimming while boosted. The pixel fairies basked in the sunlight. Bug: 18262044 Bug: 18261782 Change-Id: I8c42a1e6091b0fe1253e90265ac248087ebc24e1
* | | | Fixed constant window switching on lock screen with Swype KB.Wale Ogunwale2014-11-121-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We allow TYPE_INPUT_METHOD windows to show on the lock screen. These windows can attached other types of windows (For this case the Swype KB was attaching a PopupWinow which will be of TYPE_APPLICATION). This causes the popup window app token to be added to the list of apps to be hidden on the lock screen, thereby preventing the lock screen from been hidden, which then causes a layout cycle(s). Now, we remove app tokens for non-app windows from the hidden list in case it was added by any attached widow they migth have. Also, when we are updating window animations, set the hideWhenLocked flag for windows that are IME tragets so they don't go through unneeded cycles of having their visibility policy set to hide/show/hide/show/... Bug: 18021493 Change-Id: I3680256d41793f62def42fda00e26db1dcc990cc
* | | | 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
* | | | 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-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 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
* | | 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
* | | 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
* | | 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
* | | 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
* | | | 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.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
* | | | 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
* | | | 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
* | | | Change boot screen title to "Android is starting" when not upgrading.Jeff Hao2014-10-291-1/+5
|/ / / | | | | | | | | | | | | Bug: 17565501 Change-Id: Id5741e6e7a40750feee1cd7306e79f7baeec67de
* | | 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
* | | | 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
* | | | 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
* | | Merge "Retire RecentApplicationsDialog" into lmp-mr1-devAdrian Roos2014-10-202-349/+0
|\ \ \ | |_|/ |/| |