Commit Graph

9276 Commits

Author SHA1 Message Date
TreeHugger Robot
d73afef082 Merge "Un-expose APIs added for telephony mainline." into rvc-dev am: 9a58d5747a am: 9c614e6fe6 am: cb0dc65b6d am: bcd1229948
Change-Id: Idb363dde8ef5b5f88d7b531bbc4f70a92c101c6d
2020-03-21 22:10:56 +00:00
TreeHugger Robot
9a58d5747a Merge "Un-expose APIs added for telephony mainline." into rvc-dev 2020-03-21 21:17:33 +00:00
Evan Severson
b81a3c4418 Merge "Add one-time flag to test api" into rvc-dev am: 4846c5e3a9 am: 80b953200c am: 4b09ca65ed am: 89f0088d25
Change-Id: I69be6e9077cb3dbfbe9516f3438bb4e2595224a3
2020-03-21 06:41:15 +00:00
Evan Severson
4846c5e3a9 Merge "Add one-time flag to test api" into rvc-dev 2020-03-21 05:44:34 +00:00
Amit Mahajan
4009110b3b Un-expose APIs added for telephony mainline.
Will be reworked on in R.

Test: basic sanity
Bug: 140908357
Change-Id: Ib18b66c9351b0434d7c46e004cd162928d7133f7
2020-03-21 00:21:48 +00:00
Evan Severson
1da1137fd1 Add one-time flag to test api
Test: Build
Fixes: 152076715
Change-Id: I63d327ff9df6075b4420db7df8ee2430fb7922ae
2020-03-20 15:16:54 -07:00
Taras Antoshchuk
2dd259b061 Merge "Change dynamic MIME feature accodring to API review" into rvc-dev am: 2ecaeeba03 am: 923deb5735 am: 92e9b389ca am: 52b51b73a8 am: fbd86a73cf
Change-Id: I81b4d0763f0755645f93edc20b4d6d8a2ba4416b
2020-03-20 21:43:58 +00:00
Jeff Sharkey
3943ce915d Merge "Add missing symmetrical ContentResolver method." into rvc-dev am: cb31e0486c am: 020c1e2525 am: 1cca7bd3ee am: 517ae1c487 am: 7d64a0f270
Change-Id: Id4a7c8ff0cee693fb48c4dc16dc6e32127ab8aca
2020-03-20 21:41:35 +00:00
Taras Antoshchuk
2ecaeeba03 Merge "Change dynamic MIME feature accodring to API review" into rvc-dev 2020-03-20 21:04:15 +00:00
Jeff Sharkey
cb31e0486c Merge "Add missing symmetrical ContentResolver method." into rvc-dev 2020-03-20 20:31:52 +00:00
Ryan Mitchell
15869daf9e Merge changes from topic "res_loader_dir" into rvc-dev am: b0544a733c am: c5f968d58b am: f0e186808a am: a857a184f8
Change-Id: I7ff89185051adb674b245082d0069768bc5bcc25
2020-03-20 18:44:14 +00:00
Ryan Mitchell
b0544a733c Merge changes from topic "res_loader_dir" into rvc-dev
* changes:
  Allow using loaders on non-RM Resources instances
  Move AssetsProvider to native layer
  Add ResourcesProvider.loadFromDirectory
  Refactor tests for ApkAsset loading APIs
  Refactor ApkAsset loading APIs
  Fix bugprone-use-after-move warnings
  Fix bugprone-use-after-move warnings
2020-03-20 18:16:30 +00:00
Taras Antoshchuk
8a6002477d Change dynamic MIME feature accodring to API review
Remove PackageManager#clearMimeGroup method. Add expected best
practices of the MIME group naming to Javadocs.
getMimeGroup/setMimeGroup throw in case of undefined MIME group.

Bug: 151101912
Test: atest CtsDynamicMimeHostTestCases
Change-Id: Ica468c77785cb0f9862b412a0bbc664f23e2f2d4
2020-03-20 17:07:56 +01:00
Jeff Sharkey
ce8a353b8b Add missing symmetrical ContentResolver method.
We have a new ContentProvider.checkUriPermission() method, but we
forgot to add the symmetric ContentResolver.checkUriPermission() to
the public API, and a first-party developer helped identify this
oversight.

Bug: 151165313
Test: atest CtsContentTestCases:android.content.cts.ContentResolverTest
Change-Id: Ic5496b5a6fda14c25cb3752f5af2f71564d003ba
2020-03-19 21:41:57 -06:00
Ryan Mitchell
39cacf2de7 Allow using loaders on non-RM Resources instances
Currently there is a limitation where ResourcesLoaders cannot be  used
on Resources object not created through ResourcesManager. This change
creates an update handler for Resources objects that are not registered
with ResourcesManager.

The handler changes the loaders on the asset manager owned by the
Resources instance.

Bug: 151666644
Test: atest ResourceLoaderValuesTest
Change-Id: I5a89f686386bdb088dc964014e7becc0c2b4770f
2020-03-19 18:33:55 -07:00
Ryan Mitchell
4ea1e42889 Move AssetsProvider to native layer
Querying in the native layer for assets provided through
AssetsProviders does not currently work. This change refactors the
AssetProvider API to return a file descriptor that is read in the
native layer and can bubble up to the java layer.

This change also removes the InputStream API to favor of developers
using memfd_create.

Bug: 142716192
Test: atest ResourceLoaderValuesTest
Change-Id: I1a7eca0994c3b7cc32008d9a72bf91086ff0e816
2020-03-19 18:33:55 -07:00
Ryan Mitchell
c07aa70270 Add ResourcesProvider.loadFromDirectory
This API allows a directory to be loaded as if it was a zipped APK.
This is a substitute for the DirectoryAssetProvider API that
currently does not work in the native layer.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: Ia13e15653e75b421423dd56f9fe89e183ab4cb9a
2020-03-19 18:33:55 -07:00
Ryan Mitchell
ef40d2e832 Refactor ApkAsset loading APIs
To add the partner requested ResourcesProvider#loadFromDir APIs, this
change adds format type integer that allows us to reduce the number of
ApkAssets loading overrides.

This change also adds hidden offset and length based ResourcesProvider
APIs that could not make R.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: I926fde257cae701901dcd4ca408024feae8c90a6
Merged-In: I926fde257cae701901dcd4ca408024feae8c90a6
2020-03-19 18:33:55 -07:00
Evgenii Stepanov
21c6a0f598 Merge "Convert enableGwpAsan to @IntDef and rename to gwpAsanMode." into rvc-dev 2020-03-19 22:47:05 +00:00
Winson Chiu
69f16bb812 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev am: 5051748f22 am: 795a638f8b am: db513da27e am: 32ac62c2bc
Change-Id: I744bd1d60e19e599adf8c820d742b9a505d6f21b
2020-03-19 21:54:12 +00:00
TreeHugger Robot
8e42a566f3 Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev am: cff44bd82e am: 57e6a44d8c am: bde27ad69a am: 917402b9e3
Change-Id: Ib3b534e97ff0128f5ac87e47a67b751b20adbeb1
2020-03-19 21:52:25 +00:00
Peter Wang
8c8b591bd0 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev am: 24f63edb41 am: 949ad27332 am: 762328df00 am: 8c74ced88e
Change-Id: I4272f92d9a05a4647e1081cd84949b26752d6812
2020-03-19 21:51:55 +00:00
Patrick Baumann
e4868593fd Fixes wildcard intent filter matching logic am: 28a68105e1 am: 6acd3edcbc am: 0d5003753b am: f7ca5ff0af
Change-Id: If68f6474f6a5837178e85a6fb2961102f99d5332
2020-03-19 21:39:11 +00:00
Winson Chiu
5051748f22 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev 2020-03-19 21:02:36 +00:00
TreeHugger Robot
cff44bd82e Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev 2020-03-19 20:51:30 +00:00
Peter Wang
24f63edb41 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev 2020-03-19 20:50:10 +00:00
Patrick Baumann
6acd3edcbc Fixes wildcard intent filter matching logic am: 28a68105e1
Change-Id: I194aea06beda52f4c1e2b43ebb382935f86f0e73
2020-03-19 20:44:06 +00:00
Patrick Baumann
8a25d0fa42 Merge "Fixes wildcard intent filter matching logic" into rvc-dev 2020-03-19 20:43:32 +00:00
Songchun Fan
2577925e5b Merge "remove dynamicArgs from public methods" into rvc-dev am: 2f83e15e18 am: 4783af442c am: edc36101b5 am: f03d8116a7
Change-Id: Ifdf19c40083f91db099abe3612712ede11d0bc47
2020-03-19 20:17:55 +00:00
Songchun Fan
2f83e15e18 Merge "remove dynamicArgs from public methods" into rvc-dev 2020-03-19 19:07:18 +00:00
Evgenii Stepanov
d43d109af8 Convert enableGwpAsan to @IntDef and rename to gwpAsanMode.
Following API feedback, make
  ApplicationInfo.enableGwpAsan
  ProcessInfo.enableGwpAsan
a @IntDef integers instead of @Nullable booleans.

Rename both, and the manifest attribute, to gwpAsanMode.
Turn the manifest attribute into an enum.
Fix manifest documentation to match the implementation.

Bug: 151262688
Test: CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: Ie33954700e1526f9764a751e474a3f930a65e957
Change-Id: Ie33954700e1526f9764a751e474a3f930a65e957
(cherry picked from commit 7487f249dd)
2020-03-19 16:35:41 +00:00
Steve Elliott
2ba498ea7c Merge "Populate conversation notifs from shortcut info" into rvc-dev am: a7aededa7d am: a56418164b am: 8c40cf389e am: 29f9d774dd
Change-Id: Ib0cb8a48255ec96c82c253c70da8f5c9988ddd39
2020-03-19 16:16:36 +00:00
Martin Sundermeyer
23d68f1f7c Merge "Rename EXTRA_TIME to EXTRA_EPOCH_TIME." 2020-03-19 15:56:20 +00:00
Steve Elliott
a7aededa7d Merge "Populate conversation notifs from shortcut info" into rvc-dev 2020-03-19 15:18:33 +00:00
Yurii Zubrytskyi
4487582db3 Merge "Incremental apps removal on data loader failures." into rvc-dev am: 793f73812d am: e1a0a7411c am: 7a2eb4a13e am: 6889df698e
Change-Id: I363f9d32117409f4eced705a799f262b1f42669f
2020-03-19 07:22:55 +00:00
Yurii Zubrytskyi
793f73812d Merge "Incremental apps removal on data loader failures." into rvc-dev 2020-03-19 06:20:37 +00:00
Peter Wang
1b0836a826 [Telephony Mainline] Hide setSystemAppState and related constants for R
Bug: 146904426
Fix: 146904426
Test: Build
Change-Id: Ia331068ac49f6f6bc97643766b521b27bff2e6b6
2020-03-18 21:55:52 -07:00
Evgenii Stepanov
2fe7090de9 Merge "Convert enableGwpAsan to @IntDef and rename to gwpAsanMode." 2020-03-19 03:37:21 +00:00
Automerger Merge Worker
f222115d58 Merge "Merge changes from topic "netstack_api_review" into rvc-dev am: 54a6565668 am: bd5a4e48ad am: 48e949a52d" into rvc-qpr-dev-plus-aosp am: a0f5f45301
Change-Id: I598acc3fc1655e86e34a97ae76ded6973039fb07
2020-03-19 02:33:29 +00:00
Remi NGUYEN VAN
54a6565668 Merge changes from topic "netstack_api_review" into rvc-dev
* changes:
  Remove usage of Context.NETWORK_STACK_SERVICE
  Remove NETWORK_STACK_SERVICE constant
2020-03-19 01:21:29 +00:00
Sarah Chin
0f871decb2 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" into rvc-dev am: 91604c2138 am: 701f4bedb7 am: 8c876265e3 am: bc8df91496
Change-Id: I8b2e7d1bf01b9bc99f1de514454cd8efba8a5908
2020-03-19 00:23:21 +00:00
Sarah Chin
91604c2138 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" into rvc-dev 2020-03-18 23:15:16 +00:00
Eugene Susla
0481fe2342 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev am: 733a81b9f7 am: b153c4dd0a am: bf14f7d5b4 am: 197a6d4727
Change-Id: I34796f401ef54aff243e14b28d5f7212618f557b
2020-03-18 22:53:29 +00:00
TreeHugger Robot
c3752e30f0 Merge "Revert "Expose ACTION_USER_SWITCHED as system API"" into rvc-dev 2020-03-18 22:23:22 +00:00
Eugene Susla
bf14f7d5b4 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev am: 733a81b9f7 am: b153c4dd0a
Change-Id: I369f7357c985446ef462d62730a646b6d3243d86
2020-03-18 22:14:07 +00:00
Patrick Baumann
28a68105e1 Fixes wildcard intent filter matching logic
Fixes: 151638510
Test: atest IntentFilterTests AppEnumerationTests
Change-Id: I5f0297b5f1ca0458bc6d9ada5ac6d623b7b9a89f
2020-03-18 15:07:54 -07:00
Eugene Susla
733a81b9f7 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev 2020-03-18 21:46:40 +00:00
Sarah Chin
8ac7ce5a5d Remove Mainline APIs for MmsManger and TelephonyManager
Test: build
Bug: 144004293
Bug: 147611125
Change-Id: I44682d1f33eee02d1dcf57f4de8ce2df0a9b126d
2020-03-18 14:28:06 -07:00
Evgenii Stepanov
7487f249dd Convert enableGwpAsan to @IntDef and rename to gwpAsanMode.
Following API feedback, make
  ApplicationInfo.enableGwpAsan
  ProcessInfo.enableGwpAsan
a @IntDef integers instead of @Nullable booleans.

Rename both, and the manifest attribute, to gwpAsanMode.
Turn the manifest attribute into an enum.
Fix manifest documentation to match the implementation.

Bug: 151262688
Test: CtsGwpAsanTestCases
Change-Id: Ie33954700e1526f9764a751e474a3f930a65e957
2020-03-18 14:16:04 -07:00
Yurii Zubrytskyi
75674be988 Merge "Removing race condition accessing shared binder object." into rvc-dev am: 1d6e6bfe96 am: 92a23de26f am: 592fe5d0ef am: bd0f07a650
Change-Id: Ie789e954d3373a0d24a73f50eee57a2774ea5edd
2020-03-18 20:21:29 +00:00