summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix state weirdness in the panelJorim Jaggi2015-07-301-4/+2
| | | | | | | | | | | | | | When QS was open while the we started with expansion, we immediately notified about expansion finsihed again, which led to all kinds of weird states. The change that introduced these bugs was to fix another bug in which onExpandingFinished was not call. Make sure to call in exactly that case and no other case to not risk regressions. Bug: 22806817 Bug: 22807359 Bug: 22807372 Change-Id: Id7daf37ef4a772f724971bf79c61084ff4279f31
* Fix doze modeJorim Jaggi2015-07-291-2/+2
| | | | | | | | | Make sure to reset the keyguard drawn state in the correct place, so we don't return early in finishKeyguardDrawn() because mKeyguardDrawComplete is still true. Bug: 22808662 Change-Id: I7e18e91c412c6cac7fe253837949602f76b7f270
* Merge "Fixed out of bounds exception while handling app crash" into mnc-devWale Ogunwale2015-07-291-4/+4
|\
| * Fixed out of bounds exception while handling app crashWale Ogunwale2015-07-291-4/+4
| | | | | | | | | | | | | | | | | | The current stack we are proccessing can be deleted as part of the clean-up process, so the size of the stack list is reduced by one. Bug: 22822743 Change-Id: I6a6af5d8d811e231f345f01dd2aa4a61510c8d2b
* | Workaround View.post issues to fix runtime crashJorim Jaggi2015-07-291-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Using View.post was really dangerous because when the view wasn't attached, it got posted on the run queue of the *calling* thread. However, that run queue was never executed until power down, and then it was executed from the PowerManagerService thread, because that was the calling thread when we posted it. Work around this by using a solid Handler. Bug: 22820787 Change-Id: Id60e49e859558993256fae0403236f2e4b6f1075
* | Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services ↵Billy Lau2015-07-297-51/+204
|\ \ | | | | | | | | | perm check changes)" into mnc-dev
| * | Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm checkBilly Lau2015-07-297-51/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes) AppOpsManager: Changed the default operating mode for WRITE_SETTINGS to MODE_DEFAULT from MODE_ALLOWED. packages/SettingsProvider: We no longer do static permission checks for WRITE_SETTINGS in early checks and defer that to app op when MODE_DEFAULT is returned. For some operations, checking against WRITE_SECURE_SETTINGS is sufficient. ActivityManagerService & PowerManagerService: Incorporated app op checks and handled the MODE_DEFAULT case. provider/Settings: Added helper function to do checks on whether app ops protected operations can be performed by a caller. This includes checks for WRITE_SETTINGS and SYSTEM_ALERT_WINDOW. Also added a public API (with javadocs) for apps to query if they can modify system settings. Changed the javadocs description for ACTION_MANAGE_WRITE_SETTINGS and ACTION_MANAGE_OVERLAY_PERMISSION. Added public API (with javadocs) for apps to query whether they can draw overlays or not, and also javadocs description on how to use that check. Change-Id: I7b651fe8af836c2074defdbd6acfec3f32acdbe9
* | | Merge "Add API to let carrier app send SMS without auto perisisting." into ↵Ji Yang2015-07-291-2/+10
|\ \ \ | | | | | | | | | | | | mnc-dev
| * | | Add API to let carrier app send SMS without auto perisisting.Ji Yang2015-07-291-2/+10
| | | | | | | | | | | | | | | | | | | | Bug: 22773702 Change-Id: I976a8268ce95fe9fc5bb046ce744a1cddefc8eeb
* | | | Accessibility: Read the time correctly in quick settings.Dan Sandler2015-07-293-1/+33
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that, for 12-hour locales, we cut the "a" part of the time format out to show it in a separate TextView so it can be animated independently of the actual time. Unfortunately, while TTS is smart enough to pronounce "1:15 AM" as /wʌn fɪftin eɪ ɛm/, "AM" on its own looks like the English word "am" and is pronounced /æm/. To fix this, a TextClock must be able to accept separate formats for its content description than its presentation. With this capability we can place the complete 12-hour time format (including am/pm) in one of the views and suppress the other one, so that the utterance creates an identical experience to visual inspection: "1:15 AM" for all users. Bug: 21718000 Change-Id: Ic9920d71ae4d4ad41ba86d7bd96f9a19b07e2108
* | | Merge "Revert "DO NOT MERGE Enhance local log."" into mnc-devRobert Greenwalt2015-07-291-27/+6
|\ \ \
| * | | Revert "DO NOT MERGE Enhance local log."Robert Greenwalt2015-07-291-27/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dd6f8441292d30cc51c1e32bb27fab8dfb791f90. bug:22632129 Change-Id: Ibd4b9c35b66cb7d877085bc010fde45a682ba34f
* | | | Merge "Default grants: handle update system packages" into mnc-devSvetoslav Ganov2015-07-291-22/+40
|\ \ \ \
| * | | | Default grants: handle update system packagesSvetoslav2015-07-291-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there is an app on the system image that gets default grants but it is updated with a version that does not use all permissions the version on the system image does, we would wrongly try to grant a permission to the updated app that it does not request and crash as a result. Now we default grant permission that are requested by the system version of the app regardless if it is updated but only if the system app is not updated or the update also uses these permissions. bug:22800767 Change-Id: Ic22b62ba4976367420a56bdadc8e3824b0b9104f
* | | | | Merge "Fix pattern lock for accessibility" into mnc-devAdrian Roos2015-07-295-17/+42
|\ \ \ \ \
| * | | | | Fix pattern lock for accessibilityAdrian Roos2015-07-295-17/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove the content description in Keyguard - only show virtual views when pattern is in progress - add a content description when the pattern is not in progress Bug: 22646748 Change-Id: Id32a37c4c74c82b547cee8861b2856fa0a08c41c
* | | | | | Merge "DO NOT MERGE: Don't backup night mode setting" into mnc-devAlan Viverette2015-07-291-1/+0
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | DO NOT MERGE: Don't backup night mode settingAlan Viverette2015-07-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22824325 Change-Id: I7a244f416e1aa258735eea09858e3c202e8c8945
* | | | | | Merge "Fix and deprecate lock pattern related settings" into mnc-devAdrian Roos2015-07-294-8/+36
|\ \ \ \ \ \
| * | | | | | Fix and deprecate lock pattern related settingsAdrian Roos2015-07-274-8/+36
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 22557690 Change-Id: Ib4b3ef7cebe815ba9d9d2284f945a9ec746b216c
* | | | | | Merge "Ensure maxHeight is at least 0 during measureChildHorizontal()" into ↵Alan Viverette2015-07-291-16/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | | Ensure maxHeight is at least 0 during measureChildHorizontal()Alan Viverette2015-07-291-16/+25
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Bug: 22613599 Change-Id: I11f70ed1f7221874bef0f00f006e0ae294c4bdfa
* | | | | | Merge "Always distribute excess space in LinearLayout measurement" into mnc-devAlan Viverette2015-07-291-73/+32
|\ \ \ \ \ \
| * | | | | | Always distribute excess space in LinearLayout measurementAlan Viverette2015-07-291-73/+32
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, excess space was added to existing measured dimensions. This consistently resulted in incorrect allocation of excess space, since the delta already included the height of any measured children rather than just the excess space itself. This CL ensures that excess space is always distributed according to the layout weights. Bug: 22810327 Change-Id: I482a553c469169769cc40ab3d88b4a44023f3eb5
* | | | | | Merge "Always return content Uri for downloads." into mnc-devJeff Sharkey2015-07-291-24/+3
|\ \ \ \ \ \
| * | | | | | Always return content Uri for downloads.Jeff Sharkey2015-07-291-24/+3
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we're relying more heavily on Uri permission grants between apps, we should always return content:// Uris. Bug: 22820206 Change-Id: Ie9603da09944dc594ea5dde2db04455f57d6f103
* | | | | | Merge "Release text when finishing StaticLayout.Builder" into mnc-devRaph Levien2015-07-291-0/+4
|\ \ \ \ \ \
| * | | | | | Release text when finishing StaticLayout.BuilderRaph Levien2015-07-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DynamicLayout reuses a StaticLayout.Builder object to avoid having to allocate. There is a "finish" method that releases any expensive internal state of the builder object, but it didn't release a reference to the text object (which in turn may contain references to lots of other things, especially if it's a Spannable). This patch releases the text, as well as a few other arrays, at time of finish. Bug: 22822416 Change-Id: Icc8b6cd41a9a2d11689df7bd1b9f524c6524f706
* | | | | | | Merge "Added stack id to TaskRecord dump." into mnc-devWale Ogunwale2015-07-291-0/+3
|\ \ \ \ \ \ \
| * | | | | | | Added stack id to TaskRecord dump.Wale Ogunwale2015-07-291-0/+3
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22812470 Change-Id: Ic8f3550e61ad1cf175423abe900c5f60686338a2
* | | | | | | Merge "Add a command to register SIM Phone account." into mnc-devRoshan Pius2015-07-291-0/+24
|\ \ \ \ \ \ \
| * | | | | | | Add a command to register SIM Phone account.Roshan Pius2015-07-281-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Phone accounts with SIM_SUBSCRIPTION capabiltiy needs system permission. Hence adding a command to add sunc phone accounts for CTS testing of remote connections. BUG: 20303674 Change-Id: Ieb7349f906ec8209776ffbe39ed3633f01ba1e7c
* | | | | | | | Merge "Disable launching assist during setup" into mnc-devMaurice Lam2015-07-291-0/+4
|\ \ \ \ \ \ \ \
| * | | | | | | | Disable launching assist during setupMaurice Lam2015-07-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for user_setup_complete before launching the assist layer. Bug: 22694702 Change-Id: I2509c2aa081002dced192a074716fb23f91dde86
* | | | | | | | | Merge "Change NTP polling interval from 10 days to 24 hours." into mnc-devChristine Hallstrom2015-07-291-1/+1
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Change NTP polling interval from 10 days to 24 hours.Christine Hallstrom2015-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22820525 Change-Id: Ifb5da0a19854d751d00889e4c9d075e909414d62
* | | | | | | | | | Import translations. DO NOT MERGEGeoff Mendal2015-07-2978-81/+1051
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic4e540e08175014515a7556425c751de60955005 Auto-generated-cl: translation import
* | | | | | | | | | Merge "Remove dependencies on the package installer's package name" into mnc-devSvetoslav Ganov2015-07-297-11/+53
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Remove dependencies on the package installer's package nameSvet Ganov2015-07-297-11/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:22700053 Change-Id: I8540eb8577fbec84e1a67e31e1c31ba654c828a4
* | | | | | | | | | | Merge "Default permissions for sim call manager" into mnc-devSailesh Nepal2015-07-296-1/+179
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Default permissions for sim call managerSailesh Nepal2015-07-286-1/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds the following permissions by default to the SIM call manager: - microphone - phone BUG: 22790160 Change-Id: Icaf1db6c6943b3ddbd16a946a81d1bfb734d761f
* | | | | | | | | | | | Merge "Allow non system to set perm policy flags - needed by the installer" ↵Svetoslav Ganov2015-07-291-2/+0
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | | | | | | | Allow non system to set perm policy flags - needed by the installerSvet Ganov2015-07-291-2/+0
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My previous change overtightened which permission flags can be changed by a non-system caller. This took away the capability of the package installer to set policy flags which it needs to implement the auto grant/deny behavior. bug:22776149 Change-Id: Ic2a82bedc413fc91360c3bcec355fac456f0fccf
* | | | | | | | | | | | Merge "Do not reset runtime permissions on upgrade" into mnc-devSvetoslav Ganov2015-07-291-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Do not reset runtime permissions on upgradeSvet Ganov2015-07-291-1/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:22772831 Change-Id: Ic7113f48bf4fe2fe2f50bf94c4b6dbb2130b6621
* | | | | | | | | | | Merge "Work on issue #22765972: Binder transactions running out of ↵Dianne Hackborn2015-07-293-6/+12
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | address..." into mnc-dev
| * | | | | | | | | | | Work on issue #22765972: Binder transactions running out of address...Dianne Hackborn2015-07-283-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...space causing package manager to fail Lower the maximum IPC size we use in various places, to keep it under the threshold of becoming dangerous. Now everything tries to keep not much more than 64k. Change-Id: I814013097966a7843179e5d581bfdb254c5ae318
* | | | | | | | | | | | Merge "Send a public broadcast when the device owner is set." into mnc-devNicolas Prévot2015-07-295-1/+22
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Send a public broadcast when the device owner is set.Nicolas Prevot2015-07-285-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it a protected broadcast. BUG: 22623518 Change-Id: Ia36e8f0b80a6301d7d8e0461476842c78762b5e8
* | | | | | | | | | | | | Merge "import more metrics enums" into mnc-devChris Wren2015-07-292-14/+13
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | |