This CL removes RouteSessionInfo#isValid() since there is are no usages.
Also overrides equals() and hashCode().
Also, it applies following changes:
- Make the class as final
- Add javadoc for using an empty string for unknown client package name
- Throw exception in Builder#build() if there is no selected routes.
- Throw IllegalArgumentException in Builder#add/Remove*Routes(routeId)
when the given routeId is empty or null.
Tests for the class are also added.
Bug: 147524068
Test: atest mediaroutertest
Change-Id: I2cb6cc37a8216dd42dc72edee72bb5211259c66a
This CL covers APIs for discovering routes published by
MediaRoute2ProviderService.
Bug: 147402721
Test: atest mediaroutertest
Change-Id: I978a6489ae1bcfcd6bb427d4a939c49ff3420e2d
Add a new @SystemApi for querying audio playback routing for
a given AudioAttributes.
Note that unlike the (@UnsupportedUsage) getDevicesForStream API,
this method takes into account any current dynamic policy (unless
it is based on uid).
Bug: 144440677
Test: atest AudioServiceHostTest
Change-Id: I0431e792a209865ffa771a521c2f0792c07ce5d4
Per-model control to AlwaysOnHotwordDetector interface.
Models are selected by keyphrase and locale associated with the
AlwaysOnHotwordDetector instance.
Bug: 141929369
Test: tested manually with test app
Change-Id: Iffeb0954059fa030d8a4fefb934a3e665323be37
With this change, permissions are assumed to be dynamic, i.e. can be
revoked any time during runtime.
Change-Id: I432696f21d6722e8bc533f09e118139e45b0e668
This CL makes the session have String ID rather than
primitive integer ID.
Also, this CL makes RouteSessionInfo#getId() return a unique ID
when it is called for routes which were get via
MediaRouter2 / MediaRouter2Manager.
Bug: 147394941
Test: atest mediaroutertest
Change-Id: I715617243f1561cb00eb1cca6346ba772813516a
Providers are notified of change of discovery request
to respond properly.
Whenever a media app registers a callback it should provide
discovery request which includes route types and a way to scan.
MediaRouter combines all discovery request into a single request
and sends it to the media router service, which combines requests
from all clients and notifies provider of the combined request.
This CL also changes control category as route type.
Bug: 139033746
Test: atest mediaroutertest
Change-Id: I5ca37683ae0761ff587c1c920e32fd6d768a2cd3
Add TIF API for getting spoken subtitle attribute for audio tracks
in order for TV App to use it.
Test: build
Bug: 112835103
Change-Id: I2ebc27dae020bce14cd1a3464e91416c7a4415ec