Commit Graph

30065 Commits

Author SHA1 Message Date
Aaron Huang
9f48409dd1 Merge "Remove Context.NETWORK_POLICY_SERVICE from @SystemApi" into rvc-dev 2020-03-23 10:09:37 +00:00
Aaron Huang
cd44942a14 Remove Context.NETWORK_POLICY_SERVICE from @SystemApi
Hide Context.NETWORK_POLICY_SERVICE as it has no usage.

Bug: 151266974
Test: make checkapi, build
Change-Id: I0586a5ef22f76fa1407219b96cb246f162f02947
2020-03-23 15:15:40 +08:00
junyulai
25d643991f Address API council review comment about TetheringRequest
Test: atest TetheringTests FrameworksNetTests NetworkStackTests
Bug: 152055812
Change-Id: I0158d88e364772f9ac258bd18955edcdad266ad8
2020-03-23 12:13:57 +08:00
Sudheer Shanka
add060f917 Merge "Add BlobStoreManager.getRemainingLeaseQuotaBytes." into rvc-dev 2020-03-22 07:21:17 +00:00
TreeHugger Robot
9a58d5747a Merge "Un-expose APIs added for telephony mainline." into rvc-dev 2020-03-21 21:17:33 +00:00
Michael Groover
ffd92af9a5 Merge "Refactor device ID access SystemAPI to PermissionManager" into rvc-dev 2020-03-21 15:30:53 +00:00
Rahul Sabnis
bd91b5360f Merge "Add BLUETOOTH_PRIVILEGED permission as a requirement for all new Bluetooth SystemApis and for hidden connect/disconnect APIs." into rvc-dev 2020-03-21 06:47:30 +00:00
Evan Severson
4846c5e3a9 Merge "Add one-time flag to test api" into rvc-dev 2020-03-21 05:44:34 +00:00
TreeHugger Robot
4e4fa985c1 Merge "[Telephony Mainline] Hide TelephonyServiceManager and TelephonyFrameworkInitializer" into rvc-dev 2020-03-21 05:05:27 +00:00
TreeHugger Robot
2ecb17aa03 Merge "Camera: Move bokeh mode to extendedSceneMode tag" into rvc-dev 2020-03-21 04:25:09 +00:00
Rahul Sabnis
2c71d16ced Add BLUETOOTH_PRIVILEGED permission as a requirement for all new Bluetooth SystemApis and for hidden connect/disconnect APIs.
Hide some APIs that were previously marked as @UnsupportedAppUsage and re-add annotation as changing the permissions for these SystemApis would break the unsupported app contract that was previously there. Therefore, we're choosing to hide them until we have a good story on how to deal with them next release.

Bug: 148689314
Test: Manual
Change-Id: I33ee2c7ccd3827db3d23d6447cf82d9ffc36836a
2020-03-21 04:10:15 +00:00
TreeHugger Robot
9332d217af Merge "MediaRouter: Rename methods in TransferCallback" into rvc-dev 2020-03-21 03:37:02 +00:00
TreeHugger Robot
7840df3d27 Merge "Exposing TelephonyManager.isIccLockEnabled as a system API." into rvc-dev 2020-03-21 02:47:36 +00:00
Philip P. Moltmann
18122752c0 Merge "Pipe through attributeTag for one SMS permission check" into rvc-dev 2020-03-21 01:48:48 +00:00
TreeHugger Robot
4d2c4a2b86 Merge "Hide CALL_SOURCE constants in TelecomManager" into rvc-dev 2020-03-21 01:20:23 +00:00
TreeHugger Robot
ae5b29f609 Merge "MediaRouter: Add features to distinguish audio routes" into rvc-dev 2020-03-21 01:01:53 +00:00
Winson Chiu
373749fc31 Merge "Add actor attr and QueriesOverlayable styleable" into rvc-dev 2020-03-21 00:50:18 +00:00
Peter Wang
23cf98eaa8 [Telephony Mainline] Hide TelephonyServiceManager and TelephonyFrameworkInitializer
Bug: 151455139
Fix: 151455139
Test: Build
Change-Id: I067c821239585d3d4e8dcf39798b1d0014ba077b
2020-03-20 17:34:49 -07:00
TreeHugger Robot
afb5aa530b Merge "Fixed doc" into rvc-dev 2020-03-21 00:28:15 +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
TreeHugger Robot
08459261b8 Merge "Add method to reset network types" into rvc-dev 2020-03-21 00:02:18 +00:00
TreeHugger Robot
98f6a63baa Merge "Hide APIs exposed for Telephony mainline which is no longer needed in R." into rvc-dev 2020-03-20 23:19:53 +00:00
TreeHugger Robot
3d4c526bf8 Merge "Add API to start pendingIntent for attribution from client App." into rvc-dev 2020-03-20 23:05:31 +00:00
Hall Liu
dd4859d17d Hide CALL_SOURCE constants in TelecomManager
Fixes: 151184696
Test: build
Change-Id: Ie1886d7cd1bac22da41c942b6507b24bc4238c10
(cherry picked from commit 1b78c5327d)
2020-03-20 22:49:28 +00:00
Winson
65c308fcb2 Add actor attr and QueriesOverlayable styleable
For implementing querying actors, overlays, and targets
with overlayables.

Bug: 144157481

Test: builds

Change-Id: I33482437ff93cab3dfd0c6b5200c562b9b5050bd
2020-03-20 15:17:20 -07: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
Jack Yu
ad00ab2959 Fixed doc
Fixed the doc per API council feedback.

Test: Build
Bug: 148218347
Change-Id: If7e180787267ba422fd1833b641c17d6f1051e88
2020-03-20 15:13:37 -07:00
Abhijeet Kaur
d5b24870c6 Merge "Delay volume state changed broadcasts until the Storage Service processes it" into rvc-dev 2020-03-20 21:55:47 +00:00
Amit Mahajan
1c6679a3ad Exposing TelephonyManager.isIccLockEnabled as a system API.
This was recently removed as part of un-exposing telephony
mainline related APIs (b/146983487), but being added back in R as GMSCore
already uses it (b/151742706).

Test: TH
Bug: 151742706
Bug: 146983487
Change-Id: If4e8e87c7dfbb261ee3abfec2a4774980c24d0c2
2020-03-20 14:39:06 -07:00
Sarah Chin
a59764edc9 Add method to reset network types
Test: build
Bug: 148218045
Change-Id: Ia6eaba4e40fe47e79f8a7b6bcbadc61151d84823
2020-03-20 14:36:51 -07: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
Andy Hung
8bd3d10127 Merge "AudioTrack: Update Tuner API" into rvc-dev 2020-03-20 19:50:28 +00:00
Yvonne Jiang
20cf3de04c Merge "Secondary Lockscreen API: improve documentation and rename onSurfaceReady method." into rvc-dev 2020-03-20 19:43:13 +00:00
Adam He
d41ce92d5c Add API to start pendingIntent for attribution from client App.
Bug: 150321630
Test: manual verification
Change-Id: I99f8529c94ef0cc8721d58af7f3c57ae43f4b6dd
2020-03-20 12:36:08 -07:00
Shuzhen Wang
796863a5ec Camera: Move bokeh mode to extendedSceneMode tag
Migrate BOKEH_MODE_STILL_CAPTURE and BOKEH_MODE_CONTINUOUS to be 2 enums
of CONTROL_EXTENDED_SCENE_MODE.

Test: Camera CTS, VTS
Bug: 151759402
Change-Id: I2373f3cb37bbca72cdf403b209f2375c1954fb9a
2020-03-20 12:15:48 -07:00
Sudheer Shanka
a80a997a3b Add BlobStoreManager.getRemainingLeaseQuotaBytes.
+ Add LimitExceededException which can be used to indicate
that an app is doing something that will cause it to violate
any limits enforced by the System.

Bug: 150239703
Test: atest --test-mapping apex/blobstore
Change-Id: I7584d1b8618be546080b0eddb2fe35de2611f9e7
2020-03-20 12:06:53 -07:00
Michael Wright
b99ba10bec Merge "Make ScanResult final." into rvc-dev 2020-03-20 19:02:10 +00:00
TreeHugger Robot
1e9da0f457 Merge "Add parser name constants and a StringDef for them" into rvc-dev 2020-03-20 18:36:58 +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
Kyunglyul Hyun
c19b3cc14a MediaRouter: Add features to distinguish audio routes
This CL adds more route features to give
media apps more information.
It also clarifies the values of pre defined route features.

Bug: 152024707
Test: cts test and mediaroutertest

Change-Id: Ia89b45191c4f3fe23210aaca7f336637725fe3b3
2020-03-21 03:04:26 +09:00
Philip P. Moltmann
830833053d Pipe through attributeTag for one SMS permission check
Bug: 136595429
Test: TH
Change-Id: I346ac2d3acad0e0d18b298f89f0b96324fc52333
2020-03-20 10:46:07 -07:00
Andy Hung
7d77d7ea8f AudioTrack: Update Tuner API
Move Tuner specific methods to SystemApi
to match Tuner Api visibility.

Update return value annotation on getters.

Test: AudioTrackTest#testTunerConfiguration
Bug: 151178170
Change-Id: I5461d62db38cd912b5896b9c27fd1fef29306bae
2020-03-20 10:26:59 -07:00
Mady Mellor
5e2ddf0391 Merge "Bubbles API council feedback" into rvc-dev 2020-03-20 17:17:36 +00:00
TreeHugger Robot
243f8b00ae Merge "Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API" into rvc-dev 2020-03-20 17:11:08 +00:00
Yvonne Jiang
8345da3a97 Secondary Lockscreen API: improve documentation and rename onSurfaceReady method.
- Documentation clarity and method rename per API review feedback.
- Specifying in documentation and implementation that the implementing service must be exported by the Profile Owner.

Bug: 150866056
Bug: 136085151
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I58175bd6cf8936f5b1267625ca15b4f9c57f4144
2020-03-20 17:06:24 +00:00
TreeHugger Robot
922833a430 Merge "Update permissions of BluetoothPan System APIs and re-hide some APIs that do not need to be System APIs." into rvc-dev 2020-03-20 16:55:47 +00:00
Santiago Seifert
5f0547f84f Add parser name constants and a StringDef for them
Bug: 150854787
Test: CTS.
Change-Id: Ie16526d81decb660f6a96f7ad3a82e3b0e3d0de5
2020-03-20 16:42:21 +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
Abhijeet Kaur
29dc089617 Delay volume state changed broadcasts until the Storage Service processes it
In R, all file path access is proxied through the Media Provider database.
This change ensures that the filesystem is indexed in the database
before broadcasting volume state mounted. This is essential as we do
not want apps to access the volume before the data is ready.

Similarly, the Storage Service processes other volume state changes before
broadcasting to other apps.

Since we want to block volume state changed broadcasts until the volume
is processed/scanned by the Storage Service, which may take time, so we
handle volume state changed in a separate thread (so as to not block its
callers like vold).

Bug: 145194312
Test: builds
Test: atest AdoptableHostTest
Test: atest com.android.tests.fused.host.FuseDaemonHostTest
Change-Id: I1677fdd5672cea531e98cda76d967af13e5fac9e
2020-03-20 15:54:44 +00:00