summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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)
* 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
* | 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
| * Fix system server crash when uninstalling paid LS widget that has been added ↵Adam Cohen2013-04-181-3/+7
| | | | | | | | | | | | (issue 8647398) Change-Id: I4acf02dad6bd8347727ca4322d19e15b130a6621
* | Merge "Restore dock home support for car docks." into jb-mr2-devDaniel Sandler2013-04-191-2/+93
|\ \
| * | Restore dock home support for car docks.Daniel Sandler2013-04-181-2/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While it's still not generally appropriate for the home key to do anything other than take you home, a car is a somewhat different context: because of the user's reduced ability to interact with the device, it's especially useful to temporarily replace the launcher with a car-optimized variant. While it would be ideal for the entire system (particularly the user's everyday Launcher) to dynamically reconfigure their UIs upon entering car mode, it's not the case today, and car home apps are a useful compromise. Quick test: $ adb shell am broadcast \ -a android.intent.action.DOCK_EVENT \ --ei android.intent.extra.DOCK_STATE 2 This reverts commit 7c135205f2f4c192299ad0215276e9e481bccaa5. Bug: 8234767 Change-Id: I17588fff46e7f5e3773d3ad202601a5642943444
* | | Merge "Add a config resource to force HDMI rotation on some devices." into ↵Jeff Brown2013-04-181-10/+21
|\ \ \ | | | | | | | | | | | | jb-mr2-dev
| * | | Add a config resource to force HDMI rotation on some devices.Jeff Brown2013-04-171-10/+21
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the hardware composer HAL does not provide full support for multiple displays, it may be necessary to force the HDMI rotation when not docked. (When docked, we can use the dock's orientation.) This configuration is not expected to be used on newer devices with the requisite HAL support and may be removed in the future. Bug: 8511721 Change-Id: I1ff50f00ee7fe621aceff94bd938ecf6385c3f38
* | | Merge "Move owner info from Settings.Secure to LockSettings" into jb-mr2-devJim Miller2013-04-171-7/+19
|\ \ \ | |/ / |/| |
| * | Move owner info from Settings.Secure to LockSettingsJim Miller2013-04-161-7/+19
| | | | | | | | | | | | | | | | | | Fixes bug 8512972 Change-Id: Ic046aff0332b78489dda08b1e9e71f4c16154f10
* | | Merge "FLAG_DISMISS_KEYGUARD should not hide status bar if secure." into ↵John Spurlock2013-04-161-1/+2
|\ \ \ | |/ / |/| | | | | jb-mr2-dev
| * | FLAG_DISMISS_KEYGUARD should not hide status bar if secure.John Spurlock2013-04-121-1/+2
| |/ | | | | | | | | | | | | | | | | Otherwise, setting both FLAG_DISMISS_KEYGUARD + FLAG_FULLSCREEN will hide the status bar (by not forcing it) when the secure keyguard is showing. Bug:8567697 Change-Id: I441d9c1bc0e106672b6d29427d291f41eaf1e697
* | Enabling Face Unlock for user switching (bug 8495282)Brian Colonna2013-04-153-4/+22
|/ | | | | | | | | | | | | | | | | We had been intentionally disabling FUL when switching to a new user. The reason was that we were only getting a signal when the user switch started, not when it completed. If we started FUL at the beginning of the user switch, it could be completed by the time the user switch completed. We now have a signal to tell us that the switch completed. Prior to this change, FUL would start whenever keyguard is created. For a user switch, keyguard is recreated when we get onUserSwitching(), but we don't want FUL to start until we get onUserSwitchComplete(). So with this change, if onResume() happens because of a user switch it doesn't start FUL until we get onUserSwitchComplete(). Change-Id: I1d3da0a32b9b4cf0cfa5c577f1697d2a41ee4fda
* Merge "Implement #7341342 API request: way to determine current ↵Dianne Hackborn2013-04-121-2/+11
|\ | | | | | | orientation..." into jb-mr2-dev
| * Implement #7341342 API request: way to determine current orientation...Dianne Hackborn2013-04-111-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | ...to allow for orientation locking This doesn't add an API to get the current orientation, since that is inherantly racy. Instead there is a new "locked" orientation mode that locks the screen into whatever the current rotation is. While at it, added a few other useful orientation modes. Change-Id: I5c369e6511cb72294e9e922ea8acffd770df9440
* | Merge "Fix bug where transport shows all the time in keyguard" into jb-mr2-devJim Miller2013-04-113-21/+58
|\ \
| * | Fix bug where transport shows all the time in keyguardJim Miller2013-04-093-21/+58
| |/ | | | | | | | | | | | | | | | | | | This fixes a bug caused by not keeping track of previous play state properly in keyguard as well as showing the transport even when in STATE_INVISIBLE. Fixes bug 8473575 Change-Id: I28bd382c53645a7c44541b3139c0a60569865219
* | Fix missing clock in keyguardJim Miller2013-04-102-3/+10
|/ | | | | | | | | | This fixes a bug where the clock sometimes doesn't show due to the alpha values not being reset when the widget page order changes due to removing a widget. Fixes bug 8545025. Change-Id: I17c531af4c844647b3262fcf56faa84fff8bafc5
* Awaken dreams on home + recents.John Spurlock2013-04-081-1/+20
| | | | | | | | | | Fixes the KEYCODE_HOME case, awakes when home is started for any reason. Also awaken when toggling recents (and not locked). Bug:8557212 Change-Id: I6578ae3971740a03c27596b838d27a5ab9b03752
* Uphold common ordering expectations around action bar Home/Up dispatchAdam Powell2013-04-041-3/+12
| | | | | | | | | | | | | | | | Some apps aren't particularly happy if a stray key event is dispatched to a newly created window before its menu is prepared, causing the action bar's Home/Up event to be dispatched. Ignore these clicks on the Home/Up button before the menu goes through its initial prepare step. Note that it is still possible (and valid!) for Home/Up to be dispatched even if the app chose to return false from onCreateOptionsMenu or similar. Bug 7085070 Change-Id: If4b7d5f8c5a08ce8a094f1919347604d78ddedfb
* Merge "RemoteControlClient receives playback position change requests" into ↵Jean-Michel Trivi2013-04-032-2/+2
|\ | | | | | | jb-mr2-dev
| * RemoteControlClient receives playback position change requestsJean-Michel Trivi2013-04-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RemoteControlClient defines two listener interfaces for playback position, one to let the framework query the current playback position, the other to request playback to seek to a given position. Updated IRemoteControlDisplay interface to support passing info about whether the user of RemoteControlClient can provide a playback position, and receive a new one. Updated implementations of IRemoteControlDisplay to new interface. Bug 8120740 Change-Id: I1a5a969da4d0f8c9ad27f691919dd08f8653982b
* | Merge "Add global key configuration file" into jb-mr2-devJustin Koh2013-04-032-0/+141
|\ \
| * | Add global key configuration fileJustin Koh2013-04-022-0/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add global key configuration file. A global key is one that is handled by PhoneWindowManager before dispatching and sent to a given component via broadcast instead of going to the foreground app. Bug: 8510681 Change-Id: Ic6a8e559680d005613ed22874b27eb78bbfc4499
* | | Change time format for default clock in keyguardJim Miller2013-04-021-1/+1
|/ / | | | | | | | | | | | | | | This changes the default clock format from "kk:mm" to "HH:mm" Fixes bug 8447801 Change-Id: I25f0c406dbecba8288773c9d13d0092485274af5
* | FUL now restarts when flipping tablet 180 (bug 7484464)Brian Colonna2013-03-291-3/+65
|/ | | | | | | | | | | | | | | | | | | | | | | | | When a tablet rotates, FUL must be stopped and restarted in a new position. 90 degree rotations cause a configuration change, causing FUL to be automatically reconstructed in the new location. However, a 180 degree rotation is not a configuration change, so FUL was not restarting. A 180 degree rotation happens more often than one might think. If you set the tablet down and later picked it up in the opposite orientation, FUL would not work prior to this fix. This change adds a rotation watcher to KeyguardFaceUnlockView. It watches for 180 degree rotations and stops and restarts FUL accordingly. The rotation watcher callback must be unregistered when KeyguardFaceUnlockView is recreated (as during 90 degree rotation changes), otherwise the number of rotation watcher callbacks will keep growing and they will never go away. This is a problem not just because there are many callbacks hanging around, but also because the old callbacks end up trying to access biometric unlock views that no longer exist, resulting in crashes. So, a simple function was added to the window manager to unregister a rotation watcher. Change-Id: Ie1ef20a9a22b8f4e39918987dff2b8ad444fcfd1
* RemoteControlClient can report current position, speedJean-Michel Trivi2013-03-292-2/+4
| | | | | | | | | | | | Extend RemoteControlClient class to support reporting the current playback position, and the playback speed. Define listener for an application to receive new playback position to seek to (use of listener to be implemented). Update IRemoteControlDisplay implementations to new interface. bug 8120740 Change-Id: I2654daeca1ac49713d325df8226dceb85943c020
* am 3ae30483: am a19647d3: Merge "Correct executable bit for source files ↵Elliott Hughes2013-03-281-0/+0
|\ | | | | | | | | | | | | [Take 2]" * commit '3ae30483777708ff3a4f59a4fa75c6a76213cc30': Correct executable bit for source files [Take 2]
| * Correct executable bit for source files [Take 2]Chirayu Desai2013-03-271-0/+0
| | | | | | | | | | | | | | Change Ieb51bafb46c895a21d2e83696f5a901ba752b2c5 left out some files, this fixes them. Change-Id: Ia949a8581668836ea0251602e048f09c852f5169
* | Fix an action bar menu order of operations bugAdam Powell2013-03-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | As options menu invalidations in PhoneWindow are deferred, it was possible for a call to open the overflow menu (which involves an extra chance to prepare the menu) to happen before the pending menu invalidation was handled. Process any pending menu invalidations before attempting to show the overflow menu in response to one of these events. Bug 7209308 Change-Id: Id50f7f6ad5d3a631745207fa0bad8c356690e16c
* | audio service: add config option for fixed volumeEric Laurent2013-03-211-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a boolean configuration option config_useFixedVolume indicating if stream volumes or master volume can be modified. If the option is true, the AudioManager volume and mute APIs will be no ops and the volumes will be maxed out. To be consistent: - the ringer mode is forced to normal and cannot be modified - volume panel is never displayed - volume settings are not available - ringer mode global action is not displayed. The default for this option if false. This is useful for a class of devices intended for connection to a digital audio output only, where the volume is directly controlled on the audio sink. Bug 8161458 Change-Id: I2571d5ee79952ef0914d8fd1985816467a80adcd
* | Merge "Hide carrier string when emergency call button pressed." into jb-mr2-devJohn Spurlock2013-03-211-0/+62
|\ \
| * | Hide carrier string when emergency call button pressed.John Spurlock2013-03-201-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The emergency call button area overlaps the carrier text area, which is only noticeable when pressed/highlighted. Smoothly hide the carrier text when the emergency call button is pressed. Bug:8424348 Change-Id: I78ba97739d58cc7f974e36dca81cfcd42703d3fe
* | | Fix bad merge in KeyguardHostViewJim Miller2013-03-201-17/+11
|/ / | | | | | | | | | | This restores the fix detailed in Change-Id: I866d4b42493df3a6449d8eabc3ea140dc39dac57 Change-Id: Ibe75afd7a612cf96a56e5815a198c2047c7ff5bd
* | Use persistent IRCD in KeyguardUpdateMonitor to show/hide musicJim Miller2013-03-195-158/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we can have multiple IRemoteControlDisplays, create a persistent one in KeyguardUpdateMonitor so we can more efficiently show and hide the music controls in keyguard. Update after review: get the current state from KeyguardUpdateMonitor *before* the first call to showApprpriateWidgetPage(). This fixes a flash that was sometimes seen when transitioning between orientations. Fixes bug 7517659 Change-Id: I1b7b6f4222a99891ec06d6b6fd779dd0b86cc367
* | Enable back button in keyguard security account mode.John Spurlock2013-03-141-3/+18
| | | | | | | | | | | | | | | | | | Otherwise hitting "Forgot Pattern" traps you in account mode. Avoid the known case where account is not backup (if permanently locked). Bug: 8381295 Change-Id: Ifda28eec6d0609e822b210831ff0ea0ec6cb22b1
* | Merge "Fix bug where Keyguard's emergencydialer wasn't being launched with a ↵Jim Miller2013-03-141-1/+3
|\ \ | | | | | | | | | userid." into jb-mr2-dev
| * | Fix bug where Keyguard's emergencydialer wasn't being launched with a userid.Jim Miller2013-03-121-1/+3
| | | | | | | | | | | | | | | | | | Fixes bug 8374423 Change-Id: Iafbcefa431105202b68b3444cb1b42271fe0ccda
* | | Prevent momentary switch of keyguard to landscapeJim Miller2013-03-121-0/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where keyguard was created without setting the preferred orientation. The result is it would temporarily assume the orientation of the device after being hidden. The fix sets the flag when the keyguard view hierarchy is created rather than when visibility changes. Fixes bug 8124979 Change-Id: Ic54a185e4f51f79f2bb7fbc5ffc6992641e89132
* | Keyguard remote control display artwork sizeJean-Michel Trivi2013-03-081-0/+9
| | | | | | | | | | | | | | Update the album art bitmap size to the sent to the IRemoteControlDisplay of Keyguard on layout size changes. Change-Id: I178eba8cbff3d4ffb5232318469c43d95da2f11f
* | Merge "Unify normal and overlay action bar layouts." into jb-mr2-devDianne Hackborn2013-02-281-5/+2
|\ \