Fix two issues with privacy sensitive mode implementation:
1) default applied by AudioAttributes based on source could
override explicit flag set.
2) when privacy mode was explicitly set in AudioRecord builder,
the audio source was reset.
Bug: 137850106
Test: CTS test for AudioRecord
Change-Id: I73f69d3d214102dcc237cac616c9bfc3f85b288e
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
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 \
git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
This CL makes MediaRoute2Info#getId() return a unique ID when it is
called for routes which were get via MediaRouter2 / MediaRouter2Manager.
Acordingly, this CL removes MediaRoute2Info#getUniqueId().
Bug: 147338138
Test: atest mediaroutertest
Change-Id: Id2960c45e9cabde7bc5b57554608aebe03fcbe04
Add TIF API for getting hearing impaired attribute for audio and
subtitle tracks in order for TV App to use it.
Test: build
Bug: 112835103
Change-Id: I4046b5d49fcec2b944972bc532e844f0bdab9476
The class contains a field settings which is the actual filter settings.
The class is only used in Filter.configure(), so FilterConfiguration is
a better name.
Test: make;
Change-Id: I57d7f4974ff60b83b4f4887ae5be8dda4218f4f0
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
And move them to a filter package. Will split and move filter settings
classes to this package in another CL.
Test: make;
Change-Id: If01ce3805ab7745e0177db1b7d63a32ac948b55f
When send out for API review, we will unhide the class first and then
unhide those constants step by step together with related methods, so
the CLs can be smaller and easier to be reviewed.
Test: make;
Change-Id: Ibe1362081a132f5161fcda63bb253c1a9301c51b