summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptCacheDir.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2020-10-09 09:52:49 -0700
committerEric Laurent <elaurent@google.com>2020-12-23 08:36:12 +0000
commitf39726f2620b152b03e2697fadc5283cd3e002d7 (patch)
tree8621fd2efe178e900d99e00a7cb7cebc68179310 /rs/java/android/renderscript/RenderScriptCacheDir.java
parentec51aa8207d0ecf0de270812870de01bfc8f3588 (diff)
AudioManager: Add communication device management APIs
Add new APIs to manage the audio device used for communication use cases (Cellular calls, VoIP and Video calls). These APIs are meant to replace specific APIs like setSpeakerPhoneOn() and provide a single generic way of configuring the audio device selected for calls. They will be used for newly added device types (e.g. BLE audio) instead of adding new specific APIs. They will also offer more options like for instance allowing to select the earpiece (handset) device when a wired headset is connected. The new APIs are: - boolean setDeviceForCommunication(AudioDeviceInfo) - void clearDeviceForCommunication() - AudioDeviceInfo getDeviceForCommunication() A listener is also added for applications to monitor current communication device selection: - OnCommunicationDeviceChangedListener As well as listener registration and unregistration APIs: - addOnCommunicationDeviceChangedListener() - removeOnCommunicationDeviceChangedListener() Bug: 161358428 Test: make && atest AudioCommunicationDeviceTest Change-Id: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362 Merged-In: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions