Commit Graph

11 Commits

Author SHA1 Message Date
Paul Hu
29f0617cc5 Merge "Expose BroadcastOptions#setMaxManifestReceiverApiLevel as system API" 2020-11-18 07:11:39 +00:00
Jin Seok Park
0b058f643f Merge "[Media ML] Make getActiveSessionsForUser system API" 2020-11-18 05:52:13 +00:00
paulhu
52437ab083 Expose BroadcastOptions#setMaxManifestReceiverApiLevel as system API
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. But it needs
BroadcastOptions#setMaxManifestReceiverApiLevel to restrict the
receiving of CONNECTIVITY_ACTION intent. Thus, expose it as a
system API to support the usage.

Bug: 170593746
Test: atest FrameworksNetTests
Test: atest CtsNetApi23TestCases
Test: atest KeyChainTests
Change-Id: Ic45552174c3f9e74141db4495bb99a582000b574
2020-11-18 00:07:32 +08:00
Jin Seok Park
4483aaab83 [Media ML] Make getActiveSessionsForUser system API
Bug: 160666400
Test: build
Change-Id: I163879a45f2544ab1b420d8ad85dc4286143b2f5
2020-11-16 17:19:04 +09:00
raychi
88254a2b56 Support USB Gadget V1.2 HAL
USB Gadget V1.2 HAL include:
1. support NCM function
2. add api to inquiry USB speed
3. add api to inquiry HAL version

Bug: 168282708
Test: build pass and functions are working normally
Change-Id: Idd07c55f4610740c0cf9023391125a86ba39ddee
2020-11-12 10:59:40 +08:00
Leon Scroggins
6e597584c8 Merge changes I3f6c3260,I0f4d685d
* changes:
  Remove @SystemApi from Compatibility
  Revert "Make createSource(ContentResolver, Uri, Resources) a SystemApi"
2020-11-11 20:43:06 +00:00
Leon Scroggins III
2af10003c4 Remove @SystemApi from Compatibility
Bug: 152322291
Bug: 172934376
Test: make

The UI Rendering mainline module is on hold for now, so this does not
need to be @SystemApi. The system can still access it through @hide.

This leaves in place the new Compatibility class (added in
Ie7172fb93364a1e04ab844b8fa64887bf9d8b005), which seems just as good as
the old approach, and we can switch it back to @SystemApi if/when we
restart the module.

Change-Id: I3f6c32603c4eace55ece04936bff6f9336cf6627
2020-11-10 14:57:09 -05:00
Leon Scroggins
99b7556cb2 Revert "Make createSource(ContentResolver, Uri, Resources) a SystemApi"
Bug: 152322291
Bug: 172934376
Test: make

This reverts commit 97eacc36a3.

Reason for revert: The UI Rendering mainline module is on hold for
now, so this does not need to be @SystemApi. The system can still
access it through @hide.

Change-Id: I0f4d685d62cf468a3fd9a7e664bcc46569e94591
2020-11-10 14:41:59 -05:00
Hall Liu
c82d6aa915 Reexpose ActivityManager#updateMccMncConfiguration
Add the SystemApi tag back to updateMccMncConfiguration for Telephony
mainline.

Fixes: 172284754
Test: atest ActivityManager#testUpdateMccMncConfiguration
Change-Id: Id6a8639aef26c39fb23d9339142c42f7518fc074
2020-11-09 14:44:44 -08:00
Jin Seok Park
18b8febd6b Expose remote volume controller-related APIs
MediaSessionManager#registerRemoteVolumeController allows apps to
attach a binder to media service in order to be notified when
the session or volume of the remote volume controller is changed.

Since binders cannot be exposed, this CL instead adds and exposes
as system API a Callback interface that apps can implement.

Bug: 161332642
Test: Manual test by changing volume when remote casting
Change-Id: Ibb009559e818711ca40f7bc1b3694a49484960b3
2020-11-04 22:28:27 +09:00
Anton Hansson
6cbaff2471 Move non-updatable-api/ to core/api/
This achieves two things:
- it's been noted that non-updatable-api is a confusing term as it has
  to be updated every time the API changes
- the api-review logic trigers on txt files in subdirs named 'api',
  which non-updatable-api does not trigger on

I will (less urgently) try to get rid of the term "non-updatable" from
other places too, perhaps going for "non-module" or "core" as a
replacement.

Bug: 171029603
Test: m checkapi
Change-Id: I843efb4880b6caaf3872e9b0918fd710fb93d979
2020-10-30 08:23:20 +00:00