/frameworks/base/media/java/android/media/audiofx/ |
D | Virtualizer.java | 20 import android.media.AudioDeviceInfo; 207 paramsConverter.putInt(AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getAnglesInt() 308 return AudioDeviceInfo.TYPE_WIRED_HEADPHONES; in getDeviceForModeQuery() 310 return AudioDeviceInfo.TYPE_BUILTIN_SPEAKER; in getDeviceForModeQuery() 320 return AudioDeviceInfo.TYPE_UNKNOWN; in getDeviceForModeForce() 328 case AudioDeviceInfo.TYPE_WIRED_HEADSET: in deviceToMode() 329 case AudioDeviceInfo.TYPE_WIRED_HEADPHONES: in deviceToMode() 330 case AudioDeviceInfo.TYPE_BLUETOOTH_SCO: in deviceToMode() 331 case AudioDeviceInfo.TYPE_BUILTIN_EARPIECE: in deviceToMode() 332 case AudioDeviceInfo.TYPE_USB_HEADSET: in deviceToMode() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | DeviceIconUtil.java | 22 import android.media.AudioDeviceInfo; 44 AudioDeviceInfo.TYPE_USB_DEVICE, in DeviceIconUtil() 48 AudioDeviceInfo.TYPE_USB_HEADSET, in DeviceIconUtil() 52 AudioDeviceInfo.TYPE_USB_ACCESSORY, in DeviceIconUtil() 56 AudioDeviceInfo.TYPE_DOCK, in DeviceIconUtil() 60 AudioDeviceInfo.TYPE_HDMI, in DeviceIconUtil() 64 AudioDeviceInfo.TYPE_WIRED_HEADSET, in DeviceIconUtil() 68 AudioDeviceInfo.TYPE_WIRED_HEADPHONES, in DeviceIconUtil() 72 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, in DeviceIconUtil() 84 @AudioDeviceInfo.AudioDeviceType int audioDeviceType, Context context) { in getIconFromAudioDeviceType() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | DeviceIconUtilTest.java | 21 import android.media.AudioDeviceInfo; 94 assertThat(mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_DEVICE)) in getIconResIdFromAudioDeviceType_usbDevice_isHeadphone() 101 mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_HEADSET)) in getIconResIdFromAudioDeviceType_usbHeadset_isHeadphone() 108 mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_ACCESSORY)) in getIconResIdFromAudioDeviceType_usbAccessory_isHeadphone() 114 assertThat(mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_DOCK)) in getIconResIdFromAudioDeviceType_dock_isHeadphone() 120 assertThat(mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_HDMI)) in getIconResIdFromAudioDeviceType_hdmi_isHeadphone() 127 mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_WIRED_HEADSET)) in getIconResIdFromAudioDeviceType_wiredHeadset_isHeadphone() 134 mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_WIRED_HEADPHONES)) in getIconResIdFromAudioDeviceType_wiredHeadphones_isHeadphone() 141 mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER)) in getIconResIdFromAudioDeviceType_builtinSpeaker_isSmartphone() 147 assertThat(mDeviceIconUtil.getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_UNKNOWN)) in getIconResIdFromAudioDeviceType_unsupportedType_isSmartphone()
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/media/ |
D | AudioDeviceAttributes.java | 22 import android.media.AudioDeviceInfo; 64 private final @AudioDeviceInfo.AudioDeviceType int mType; 83 public AudioDeviceAttributes(@NonNull AudioDeviceInfo deviceInfo) { in AudioDeviceAttributes() 99 @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAttributes() 113 mType = AudioDeviceInfo.convertInternalDeviceToDeviceType(nativeType); in AudioDeviceAttributes() 134 public @AudioDeviceInfo.AudioDeviceType int getType() { in getType() 174 AudioDeviceInfo.convertDeviceTypeToInternalDevice(mType)) in toString() 176 AudioDeviceInfo.convertDeviceTypeToInternalDevice(mType))) in toString()
|
/frameworks/base/media/java/android/media/ |
D | AudioDeviceAttributes.java | 67 private final @AudioDeviceInfo.AudioDeviceType int mType; 101 public AudioDeviceAttributes(@NonNull AudioDeviceInfo deviceInfo) { in AudioDeviceAttributes() 120 public AudioDeviceAttributes(@Role int role, @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAttributes() 136 public AudioDeviceAttributes(@Role int role, @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAttributes() 144 AudioDeviceInfo.enforceValidAudioDeviceTypeOut(type); in AudioDeviceAttributes() 145 mNativeType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(type); in AudioDeviceAttributes() 147 AudioDeviceInfo.enforceValidAudioDeviceTypeIn(type); in AudioDeviceAttributes() 148 mNativeType = AudioDeviceInfo.convertDeviceTypeToInternalInputDevice(type, address); in AudioDeviceAttributes() 181 mType = AudioDeviceInfo.convertInternalDeviceToDeviceType(nativeType); in AudioDeviceAttributes() 205 public @AudioDeviceInfo.AudioDeviceType int getType() { in getType()
|
D | AudioRouting.java | 35 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo); in setPreferredDevice() 41 public AudioDeviceInfo getPreferredDevice(); in getPreferredDevice() 49 public AudioDeviceInfo getRoutedDevice(); in getRoutedDevice()
|
D | AudioDeviceCallback.java | 31 public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) {} in onAudioDevicesAdded() 39 public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) {} in onAudioDevicesRemoved()
|
D | HwAudioSource.java | 37 private final AudioDeviceInfo mAudioDeviceInfo; 56 private HwAudioSource(@NonNull AudioDeviceInfo device, @NonNull AudioAttributes attributes) { in HwAudioSource() 218 private AudioDeviceInfo mAudioDeviceInfo; 244 public @NonNull Builder setAudioDeviceInfo(@NonNull AudioDeviceInfo info) { in setAudioDeviceInfo()
|
D | MediaRoute2Info.java | 130 public static final int TYPE_BUILTIN_SPEAKER = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER; 138 public static final int TYPE_WIRED_HEADSET = AudioDeviceInfo.TYPE_WIRED_HEADSET; 146 public static final int TYPE_WIRED_HEADPHONES = AudioDeviceInfo.TYPE_WIRED_HEADPHONES; 155 public static final int TYPE_BLUETOOTH_A2DP = AudioDeviceInfo.TYPE_BLUETOOTH_A2DP; 163 public static final int TYPE_HDMI = AudioDeviceInfo.TYPE_HDMI; 171 public static final int TYPE_USB_DEVICE = AudioDeviceInfo.TYPE_USB_DEVICE; 179 public static final int TYPE_USB_ACCESSORY = AudioDeviceInfo.TYPE_USB_ACCESSORY; 187 public static final int TYPE_DOCK = AudioDeviceInfo.TYPE_DOCK; 195 public static final int TYPE_USB_HEADSET = AudioDeviceInfo.TYPE_USB_HEADSET; 203 public static final int TYPE_HEARING_AID = AudioDeviceInfo.TYPE_HEARING_AID; [all …]
|
D | AudioManager.java | 1196 @AudioDeviceInfo.AudioDeviceTypeOut int deviceType) { in getStreamVolumeDb() 1203 if (!AudioDeviceInfo.isValidAudioDeviceTypeOut(deviceType)) { in getStreamVolumeDb() 1207 AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getStreamVolumeDb() 5855 public @NonNull List<AudioDeviceInfo> getAudioDevicesForAttributes( in getAudioDevicesForAttributes() 5868 AudioDeviceInfo[] outputDeviceInfos = getDevicesStatic(GET_DEVICES_OUTPUTS); in getAudioDevicesForAttributes() 5869 List<AudioDeviceInfo> deviceInfosForAttributes = new ArrayList<>(); in getAudioDevicesForAttributes() 5871 for (AudioDeviceInfo deviceInfo : outputDeviceInfos) { in getAudioDevicesForAttributes() 6232 @NonNull AudioDeviceInfo device, @IntRange(from = 0) long delayMillis) { in setAdditionalOutputDeviceDelay() 6252 public long getAdditionalOutputDeviceDelay(@NonNull AudioDeviceInfo device) { in getAdditionalOutputDeviceDelay() 6273 public long getMaxAdditionalOutputDeviceDelay(@NonNull AudioDeviceInfo device) { in getMaxAdditionalOutputDeviceDelay() [all …]
|
D | Ringtone.java | 168 private AudioDeviceInfo getBuiltinDevice(AudioManager audioManager) { in getBuiltinDevice() 169 AudioDeviceInfo[] deviceList = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getBuiltinDevice() 170 for (AudioDeviceInfo device : deviceList) { in getBuiltinDevice() 171 if (device.getType() == AudioDeviceInfo.TYPE_BUILTIN_SPEAKER) { in getBuiltinDevice()
|
D | AudioDeviceInfo.java | 35 public final class AudioDeviceInfo { class 381 AudioDeviceInfo that = (AudioDeviceInfo) o; in equals() 392 AudioDeviceInfo(AudioDevicePort port) { in AudioDeviceInfo() method in AudioDeviceInfo
|
D | MediaRecorder.java | 1646 private AudioDeviceInfo mPreferredDevice = null; 1657 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice() 1676 public AudioDeviceInfo getPreferredDevice() { in getPreferredDevice() 1689 public AudioDeviceInfo getRoutedDevice() { in getRoutedDevice() 1781 AudioDeviceInfo device = getRoutedDevice(); in getActiveMicrophones()
|
D | MicrophoneInfo.java | 227 return AudioDeviceInfo.convertInternalDeviceToDeviceType(mType); in getType()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceBroker.java | 31 import android.media.AudioDeviceInfo; 96 private AudioDeviceInfo mActiveCommunicationDevice; 320 IBinder cb, int pid, AudioDeviceInfo device, String eventSource) { in setCommunicationDevice() 439 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, 440 AudioDeviceInfo.TYPE_BLUETOOTH_SCO, 441 AudioDeviceInfo.TYPE_WIRED_HEADSET, 442 AudioDeviceInfo.TYPE_USB_HEADSET, 443 AudioDeviceInfo.TYPE_BUILTIN_EARPIECE, 444 AudioDeviceInfo.TYPE_WIRED_HEADPHONES, 445 AudioDeviceInfo.TYPE_HEARING_AID, [all …]
|
D | SpatializerHelper.java | 26 import android.media.AudioDeviceInfo; 81 append(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, SpatializationMode.SPATIALIZER_TRANSAURAL); 82 append(AudioDeviceInfo.TYPE_WIRED_HEADSET, SpatializationMode.SPATIALIZER_BINAURAL); 83 append(AudioDeviceInfo.TYPE_WIRED_HEADPHONES, SpatializationMode.SPATIALIZER_BINAURAL); 85 append(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, SpatializationMode.SPATIALIZER_BINAURAL); 86 append(AudioDeviceInfo.TYPE_DOCK, SpatializationMode.SPATIALIZER_TRANSAURAL); 87 append(AudioDeviceInfo.TYPE_USB_ACCESSORY, SpatializationMode.SPATIALIZER_TRANSAURAL); 88 append(AudioDeviceInfo.TYPE_USB_DEVICE, SpatializationMode.SPATIALIZER_TRANSAURAL); 89 append(AudioDeviceInfo.TYPE_USB_HEADSET, SpatializationMode.SPATIALIZER_BINAURAL); 90 append(AudioDeviceInfo.TYPE_LINE_ANALOG, SpatializationMode.SPATIALIZER_TRANSAURAL); [all …]
|
/frameworks/layoutlib/bridge/src/android/media/ |
D | AudioManager.java | 433 public boolean setAdditionalOutputDeviceDelay(AudioDeviceInfo device, long delayMillis) { in setAdditionalOutputDeviceDelay() 437 public long getAdditionalOutputDeviceDelay(AudioDeviceInfo device) { in getAdditionalOutputDeviceDelay() 441 public long getMaxAdditionalOutputDeviceDelay(AudioDeviceInfo device) { in getMaxAdditionalOutputDeviceDelay() 483 public AudioDeviceInfo[] getDevices(int flags) { in getDevices() 540 public boolean setDeviceForCommunication(AudioDeviceInfo device) { in setDeviceForCommunication() 546 public AudioDeviceInfo getDeviceForCommunication() { in getDeviceForCommunication() 555 void onCommunicationDeviceChanged(AudioDeviceInfo var1); in onCommunicationDeviceChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | SpatializerHelperTest.java | 29 import android.media.AudioDeviceInfo; 98 SADeviceState devState = new SADeviceState(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, null); in testSADeviceStateNullAddressCtor() 99 devState = new SADeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, null); in testSADeviceStateNullAddressCtor() 109 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, "bla"); in testSADeviceStateStringSerialization()
|
D | DeviceVolumeBehaviorTest.java | 25 import android.media.AudioDeviceInfo; 43 AudioDeviceAttributes.ROLE_OUTPUT, AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, "");
|
D | AbsoluteVolumeBehaviorTest.java | 32 import android.media.AudioDeviceInfo; 53 AudioDeviceAttributes.ROLE_OUTPUT, AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, "");
|
D | AudioDeviceVolumeManagerTest.java | 25 import android.media.AudioDeviceInfo;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/muteawait/ |
D | MediaMuteAwaitConnectionManagerTest.kt | 24 import android.media.AudioDeviceInfo 157 AudioDeviceInfo.TYPE_USB_HEADSET, in onUnmutedEvent_notSameDevice_localMediaManagerNotNotified() 238 AudioDeviceInfo.TYPE_USB_HEADSET,
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDeviceAudioSystem.java | 33 import android.media.AudioDeviceInfo; 493 AudioDeviceInfo deviceInfo = getSystemAudioDeviceInfo(); in handleRequestShortAudioDescriptor() 512 AudioDeviceInfo deviceInfo, @AudioCodec int[] audioFormatCodes) { in getSupportedShortAudioDescriptors() 579 AudioDeviceInfo deviceInfo, @AudioCodec int audioFormatCode) { in getSupportedShortAudioDescriptor() 608 private byte[] getLpcmShortAudioDescriptor(AudioDeviceInfo deviceInfo) { in getLpcmShortAudioDescriptor() 614 private AudioDeviceInfo getSystemAudioDeviceInfo() { in getSystemAudioDeviceInfo() 621 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in getSystemAudioDeviceInfo() 623 for (AudioDeviceInfo device : devices) { in getSystemAudioDeviceInfo() 629 if (device.getType() == AudioDeviceInfo.TYPE_HDMI_ARC) { in getSystemAudioDeviceInfo()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 30 import android.media.AudioDeviceInfo; 422 public boolean setUidDeviceAffinity(int uid, @NonNull List<AudioDeviceInfo> devices) { in setUidDeviceAffinity() 433 for (AudioDeviceInfo device : devices) { in setUidDeviceAffinity() 439 AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setUidDeviceAffinity() 521 @NonNull List<AudioDeviceInfo> devices) { in setUserIdDeviceAffinity() 530 for (AudioDeviceInfo device : devices) { in setUserIdDeviceAffinity() 536 AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setUserIdDeviceAffinity()
|
D | AudioMix.java | 23 import android.media.AudioDeviceInfo; 398 public Builder setDevice(@NonNull AudioDeviceInfo device) throws IllegalArgumentException { in setDevice() 405 mDeviceSystemType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setDevice()
|