Add @SystemApi to check if the Spatializer will be available for
a given device, if it has a head tracker, if enabled, and
change its tracker enabled state.
Implement checking device compatibility with transaural and
binaural modes. Create list of compatible devices, list of
devices that have been enabled, and list of disabled. This is
to support the V3 UI where add/removeCompatibleDevice is used
to control Spatial Audio state for a subset of output devices.
Bug: 210803914
Test: atest SpatializerTest
Change-Id: I0acf0c0310dbd503de2ea87328fca7e5597ae32d
Use case is for TV Input Service which creates MediaCodecs when tuning
to TV channels on behalf of operator and OEM apps. Requires the
MEDIA_RESOURCE_PID_OVERRIDE permission.
Bug: 217746837
Test: atest MediaCodecResourceTest
Change-Id: I191ff13c5730970664a818a9333c160e6e773c7d
Added API to manage the currently active assistant. When an
assistant becomes active the API will set the assistant's
voice interaction service and its corresponding hotword detection
service to active. When the assistant becomes inactive the API will
be called to reset the assistants UIDs. For the latter the API will
be called with an empty list of UIDs.
After bootup, user switch, and audio server crash reset, the list of
active assistants will be set to an empty list (.i.e no assistant
UID's are currently active).
In the absense of active assistant list, the default behavior will
be that all assistants can listen to hotword as long it does not
conflict with privacy policy. When an assistant state changes
to top (UI present) that assistant will be able to listen to
audio via voice recognition source or hotword.
Bug: 189312611
Test: m -j, and run assistant
Test: atest CtsVoiceInteractionTestCases
Change-Id: I0bfe4c167f69a26293ae2f9f9d0898033f86db03
Add audio device type definition for a Bluetooth LE
audio broadcast group.
Bug: 150670922
Test: make.
Change-Id: I8b2c7966ab6d1f3c637a043c4c802b8433ba697b
Merged-In: I8b2c7966ab6d1f3c637a043c4c802b8433ba697b
To test package orders, host side tests are added.
AllowedPackages istested as well.
Additionaly, RouteDiscoveryRequest#getRequiredFeatures is removed
as it doesn't seem to be necessary.
Adding tests, some bugs are found and fixed.
Test: atest MediaRouter2HostTest android.media.cts.MediaRouter2Test
MediaRouter2ManagerTest
Bug: 193631822
Change-Id: I315d6e0d648777566404875e300030740a482c81
Guard TvInputManager#getClientPriority() by
android.Manifest.permission.TUNER_RESOURCE_ACCESS.
cts test was merged in ag/16577091
CTS-Coverage-Bug: 194149304
Bug: 194149304
Bug: 215546861
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest
Change-Id: I56a397517d54f806215dd00f9cfff904a55aa159
Also change DataSpace from long to int (HAL & native are both ints)
Bug: 217776226
Fixes: 218320444
Test: make && SurfaceControlTest#testSurfaceTransaction_setDataSpace
Change-Id: Ic2b9ccb1d0ba3c1d049839310b4fef0881a3d2e2
The MediaRouter Javadoc currently advises developers to use
MediaRouter2. The MediaRouter2 Javadoc further advises
developers to use AndroidX MediaRouter. This change directs
develeopers directly from MediaRouter to AndroidX.
Test: Javadoc only
Change-Id: Ia90e2e2799cc167f87349f907ae9621443d57bb3
Added API to set the UIDs of the services that can be used as assistants.
Also modified code that uses the previous APIs for setting the unique
assistant UID and its corresponding hotword service. The new API can set
multiple UIDs all which will be treated the same for the purposes of
proviving assistant services.
Bug: 189312611
Test: m -j, and run assistant
Change-Id: Ieb28b7141206b58ae1d5d68580c08f4c733560b6
- Add SyncFence class that include FileDescriptor and related functions
- expose fence file descriptor setter/getter in the Image class
Bug: 210919185
Test: android.hardware.camera2.cts.ImageWriterTest
Change-Id: I7428db26e3e6ca84675d2ce2ef4def46ed0b1397
1. Make sure newly added lists are non-null in builder
2. Fix variable name & add some extra documentation
Bug: 193631822
Test: atest MediaRoute2InfoTest RouteDiscoveryPreferenceTest
Change-Id: I93ed43acb6113f33f8010cb2ec4b4e0ad98d0b45
Renamed delayCallbackUntilMillisElapsed to
delayCallbackForDurationMillis according to API feedback. Made parameter
more consistent with the method name.
Test: m && atest android.media.tv.tuner.cts.TunerTest
Bug: 213174673
Change-Id: I296c56078a4089d456c0a2359cacfd37d4922f7d
"flag" is used to define whether the constants can be used as a flag, or
just just as an enum (the default). All constants are enums.
Bug: 174239416
Fix: 174239416
Test: make and atest android.media.tv.tuner.cts
Change-Id: I61b4335d62a62c79cc57b84a8d90f8c6e8a18443