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
Add a @SystemApi constructor to AudioEffect class
allowing to attach an audio effect to an input or output
device.
Bug: 136294538
Test: make
Change-Id: I0cb5cf5f38f95605a8605f3347aaa7e187db4e8a
Merged-In: I0cb5cf5f38f95605a8605f3347aaa7e187db4e8a
Introduce a new class to store information about an audio device,
containing its role (input or output), device type and address.
Bug: 144440677
Test: atest AudioServiceHostTest#testAudioDeviceAddress
Change-Id: I86d32590c54609b8d8a9f7ea60d9b4bf76113935
Merged-In: I86d32590c54609b8d8a9f7ea60d9b4bf76113935
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 change is the first iteration of a new high-level media transcode API.
At this point the API is not hooked up to the underlying native media transcoding service.
More transcoding options will be added in following CLs.
Test: Ran MediaTranscodeManagerTest, verified call sequence using logcat. Flashed build
on blueline and verified basic media functionality.
Change-Id: I190e41b468265bd339d0fbca243db2a196e5a04e
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.
Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I4bc8c9482e4bb1af21363f951affff7ee3fefeab
Merged-In: I4bc8c9482e4bb1af21363f951affff7ee3fefeab
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