Home
last modified time | relevance | path

Searched refs:audioDeviceInfo (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java65 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices() local
66 when(audioDeviceInfo.getPort()).thenReturn(null); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices()
67 when(audioDeviceInfo.getType()).thenReturn(TYPE_BUS); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices()
68 when(audioDeviceInfo.getAddress()).thenReturn(TEST_ADDRESS); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices()
71 () -> info.setAudioDeviceInfo(audioDeviceInfo)); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices()
81 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in setAudioDeviceInfo_doesNotRequiresNonNullGain_forNonBusDevices() local
82 when(audioDeviceInfo.getPort()).thenReturn(null); in setAudioDeviceInfo_doesNotRequiresNonNullGain_forNonBusDevices()
83 when(audioDeviceInfo.getType()).thenReturn(TYPE_BLUETOOTH_A2DP); in setAudioDeviceInfo_doesNotRequiresNonNullGain_forNonBusDevices()
85 info.setAudioDeviceInfo(audioDeviceInfo); in setAudioDeviceInfo_doesNotRequiresNonNullGain_forNonBusDevices()
96 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in setAudioDeviceInfo_requiresJointModeGain() local
[all …]
DAudioDeviceInfoBuilder.java62 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in build() local
63 when(audioDeviceInfo.getAddress()).thenReturn(mAddressName); in build()
64 when(audioDeviceInfo.getType()).thenReturn(mDeviceType); in build()
65 when(audioDeviceInfo.isSource()).thenReturn(mIsSource); in build()
66 when(audioDeviceInfo.isSink()).thenReturn(!mIsSource); in build()
67 when(audioDeviceInfo.getInternalType()) in build()
69 when(audioDeviceInfo.getPort()).thenReturn(port); in build()
70 return audioDeviceInfo; in build()
DAudioPlaybackConfigurationBuilder.java72 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local
73 when(audioDeviceInfo.getAddress()).thenReturn(address); in generateOutAudioDeviceInfo()
74 when(audioDeviceInfo.getType()).thenReturn(AudioDeviceInfo.TYPE_BUS); in generateOutAudioDeviceInfo()
75 when(audioDeviceInfo.isSource()).thenReturn(false); in generateOutAudioDeviceInfo()
76 when(audioDeviceInfo.isSink()).thenReturn(true); in generateOutAudioDeviceInfo()
77 when(audioDeviceInfo.getInternalType()).thenReturn(AudioDeviceInfo in generateOutAudioDeviceInfo()
79 return audioDeviceInfo; in generateOutAudioDeviceInfo()
DCarAudioZoneUnitTest.java625 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in isAudioDeviceInfoValidForZone() local
626 when(mMockZoneConfig0.isAudioDeviceInfoValidForZone(audioDeviceInfo)).thenReturn(false); in isAudioDeviceInfoValidForZone()
627 when(mMockZoneConfig1.isAudioDeviceInfoValidForZone(audioDeviceInfo)).thenReturn(true); in isAudioDeviceInfoValidForZone()
632 .that(mTestAudioZone.isAudioDeviceInfoValidForZone(audioDeviceInfo)).isFalse(); in isAudioDeviceInfoValidForZone()
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/audio/
DAudioDeviceInfoBuilder.java73 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in build() local
74 when(audioDeviceInfo.getAddress()).thenReturn(mAddressName); in build()
75 when(audioDeviceInfo.isSource()).thenReturn(mIsSource); in build()
76 return audioDeviceInfo; in build()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioDynamicRoutingTest.java321 boolean canBeRoutedWithDynamicPolicyMix, AudioDeviceInfo audioDeviceInfo) { in getCarAudioDeviceInfo() argument
322 when(audioDeviceInfo.isSink()).thenReturn(true); in getCarAudioDeviceInfo()
323 when(audioDeviceInfo.getType()).thenReturn(AudioDeviceInfo.TYPE_BUS); in getCarAudioDeviceInfo()
324 when(audioDeviceInfo.getAddress()).thenReturn(address); in getCarAudioDeviceInfo()
325 AudioDeviceAttributes deviceAttributes = new AudioDeviceAttributes(audioDeviceInfo); in getCarAudioDeviceInfo()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java604 AudioDeviceInfo audioDeviceInfo = mAudioManager.getCommunicationDevice(); in clearLeAudioCommunicationDevice() local
605 if (audioDeviceInfo != null && audioDeviceInfo.getType() in clearLeAudioCommunicationDevice()
607 mBluetoothRouteManager.onAudioLost(audioDeviceInfo.getAddress()); in clearLeAudioCommunicationDevice()
629 AudioDeviceInfo audioDeviceInfo = mAudioManager.getCommunicationDevice(); in clearHearingAidCommunicationDevice() local
630 if (audioDeviceInfo != null && audioDeviceInfo.getType() in clearHearingAidCommunicationDevice()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDynamicRouting.java153 AudioDeviceInfo audioDeviceInfo = in setupAudioDynamicRoutingForGroup() local
158 addMix(builder, audioDeviceInfo, mixFormat, mixingRuleBuilder); in setupAudioDynamicRoutingForGroup()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audiorecorder/
DAudioRecorderTestFragment.java412 AudioDeviceInfoWrapper(AudioDeviceInfo audioDeviceInfo) { in AudioDeviceInfoWrapper() argument
413 mAudioDeviceInfo = audioDeviceInfo; in AudioDeviceInfoWrapper()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java1158 Optional<AudioDeviceInfo> audioDeviceInfo = in startVoiceRecognition() local
1166 if (audioDeviceInfo.isPresent()) { in startVoiceRecognition()
1167 am.setCommunicationDevice(audioDeviceInfo.get()); in startVoiceRecognition()