Searched refs:audioDeviceInfo (Results 1 – 10 of 10) sorted by relevance
65 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices() local66 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() local82 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 …]
62 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in build() local63 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()
72 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local73 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()
625 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in isAudioDeviceInfoValidForZone() local626 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()
73 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in build() local74 when(audioDeviceInfo.getAddress()).thenReturn(mAddressName); in build()75 when(audioDeviceInfo.isSource()).thenReturn(mIsSource); in build()76 return audioDeviceInfo; in build()
321 boolean canBeRoutedWithDynamicPolicyMix, AudioDeviceInfo audioDeviceInfo) { in getCarAudioDeviceInfo() argument322 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()
604 AudioDeviceInfo audioDeviceInfo = mAudioManager.getCommunicationDevice(); in clearLeAudioCommunicationDevice() local605 if (audioDeviceInfo != null && audioDeviceInfo.getType() in clearLeAudioCommunicationDevice()607 mBluetoothRouteManager.onAudioLost(audioDeviceInfo.getAddress()); in clearLeAudioCommunicationDevice()629 AudioDeviceInfo audioDeviceInfo = mAudioManager.getCommunicationDevice(); in clearHearingAidCommunicationDevice() local630 if (audioDeviceInfo != null && audioDeviceInfo.getType() in clearHearingAidCommunicationDevice()
153 AudioDeviceInfo audioDeviceInfo = in setupAudioDynamicRoutingForGroup() local158 addMix(builder, audioDeviceInfo, mixFormat, mixingRuleBuilder); in setupAudioDynamicRoutingForGroup()
412 AudioDeviceInfoWrapper(AudioDeviceInfo audioDeviceInfo) { in AudioDeviceInfoWrapper() argument413 mAudioDeviceInfo = audioDeviceInfo; in AudioDeviceInfoWrapper()
1158 Optional<AudioDeviceInfo> audioDeviceInfo = in startVoiceRecognition() local1166 if (audioDeviceInfo.isPresent()) { in startVoiceRecognition()1167 am.setCommunicationDevice(audioDeviceInfo.get()); in startVoiceRecognition()