For consistency, this CL applies the same changes also to the
internal methods.
Bug: 150922531
Test: CTS and mediaroutertest (Passed except already failing methods)
Change-Id: Iac0ab78464b16212cb3ad46519f5892e8d1b69d9
Add a disclamer and cleanups some comments.
Add a link to AndroidX media router.
Bug: 150291987
Test: N/A
Change-Id: I6ba5505b52a256ac4ee30b087524f2a4263e8df7
MediaRouter2#stop stops the current media routing and
invokes the callback onStopped.
According to the change transferTo doesn't accept null route
as its argument.
CTS is changed as well.
Bug: 150472061
Test: CTS tests related to media router2
Change-Id: I6bc7b7ad394189e035e4c018677efb94e5497c85
In the previous CL, we relied on MediaRouterUtils.getOriginalId()
that returns a wrong ID when it has no provider ID but the separator.
Resolve the issue by resetting route ID in Builder class.
Bug: 150666870
Bug: 150751854
Test: cts test realted to MediaRouter2
Change-Id: Ib17cdc8385308ccadad79e117fcfede72b8af6b5
When initializing a AudioTrack, there will be a IAudioTrackCallback
created systematically in JNI. It will be registered as a callback after
native AudioTrack created. Currently, it is used for notifying codec
format changed.
Bug: 150301890
Test: manual
Test: atest AudioMetadataTest
Change-Id: Ib35749ebbbef2b11b90750663d110430f0ce8390
This CL fixes the issue that RoutingSessionInfo#getSelectedRoutes
return improper route IDs when it is recreated.
To ensure provider ID related feature, another test is added.
Since RoutingSessionInfo#setProviderId is a hidden method, the test
is not added to CTS.
The reason for moving "updating route ID logic" into Builder is from
considering use cases.
The original ID of the route is only checked when the provider ID is
set and a route is added to or removed from a RoutingSessionInfo,
which is very rare case.
This CL also fixes the issue that didn't release the previous routing
session when transfer.
Bug: 150666870
Bug: 150751854
Test: atest mediaroutertest
Change-Id: Ic05c11ebf43562b44214eb661c8b9c106f1c9d3e
1. Add config values for setting custom dispatcher and provider
class names as @hide APIs.
2. Make MediaSessionService use the custom dispatcher and
provider classes (if they exist) via reflection.
3. Make SessionPolicyProvider/MediaKeyDispatcher abstract classes
and add a default constructor without parameters to make sure it
can be called via reflection.
TODO: Add API for getting/setting policies via MediaSessionManager
once b/149006225 is fixed.
Bug: 147027868
Test: build and manually test
Change-Id: I6f809ce2201cb8fc25d603654148f211a78ea107