On native audioserver recovery the assistant UIDs will reset to an empty
list, followed by adding the current role or setting holder for
assistant. Also added a settings lock around the update assistant
method. Added remove assistant UID for reset hotword detection
connection.
Bug: 222584963
Bug: 222777782
Test: atest VoiceInteractionTest
Test: atest AudioManagerTest
Test: atest HotwordDetectionServiceBasicTest
Test: kill audio server and verify assistant UIDs is not increasing
unbounded.
Test: adb shell cmd voiceinteraction restart-detection, verify assistant
UIDs list is not increasing unbounded.
Change-Id: I475bfee1f0bcd56a750e4fef8aa8a2b93fe090fc
observations about missing action in close().
javadoc on some KEY_* fields.
Implement PlaybackStateEvent within BundleSession as example.
Bug: 220129161
Test: atest CtsMediaHostTestCases (with corresponding CLs for cts)
Change-Id: I09a8be6d3f2780ca97b6b08cd33ccf35b02c245f
- Adds a map to store information about audio devices using absolute
volume behavior. The map is updated when devices change behavior.
- setStreamVolume and adjustStreamVolume now notify absolute volume
listeners after changing the stream state.
- Added option for absolute volume dispatcher to dispatch abstract
volume adjustments (e.g. raise, lower, mute) as a result of calls to
adjustStreamVolume. When registering the listener, the controller
specifies whether it handles adjustments; if it does, future calls to
adjustStreamVolume are forwarded to the controller without affecting
stream state.
- Refactoring to support the changes above:
- rescaleIndex is generalized to allow converting between stream and
absolute volume ranges.
- Volume adjustment mode constants are moved into
AudioDeviceVolumeManager because they are needed when dispatching
volume adjustments to absolute volume controllers.
Bug: 205817863
Test: atest AbsoluteVolumeBehaviorTest
Change-Id: Ie5fb2179adea2096bd2d226fe73b4f09b28b0cf1
Add APIs for registering and unregistering a listener
for changes to any device's volume behavior.
Bug: 201781907
Test: atest DeviceVolumeBehaviorTest
Change-Id: I75b6463a73109e624ffd14b14bae3f829974f3ea
Address feedback from API council
Bug: 219501014
Test: atest android.media.tv.interactive.cts.TvInteractiveAppServiceTest
Change-Id: I655483db22b9a5ad3c3e30200f887fe49e73f240
Detailed call sequence can be found at
go/tiaf-use-cases
And add INTENT_KEY_COMMAND_TYPE
Bug: 224121339
Bug: 225082750
Test: atest testRequestSigning
Test: atest testSendSigningResult
Change-Id: I32b7e77dc7fc357ce168f486c28c16863bbbb3bf
Address API council feedback to have the output change listener
report the current output upon registration.
Bug: 203004903
Test: atest SpatializerTest
Change-Id: I858a5efef91ad113d02af6734b7b625460f29634
Add getter and listener for tracking whether a head tracker
is available to be used on the current media device when the
spatializer effect is enabled.
Bug: 223725590
Test: atest SpatializerTest
Change-Id: I5d3746f9ab1935843be0d94314943083e98b5d2c
Introduces layer mirorring of a single task, given the task is both
identified (future work - dependency on setup flow in SysUI) and the
flag is enabled (currently disabled).
Error handling (tearing down the VirtualDisplay if task recording setup failed)
will come in a future change
Bug: 216625226
Test: atest WmTests:DisplayContentTests
Test: atest WmTests:ContentRecorderTests
Change-Id: I16abd55ce75537ff8fbbb379e4970668ea02a230