Skip to content
Commit 5789bf94 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Add context-aware AudioTrack construction APIs.

This cl also introduces new device policy type for audio.
The POLICY_TYPE_AUDIO is used to specialize AudioManager
behavior for device-specific context - if the context
belongs to VirtualDevice instance with custom device policy
for audio, it will try to extract the device specific session
id for that device from VDM. The device specific session aid
is used to aid virtual device audio routing.

The context-aware constructor and builder will be extended
in follow-up cls to extract AttributionSource from the Context
and pass it to the native layer.

The policy will be used to specialize AudioManager behavior for
device-specific context.

Bug: 261698699
Bug: 249777386
Test: atest VirtualDeviceParamsTest AudioTrackUnitTest AudioTrackTest
Change-Id: I558b508f06e8098a8fbebaa0560557af06cdd0f7
parent 547898c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment