Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java50 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in constructor_requiresNonNullGain() local
51 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() local
62 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresJointModeGain()
68 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresMaxGainLargerThanMin() local
71 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresMaxGainLargerThanMin()
78 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresDefaultGainLargerThanMin() local
81 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainLargerThanMin()
88 AudioDeviceInfo audioDeviceInfo = getMockAudioDeviceInfo( in constructor_requiresDefaultGainSmallerThanMax() local
[all …]
DCarAudioPlaybackCallbackTest.java530 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local
531 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()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java63 CarAudioDeviceInfo(AudioDeviceInfo audioDeviceInfo) { in CarAudioDeviceInfo() argument
64 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()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZoneTest.java373 AudioDeviceInfo audioDeviceInfo = mock(AudioDeviceInfo.class); in generateOutAudioDeviceInfo() local
374 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()