Home
last modified time | relevance | path

Searched refs:AudioDeviceInfo (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/media/java/android/media/audiofx/
DVirtualizer.java20 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 …]
DAudioEffect.java29 import android.media.AudioDeviceInfo;
501 deviceType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in AudioEffect()
/frameworks/base/media/java/android/media/
DAudioDeviceAttributes.java63 private final @AudioDeviceInfo.AudioDeviceType int mType;
81 public AudioDeviceAttributes(@NonNull AudioDeviceInfo deviceInfo) { in AudioDeviceAttributes()
96 public AudioDeviceAttributes(@Role int role, @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAttributes()
103 AudioDeviceInfo.enforceValidAudioDeviceTypeOut(type); in AudioDeviceAttributes()
106 AudioDeviceInfo.enforceValidAudioDeviceTypeIn(type); in AudioDeviceAttributes()
116 mType = AudioDeviceInfo.convertInternalDeviceToDeviceType(nativeType); in AudioDeviceAttributes()
136 public @AudioDeviceInfo.AudioDeviceType int getType() { in getType()
176 AudioDeviceInfo.convertDeviceTypeToInternalDevice(mType)) in toString()
178 AudioDeviceInfo.convertDeviceTypeToInternalDevice(mType))) in toString()
DAudioRouting.java35 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo); in setPreferredDevice()
41 public AudioDeviceInfo getPreferredDevice(); in getPreferredDevice()
49 public AudioDeviceInfo getRoutedDevice(); in getRoutedDevice()
DHwAudioSource.java35 private final AudioDeviceInfo mAudioDeviceInfo;
48 private HwAudioSource(@NonNull AudioDeviceInfo device, @NonNull AudioAttributes attributes) { in HwAudioSource()
179 private AudioDeviceInfo mAudioDeviceInfo;
205 public @NonNull Builder setAudioDeviceInfo(@NonNull AudioDeviceInfo info) { in setAudioDeviceInfo()
DAudioDeviceCallback.java31 public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) {} in onAudioDevicesAdded()
39 public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) {} in onAudioDevicesRemoved()
DMediaRoute2Info.java129 public static final int TYPE_BUILTIN_SPEAKER = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER;
137 public static final int TYPE_WIRED_HEADSET = AudioDeviceInfo.TYPE_WIRED_HEADSET;
145 public static final int TYPE_WIRED_HEADPHONES = AudioDeviceInfo.TYPE_WIRED_HEADPHONES;
154 public static final int TYPE_BLUETOOTH_A2DP = AudioDeviceInfo.TYPE_BLUETOOTH_A2DP;
162 public static final int TYPE_HDMI = AudioDeviceInfo.TYPE_HDMI;
170 public static final int TYPE_USB_DEVICE = AudioDeviceInfo.TYPE_USB_DEVICE;
178 public static final int TYPE_USB_ACCESSORY = AudioDeviceInfo.TYPE_USB_ACCESSORY;
186 public static final int TYPE_DOCK = AudioDeviceInfo.TYPE_DOCK;
194 public static final int TYPE_USB_HEADSET = AudioDeviceInfo.TYPE_USB_HEADSET;
202 public static final int TYPE_HEARING_AID = AudioDeviceInfo.TYPE_HEARING_AID;
DAudioManager.java1063 @AudioDeviceInfo.AudioDeviceTypeOut int deviceType) { in getStreamVolumeDb()
1070 if (!AudioDeviceInfo.isValidAudioDeviceTypeOut(deviceType)) { in getStreamVolumeDb()
1074 AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getStreamVolumeDb()
4737 AudioDeviceInfo.enforceValidAudioDeviceTypeOut(deviceType); in getDeviceVolumeBehavior()
4968 @NonNull AudioDeviceInfo device, @IntRange(from = 0) long delayMillis) { in setAdditionalOutputDeviceDelay()
4984 public long getAdditionalOutputDeviceDelay(@NonNull AudioDeviceInfo device) { in getAdditionalOutputDeviceDelay()
5002 public long getMaxAdditionalOutputDeviceDelay(@NonNull AudioDeviceInfo device) { in getMaxAdditionalOutputDeviceDelay()
5561 return AudioDeviceInfo.convertInternalDeviceToDeviceType(port.type()) != in checkTypes()
5562 AudioDeviceInfo.TYPE_UNKNOWN; in checkTypes()
5575 public AudioDeviceInfo[] getDevices(@AudioDeviceRole int flags) { in getDevices()
[all …]
DMediaRecorder.java1436 private AudioDeviceInfo mPreferredDevice = null;
1447 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice()
1466 public AudioDeviceInfo getPreferredDevice() { in getPreferredDevice()
1479 public AudioDeviceInfo getRoutedDevice() { in getRoutedDevice()
1484 AudioDeviceInfo[] devices = in getRoutedDevice()
1578 AudioDeviceInfo device = getRoutedDevice(); in getActiveMicrophones()
DAudioDeviceInfo.java32 public final class AudioDeviceInfo { class
309 AudioDeviceInfo that = (AudioDeviceInfo) o; in equals()
320 AudioDeviceInfo(AudioDevicePort port) { in AudioDeviceInfo() method in AudioDeviceInfo
DAudioRecord.java1561 public AudioDeviceInfo getRoutedDevice() { in getRoutedDevice()
1566 AudioDeviceInfo[] devices = in getRoutedDevice()
1732 private AudioDeviceInfo mPreferredDevice = null;
1743 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice()
1764 public AudioDeviceInfo getPreferredDevice() { in getPreferredDevice()
1798 AudioDeviceInfo device = getRoutedDevice(); in getActiveMicrophones()
DAudioRecordingConfiguration.java251 public AudioDeviceInfo getAudioDevice() { in getAudioDevice()
265 final AudioDeviceInfo[] devices = in getAudioDevice()
DMicrophoneInfo.java226 return AudioDeviceInfo.convertInternalDeviceToDeviceType(mType); in getType()
DAudioTrack.java3428 private AudioDeviceInfo mPreferredDevice = null;
3439 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice()
3459 public AudioDeviceInfo getPreferredDevice() { in getPreferredDevice()
3471 public AudioDeviceInfo getRoutedDevice() { in getRoutedDevice()
3476 AudioDeviceInfo[] devices = in getRoutedDevice()
DMediaPlayer.java1421 private AudioDeviceInfo mPreferredDevice = null;
1432 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice()
1451 public AudioDeviceInfo getPreferredDevice() { in getPreferredDevice()
1464 public AudioDeviceInfo getRoutedDevice() { in getRoutedDevice()
1469 AudioDeviceInfo[] devices = in getRoutedDevice()
DAudioSystem.java1678 AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()), in setPreferredDeviceForStrategy()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java29 import android.media.AudioDeviceInfo;
423 public boolean setUidDeviceAffinity(int uid, @NonNull List<AudioDeviceInfo> devices) { in setUidDeviceAffinity()
434 for (AudioDeviceInfo device : devices) { in setUidDeviceAffinity()
440 AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setUidDeviceAffinity()
525 @NonNull List<AudioDeviceInfo> devices) { in setUserIdDeviceAffinity()
534 for (AudioDeviceInfo device : devices) { in setUserIdDeviceAffinity()
540 AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setUserIdDeviceAffinity()
DAudioMix.java24 import android.media.AudioDeviceInfo;
394 public Builder setDevice(@NonNull AudioDeviceInfo device) throws IllegalArgumentException { in setDevice()
401 mDeviceSystemType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(device.getType()); in setDevice()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceAudioSystem.java29 import android.media.AudioDeviceInfo;
670 AudioDeviceInfo deviceInfo = getSystemAudioDeviceInfo(); in handleRequestShortAudioDescriptor()
690 AudioDeviceInfo deviceInfo, @AudioCodec int[] audioFormatCodes) { in getSupportedShortAudioDescriptors()
757 AudioDeviceInfo deviceInfo, @AudioCodec int audioFormatCode) { in getSupportedShortAudioDescriptor()
786 private byte[] getLpcmShortAudioDescriptor(AudioDeviceInfo deviceInfo) { in getLpcmShortAudioDescriptor()
792 private AudioDeviceInfo getSystemAudioDeviceInfo() { in getSystemAudioDeviceInfo()
799 AudioDeviceInfo[] devices = audioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); in getSystemAudioDeviceInfo()
801 for (AudioDeviceInfo device : devices) { in getSystemAudioDeviceInfo()
808 if (device.getType() == AudioDeviceInfo.TYPE_HDMI_ARC) { in getSystemAudioDeviceInfo()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java29 import android.media.AudioDeviceInfo;
162 && device.getType() == AudioDeviceInfo.TYPE_BUILTIN_EARPIECE) { in isVoiceCallOnEarpiece()
/frameworks/base/services/core/java/com/android/server/audio/
DRecordingActivityMonitor.java21 import android.media.AudioDeviceInfo;
156 final AudioDeviceInfo device = config.getAudioDevice(); in onRecordingConfigurationChanged()
DAudioService.java69 import android.media.AudioDeviceInfo;
4942 int audioSystemDeviceOut = AudioDeviceInfo.convertDeviceTypeToInternalDevice( in setDeviceVolumeBehavior()
4995 final int audioSystemDeviceOut = AudioDeviceInfo.convertDeviceTypeToInternalDevice( in getDeviceVolumeBehavior()
/frameworks/base/api/
Dtest-lint-baseline.txt182 BannedThrow: android.media.audiopolicy.AudioMix.Builder#setDevice(android.media.AudioDeviceInfo):
930 …ngNullability: android.media.audiopolicy.AudioMix.Builder#setDevice(android.media.AudioDeviceInfo):
Dsystem-current.txt4148 ctor public AudioDeviceAttributes(@NonNull android.media.AudioDeviceInfo);
4160 public final class AudioDeviceInfo {
4190 …ntRange(from=0) public long getAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo);
4194 …ange(from=0) public long getMaxAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo);
4209 …public boolean setAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo, @IntRange(fr…
4299 …lic android.media.HwAudioSource.Builder setAudioDeviceInfo(@NonNull android.media.AudioDeviceInfo);
4346 ….media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDeviceInfo) throws java.…
4379 …d public boolean setUidDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);
4380 …ublic boolean setUserIdDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);
/frameworks/base/non-updatable-api/
Dsystem-current.txt4096 ctor public AudioDeviceAttributes(@NonNull android.media.AudioDeviceInfo);
4108 public final class AudioDeviceInfo {
4138 …ntRange(from=0) public long getAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo);
4142 …ange(from=0) public long getMaxAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo);
4157 …public boolean setAdditionalOutputDeviceDelay(@NonNull android.media.AudioDeviceInfo, @IntRange(fr…
4247 …lic android.media.HwAudioSource.Builder setAudioDeviceInfo(@NonNull android.media.AudioDeviceInfo);
4294 ….media.audiopolicy.AudioMix.Builder setDevice(@NonNull android.media.AudioDeviceInfo) throws java.…
4327 …d public boolean setUidDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);
4328 …ublic boolean setUserIdDeviceAffinity(int, @NonNull java.util.List<android.media.AudioDeviceInfo>);

12