summaryrefslogtreecommitdiff
path: root/core/java/android/content/Intent.java
Commit message (Collapse)AuthorAgeFilesLines
* Fail parseUri if end is missingWilliam Loh2024-11-151-0/+3
| | | | | | | | | | Bug: 318683126 Test: atest IntentTest Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b85bee508793e31d6fe37fc9cd4e8fa3787113cc) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:77c140c674ec1cec011989f4a2c2666949771370) Merged-In: I5f619ced684ff505ce2b7408cd35dd3e9be89dea Change-Id: I5f619ced684ff505ce2b7408cd35dd3e9be89dea
* Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-021-7/+6
|\ | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * EXTRA_CHOOSER_PAYLOAD_RESELECTION_ACTION -> EXTRA_CHOOSER_MODIFY_SHARE_ACTIONMatt Casey2023-02-151-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | Functionally the same as before, just a slight change in semantics: instead of focusing solely on reselection, broaden to a 'modify share' affordance. Bug: 267870268 Test: Build Change-Id: Ida05cc4efb8d5c95ab783a7fd22a7008bf77aca2 Merged-In: Ida05cc4efb8d5c95ab783a7fd22a7008bf77aca2 (cherry picked from commit 651a576c12961950a5c77fd551b753f79d5aa7a1)
| * DO NOT MERGE - Backport master API changesAndrey Epin2023-01-201-2/+2
| | | | | | | | | | | | | | | | | | Backport linter error fixes from a reveal API change in master (see ag/20832242) Bug: 259947071 Test: presubmits Change-Id: I024248b00023baa77fbb6c4e1f5cb7000d1c67db
| * Encode Intent scheme when serializing to URI string RESTRICT AUTOMERGEWinson Chiu2023-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Avoids deserialization error when the scheme contains a reserved character. Bug: 261858325 Test: atest android.content.cts.IntentTest#testEncoding Merged-In: Ic34b3f796b762763db5aa7b5d7c109ae70607470 Change-Id: Ic34b3f796b762763db5aa7b5d7c109ae70607470
* | Merge tag 'android-13.0.0_r41' into t13.0Semavi Ulusoy2023-04-161-1/+1
|\ \ | | | | | | | | | | | | | | | Android 13.0.0 Release 41 (TQ2A.230405.003.E1) Change-Id: I816e58beecec181349eb0ffdf85a5445fb7a0581
| * | Encode Intent scheme when serializing to URI string RESTRICT AUTOMERGEWinson Chiu2023-02-141-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids deserialization error when the scheme contains a reserved character. Bug: 261858325 Test: atest android.content.cts.IntentTest#testEncoding Merged-In: Ic34b3f796b762763db5aa7b5d7c109ae70607470 Change-Id: Ic34b3f796b762763db5aa7b5d7c109ae70607470 (cherry picked from commit 0d561708bc4c83cabb6c4c0f404e522b6491ec07) Merged-In: Ic34b3f796b762763db5aa7b5d7c109ae70607470
* | Merge tag 'android-13.0.0_r35' of ↵George Zacharia2023-04-031-0/+20
|\| | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 release 35 Change-Id: I709958b2f015d1774b2ece25894467c3a279f93c
| * Chooser custom actions API.Andrey Epin2022-12-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A proposal for the new API for custom Chooser actions. A new extra flags for Intent, EXTRA_CHOOSER_CUSTOM_ACTIONS and EXTRA_CHOOSER_PAYLOAD_RESELECTION_ACTION. EXTRA_CHOOSER_CUSTOM_ACTIONS can be used with intent action ACTION_CHOOSER to provide a collection of application custom that would be present to the user in the sharesheet. ChooserAction class is a new data for carrying app-specified actions. EXTRA_CHOOSER_PAYLOAD_RESELECTION_ACTION extra flag for content reselection custom action. Bug: 258838272 Test: smoke build test, the API is not used at the moment. Change-Id: Id6748c01ad84cc8ec4a1bc7010e2b82812def9ad
* | Merge tag 'android-13.0.0_r16' into t13.0George Zacharia2022-12-151-0/+35
|\| | | | | | | | | | | | | | | | | | | | | Android 13.0.0 Release 16 (TQ1A.221205.011) Also included the following reverts: 1. Revert "fw/b: Import Wi-Fi standard icon [1/2]" 2. Revert "Add preference for toggling the wallpaper zooming animation" Co-authored-by: Semavi Ulusoy <doc.divxm@gmail.com> Change-Id: I9a6b51e452c28d10411712c59778bb54da5783e9
| * Added check for user info is not nullMayank Garg2022-09-071-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | user's actual state might have changed by the time the broadcast is received, so added a null check. Bug: 237413499 Test: atest HandlerThreadingDomainTest LocationTimeZoneProviderControllerTest LocationTimeZoneProviderTest ZoneInfoDbTimeZoneProviderEventPreProcessorTest Change-Id: I79087a3e83a51b81568bdb6ff5540ee78b51b91a Merged-In: Ieacbb35e522b35353c96de1f162a8a71388b4b04 (cherry pick from commit 799c6528f56a9baae32cd4892d1eb58da7bfb544)
* | SystemUI: handle camera launch gesture from keyhandlerRoman Birg2022-09-121-0/+9
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Roman Birg <roman@cyngn.com> Date: Thu Feb 4 16:28:00 2016 -0800 framework: move device key handler logic, fix gesture camera launch In order to make device camera gestures behave the same way as launching the camera by double tapping the power button, route DeviceKeyHandler logic through the GestureLauncherService. A callback is used in order to avoid publishing the GestureLauncherService into the System service registry, because the KeyHandler code cannot directly access services local to the system process. OPO-427 Change-Id: I2a8860b278f65ccf31bfee151513d8a23ab746c5 Author: Roman Birg <roman@cyngn.com> Date: Sat Feb 13 09:08:21 2016 -0800 KeyHandler: don't break old interfaces Causing bootloops on devices, don't break old interfaces in the framework. OPO-427 Change-Id: I49473b057bc4ed4710e9092c76e41c6a8134d2de Author: Roman Birg <roman@cyngn.com> Date: Tue Feb 16 17:22:01 2016 -0800 SystemUI: handle camera launch gesture from keyhadler Includes partial reverts: Revert "KeyHandler: don't break old interfaces" This reverts commit 31ecbdc5fcc1263e9028107858565d951798fd93. Revert "framework: move device key handler logic, fix gesture camera launch" This reverts commit db1b4e6e4880be1828342be9bc468d36565a2ef0. Ref: OPO-427 Change-Id: Ic15543a8f63ad4521ab0ab536d00224b0bd70f8c Author: Michael Bestas <mikeioannina@cyanogenmod.org> Date: Sat Feb 20 00:56:47 2016 +0200 SystemUI: Don't vibrate on touchscreen camera gesture * This is usually handled in device-specific keyhandler, where vibration is optional and has the same duration in all gestures Change-Id: I879671c9d6f785137d63b8b70de35f5d5020748d Change-Id: Iba9211b7d342f618c4082c34d11663d89861607a (cherry picked from commit b48ec290d5c734950b2ccfd56247fac72ea76331) * @jhonboy121: adapt to 12L Change-Id: Ief8be8b943006cefebe07fde5bf7e527e00e23d5 Change-Id: I9ce2147ece5d328d2c29b6516e6ba6e8755fe156
* Note BATTERY_LEVEL_CHANGED semantics.Kweku Adams2022-05-181-1/+1
| | | | | | | | | | Despite the name, BATTERY_LEVEL_CHANGED is also sent when the plug type changes. Note that in the documentation and remove the wtf when that happens. Bug: 232840504 Test: N/A Change-Id: Ib3e0f6c43ecbd5bf1841081b36f4b3eaa8b20039
* Revert "Revert "Remove all appId migration related public APIs""Winson Chiu2022-03-241-26/+0
| | | | | | | | | | This reverts commit 2d3633485bbed99449125c19d75cf51524dfe029. Reason for revert: reintroduce change with correct removal Bug: 226541637 Change-Id: I9825ec84a9dadfc3e0f2fd451852892d93e3fec8
* Revert "Remove all appId migration related public APIs"Winson Chiu2022-03-241-0/+26
| | | | | | | | This reverts commit a2755c7fc3fa1f03fd8a0f08069910dd91ecb8fb. Reason for revert: b/226471699, resource finalization violation Change-Id: I95463fb7a388509ee23d3df7cfd7be8c0075e474
* Remove all appId migration related public APIsJohn Wu2022-03-181-26/+0
| | | | | | | | | These APIs should be removed from the platform and SDK to prevent confusion from the ecosystem. Test: m Bug: 220015249 Change-Id: I019b2594803d44745846ac7d56ad36c342c0c5ba
* Merge "Add safer Intent extra APIs and deprecate old ones" am: 30e41a64b2 ↵Bernardo Rufino2022-03-171-0/+82
|\ | | | | | | | | | | | | | | am: 0b0a4d71a2 am: c2fabc1d4a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020758 Change-Id: I040b8847483a87403ec9a9e0dc2e9b1c352608ab
| * Add safer Intent extra APIs and deprecate old onesBernardo Rufino2022-03-141-0/+82
| | | | | | | | | | | | | | | | | | Complementing new safer Bundle APIs introduced in aosp/1988908. Test: Working on CTS CTS-Coverage-Bug: 224457848 Bug: 224457848 Change-Id: I1d2b15d1214f2bd2eccade45693365098200ae01
* | Implement API feedback for Safety Center QSNate Myren2022-02-251-3/+6
| | | | | | | | | | | | | | | | | | Implements API feedback about the safety center constants. Also renames Safety Hub to Safety Center Fixes: 215301946 Test: build Change-Id: Ie07e8fc3ae7371e94d23ac6dfa9a446ef92da074
* | Puller for PendingIntentControllerRichard Gaywood2022-02-151-0/+10
| | | | | | | | | | | | | | | | Populate a new stats atom with information about PendingIntents; per-uid: (1) the total number of intents and (2) the total size of any extras bundled with the intents. Change-Id: I04e6b368a76623c80ead6f846baf85b1a6c5ce70 Test: statsd_testdrive 10151 Bug: 217162457
* | Merge "Add new intent action to show all work apps"Kholoud Mohamed2022-02-081-0/+12
|\ \
| * | Add new intent action to show all work appskholoud mohamed2022-02-071-0/+12
| | | | | | | | | | | | | | | | | | | | | Bug: 217385869 Bug: 203531272 Test: manual Change-Id: I8b1801c6b81f64df0dd3adaa835dfbe458813ec6
* | | Merge "Send the new UID along with ACTION_PACKAGE_REMOVED broadcast"John Wu2022-02-071-0/+8
|\ \ \
| * | | Send the new UID along with ACTION_PACKAGE_REMOVED broadcastJohn Wu2022-02-041-0/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up of ag/16417696 Pass the new UID in the broadcast via a new Intent extra with the name Intent.EXTRA_NEW_UID. This is necessary for many system components to migrate data structures linked with the old UID to the new one. Test: SharedUserMigrationTest#testDataMigration Bug: 217762162 Change-Id: I24f6707cf0fa0ed5acf6836cb803ce96df6f78fc
* | | Merge "Update ACTION_MANAGE_PERMISSION_USAGE intent doc"Yi-an Chen2022-02-031-1/+5
|\ \ \ | |/ / |/| |
| * | Update ACTION_MANAGE_PERMISSION_USAGE intent docYi-an Chen2022-02-031-1/+5
| | | | | | | | | | | | | | | | | | | | | Bug: 189480134 Test: Not needed yet. This is currently not used. Change-Id: I090118853c404c81e52b1c2e4f480f7bc6427d3e
* | | API changes requires for Bluetooth apk inside the apex to build.Roopa Sattiraju2022-01-311-1/+4
| | | | | | | | | | | | | | | | | | Bug: 216731966 Test: Compile and Test Change-Id: Ic8e9c2db0743738b2b6649451c79a559c3b8edc5
* | | Merge changes from topic "refresh-api"Karishma Vakil2022-01-271-112/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | * changes: [SafetyCenter] Add REASON_REFRESH_SAFETY_SOURCES to System API [SafetyCenter] Delete refresh API constants from `android.content.Intent`
| * | | [SafetyCenter] Delete refresh API constants from `android.content.Intent`Karishma Vakil2022-01-241-112/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Suggested by API council to move them to `android.safetycenter.SafetyCenterManager` Test: Will be tested in use in SafetyCenterManager refresh API Bug: 215555855 Change-Id: I4f84ae5a9037b4938f0ba7feb151c50149362fdd
* | | | Merge changes from topic "bg_app_restrictions"Jing Ji2022-01-271-0/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Expose the bg restriction exemption list as an internal API. Add an action button to the notification for bg battery abusive apps Exempt certain app behaviors for their background battery usage Add tracking on abusive broadcast and service binding requests Add exemption cases for app background restrictions Monitor long-running foreground services Post notification on abusive background current drain Allow limited alarms/jobs when background restricted Cap the LRU position of broadcast receivers in bg restricted apps Add a tracker on background current drains for each uid Add background restriction levels definition and its controller
| * | | | Monitor long-running foreground servicesJing Ji2022-01-251-0/+11
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a certain package has foreground services running for a long time, say the accumulated durations over last X hours are more than Y hours, system will post a notification to remind the user. Some type of apps are subjected to be exempted, i.e. if it's already in the device idle allowlist. More exemption could be added in the follow-up CLs. Bug: 200326767 Bug: 203105544 Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest Change-Id: I3a8f34c33e7a533240abc7cf4fa569a0956eec73
* / | | Update the documentation for intent ACTION_VIEW_APP_FEATURES to include the ↵Pyuli Naithani2022-01-261-0/+4
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | <meta-data> tag for the preference summary. BUG: 188920241 Test: N/A Change-Id: I1e94702c54e89157fc201fb4b34420c6a8a27a7e
* | | Merge "Add ability to send double extras from adb."Roman Kalukiewicz2022-01-211-8/+44
|\ \ \ | |/ / |/| |
| * | Add ability to send double extras from adb.Roman Kalukiewicz2022-01-151-8/+44
| | | | | | | | | | | | | | | Bug: 214637849 Change-Id: I5c52068b436b5bae6a06f5b6bcd5ccf098b9c2b2
* | | Indicate that UID_REMOVED has EXTRA_REPLACING.Kweku Adams2022-01-131-0/+3
| | | | | | | | | | | | | | | | | | Bug: 140731248 Change-Id: Ia24a688f277580ed4edc1fac12ad05b8f7deb919 Test: N/A
* | | Merge "Make ACTION_SETTING_RESTORED SystemApi" am: 2e2a97c04b am: d8ef70a405 ↵Treehugger Robot2022-01-131-7/+38
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | am: 2f68d6bc5c am: 082f6e9f08 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1945287 Change-Id: I87c03ec850e15670db5884d619bd1e52784d5954
| * | Make ACTION_SETTING_RESTORED SystemApiWilliam Escande2022-01-121-7/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because Bluetooth is going mainline, we need to remove call to hidden API. Intent.ACTION_SETTING_RESTORED and extra are currently hidden. There is no known alternative, so this CL make them SystemApi. Bug: 211851706 Test: Build + start bt Tag: #refactor Change-Id: I7a105946f075819f21b91a39bc37c6e167439bf4
* | | [SafetyCenter] Add broadcast action and extra constants for data refreshesKarishma Vakil2021-12-291-0/+112
| | | | | | | | | | | | | | | | | | | | | Test: Will add when the constants are used in b/208624002. Bug: 208623999 Bug: 210423417 Change-Id: I16482a7101c0f2429b79bac92e5b463f47b13a2d
* | | Merge "Specify two item limit for EXTRA_CHOOSER_TARGETS and ↵Amy Gu2021-12-211-4/+8
|\| | | | | | | | | | | | | | | | | | | | | | | EXTRA_INITIAL_INTENTS" am: 73ded9f9df am: b5f0629d41 am: 379347b29a am: 9001310c40 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1858069 Change-Id: I404a2ef9bdabcd5dba6529b4ca6f4b3463e31197
| * | Specify two item limit for EXTRA_CHOOSER_TARGETS and EXTRA_INITIAL_INTENTSAmy Gu2021-12-211-4/+8
| | | | | | | | | | | | Change-Id: If3fdaabf8456cc99f4cf7819ec89b3901a7c74c6
| * | Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918Xin Li2021-11-181-0/+16
| |\ \ | | | | | | | | | | | | | | | | | | | | Bug: 205056467 Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0 Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
* | | | Update system package broadcasts for app ID changesJohn Wu2021-12-161-0/+18
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever a package's app ID has changed, the system broadcasts should behave as if the package is fully uninstalled and then re-installed subsequently. Additional extras are added to indicate the app ID change to allow components to handle this case specifically. Test: atest SharedUserMigrationTest#testDataMigration Bug: 179284822 Change-Id: Ie00eaed1f0a704876ea76aa0e5ae2a1b21f199df
* | | Merge "[pm] new APIs for ↵Songchun Fan2021-12-101-2/+2
|\ \ \ | | | | | | | | | | | | ApplictaionInfo/PackageInfo/ComponentInfo/ResolveInfo flags"
| * | | [pm] new APIs for ApplictaionInfo/PackageInfo/ComponentInfo/ResolveInfo flagsSongchun Fan2021-12-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are running out of int flags for public API methods such as PackageManager.getPackageInfo(String packageName, int flags). As a solution, we will change the flags param to Flags objects. At the same time, we deprecate the old methods that directly use int flags. The new flags classes are: ApplicationInfoFlags, PackageInfoFlags, ComponentInfoFlags and ResolveInfoFlags. Because there are already annotations of the same names, we renamed the annotations to *FlagsBits. Old API usage example: getPackageInfo(pkgName, MATCH_UNINSTALLED_PACKAGES) New API usage example: getPackageInfo(pkgName, PackageInfoFlags.of(MATCH_UNINSTALLED_PACKAGES)) See b/204433742 for discussions. CTS-Coverage-Bug: 206147270 BUG: 204432643 BUG: 204433659 Test: manual Change-Id: I8ab2adad6907670c5879c043d170c950afefe46c
* | | | Merge "Open SensorPrivacy and WRITE_SECURE_SETTINGS to PC"Nate Myren2021-12-061-0/+16
|\ \ \ \ | |/ / / |/| | |
| * | | Open SensorPrivacy and WRITE_SECURE_SETTINGS to PCNate Myren2021-11-161-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the PermissionController can receiver the WRITE_SECURE_SETTINGS permissions, to allow it to control location enable state. Open SensorPrivacy APIs to @SystemApi. Also updates a SystemUI string description to point to another string in PermissionController, which should be kept in sync Test: Build Bug: 194816787 Change-Id: If4a45339449cc392eed28e33453c74a3b10988b4
* | | | Merge "Remove unnecessary comment character "/**""Anubhav Kakkar2021-11-241-1/+0
|\ \ \ \
| * | | | Remove unnecessary comment character "/**"Anubhav Kakkar2021-11-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: None Test: make (change is only in comments) Change-Id: I0fe398460c7f388d270a20f60985707a49433671
* | | | | Merge "Adding intent action for SafetyCenterActivity."Elliot Sisteron2021-11-231-0/+8
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Adding intent action for SafetyCenterActivity.Elliot Sisteron2021-11-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: CTS test in ag/16175491. Bug: 204883906 Change-Id: I5321e0f74cd10c2b62fe381326d255d14917adf5