This removes hidden API usages from the fwk to apex, which would be
prohibited.
With this API, the dispatching logic is changed as follows for sending
key events directly to MediaSessionRecord through MediaSessionService.
Before:
PhoneWindow
-> MediaController.dispatch***AsSystemService(key)
-> MediaSessionRecord
After:
PhoneWindow
-> MediaSessionManager.dispatch**AsSystemService(sessionToken, key)
-> MediaSessionService
-> MediaSessionRecord
Bug: 123485698
Test: Build, flash and injected some key events
Change-Id: I3e0bca7565ae2f142c3389322d867700646d5038
Due to the @UnsupportedAppUsage on
MediaMetadata.getKeyFromMetadataEditorKey, we'd better not to move the
class to APEX. This CL moves the MediaMetadata back to framework.
Also, in order to avoid hidden framework API usages in mainline module,
this CL moves the usage of hidden constructor of MediaMetadata.Builder()
from MediaSessionEngine to MediaSession.
Bug: 123488217
Test: make update-api -j; make -j;
vendor/google/tools/flashall;
atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
Change-Id: I21b4f0f59214478071bb0eafa93bb9538e44bf4e
This removes hidden API usages from the framework to the apex, which
would be prohibited.
Test: Build
Bug: 123485698
Change-Id: Ib3c350bad4af2e8db3788296dc78b7f7eb0693c0
When the android build setting is configured to a rule which moves
MediaSession1 related codes to mainline module, the non-public and
non-system APIs in the module cannot be used by the framework.
This CL makes the hidden constructor of PlaybackInfo as
system API, so that it can be used by the framework.
Bug: 123500940
Test: make update-api -j; make -j;
Change-Id: I8583d6f79c70f8bbbbedfa0a75676218aeec58e6
If we don't specify source ID explicitly, the default source ID 0 is
used.
Bug: 123425309
Test: MediaPlayer2DrmTest
Change-Id: I16d76d4dfbe4551f97234f27e4500cb74480f8ed
* changes:
Separate updatable-media library
Move MediaBrowser API into updatable media
Add build rule for updatable media 1.0 APIs
Add build rule for media2-abi-*
- media2-abi-* included in updatable-media.jar
- Moves the media2-abi files into media/apex
- Resolves a hidden api usage
Bug: 123209084
Test: build
Change-Id: I9f9b0b9c288da5c7acbfedcb56867ff405ac0d61
"media2.jar" is renamed to "updatable-media.jar" in order to
show its purpose clearly.
Test: build & boot & MediaPlayer2Test
Bug: 112766913
Change-Id: Ia2ea05e0ed1a8bb2cfea20c9e2585e3d3cbfffd9