summaryrefslogtreecommitdiffstats
path: root/policy
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1Daniel Sandler2011-12-011-142/+0
|\
| * Put screensavers back in the icebox for now. DO NOT MERGE.Daniel Sandler2011-11-301-142/+0
| | | | | | | | | | Bug: 5689684 Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
* | Fix issue #5433192 and maybe #5433192Dianne Hackborn2011-11-301-2/+5
|/ | | | | | | | | | | | | | | | 5433192: Factory reset device: compatibility screen is the first... ...screen before setup wizard Don't show compat mode dialog if compat mode is unknown (which happens early in boot before an activity is shown for example). Also make sure to update status any time the current focus app token changes, so we correctly update every time switching apps. 5651152 [Stingray] change zoom/strech setting icon won't go away This is probably also fixed by updating when the app token changes. Change-Id: Ibe9bd6277166230d5d96689741b78325ea099d57
* Merge "Fix application launch shortcuts." into ics-mr1Jeff Brown2011-11-291-1/+42
|\
| * Fix application launch shortcuts.Jeff Brown2011-11-291-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improved quick launch bookmarks to support category-based shortcuts instead of hardcoding package and class names for all apps. Added a set of Intent categories for typical applications on the platform. Added support for some of the HID application launch usages to reduce reliance on quick launch for special purpose keys. Some keyboard vendors have hardcoded launch keys that synthesize "Search + X" type key combos. The goal is to encourage them to stop doing this by implementing more of HID. Bug: 5674723 Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
* | Merge "Another attempt at getting OOM reports to batch." into ics-mr1Dianne Hackborn2011-11-291-1/+2
|\ \
| * | Another attempt at getting OOM reports to batch.Dianne Hackborn2011-11-291-1/+2
| |/ | | | | | | | | | | | | | | | | We now generate a stack-trace looking thing at the top of the report. Also fix a bug I hit where the phone window manager was sending a broadcast before the boot had completed. Change-Id: I0cee16180e4d05c9bd3fe715212a28f504ec91ac
* | Quick fix for bug 5646217 blocking automation testsDaniel Sandler2011-11-231-0/+9
|/ | | | | | | | | | | | | | | | The screen saver knows to avoid running when applications are holding wake locks via window flags, but other wake locks are invisible to the window manager and therefore to the screen saver activation code. The correct thing to do is move the screen saver to the power manager to give it access to all wakelock information. In the meantime, this fix checks for the user's STAY_ON_WHILE_PLUGGED_IN setting and disables the screen saver in this case. Bug: 5646217 Change-Id: Ia2286a8c3745267871901f7a0b7df94ec344a456
* Dismiss system windows when screen savers start.Daniel Sandler2011-11-181-0/+5
| | | | | | | | | Also add a couple more flags to the intent: - NO_HISTORY (finish activity on suspend) - FLAG_FROM_BACKGROUND Bug: 5578434 Change-Id: I97b965175a27760b819dc29ddb57865c5f4754d6
* Dreams (now Screen Candy) development.Daniel Sandler2011-11-181-9/+15
| | | | | | | | - support for global "disable" setting - renamed settings provider keys to remove "DREAM" Bug: 5591015 Change-Id: I31f31b3ca6001fec1e0032a49cdf0d10df7b0ec7
* Merge "Tie screen saver to the screen off timeout." into ics-mr1Daniel Sandler2011-11-171-4/+44
|\
| * Tie screen saver to the screen off timeout.Daniel Sandler2011-11-171-4/+44
| | | | | | | | | | | | | | | | The window manager now monitors the plug state; the screen saver will never be automatically started if the device is running off battery. Change-Id: Ib1064d9cdd540238957df3ba7020303b0f6943c2
* | Merge "Fix 5636798: clear PIN/PUK fields when device sleeps or user cancels" ↵Jim Miller2011-11-173-4/+13
|\ \ | | | | | | | | | into ics-mr1
| * | Fix 5636798: clear PIN/PUK fields when device sleeps or user cancelsJim Miller2011-11-173-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug is the result of onPause()/onResume() not being called properly when we have both lock and unlock screens present, which is true for the SIM and PUK unlock cases. The fix is to invoke onPause() and onResume() on both of them if they exist. Verified the rest of the code correctly handles having both. Also, when the user cancels, we now clear the fields. Change-Id: If7fbd31df7eab9e3d60656d50d2392607a4bf471
* | | Merge "Fix 5620754: don't show pattern screen after SIM PUK unlock" into ics-mr1Jim Miller2011-11-173-42/+58
|\ \ \ | |_|/ |/| |
| * | Fix 5620754: don't show pattern screen after SIM PUK unlockJim Miller2011-11-173-42/+58
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where we would inadvertently show the pattern screen after PUK-unlocking the device. Could potentially happen after SIM unlock as well, but that path appears to be fast enough that it's rarely seen. The cause was not getting the SIM state change before deciding to show the Unlock screen. We now immediately invoke the callback if SIM/PUK unlock succeeds without waiting for the round-trip from the radio layer. Change-Id: I02dcb456da415b82f30f8e3abc43f788f3931b33
* | Merge "Disable desk dock apps." into ics-mr1Daniel Sandler2011-11-161-6/+25
|\ \
| * | Disable desk dock apps.Daniel Sandler2011-11-161-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a device is attached to a desk dock, the CATEGORY_DESK_DOCK intent will no longer be fired. As a side effect, the "dock home" behavior (which captures the home key for the dock app as long as the device is docked) is now disabled for desk docks. Car docks are unchanged. Bug: 5591015 Change-Id: I7884f655913c31cf53b88cb2e2b371987be27f64
* | | Merge "Add a default Dreams component." into ics-mr1Daniel Sandler2011-11-161-0/+3
|\ \ \ | |/ / | | / | |/ |/|
| * Add a default Dreams component.Daniel Sandler2011-11-151-0/+3
| | | | | | | | | | | | | | | | | | Currently set to DeskClock's screensaver, but since it's a (private) string in f/b/c/r/r/values/config.xml any product could overlay this. Bug: 5611008 Change-Id: I7a4623c9c667a6cff8ed80ad600a8a4460bfafb7
* | Merge "Fix 5581164: Use abbreviated day in lockscreen" into ics-mr1Jim Miller2011-11-151-1/+1
|\ \
| * | Fix 5581164: Use abbreviated day in lockscreenJim Miller2011-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | This fixes a problem where the alarm status was forced to scroll on phones when the date string got too long. We now abbreviate the day on lock screen. Change-Id: I99990f1568282c65fb6ed4e78d20bb31b3487a8e
* | | Merge "Fix 5602985: Show "Emergency calls only" when device has no SIM." ↵Jim Miller2011-11-151-0/+7
|\ \ \ | | | | | | | | | | | | into ics-mr1
| * | | Fix 5602985: Show "Emergency calls only" when device has no SIM.Jim Miller2011-11-141-0/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some countries require phones to show "Emergency calls only" when roaming on a device with no Sim. This changes causes the phone to now display the PLMN string on devices that are voice-capable when the sim is missing. This depends on the PLMN containing the text "Emergency calls only" when the radio has connectivity to any carrier. Otherwise, the PLMN is expected be null or empty which will cause the device to just show "No SIM card." Change-Id: I7c1d4624ae67074e2ca40161845ca8bb36031c42
* | | Override app requested orientation when docked.Jeff Brown2011-11-151-10/+21
| |/ |/| | | | | | | | | | | | | | | | | Applies to docks, lid switch, HDMI and rotation lock. We always choose a mode that is compatible with the application's request, so if in a landscape dock, we might override a request for seascape but we leave requests for portrait alone. Bug: 5620454 Change-Id: Ib0c4f60f7f9e3aeafaba9c717233a950fccb8af2
* | Fix 5579440: Add transport control view to tablet unlock screensJim Miller2011-11-141-2/+8
|/ | | | | | | | | | | | | | | | | | | | | | | | | This updated tablet layouts to support showing album art and transport control views in PIN, pattern and password screens of lock screen. It also allows the addition of a background protect asset and the ability to show the system wallpaper on layouts that define a transport_bg_protect view. Also updated layout to use new ICS-style buttons on lock screen and fixed bug with "forgot pattern" button where we were showing the emergency call icon. To avoid problems with leading ones in the mono-space clock font, we now right-justify status text on tablet and remove the AM/PM indicator. Status font size adjusted by UX. Added background protection drop shadow to transport control. Fixed portrait mode to be right-justified when transport is showing. Change-Id: I790292fc39f4588f87adc9d9241706817ae6baab
* Merge "Fix issue #5522658: Menu button shown on lock screen if app ↵Dianne Hackborn2011-11-111-39/+12
|\ | | | | | | underneath requests it" into ics-mr1
| * Fix issue #5522658: Menu button shown on lock screen if app underneath ↵Dianne Hackborn2011-11-101-39/+12
| | | | | | | | | | | | | | | | | | requests it Drive the menu button off of the currently focused window. That is, after all, the one that is going to receive the menu key event. Change-Id: I61cac1e274602e5ea53402ab15bd63a9cd89e9cd
* | Merge "Wake on volume key when in dock. Bug: 5580373" into ics-mr1Jeff Brown2011-11-102-5/+18
|\ \ | |/ |/|
| * Wake on volume key when in dock.Jeff Brown2011-11-102-5/+18
| | | | | | | | | | | | Bug: 5580373 Change-Id: I847fb10b48c2e5e26cabefea1d630793efc32131
* | Merge "Fix issue #5470311: Activity with android:configChanges defined..." ↵Dianne Hackborn2011-11-101-1/+7
|\ \ | | | | | | | | | into ics-mr1
| * | Fix issue #5470311: Activity with android:configChanges defined...Dianne Hackborn2011-11-101-1/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...should not be restarted when rotating screen on xoom This was a side-effect of a previous fix to compute the screen layout config class based on the actual space available to the application, not the raw display size. On a device like Xoom, the system bar causes us to switch between LONG and NOTLONG depending on whether the system bar is on the short or long side of the screen. To fix this, we now compute the screen layout class the same way "smallest width" is computed: looking at all of the possible rotations and using the smallest of them all. In addition to preventing the device from toggling between long and notlong on a Xoom-like screen, this will also avoid other possible undersireable behavior like changing screen layout size when rotating. This does mean that Xoom is no longer considered a long screen even when in landscape, because it is not a long screen in portrait. Change-Id: I85f90a16294ef5a7de94d5b9231abbc6f914fe90
* | Merge "Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock ↵Jim Miller2011-11-093-15/+31
|\ \ | |/ |/| | | screen" into ics-mr1
| * Fix 5555408: allow emergency button to be disabled on SIM/PUK unlock screenJim Miller2011-11-073-15/+31
| | | | | | | | | | | | | | | | | | Some carriers cannot process emergency calls when the IMSI is not available, which happens when the SIM is locked. This allows the behavior to be overwritten in an overlay. When the config variable is set to 'false', the emergency button no longer appears on the SIM or PUK unlock screens. Change-Id: I3127bfd5e7ebfabea997fbe048cc474e48b7a81c
* | am 04217efb: Merge "Fix 5514230: preventing null window token from ↵Brian Colonna2011-11-091-27/+27
|\ \ | | | | | | | | | | | | | | | | | | occurring" into ics-mr0 * commit '04217efb8eaebdbd846671a2f743fa3e960b5dde': Fix 5514230: preventing null window token from occurring
| * | Fix 5514230: preventing null window token from occurringBrian Colonna2011-11-071-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes the lockscreen view is recreated even though it has already been created (and therefore Face Unlock is already running). One example of this is when the lockscreen momentarily displays in landscape mode and then corrects itself into portrait mode. When lockscreen recreates itself, it removes the view and then later re-adds the view. During that time the window token is null and may be passed to Face Unlock when it tries to restart. The reason this doesn't happen *every* time the view is recreated is because the onServiceConnected() callback starts Face Unlock, and usually it runs after the view is re-added, but sometimes it runs before the view is re-added, resulting in this bug. An earlier fix put null-token checking inside of the Face Unlock service, which prevented crashing but Face Unlock was still unable to run. This fix makes the null token case not happen so Face Unlock can run every time. It accomplishes this by simply not restarting Face Unlock until the view has been re-added. This fix also replaces checking two flags everywhere to see if Face Unlock is being used and instead uses a single function call. Change-Id: Ib46f25f2a58ab2e70470337861c25ee81a858873
* | | Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK.Jeff Brown2011-11-081-2/+6
| | | | | | | | | | | | | | | | | | Bug: 5569662 Change-Id: Ib8cb9fb68a1a2d3520f34f7fbf6f002dfb91809d
* | | Merge "Change slide-to-camera intent to INTENT_ACTION_STILL_IMAGE_CAMERA." ↵Wei Huang2011-11-081-3/+5
|\ \ \ | |_|/ |/| | | | | into ics-mr1
| * | Change slide-to-camera intent to INTENT_ACTION_STILL_IMAGE_CAMERA.Wu-cheng Li2011-11-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | ACTION_CAMERA_BUTTON is for camera hardware button. Change the intent to INTENT_ACTION_STILL_IMAGE_CAMERA. bug:5572158 Change-Id: I49ffbf50ecd4458065ee1c2d1fdab8d9e696a1a8
* | | Merge "Fix 5231823: PIN/Password polish on lock screen" into ics-mr1Jim Miller2011-11-071-0/+16
|\ \ \ | |/ / |/| |
| * | Fix 5231823: PIN/Password polish on lock screenJim Miller2011-11-041-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes these issues: - add IME button to switch IMEs on password screen on tablet - centers '0' on PIN screen for phones and tablets - tablets now use the same ICS background key asset as phones - make PIN layout consistent between phones and tablet - center the I-beam when any button is showing in the password entry field Change-Id: I4da0173f9b2efeab46617c5a41a8132895b63a97
* | | Bring back Android Dreams.Daniel Sandler2011-11-021-55/+43
|/ / | | | | | | | | | | | | Also fix bugs related to loading changes in dreams settings. Bug: 5121105 Change-Id: I1527c3100d5219a678dd94ed5393bc478b1a1622
* | am 1dce37bd: Merge "Fix 5497305: Make sure we show SIM unlock when "None" is ↵Jim Miller2011-11-011-3/+3
|\ \ | |/ | | | | | | | | | | selected" into ics-mr0 * commit '1dce37bd6bb9b3fe555342f9d2c52e60e10a3fea': Fix 5497305: Make sure we show SIM unlock when "None" is selected
| * Fix 5497305: Make sure we show SIM unlock when "None" is selectedJim Miller2011-10-311-3/+3
| | | | | | | | | | | | | | Previously the code ignored SIM state when lockscreen was set to "None." It now properly accounts for the SIM state when deciding to show. Change-Id: I272348c1a21b57ac146910850ea3db3adef0227c
* | am 69e640ee: Merge "Bring back the old-style Ring/Vibrate/Silent states when ↵Amith Yamasani2011-10-301-2/+1
|\ \ | |/ | | | | | | | | | | using volume keys." into ics-mr0 * commit '69e640ee84fc218d6318acaf73a1c1841d7fba6b': Bring back the old-style Ring/Vibrate/Silent states when using volume keys.
| * Bring back the old-style Ring/Vibrate/Silent states when using volume keys.Amith Yamasani2011-10-281-2/+1
| | | | | | | | | | | | | | | | | | In order to completely mute the ringer (no vibrate), introduce an extra state beyond mute, which mutes the vibrator as well, if it was enabled. Bug: 5530217 Change-Id: Ib1f299ee6bbca56c1aa7e1100662591362d08307
* | Merge "Fix 5487180: Check for empty plmn/spn strings instead of just null" ↵Jim Miller2011-10-281-4/+6
|\ \ | | | | | | | | | into ics-mr1
| * | Fix 5487180: Check for empty plmn/spn strings instead of just nullJim Miller2011-10-271-4/+6
| |/ | | | | | | | | | | | | This fixes a problem where we'd sometimes show a '|' in front of the spn string or after the plmn string. Change-Id: I6a3a398b0ddf89fcc8862b275dea0e925873b56a
* | Merge "Fix 5369428: Use full battery state information when determining ↵Jim Miller2011-10-261-44/+59
|\ \ | |/ |/| | | charge status" into ics-mr1
| * Fix 5369428: Use full battery state information when determining charge statusJim Miller2011-10-261-44/+59
| | | | | | | | | | | | | | | | | | | | | | This is a fix for a bug where we'd show "connect charger" when the device was connected but not charging due to the battery being in an unchargeable state (too hot, cold, etc). It now maintains a full copy of the battery state and uses the plugged status to determine if the device is plugged in. Change-Id: I60fa4e4566a45663b130f0ff4863bcc595ae3c4a