summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-13.0' of ↵HEADreplicant-6.0-0001replicant-6.0Wolfgang Wiedmeyer2017-05-021-0/+6
|\ | | | | | | https://github.com/LineageOS/android_frameworks_base into replicant-6.0
| * DO NOT MERGE: Check provider access for content changes.Jeff Sharkey2017-03-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For an app to either send or receive content change notifications, require that they have some level of access to the underlying provider. Without these checks, a malicious app could sniff sensitive user data from the notifications of otherwise private providers. Test: builds, boots, PoC app now fails Bug: 32555637 Change-Id: If2dcd45cb0a9f1fb3b93e39fc7b8ae9c34c2fdef (cherry picked from commit c813f5dae231bd8f01864227c5dba10d43a89249) (cherry picked from commit db57376d6ccbd4d3e39fc35aa8cfb561bbca4bac) mh0rst: Backport from android-7.1.1_r21
* | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-12-1211-77/+166
|\ \ | |/ | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * Themes: Don't cache explicitly themed resourcesBharadwaj Narasimha2016-11-281-26/+1
| | | | | | | | | | | | | | | | | | When a nav bar should be unchanged in the process of customization(like changing icons,fonts) the nav bar changes due to explicitly caching themed resources. Change-Id: I3135fac9df82a0551879908f6bf24deba0da0339
| * NotificationManager: Concentrate LED light capabilities at a single locationRicardo Cerqueira2016-11-102-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | We had(have) a bunch of individual boolean toggles for various LED behaviors and combinations, which end up getting used as a similarly sprawling bunch of getResource() calls across various locations. And they keep piling up... So... create a new overlayable array of LED capabilities (config_deviceLightCapabilities) where we can throw everything (and expand in the future). Also, create a helper to abstract usage of the old (multi-resource) and new (single resource array) formats to avoid breaking any deployed devices. Change-Id: I7d627914b058861048071fc15776031c4152157f
| * Merge tag 'android-6.0.1_r74' into HEADJessica Wagantall2016-11-091-3/+3
| |\ | | | | | | | | | | | | | | | CYNGNOS-3303 Android 6.0.1 release 74
| | * Merge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into ↵Jeff Sharkey2016-09-271-3/+3
| | | | | | | | | | | | | | | | | | manual_merge_0a9d537 Change-Id: Ib1a0bbb34edb61666ac5739f0b0eaadbe4c5fe06
| * | Support enforcing a minimum delay between notification sounds of an app.Danny Baumann2016-10-201-0/+3
| | | | | | | | | | | | | | | | | | Useful e.g. for messenger apps. Change-Id: If8e8cc9e2f02d70537c1f9dc14f22bbd0ec1e9a6
| * | (Optionally) allow vibration during priority zen mode.Danny Baumann2016-10-192-3/+3
| | | | | | | | | | | | Change-Id: I6fb81c5898fbfe9e89a4af3fdc042266c8a9be6c
| * | [2/2] base: cm custom boot dexopt UIAlexander Martinz2016-08-102-8/+21
| | | | | | | | | | | | | | | | | | | | | * Pass app info and number of installed packages to boot message UI * Ui by Asher and Joey, based on Alexander's previous work Change-Id: I9ec9d0cb0e20a9bac73e126f6b6f3965400f05e7
| * | IconPackHelper:Use un-tinted iconback when no defaultSwatchcolor is specifiedBharadwaj Narasimha2016-08-091-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After applying the theme which supports paletteback feature and if there is no defaultSwatchColor specified then the background should go to the original color. Instead in a particular FootballDemo theme the theme would never get applied and just flood the logcat with null exceptions for each and every app. TICKET:CYNGNOS-2942 Change-Id: If2bd3d23ab5075dac1d8ff3f197cebc28c9c1f20
| * | Merge tag 'android-6.0.1_r61' into HEADJessica Wagantall2016-08-022-5/+7
| |\ \ | | |/ | | | | | | | | | | | | Android 6.0.1 Release 61 (MOB30Z) Change-Id: Ib003ccb606e0d77209291b757ea36399d3b65814
| | * Don't trust callers to supply app info to bindBackupAgent()Christopher Tate2016-06-242-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get the canonical identity and metadata about the package from the Package Manager at time of usage rather than rely on the caller to have gotten things right, even when the caller has the system uid. Bug 28795098 Change-Id: I215786bc894dedf7ca28e9c80cefabd0e40ca877 Merge conflict resolution for ag/1133474 (referencing ag/1148862) - directly to mnc-mr2-release
| | * DO NOT MERGE ANYWHERE: Don't change screen on time on time changesAdam Lesinski2016-02-241-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Screen on time should be measured in elapsed realtime, not wallclock. Cause a checkIdleStates to occur when reloading stats (on rollover and on time change). When time changes occur in the negative direction, the new stats file we create can overlap the previous one with regards to its end timestamp. Use the begin timestamp to determine which of the latest stats to merge. (b/22716352) Bug: 26488100 Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
| * | Frameworks: Add per app controls for LP keyguard notifications (1/2)Lars Greiss2016-06-013-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nice done by google but the UX is a problem especially for ppl who are using a lot apps and just want to see from important apps the notifications on the lockscreen. This commit adds the ability to - enable/disable per app the keyguard notification at all - enable/disable per app ongoing notifications on the keyguard We handle this over the app policy conf file like the other per app notification options. CRACKLING-1127 Change-Id: Ib166db1b1673aeaea132c8eeb16c650d2f254a82
| * | Core: Fix OOBMichael W2016-05-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getExternal___Dir() relies on getExternal___Dirs to return an array of at least 1 element. Make sure there is at least one element returned. (Reference: BugDump 13-20160513-19 l#45 (FileManager) and L#104 (Gallery) BugDump 13-20160520-26 L#18 and more (26), just search for "getExternal" to find all cases of that OOB (>>100 users)) Change-Id: I56394db135c4c53c972e3bcc8f1df4ea1d4d39e7
| * | am: Handle unchecked activity starts for protected components.Adnan Begovic2016-05-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | CmRes: Attach themed cmsdk resources to assetsd34d2016-05-101-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cmsdk is beginning to contain some themable assets, like the quick settings tiles for LiveDisplay and Themes so we need to attach themed resources for the cmsdk in order for those themed resources to be picked up. Change-Id: I4f64d53d82c9edafbe624c3b2eafcda7332587fb TICKET: CYNGNOS-2723
| * | Themes: Restore original value if getValue failsd34d2016-04-131-25/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a catch all around the guts of IconCustomizer.getValue and restore the original outValue before returning if an exception does occur, with some log output for our own sanity. Change-Id: I021760cd5dc07d9cfbbced09c514b86fb997f7d0 TICKET: CYNGNOS-2432
* | | Merge branch 'cm-13.0' of ↵Wolfgang Wiedmeyer2016-03-1814-102/+249
|\ \ \ | |/ / | | | | | | https://github.com/CyanogenMod/android_frameworks_base into replicant-6.0
| * | Show icons of only background apps in ToastsMarcel Dopita2016-03-163-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As implemented and discussed in I82bf23664eea134f3b1f89ad5a99f6be73906ba8, this patch disables the icons in Tosts for already foreground apps. It's useful, no questions about that but please be aware of: - Icons in Toasts are also displayed in "tooltips" of ActionBar (when you press and hold an action). I think that goes agains material design as the ActionBar component now doesn't even show app icon. - Toasts from Android OS contain the Green robot. (IMHO: It was never intended for system Toast to have an icon) - Toasts are intended "to be as unobtrusive as possible" and this kinds of break it. (From javadoc) - Icons should stay as workaround for finding that badly designed/intrusive app because: "Your app should not create a dialog or toast if it is not currently on screen." (From notifications design paterns) - Not that relevant but not all users welcome this aesthetic: https://www.reddit.com/r/cyanogenmod/comments/3oazh8/does_the_icon_in_the_toast_notification_bother/ https://www.reddit.com/r/cyanogenmod/comments/3jg5c2/icons_on_toasts/ etc. Change-Id: If748297bd422c7ddbf061da735b8e4ed0a41b425
| * | Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-114-66/+145
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into cm-13.0 Android 6.0.1 release 22 Change-Id: I0d31899b234156a91accb61e0a7fb3d8d16d5062
| | * | Don't change screen on time on time changesAdam Lesinski2016-01-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Screen on time should be measured in elapsed realtime, not wallclock. Cause a checkIdleStates to occur when reloading stats (on rollover and on time change). When time changes occur in the negative direction, the new stats file we create can overlap the previous one with regards to its end timestamp. Use the begin timestamp to determine which of the latest stats to merge. (b/22716352) Bug: 26488100 Change-Id: If31b29bbbee9e98401205b5e26bce86e181286e7
| | * | DO NOT MERGE Remove more extras during notification lightening.Dan Sandler2015-12-121-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically anything Parcelable needs to go since it might be quite large. Note that this includes additional extras such as those contributed by WearableExtender. Cherry-picked from 5012853de26eac023deda82d138a35677fe6117b Bug: 26038546 Change-Id: I00eadd2b23dfc4fccf42332df658373bb05b8a45
| | * | ActivityView gets its own thread pool.Daniel Koulomzin2015-11-111-60/+112
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 24316798 Change-Id: I4278fa792cec8d2710f2f41eed02ba4a14af7052
| | * | Merge "Convert ashmem bitmap thresholds to constants." into mnc-dr-devRiley Andrews2015-11-041-1/+4
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c8bb39d98d * commit 'c8bb39d98d7c2a07f1a5c745f6e89e379e4a25f0': Convert ashmem bitmap thresholds to constants.
| | | * | Convert ashmem bitmap thresholds to constants.Riley Andrews2015-11-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 25256717 Change-Id: I23e2795ef8798d83bf60dcbd6ff2e7093fcaa9b0 Signed-off-by: Riley Andrews <riandrews@google.com>
| | * | | Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into ↵Ian Pedowitz2015-11-031-1/+3
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev am: 966d6040c6 * commit '966d6040c6b171c75e9fb0ca942e84f9cf4d0dff': Limit persistent ashmem backed fds to a minimum of 128kB.
| | | * | Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into ↵Ian Pedowitz2015-11-031-1/+3
| | | |\ \ | | | | | | | | | | | | | | | | | | mnc-dr-dev
| | | | * | Limit persistent ashmem backed fds to a minimum of 128kB.Riley Andrews2015-11-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 25256717 Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8 Signed-off-by: Riley Andrews <riandrews@google.com>
| | * | | | Merge "Fix issue #25357209: Could not send SMS or MMS messages, had to ↵Dianne Hackborn2015-11-031-1/+2
| | |\ \ \ \ | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reboot" into mnc-dr-dev am: 71e4984505 * commit '71e49845054a3a7dacc51efc4fe658818caec048': Fix issue #25357209: Could not send SMS or MMS messages, had to reboot
| | | * | | Fix issue #25357209: Could not send SMS or MMS messages, had to rebootDianne Hackborn2015-11-021-1/+2
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think what probably happened is that since we only report an app going in to the "interaction" state as an interaction event to usage stats, apps that sit around in that state forever will only see one interaction at the start and never again. So usage stats could start thinking they are idle. Fix this by having the activity manager report an interaction event for such long running applications at least once a day. Also, because it is correct and for paranoia by protected us another way, system uids should never go in to standby. Change-Id: I8a3805bfca86cbe78560488a649ecd07427da99a
| | * | | Merge "Retain fragment loaders" into mnc-dr-devTodd Kennedy2015-10-204-16/+12
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | am: ad968cf4e5 * commit 'ad968cf4e55afdd897ea84a44b7450442aea1e1d': Retain fragment loaders
| | * | | Merge "Set host when restoring a fragment" into mnc-dr-devTodd Kennedy2015-10-191-0/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 986d4b482d * commit '986d4b482da952cd07e329b3bd11c935edd7ec01': Set host when restoring a fragment
| | * \ \ \ Merge "Don\'t allow concurrent permission requests." into mnc-dr-devSvetoslav Ganov2015-10-191-0/+29
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e199016a82 * commit 'e199016a82329b645a86db345c2d39322c8ad03a': Don't allow concurrent permission requests.
| | * \ \ \ \ am fe45f1b9: Merge "Default location is "internalOnly" when undefined." into ↵Jeff Sharkey2015-10-121-1/+2
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev * commit 'fe45f1b97a1f572ce453193035f1fabf7957cc03': Default location is "internalOnly" when undefined.
| | * \ \ \ \ \ am f4e1d10c: Kill ActivityView\'s background thread when it\'s destroyedNed Burns2015-09-251-0/+2
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f4e1d10cd35a4c1f87ec6dc3e59a9d08e562ffca': Kill ActivityView's background thread when it's destroyed
| | | * | | | | | Kill ActivityView's background thread when it's destroyedNed Burns2015-09-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were leaking background threads for every new ActivityView. Change-Id: I7ce190843265567984f6cda9c85fef478b0ead38
| | * | | | | | | am ad26dc5f: Merge "Deliver camera launch source for analytics" into mnc-dr-devJorim Jaggi2015-09-251-0/+3
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ad26dc5f15d6ac13741ad8724c25ef8c58e73e81': Deliver camera launch source for analytics
| | * \ \ \ \ \ \ \ am 739bb7c6: Merge "save "retain loader" state" into mnc-dr-devTodd Kennedy2015-09-233-1/+16
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '739bb7c694aee521995100c456cf1c8341820bec': save "retain loader" state
| | * \ \ \ \ \ \ \ \ Merge "Cherry-pick system theme rebase to fix square UI on round watches" ↵Alexander Hills2015-09-141-0/+5
| | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into cw-e-dev
| | | * | | | | | | | | Cherry-pick system theme rebase to fix square UI on round watchesAlan Viverette2015-09-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | | | | | | | Merge "Fixes cloned notification actions missing icon." into cw-e-devGus Prevas2015-09-101-0/+3
| | |\ \ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / / | | |/| | | | | | | | |
| | | * | | | | | | | | Fixes cloned notification actions missing icon.Gus Prevas2015-09-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change modifies the Notification.Action constructor to populate the deprecated "icon" field based on the provided icon. This field is still used by NotificationCompatApi20 to create a NotificationCompatBase.Action from a Notification.Action. Bug: 23348968 Bug: 22591778 Change-Id: I3576038384d2baa12c4c75bc4124e3859aacbd13
| | * | | | | | | | | | am f57d9856: am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-devSvetoslav Ganov2015-09-091-1/+14
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f57d98564b26953b722ab0e14222f50e6515f36d': Add get_accounts app op
| | * \ \ \ \ \ \ \ \ \ \ am 9e25e164: am e7078e18: Merge "Ensure host is set before onInflate()" into ↵Todd Kennedy2015-08-311-0/+1
| | |\ \ \ \ \ \ \ \ \ \ \ | | | |_|/ / / / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev * commit '9e25e1645f5e436c88ceab7d7eaf9f21c7fa845b': Ensure host is set before onInflate()
| | * | | | | | | | | | | am b5e47228: Add StrongAuthTrackerAdrian Roos2015-08-223-34/+32
| | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b5e4722891e7bbf2fffcd995af02838667a3abab': Add StrongAuthTracker
| | * \ \ \ \ \ \ \ \ \ \ \ am aed1c9fb: am 5d467ac5: Merge "Remove uids with empty history from ↵Esteban Talavera2015-08-171-6/+20
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetworkStats uid enumeration" into mnc-dev * commit 'aed1c9fbc5c4f77bfc8c44fb7bd87bbdb6dc0174': Remove uids with empty history from NetworkStats uid enumeration
| | * \ \ \ \ \ \ \ \ \ \ \ \ am 4b655fd1: am b045331f: Merge "Add GTS test to ensure valid default ↵Svetoslav Ganov2015-08-143-0/+95
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | permission grants - framework" into mnc-dev * commit '4b655fd193992afff948df513c7b9b9a0389972e': Add GTS test to ensure valid default permission grants - framework
| | * \ \ \ \ \ \ \ \ \ \ \ \ \ am b6f5bcd0: am cfcf6af9: Merge "Method to show DialogFragment allowing ↵Jeff Sharkey2015-08-141-0/+9
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state loss." into mnc-dev * commit 'b6f5bcd0c64676ad2dfddc9dcf4c4320fafb9d3a': Method to show DialogFragment allowing state loss.