summaryrefslogtreecommitdiffstats
path: root/policy/src
Commit message (Collapse)AuthorAgeFilesLines
* Change adjustVolumeBy to adjustVolumeRoboErik2014-07-161-2/+2
| | | | | | | This makes volume adjustments take a direction instead of a number of steps and renames the API appropriately. Change-Id: I6a31cbc42d889a38aa63446686a424cb2b8b2270
* Update DatePicker widget and its related dialogFabrice Di Meglio2014-07-151-0/+8
| | | | | | | | | | | | | | | | | | - the old DatePicker widget is still there for obvious layout compatibility reasons - add a new delegate implementation for having a new UI - use the new delegate only for the DatePickerDialog (which does not need to be the same) - added support for Theming and light/dark Themes - added support for RTL - added support for Accessibility - verified support for Keyboard - verified that CTS tests for DatePicker are passing (for both the legacy and the new widgets) Also added a new HapticFeedbackConstants.CALENDAR_DATE and its related code for enabling day selection vibration Change-Id: I256bd7c21edd8f3b910413ca15ce26d3a5ef7d9c
* Add window elevation for dialogs, clean up surface insets APIAlan Viverette2014-07-141-13/+19
| | | | | BUG: 13211941 Change-Id: I9d605d0b2fb24f9bf8e73fbecd520b6b52ae5751
* Add API to set a default session in ActivityRoboErik2014-07-141-6/+78
| | | | | | | | | | We may have multiple remote sessions at once so an app needs a way to specify a default session to route media and volume commands to when its activity is in the foreground. This adds an api that works in parallel with the default stream api on Activity. bug:15727927 Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf
* If status bar is the keyguard, allow clearing vis flags.John Spurlock2014-07-111-2/+2
| | | | | | | | | The policy around leaving flags alone when the user is interacting the status bar is not applicable when the status bar is acting as the keyguard. Bug:14913124 Change-Id: I96b4b707abce71f77ac2acb6f4086df661f5a25c
* Add accessibility action to open power long-press dialogAlan Viverette2014-07-101-3/+13
| | | | | | | | Also fixes an infinite recursion bug in the WindowManagerService implementation of WindowManagerInternal. BUG: 16129909 Change-Id: I4f9d32f4e6c3ad460652c5e5271540fa5032a1f5
* Pipe volume keys to adjustVolume instead of sendMediaKeyEventRoboErik2014-07-102-23/+9
| | | | | | | | | | | We were calling sendMediaKeyEvent with a KEYCODE_VOLUME key, which was being ignored because it's not a media key. This redirects the volume keys to use the adjustVolume methods instead. It also sends the appropriate flags to make the lock screen consistent with the home screen and the volume keys only affect active playback when the screen is off. bug:15900519 Change-Id: I9f3853a2385869353a58debae6e6ca9933ba06ce
* Consume HOME key when it is used to dismiss Dream activityJose Lima2014-07-021-0/+38
| | | | | Bug: 15002352 Change-Id: I0e86ec62a1a45dd1e68752d36be07355a9c6e2fd
* Merge "Reapply fix after bad merge."George Mount2014-07-021-2/+1
|\
| * Reapply fix after bad merge.George Mount2014-07-021-2/+1
| | | | | | | | | | | | Bug 13745751 Change-Id: I8eda37bd0e083b7c7949935973330882f6f5f1dc
* | Allow activity transitions to target nav and status bar colors.George Mount2014-07-021-8/+6
|/ | | | | | | | | | Bug 15885062 Action bar can already be targeted via android:action_bar. Navigation bar background is now android:navigation:background. Status bar background is now android:status:background. Change-Id: I4604906923f3473af3beec4f865463b2fe4a5316
* User restriction for disallowing window creationJason Monk2014-07-021-0/+1
| | | | | | | | | | | | Block any types of windows that could by used by apps to create views on top of a locked app. This can be used by device admins in conjunction with lock task mode. Added a way for system (and priv apps) to bypass user restrictions for specified op codes. Bug: 15279535 Change-Id: I2381530ef6226a5bb32a99bb4030baafb39bf564
* Add stable insets for stable system windowsAdrian Roos2014-07-022-17/+29
| | | | | | | | Adds a new kind of inset that only accounts for stable system windows like the system or navigation bar. Bug: 15457292 Change-Id: I681b711f6f40a94c25b7acd3a44eb3539486afab
* Fixing some bugs in Recents keyboard behaviour.Winson Chung2014-07-021-3/+1
| | | | | | | | - Ensuring that we don't allow meta-tab to trigger Recents (since meta is a system key now) - Adding dpad keys support to traverse stack - Adding workaround for cases where tasks wouldn't be focused depending on how you launch Recents Change-Id: I4101ced7e47e0d1659d5fa236214be5697c00560
* Fix checking for compatibility between window title features.Adam Powell2014-07-021-11/+14
| | | | | | | | | | New features that have nothing to do with titles were tripping the, "is this compatible with custom titles" feature check in PhoneWindow. Define a better way of checking for this for when we add new window features in the future. Bug 13789588 Change-Id: Ie1cacffb113958dac5142a5a39f548df53b47299
* Merge "Move call-related SystemAPIs to TelecommManager. (1/3)"Santos Cordon2014-07-011-27/+27
|\
| * Move call-related SystemAPIs to TelecommManager. (1/3)Santos Cordon2014-06-301-27/+27
| | | | | | | | | | Bug: 15672803 Change-Id: I46e448fe93a9c5b4ae013e8b2fd6f0ce89b94e69
* | Don't throw exception for root scene transitions.George Mount2014-06-301-2/+1
|/ | | | | | Bug 13745751 Change-Id: I7bb3cbabf4f402b38f5aa57ad0ee3b4320fa83cc
* Fix NPE in dumpsys windowJaewan Kim2014-06-261-1/+3
| | | | | | This crashes with an Android TV without sensor (i.e. TV) Change-Id: I5e461c6344811686f58860d427598626efdf0184
* Trust Agents: Add lock now facility to global actionsAdrian Roos2014-06-261-0/+37
| | | | Change-Id: I732d7e989892081f6b53142953de71f90ec62d37
* Global keys should wake the device if they're wake keys.Michael Wright2014-06-251-0/+3
| | | | | | Bug: 15430207 Bug: 15434710 Change-Id: I98083e1389079f00b612ae4fae3ecab5a2a51b0d
* Ensuring that we fire the right intent when going home from Recents.Winson Chung2014-06-241-7/+10
| | | | | | | | - Refactoring RecentsAppWidgetHost - Removing some references to the RecentsActivity from the RecentsPackageMonitor - Fixing the memory leak related to long references to activities - Working around blank screen when going home from Recents Change-Id: I7b0ad219b8da197795864a3b90fd02f3a3c1a4ef
* Merge "Return to recents when coming from recents"Craig Mautner2014-06-231-0/+10
|\
| * Return to recents when coming from recentsCraig Mautner2014-06-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | If a task is launched from recents then backing all the way out of the task will return you to recents. Entering the task in any other way (home, another activity, nav bar) will reset this behavior. Fixes bug 15703876. Change-Id: I98dc36e4dbcb238d59e2175832076de7225bfdd9
* | Avoid unnecessary timeouts.Craig Mautner2014-06-231-9/+9
|/ | | | | | | | And fix a couple of other inefficiencies. Fixes bug 15444410. Change-Id: Idad95d4e4d70bc7d2965e1bd6ff3d3135b73dd9c
* Perform haptic feedback for wake gesture.Jeff Brown2014-06-181-0/+1
| | | | Change-Id: I0275853ad0de7188cb16b68899085170376b527a
* Work on removing non-session media routing codeRoboErik2014-06-162-76/+13
| | | | Change-Id: I73e7d22f2f8772c7b07ccf32d962161d79d5db74
* am cd4c754e: am 374013f4: Merge "Suppress haptic feedback for SLEEP key when ↵Jeff Brown2014-06-131-5/+11
|\ | | | | | | | | | | | | already asleep." into klp-modular-dev * commit 'cd4c754e9917f3ad292e20a89f1f7d03f344a3cf': Suppress haptic feedback for SLEEP key when already asleep.
| * am 374013f4: Merge "Suppress haptic feedback for SLEEP key when already ↵Jeff Brown2014-06-131-5/+11
| |\ | | | | | | | | | | | | | | | | | | asleep." into klp-modular-dev * commit '374013f4dba56c9ea340d22dcefdf904cbd47ce6': Suppress haptic feedback for SLEEP key when already asleep.
| | * Suppress haptic feedback for SLEEP key when already asleep.Jeff Brown2014-06-121-5/+11
| | | | | | | | | | | | | | | Bug: 15377857 Change-Id: I4dfd273b089871d3a78513f52436a3f9c7d40fa4
* | | am 1a073a8f: am 926e1f01: Merge "When watch is docked, home key press should ↵Jeff Brown2014-06-131-0/+19
|\ \ \ | |/ / | | | | | | | | | | | | | | | launch dock home." into klp-modular-dev * commit '1a073a8f550695342e8e3902d2223fd237941e95': When watch is docked, home key press should launch dock home.
| * | am 926e1f01: Merge "When watch is docked, home key press should launch dock ↵Jeff Brown2014-06-131-0/+19
| |\ \ | | |/ | | | | | | | | | | | | | | | home." into klp-modular-dev * commit '926e1f01a5f2366c5d0eeab358822ba1d138d980': When watch is docked, home key press should launch dock home.
| | * When watch is docked, home key press should launch dock home.Jeff Brown2014-06-121-0/+19
| | | | | | | | | | | | | | | Bug: 15575717 Change-Id: Ib3fbe3ed0380378b0162901bfeebe3c218c4d568
| * | am 81dfc082: Merge "Force all windows to redraw before unblanking screen" ↵Craig Mautner2014-06-031-47/+76
| |\ \ | | |/ | | | | | | | | | | | | | | | into klp-modular-dev * commit '81dfc082d2add8463469e3eac9db94d6d93005ce': Force all windows to redraw before unblanking screen
| | * Force all windows to redraw before unblanking screenCraig Mautner2014-06-021-47/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The screen turning on would show windows as they were when the screen turned off. This fix forces all showing windows to redraw first and only then allow the screen to turn on. Fixes bug 15092354. Change-Id: I349995bf6446d6c462dccdc2b599bab9ab0ab2c8
* | | Merge "Do not display unsecure windows behind dialogs"Craig Mautner2014-06-121-9/+45
|\ \ \
| * | | Do not display unsecure windows behind dialogsCraig Mautner2014-06-121-9/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a dialog activity has FLAG_SHOW_WHEN_LOCKED set it will dismiss the keyguard. Previously this would expose any full screen unsecure windows behind the dialog. With this fix the dialog is displayed over the wallpaper. Fixes bug 15006623. Change-Id: I85a6713c7647db52211bd0f7280010e859723710
* | | | Merge "Exploring transitions to/from Recents."Winson Chung2014-06-121-0/+7
|\ \ \ \
| * | | | Exploring transitions to/from Recents.Winson Chung2014-06-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - refactored hwlayers and change view property animations to use a reference counted trigger - cleaned up RecentsConfiguration, and move it into classes using it - moved task bar animations back into TaskBarView - refactoring enter/exit animations to use an animation context Change-Id: Ia66b622b094f22145c2fab07c2a9bdfd62344be2
* | | | | am 92140c92: Merge "Update PhoneWindow to new window inset dispatching" into ↵Adrian Roos2014-06-121-15/+18
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | lmp-preview-dev * commit '92140c925ab4a142798f9b1acd6efe506d1f55e3': Update PhoneWindow to new window inset dispatching
| * | | | Update PhoneWindow to new window inset dispatchingAdrian Roos2014-06-121-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PhoneWindow was relying on an implementation detail of the old fitSystemWindow mechanism to consume only the top inset. In the new mechanism, the contract changed an consuming the inset did no longer work, leading to the insets being applied twice in some cases. Bug: 15388544 Change-Id: Ife8361f2b1e5caf8c3ed90646344d653876e8e7d
* | | | | Allow customization of background fade duration.George Mount2014-06-121-0/+24
| |/ / / |/| | | | | | | | | | | | | | | | | | | Bug 15195468 Change-Id: I02c1ef446cfa8aaedce640ab5694b6d9245bb9f7
* | | | Use META_LEFT to launch the ASSIST behavior.Michael Wright2014-06-051-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | Also, claim any key combo'd with META_LEFT for the system. Change-Id: I29892e31ed40f04d1dd3cf173551237ffb3702ca
* | | | am 4dd60289: Merge "Fix RadialTimePicker styling" into lmp-preview-devAlan Viverette2014-06-041-25/+24
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '4dd60289af766c9a256b57a3d1a8662131d28230': Fix RadialTimePicker styling
| * | | Fix RadialTimePicker stylingAlan Viverette2014-06-031-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | Also sneaks in some whitespace cleanup for PhoneWindow! Change-Id: I1bc8a889a59d69ae80b6cfbf54d57cd7f8ad4a36
* | | | am 1604d630: Merge "Fix action bar menu inflation context" into lmp-preview-devAlan Viverette2014-06-041-9/+29
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '1604d6302a3db07a57827b1c38f7fda21c28d3c6': Fix action bar menu inflation context
| * | | Merge "Fix action bar menu inflation context" into lmp-preview-devAlan Viverette2014-06-041-9/+29
| |\ \ \
| | * | | Fix action bar menu inflation contextAlan Viverette2014-06-031-9/+29
| | | | | | | | | | | | | | | | | | | | Change-Id: I9da159d7721f41974b711e74edbaba6d6740f183
* | | | | am 05cd6c39: Merge "Force all windows to redraw before unblanking screen" ↵Craig Mautner2014-06-041-45/+79
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-preview-dev * commit '05cd6c39824653e0f7e8641444a7134e8cac72f4': Force all windows to redraw before unblanking screen
| * | | | Merge "Force all windows to redraw before unblanking screen" into ↵Craig Mautner2014-06-041-45/+79
| |\ \ \ \ | | |/ / / | |/| | | | | | | | lmp-preview-dev