Searched refs:audioDeviceInfo (Results 1 – 4 of 4) sorted by relevance
50 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in constructor_requiresNonNullGain() local51 when(audioDeviceInfo.getPort()).thenReturn(null); in constructor_requiresNonNullGain()53 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresNonNullGain()59 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresJointModeGain() local62 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresJointModeGain()68 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresMaxGainLargerThanMin() local71 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresMaxGainLargerThanMin()78 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresDefaultGainLargerThanMin() local81 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainLargerThanMin()88 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresDefaultGainSmallerThanMax() local[all …]
530 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local531 when(audioDeviceInfo.getAddress()).thenReturn(address); in generateOutAudioDeviceInfo()532 when(audioDeviceInfo.getType()).thenReturn(AudioDeviceInfo.TYPE_BUS); in generateOutAudioDeviceInfo()533 when(audioDeviceInfo.isSource()).thenReturn(false); in generateOutAudioDeviceInfo()534 when(audioDeviceInfo.isSink()).thenReturn(true); in generateOutAudioDeviceInfo()535 when(audioDeviceInfo.getInternalType()).thenReturn(AudioDeviceInfo in generateOutAudioDeviceInfo()537 return audioDeviceInfo; in generateOutAudioDeviceInfo()
63 CarAudioDeviceInfo(AudioDeviceInfo audioDeviceInfo) { in CarAudioDeviceInfo() argument64 mAudioDeviceInfo = audioDeviceInfo; in CarAudioDeviceInfo()65 mSampleRate = getMaxSampleRate(audioDeviceInfo); in CarAudioDeviceInfo()67 mChannelCount = getMaxChannels(audioDeviceInfo); in CarAudioDeviceInfo()68 AudioGain audioGain = Objects.requireNonNull(getAudioGain(audioDeviceInfo.getPort()), in CarAudioDeviceInfo()69 "No audio gain on device port " + audioDeviceInfo); in CarAudioDeviceInfo()
373 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local374 when(audioDeviceInfo.getAddress()).thenReturn(address); in generateOutAudioDeviceInfo()375 when(audioDeviceInfo.getType()).thenReturn(AudioDeviceInfo.TYPE_BUS); in generateOutAudioDeviceInfo()376 when(audioDeviceInfo.isSource()).thenReturn(false); in generateOutAudioDeviceInfo()377 when(audioDeviceInfo.isSink()).thenReturn(true); in generateOutAudioDeviceInfo()378 when(audioDeviceInfo.getInternalType()).thenReturn(AudioDeviceInfo in generateOutAudioDeviceInfo()380 return audioDeviceInfo; in generateOutAudioDeviceInfo()