Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/data/repository/
DTestAudioDevicesFactory.kt20 import android.media.AudioDeviceInfo
26 fun builtInDevice(deviceName: String = "built_in"): AudioDeviceInfo { in builtInDevice()
27 return AudioDeviceInfo( in builtInDevice()
29 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, in builtInDevice()
39 ): AudioDeviceInfo { in wiredDevice()
40 return AudioDeviceInfo( in wiredDevice()
42 AudioDeviceInfo.TYPE_WIRED_HEADPHONES, in wiredDevice()
52 ): AudioDeviceInfo { in bluetoothDevice()
53 return AudioDeviceInfo( in bluetoothDevice()
55 AudioDeviceInfo.TYPE_BLE_HEADSET, in bluetoothDevice()
DFakeAudioRepository.kt19 import android.media.AudioDeviceInfo
38 private val mutableCommunicationDevice = MutableStateFlow<AudioDeviceInfo?>(null)
39 override val communicationDevice: StateFlow<AudioDeviceInfo?> =
91 fun setCommunicationDevice(device: AudioDeviceInfo?) { in setCommunicationDevice()
/frameworks/base/media/java/android/media/audiofx/
DVirtualizer.java20 import android.media.AudioDeviceInfo;
212 paramsConverter.putInt(AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType)); in getAnglesInt()
313 return AudioDeviceInfo.TYPE_WIRED_HEADPHONES; in getDeviceForModeQuery()
315 return AudioDeviceInfo.TYPE_BUILTIN_SPEAKER; in getDeviceForModeQuery()
325 return AudioDeviceInfo.TYPE_UNKNOWN; in getDeviceForModeForce()
333 case AudioDeviceInfo.TYPE_WIRED_HEADSET: in deviceToMode()
334 case AudioDeviceInfo.TYPE_WIRED_HEADPHONES: in deviceToMode()
335 case AudioDeviceInfo.TYPE_BLUETOOTH_SCO: in deviceToMode()
336 case AudioDeviceInfo.TYPE_BUILTIN_EARPIECE: in deviceToMode()
337 case AudioDeviceInfo.TYPE_USB_HEADSET: in deviceToMode()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DDeviceIconUtilTest.java22 import android.media.AudioDeviceInfo;
212 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_DEVICE)) in getIconResIdFromAudioDeviceType_usbDevice_isHeadphone()
215 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_DEVICE)) in getIconResIdFromAudioDeviceType_usbDevice_isHeadphone()
222 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_HEADSET)) in getIconResIdFromAudioDeviceType_usbHeadset_isHeadphone()
225 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_HEADSET)) in getIconResIdFromAudioDeviceType_usbHeadset_isHeadphone()
232 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_ACCESSORY)) in getIconResIdFromAudioDeviceType_usbAccessory_isHeadphone()
239 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_USB_ACCESSORY)) in getIconResIdFromAudioDeviceType_tv_usbAccessory_isUsb()
246 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_DOCK)) in getIconResIdFromAudioDeviceType_dock_isDock()
249 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_DOCK)) in getIconResIdFromAudioDeviceType_dock_isDock()
256 .getIconResIdFromAudioDeviceType(AudioDeviceInfo.TYPE_HDMI)) in getIconResIdFromAudioDeviceType_hdmi_isExternalDisplay()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DAudioManagerRouteController.java32 import android.media.AudioDeviceInfo;
298 selectedDeviceAttributesType = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER; in rebuildAvailableRoutes()
341 AudioDeviceInfo[] audioDeviceInfos, in updateAvailableRoutes()
348 for (AudioDeviceInfo audioDeviceInfo : audioDeviceInfos) { in updateAvailableRoutes()
402 int type = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER; in createPlaceholderBuiltinSpeakerRoute()
411 AudioDeviceInfo audioDeviceInfo) { in createMediaRoute2InfoFromAudioDeviceInfo()
506 /* audioDeviceInfoType= */ AudioDeviceInfo.TYPE_UNKNOWN, in createForInactiveBluetoothRoute()
572 public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) { in onAudioDevicesAdded()
573 for (AudioDeviceInfo deviceInfo : addedDevices) { in onAudioDevicesAdded()
592 public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) { in onAudioDevicesRemoved()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DDeviceIconUtil.java19 import static android.media.AudioDeviceInfo.AudioDeviceType;
20 import static android.media.AudioDeviceInfo.TYPE_BUILTIN_SPEAKER;
21 import static android.media.AudioDeviceInfo.TYPE_DOCK;
22 import static android.media.AudioDeviceInfo.TYPE_HDMI;
23 import static android.media.AudioDeviceInfo.TYPE_HDMI_ARC;
24 import static android.media.AudioDeviceInfo.TYPE_HDMI_EARC;
25 import static android.media.AudioDeviceInfo.TYPE_USB_ACCESSORY;
26 import static android.media.AudioDeviceInfo.TYPE_USB_DEVICE;
27 import static android.media.AudioDeviceInfo.TYPE_USB_HEADSET;
28 import static android.media.AudioDeviceInfo.TYPE_WIRED_HEADPHONES;
[all …]
/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/
DAudioManagerRouteControllerTest.java43 import android.media.AudioDeviceInfo;
79 private static final AudioDeviceInfo FAKE_AUDIO_DEVICE_INFO_BUILTIN_SPEAKER =
82 private static final AudioDeviceInfo FAKE_AUDIO_DEVICE_INFO_WIRED_HEADSET =
85 private static final AudioDeviceInfo FAKE_AUDIO_DEVICE_INFO_BLUETOOTH_A2DP =
89 private static final AudioDeviceInfo FAKE_AUDIO_DEVICE_BUILTIN_EARPIECE =
93 private static final AudioDeviceInfo FAKE_AUDIO_DEVICE_NO_NAME =
100 private AudioDeviceInfo mSelectedAudioDeviceInfo;
101 private Set<AudioDeviceInfo> mAvailableAudioDeviceInfos;
244 createAudioDeviceAttribute(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER)); in transferTo_setsTheExpectedRoutingPolicy()
252 createAudioDeviceAttribute(AudioDeviceInfo.TYPE_WIRED_HEADSET)); in transferTo_setsTheExpectedRoutingPolicy()
[all …]
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/media/
DAudioDeviceAttributes.java22 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/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractor.kt21 import android.media.AudioDeviceInfo in <lambda>()
161 AudioDeviceInfo.TYPE_BLE_HEADSET, in <lambda>()
166 AudioDeviceInfo.TYPE_BLE_SPEAKER, in <lambda>()
171 AudioDeviceInfo.TYPE_BLE_BROADCAST, in <lambda>()
176 AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in <lambda>()
181 AudioDeviceInfo.TYPE_HEARING_AID, in <lambda>()
203 AudioDeviceInfo.TYPE_BLUETOOTH_A2DP in <lambda>()
212 AudioDeviceInfo.TYPE_BLE_SPEAKER in <lambda>()
213 else -> AudioDeviceInfo.TYPE_BLE_HEADSET in <lambda>()
217 AudioDeviceInfo.TYPE_HEARING_AID in <lambda>()
[all …]
/frameworks/base/media/java/android/media/
DAudioDeviceAttributes.java67 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()
220 public @AudioDeviceInfo.AudioDeviceType int getType() { in getType()
DAudioRouting.java35 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo); in setPreferredDevice()
41 public AudioDeviceInfo getPreferredDevice(); in getPreferredDevice()
49 public AudioDeviceInfo getRoutedDevice(); in getRoutedDevice()
DAudioDeviceCallback.java31 public void onAudioDevicesAdded(AudioDeviceInfo[] addedDevices) {} in onAudioDevicesAdded()
39 public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) {} in onAudioDevicesRemoved()
DHwAudioSource.java37 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()
DMediaRoute2Info.java186 public static final int TYPE_BUILTIN_SPEAKER = AudioDeviceInfo.TYPE_BUILTIN_SPEAKER;
193 public static final int TYPE_WIRED_HEADSET = AudioDeviceInfo.TYPE_WIRED_HEADSET;
200 public static final int TYPE_WIRED_HEADPHONES = AudioDeviceInfo.TYPE_WIRED_HEADPHONES;
207 public static final int TYPE_BLUETOOTH_A2DP = AudioDeviceInfo.TYPE_BLUETOOTH_A2DP;
214 public static final int TYPE_HDMI = AudioDeviceInfo.TYPE_HDMI;
222 public static final int TYPE_HDMI_ARC = AudioDeviceInfo.TYPE_HDMI_ARC;
230 public static final int TYPE_HDMI_EARC = AudioDeviceInfo.TYPE_HDMI_EARC;
237 public static final int TYPE_USB_DEVICE = AudioDeviceInfo.TYPE_USB_DEVICE;
244 public static final int TYPE_USB_ACCESSORY = AudioDeviceInfo.TYPE_USB_ACCESSORY;
251 public static final int TYPE_DOCK = AudioDeviceInfo.TYPE_DOCK;
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelper.java22 import android.media.AudioDeviceInfo;
116 AudioDeviceInfo[] audioDevices = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS); in getMatchedHearingDeviceAttributes()
117 for (AudioDeviceInfo audioDevice : audioDevices) { in getMatchedHearingDeviceAttributes()
119 if (audioDevice.getType() == AudioDeviceInfo.TYPE_HEARING_AID in getMatchedHearingDeviceAttributes()
120 || audioDevice.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET) { in getMatchedHearingDeviceAttributes()
129 private boolean matchAddress(CachedBluetoothDevice device, AudioDeviceInfo audioDevice) { in matchAddress()
DHearingAidAudioRoutingConstants.java21 import android.media.AudioDeviceInfo;
74 AudioDeviceAttributes.ROLE_OUTPUT, AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, "");
/frameworks/base/services/core/java/com/android/server/audio/
DAdiDeviceState.java29 import android.media.AudioDeviceInfo;
50 @AudioDeviceInfo.AudioDeviceType
79 AdiDeviceState(@AudioDeviceInfo.AudioDeviceType int deviceType, in AdiDeviceState()
86 mInternalDeviceType = AudioDeviceInfo.convertDeviceTypeToInternalDevice(deviceType); in AdiDeviceState()
99 @AudioDeviceInfo.AudioDeviceType
138 @AudioDeviceInfo.AudioDeviceType
144 @AudioDeviceInfo.AudioDeviceType int audioDeviceCategory) { in setAudioDeviceCategory()
DSpatializerHelper.java34 import android.media.AudioDeviceInfo;
90 append(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, Spatialization.Mode.TRANSAURAL);
94 append(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER_SAFE, Spatialization.Mode.TRANSAURAL);
95 append(AudioDeviceInfo.TYPE_WIRED_HEADSET, Spatialization.Mode.BINAURAL);
96 append(AudioDeviceInfo.TYPE_WIRED_HEADPHONES, Spatialization.Mode.BINAURAL);
98 append(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, Spatialization.Mode.BINAURAL);
99 append(AudioDeviceInfo.TYPE_DOCK, Spatialization.Mode.TRANSAURAL);
100 append(AudioDeviceInfo.TYPE_USB_ACCESSORY, Spatialization.Mode.TRANSAURAL);
101 append(AudioDeviceInfo.TYPE_USB_DEVICE, Spatialization.Mode.TRANSAURAL);
102 append(AudioDeviceInfo.TYPE_USB_HEADSET, Spatialization.Mode.BINAURAL);
[all …]
DAudioDeviceBroker.java33 import android.media.AudioDeviceInfo;
109 /*package*/ AudioDeviceInfo mActiveCommunicationDevice;
328 /*package*/ boolean setCommunicationDevice(IBinder cb, int uid, AudioDeviceInfo device, in setCommunicationDevice()
489 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER,
490 AudioDeviceInfo.TYPE_BLUETOOTH_SCO,
491 AudioDeviceInfo.TYPE_WIRED_HEADSET,
492 AudioDeviceInfo.TYPE_USB_HEADSET,
493 AudioDeviceInfo.TYPE_BUILTIN_EARPIECE,
494 AudioDeviceInfo.TYPE_WIRED_HEADPHONES,
495 AudioDeviceInfo.TYPE_HEARING_AID,
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelperTest.java32 import android.media.AudioDeviceInfo;
70 private AudioDeviceInfo mAudioDeviceInfo;
81 when(mAudioDeviceInfo.getType()).thenReturn(AudioDeviceInfo.TYPE_HEARING_AID); in setUp()
84 new AudioDeviceInfo[]{mAudioDeviceInfo}); in setUp()
93 AudioDeviceInfo.TYPE_HEARING_AID, in setUp()
135 AudioDeviceAttributes.ROLE_OUTPUT, AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, ""); in setPreferredDeviceRoutingStrategies_valueDeviceSpeaker_callSetStrategy()
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java433 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/packages/SystemUI/src/com/android/systemui/volume/domain/interactor/
DDeviceIconInteractor.kt22 import android.media.AudioDeviceInfo
38 fun loadIcon(@AudioDeviceInfo.AudioDeviceType type: Int): Drawable? = in loadIcon()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java46 import android.media.AudioDeviceInfo;
227 new AdiDeviceState(AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, in testAdiDeviceStateNullAddressCtor()
229 new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testAdiDeviceStateNullAddressCtor()
239 AudioDeviceInfo.TYPE_BUILTIN_SPEAKER, AudioManager.DEVICE_OUT_SPEAKER, "bla"); in testAdiDeviceStateStringSerialization()
261 final AdiDeviceState devState = new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testIsBluetoothAudioDeviceCategoryFixed()
302 final AdiDeviceState devState = new AdiDeviceState(AudioDeviceInfo.TYPE_BLUETOOTH_A2DP, in testGetAndUpdateBtAdiDeviceStateCategoryForAddress()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DExternalDisplayStatsServiceTest.java19 import static android.media.AudioDeviceInfo.TYPE_BUILTIN_SPEAKER;
20 import static android.media.AudioDeviceInfo.TYPE_HDMI;
38 import android.media.AudioDeviceInfo;
329 var mockedInfoHdmi = mock(AudioDeviceInfo.class); in createAudioConfigs()
335 var mockedInfoPhone = mock(AudioDeviceInfo.class); in createAudioConfigs()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/domain/interactor/
DSpatializerInteractorTest.kt20 import android.media.AudioDeviceInfo
88 AudioDeviceInfo.TYPE_BLE_HEADSET,

123