summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-021-1/+10
|\ | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: Ib003ccb606e0d77209291b757ea36399d3b65814
| * DO NOT MERGE Fix intent filter prioritiesTodd Kennedy2016-06-241-1/+10
| | | | | | | | | | | | | | | | | | | | Since this is a backport, there is only one rule that guards intent filter priorities: 1) Updates will NOT be granted a priority greater than the priority defined on the system image. Bug: 27450489 Change-Id: Ifcec4d7a59e684331399abc41eea1bd6876155a4
| * Redact Account info from getCurrentSyncsMatthew Williams2016-02-261-0/+18
| | | | | | | | | | | | | | | | | | | | BUG:26094635 If the caller to ContentResolver#getCurrentSyncs does not hold the GET_ACCOUNTS permission, return a SyncInfo object that does not contain any Account information. Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314 (cherry picked from commit b63057e698a01dafcefc7ba09b397b0336bba43d)
* | PackageManager: make protected-broadcasts permission awareRoman Birg2016-07-212-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This extends the <protected-broadcast> mechanism to allow protecting actions based on a permission for system apps. For instance: <protected-broadcast android:name="ACTION_A" android:permission="PERMISSION_X" /> will restrict intents with action "ACTION_A" to be only sent with apps holding the "PERMISSION_X" permission. Note that system UIDs will bypass the permission check and always be allowed, just like the normal protected-broadcast mechanism. You must still be a system application to delcare a protected broadcast. Change-Id: Id25cffd233d400800dcb5249c5f487134e1b4152 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Themes: Fix theming of cmsdk assetsd34d2016-05-191-0/+2
| | | | | | | | | | | | | | Missed the pkgid assignment bits in I4f64d53d82c9edafbe624c3b2eafcda7332587fb Change-Id: Ie442c8922f0d9eac3ed5bab70a99d3e065b719c4 TICKET: CYNGNOS-2723
* | am: Handle unchecked activity starts for protected components.Adnan Begovic2016-05-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Previously if you received a notification from a protected app, since AM would state that the calling package was also the target package, the protected apps implementation would allow you to launch into the application. Mitigate this by hooking into the unchecked activity start stack (pending intent launches) globally. Change-Id: I0371593ade9e4af2554962873d89a0f82a639b57 TICKET: PAELLA-216 FEIJ-160 FEIJ-177
* | Merge tag 'android-6.0.1_r24' into HEADJessica Wagantall2016-04-051-0/+18
|\ \ | | | | | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 24
| * | Redact Account info from getCurrentSyncsMatthew Williams2016-03-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG:26094635 If the caller to ContentResolver#getCurrentSyncs does not hold the GET_ACCOUNTS permission, return a SyncInfo object that does not contain any Account information. Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314 (cherry picked from commit b63057e698a01dafcefc7ba09b397b0336bba43d)
* | | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-112-122/+171
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| * | Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-devJeff Sharkey2015-10-301-0/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | am: a975732a83 * commit 'a975732a8302893a40cdc444f893bf09b7669173': Handle "uninstalled" apps when pruning app-ops.
| | * | Handle "uninstalled" apps when pruning app-ops.Jeff Sharkey2015-10-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During system boot, we prune app-ops belonging to apps that have been uninstalled. However, apps installed on adopted storage devices haven't been scanned at this point, so they appear to be uninstalled. To avoid pruning app-ops for these apps, we need a getPackageUid() variant that also considers "uninstalled" apps for which we still have PackageSetting values. Bug: 25206071 Change-Id: I1820f674d45c5ddc1c5f10ed7d859e7025005e28
| * | | Add intent extra for determining if apps are system appsAnthony Hugh2015-10-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is being added to help identify system apps so that the UI can filter on that type. BUG: 24955055 Change-Id: Ie4be3717ce997f60eeb48a389c0f54ce5803141a
| * | | Merge "Correctly derive ABI for apps on adopted media." into mnc-dr-devJeff Sharkey2015-10-211-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | am: 55d2b6e8e6 * commit '55d2b6e8e6f364e2fd52c45b5fa3eb6a56082456': Correctly derive ABI for apps on adopted media.
| * | | DO NOT MERGE Sync extras bundle comparison can throw NPEMatthew Williams2015-10-201-1/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7d7a2254bc * commit '7d7a2254bc41d2dfc34fbb8693cb0dad2ccd528a': DO NOT MERGE Sync extras bundle comparison can throw NPE
| * \ \ \ Merge "Correct ActivityInfo constructors." into mnc-dr-devRob Carr2015-10-201-1/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: cfea184d6c * commit 'cfea184d6c0268b92ed55276d2b686962c8ee531': Correct ActivityInfo constructors.
| * \ \ \ \ am 0c15693e: Merge "Update docs to reflect adoptable behavior." into mnc-dr-devJeff Sharkey2015-10-161-217/+331
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0c15693e8de6f89fab7ca3d582f0a8605a54df9f': Update docs to reflect adoptable behavior.
| * | | | | | Give Android Wear system apps default permissionAnthony Hugh2015-10-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change grants Android Wear system components default permission. I have also added a new Intent category to help identify the main Home handler on Wear. BUG: 23419042 Change-Id: Ie669a9908bd3b03498f75c5ca22c0fddf52a5203
| * | | | | | Add ThermalObserver system service to capture thermal state uevents.Bryce Lee2015-09-251-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 21445745 Change-Id: I980d60b66ca51942a1fd62502d6cf1f09208fc3a
| * | | | | | am bfc584df: Merge "Use app directory as apkPath for cluster installs" into ↵Fyodor Kupolov2015-09-161-0/+11
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev * commit 'bfc584df683a84dffd8e04b7b13f619606a0a42a': Use app directory as apkPath for cluster installs
| * \ \ \ \ \ \ Merge "Add some constants for Wear MNC Perms" into cw-e-devVinod Krishnan2015-09-141-0/+38
| |\ \ \ \ \ \ \
| | * | | | | | | Add some constants for Wear MNC PermsVinod Krishnan2015-09-141-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add an API for getting list of apps that has runtime perms Change-Id: I4ebfc01033ea96efaac062fd34982fbd0d081073
| * | | | | | | | Cherry-pick system theme rebase to fix square UI on round watchesAlan Viverette2015-09-141-122/+85
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our system themes were based on configurations that were added post- init of the system theme. I96e695441543379e4d5fdf3cc6f18d9e6cf953b4 broke this, because there was a race condition in the code for rebasing themes If8fecde76d62738a8e55eddf898eafc468afdba2 (the cherry-picked commit) fixes the race condition and adds the rebasing back in. This change cherry picks If8fecde76d62738a8e55eddf898eafc468afdba2. Bug:23387146 Change-Id: I0725028e48599fc6cd9731ae16c71474dd5827e5
* | | | | | | | Themes: Refactor themes to CMSDK [1/6]d34d2016-03-0410-1399/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3688b37342eddcfceeabaae982085884e9bc63ee TICKET: CYNGNOS-2126
* | | | | | | | fw: Fix protected apps implementation.Adnan Begovic2016-01-222-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently a protected component could be accessed from any other means other than the launcher, entirely defeating its purpose. Instead, hook into the activity stack supervisor and quelch attempts at invocation of protected components. This implementation also provides feedback to the user on any attempt to start the component when its in a protected state. TICKET: CYNGNOS-84 Change-Id: Ib0165e7504adb08e21e9566c7394b37dffd280d4
* | | | | | | | ThemeEngine : Use manifest.mf for hash calculationDanesh M2016-01-042-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using just AndroidManifest xml is not sufficient since the apk could have different resources yet same manifest. issue-id: YU-922 Change-Id: I5ffa95733110b1c37b5f07ef29b457bb68b50cb2 (cherry picked from commit a22cfa769c591ff5443a750eefec00de27fc6c09)
* | | | | | | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-075-219/+347
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 3 Change-Id: I59b9e5a943e0860d43bcfb36ee0e8b8b072412ea
| * | | | | | | Handle "uninstalled" apps when pruning app-ops.Jeff Sharkey2015-11-021-0/+2
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During system boot, we prune app-ops belonging to apps that have been uninstalled. However, apps installed on adopted storage devices haven't been scanned at this point, so they appear to be uninstalled. To avoid pruning app-ops for these apps, we need a getPackageUid() variant that also considers "uninstalled" apps for which we still have PackageSetting values. Bug: 25206071 Change-Id: I1820f674d45c5ddc1c5f10ed7d859e7025005e28
| * | | | | | Merge "Correctly derive ABI for apps on adopted media." into mnc-dr-devJeff Sharkey2015-10-211-0/+1
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| | * | | | | Correctly derive ABI for apps on adopted media.Jeff Sharkey2015-10-201-0/+1
| | | |_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug causing PackageManager to think apps on adopted media were actually in an ASEC, causing it to skip ABI derivation. This change fixes the issue by copying the volume UUID into place early in the scanning process. Also fixes two places where we had incorrectly been including apps on adopted media; switched them to check only for ASECs. Bug: 24583803 Change-Id: If66d1bce02824a4d8e22f741b04a2abda0378cfb
| * | | | | DO NOT MERGE Sync extras bundle comparison can throw NPEMatthew Williams2015-10-201-1/+5
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | BUG: 23591205 Change-Id: Ic6404c0befe70c34b078e0eae6a627826173d82c (cherry picked from commit 9ad2c8403354a985258c098681067e74b9e2f638)
| * | | | Correct ActivityInfo constructors.Robert Carr2015-10-201-1/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActivityInfo was missing initialization for the documentLaunchMode flag in the copy-constructor and the Parcel constructor. The copy-constructor is used in multi-user/profile mode to create a seperate instance of the ActivityInfo per uid and this was manifesting in the linked bug. Bug: 21590916 Change-Id: I6f71d94ec32ec6326d23c9b62e9d8d319e2fa25e (cherry picked from commit 3e2e0117858eb02fef55ca4c245e8b920aedc6eb)
| * | | Update docs to reflect adoptable behavior.Jeff Sharkey2015-10-141-217/+331
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update storage related docs on Context to be consistent, and to call out relevant Environment methods. Start calling it "shared" storage, and only mention external for historical reasons. Mention that there isn't much benefit to using emulated storage over private data directories to help guide developers to safer locations. Point out which paths can change over time, so developers know to only persist relative paths. Update Environment docs to reflect how they behave for the new class of adopted storage devices. Bug: 24251945 Change-Id: Ie5ab337649b4740dfd7594997bbb19c4969cfd2f
* | | Udpate instrumentation codeWilliam Clark2015-11-301-3/+3
| | | | | | | | | | | | | | | | | | Added changes to support new features in QSSP Change-Id: I92c0a4eb3cb5363fbf08185f25644a3202c38788
* | | BroadcastReceiver : Get sender of broadcastsDanesh M2015-11-251-0/+12
| | | | | | | | | | | | | | | | | | Add internal api for receiving the sender of a broadcast Change-Id: I28ae614ef92101ab6b9beadc3c965d16b1f393f6
* | | Live lock screen support [1/2]d34d2015-11-192-0/+9
| | | | | | | | | | | | Change-Id: Iafb09bb77e10c89fb4b76cc807ca5bf86c8ba97b
* | | Avoid a double decrease of reference counter for unstable providerKoji Fukui2015-11-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some APIs unstable provider is released twice. Unexpected release of unstable provider makes the reference counter for unstable provider invalid state and it causes application crash. This change avoids unexpected double decrease of reference counter for unstable provider by setting null to prevent extra release in finally block. Change-Id: Ie2985c316ffcb6a9db7570c46347035c24d226af
* | | fw: Move "last app" logic to cmsdk.Adnan Begovic2015-11-051-18/+0
| | | | | | | | | | | | Change-Id: I1c8a9e06f45bc0ae5b6b6c737063af9e2086a132
* | | Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-051-0/+11
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: cmds/bootanimation/BootAnimation.cpp core/java/android/accounts/AccountManager.java core/java/android/app/AppOpsManager.java core/java/android/os/PowerManagerInternal.java core/java/android/os/storage/IMountService.java core/java/android/provider/Settings.java core/java/com/android/internal/widget/ILockSettings.aidl core/res/res/values-mcc204-mnc12/config.xml core/res/res/values-mcc219-mnc02/config.xml core/res/res/values-mcc730-mnc07/config.xml core/res/res/values/config.xml core/res/res/values/symbols.xml packages/SystemUI/res/values/config.xml packages/SystemUI/src/com/android/systemui/doze/DozeService.java packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java services/core/java/com/android/server/LocationManagerService.java services/core/java/com/android/server/am/ActivityManagerService.java services/core/java/com/android/server/pm/PackageManagerService.java services/core/java/com/android/server/power/PowerManagerService.java telecomm/java/android/telecom/Phone.java telephony/java/android/telephony/CarrierConfigManager.java telephony/java/android/telephony/RadioAccessFamily.java telephony/java/android/telephony/ServiceState.java telephony/java/android/telephony/SignalStrength.java telephony/java/android/telephony/TelephonyManager.java telephony/java/com/android/ims/ImsCallProfile.java telephony/java/com/android/ims/ImsReasonInfo.java telephony/java/com/android/ims/ImsSuppServiceNotification.aidl telephony/java/com/android/ims/ImsSuppServiceNotification.java telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl telephony/java/com/android/internal/telephony/RILConstants.java Change-Id: I99c6edb8e25a77145b5adef97d0d55bfbe676959
| * | Use app directory as apkPath for cluster installsFyodor Kupolov2015-09-101-0/+11
| |/ | | | | | | | | | | | | | | Previously, size of of oat directory was not counted by the getsize command, because base APK location was passed as apkpath argument. Bug: 23896047 Change-Id: Ic7b6b725785ff2e2a0cf3887ba68c162b23b1212
* | Merge branch 'LA.BF64.1.2.2_rb4.6' of ↵Steve Kondik2015-11-041-2/+6
|\ \ | | | | | | | | | | | | | | | git://codeaurora.org/platform/frameworks/base into cm-13.0 Change-Id: I261957864b149edb709e6f76ed382043f9a96936
| * | base: Fix the problems for runtime overlay.yingying2015-10-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - There is no need to make the string blocking when adding the asset path, as it will be made by the resources. - After adding the overlay path, it also needs to update the string blocks. - Scan all the sub folders for framework overlay res. Change-Id: Iaad019111ae364c319e58dce57dbf4647b38d4c3 CRs-Fixed: 763809
* | | Remove Qualcomm BoostFrameworkSteve Kondik2015-11-011-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This is gonna get really sketchy with the proprietary bits, and we have our own solution. Revert all associated patches. Revert "BoostFramework: Adding config for disable packing params & scroll fix" This reverts commit a313bfae1213dcf8e0845e90f260aada5026685e. Revert "Perf: Adding hooks for IO prefetcher into framework" This reverts commit 96e75fcafbeb77427ff4407e80a5d05bf92ec732. Revert "frameworks/base: Add support for low resolution rendering" This reverts commit d5282e055963a44df64265e4a592750e31bd9901. Revert "frameworks/base: support for loading wfd whitelist dynamic libraries" This reverts commit 79a889bcf6e4c96db48bfb755b7c7e100f4800b1. Revert "ActivityTrigger: New class to invoke when activity starts/resumes" This reverts commit 20d6e3c9b06d790e5ede4b1aa585d43a7d72b560. Revert "BoostFramework to enchance performance during critical scenarios" This reverts commit 0c3a49a56f827e16d038542b0a81c0e257787995. Change-Id: Ibc81f3150f4bea572f869be688ebfade11b27307
* | | Fix a couple of checkapi errors for themesScott Mertz2015-10-312-4/+1
| | | | | | | | | | | | Change-Id: Iee2ded64f0bea8a295895542eecf7b9256ce0476
* | | Recents long press: add pluggable implementationSteve Kondik2015-10-281-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds a Secure.Setting for the activity component to handle Intent.ACTION_RECENTS_LONG_PRESS. - Adds a new intent ACTION_RECENTS_LONG_PRESS for the long press of the recents button. Other system applications can register for the intent to provide custom handling. Handlers of this intent are queried for in the settings application, and if no handlers are found, the default implementation falls back on ActionUtils.switchToLastApp(). The long press listener on the recents button is replaced with a touch handler to allow for more custom handling. For cm-12.0, the following modifications were made: - With the full deprecation of ActivityManager.getRecentTasks(), applications can not query for the last foreground application. To aid these applications, the framework will include an EXTRA_CURRENT_PACKAGE_NAME with ACTION_RECENTS_LONG_PRESS. - Instead of re-evaluating packages on every Long Press, PhoneStatusBar now tracks Settings changes and package activities and incrementally caches the desired Recents long press behavior. This is a roll-up CR from cm-11.0, and also contains the following Change-Ids: - I689e8b5c26b39e100cb166d2f93e7ee49e83f93a Change-Id: I8a27ae0fe58d92a1626f0bd661c5f57c589fac17
* | | prebundled: Handle prebundled packages per-user.Adnan Begovic2015-10-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add migration step for reading old file to go towards per-user system file structure TICKET: CYNGNOS-1006 Change-Id: I743e8efaa074c9b84291fdc8d3d15763cc39e79d pm: Create per-mcc prebundled install filter. If packages are region locked, avoid installing them for the SKU, otherwise if a package is specified for a mobile country code, allow it to be installed. TICKET: CYNGNOS-912 Change-Id: I69c5be62dff771fc7d3117e9edf65d8ea4150f28 pm: Update PackageManagerSettingsTests. Change-Id: Ib3a23514055935f68f3f3bb4fd2b2d4d495c1132 PackageManager : Extend prebundled logic Instead of specifying which packages to explicitly install, Only install packages if : a) Its in the current mcc's config_region_locked_packages b) Its not region locked by checking config_restrict_to_region_locked_devices Change-Id: I74c13763ef367e16e5e79290a569f3a720b85adc
* | | Add broadcast and query API for AudioSource.HOTWORD.Matt Garnes2015-10-281-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When the AudioSource.HOTWORD input becomes active or is released, send a Broadcast with the package name and the new state of the audio input to any applications that hold CAPTURE_AUDIO_OUTPUT. - Store the package name of the application that controls the hOTWORD input or set it to null if the input is not in use. - Add a new method to AudioService to retrieve the package name of the application that currently controls the HOTWORD input. Change-Id: I2f11888f3711d23b6287a4de7b81d361734a8f3b
* | | LEDs Brightness [2/2]: Lights notifications brightness supportAdrianDC2015-10-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the support of an overall brightness control for the LEDs. The setting is deactivated by default and will be ignored by the unimplemented phones. Current LibLights will simply not use the new variable. Changes includes : frameworks/base packages/Apps/Settings Change-Id: I1c0de01b1c6a2a2cf1432028a2e69f90b2373b2c Signed-off-by: AdrianDC <radian.dc@gmail.com>
* | | Themes: Switch themes when user changesd34d2015-10-282-9/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch grabs the theme config for the new user and then creates a ThemeChangeRequest from that config. This request is then processed and applied for the new user. Secondary users will not be able to change themes at this time. This patch helps pave the way for that ability and provides a better user experience when switching users. Change-Id: I6d7e2ab312b8e3e5c099d1e9e2e62892bead10da
* | | Themes: Stop using ThemeUtils.getBootThemeDirty()d34d2015-10-281-45/+0
| | | | | | | | | | | | | | | | | | | | | Settings are no longer stored in a SQLite DB so this method is no longer applicable Change-Id: If46d5d854fe8b4c97f91fdfb4f663f2256d5fbf6
* | | Resources: cache themed resourcesRoman Birg2015-10-272-1/+15
| | | | | | | | | | | | | | | Change-Id: I408665180d19eb422386fc69bc9afa4bbe0d05d6 Signed-off-by: Roman Birg <roman@cyngn.com>