audio: add call audio redirection APIs
Add AudioManager system APIs to acquire call audio injection AudioTrack and extraction AudioRecord. Add AudioTrack and AudioRecord Builder system APIs to create different variants of call redirection AudioTrack and AudioRecord: - If the call is PSTN, only the AudioTrack or AudioRecord is created with audio usage or capture preset corresponding to call audio uplink injection or downlink capture. - If the call is VoIP, a dynamic audio policy is installed for voice communication interception and the AudioTrack or AudioRecord is obtained from the audio policy. Bug: 189472651 Test: make Change-Id: I6d3ed3948c13253ceea4a0fab836a753b5ee9ad0
Loading
Please register or sign in to comment