Home
last modified time | relevance | path

Searched refs:sampleRates (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java166 int[] sampleRates = info.getSampleRates(); in getMaxSampleRate() local
167 if (sampleRates == null || sampleRates.length == 0) { in getMaxSampleRate()
170 int sampleRate = sampleRates[0]; in getMaxSampleRate()
171 for (int i = 1; i < sampleRates.length; i++) { in getMaxSampleRate()
172 if (sampleRates[i] > sampleRate) { in getMaxSampleRate()
173 sampleRate = sampleRates[i]; in getMaxSampleRate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java115 int[] sampleRates = new int[]{48000, 96000, 16000, 8000}; in getSampleRate_withMultipleSampleRates_returnsMax() local
116 when(audioDeviceInfo.getSampleRates()).thenReturn(sampleRates); in getSampleRate_withMultipleSampleRates_returnsMax()