Home
last modified time | relevance | path

Searched refs:isValidGainIndex (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioVolumeGroupTest.java179 expect.withMessage("Min index").that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX)) in checkValidGainIndexes()
181 expect.withMessage("Max index").that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX)) in checkValidGainIndexes()
184 .that(carVolumeGroup.isValidGainIndex(DEFAULT_GAIN_INDEX)) in checkValidGainIndexes()
188 .that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX - 1)) in checkValidGainIndexes()
191 .that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX + 1)) in checkValidGainIndexes()
DCoreAudioVolumeGroupTest.java221 expectWithMessage("check inside range").that(mMusicCoreAudioVolumeGroup.isValidGainIndex( in checkIndexRange()
225 .that(mMusicCoreAudioVolumeGroup.isValidGainIndex(MUSIC_MIN_INDEX - 1)) in checkIndexRange()
228 .that(mMusicCoreAudioVolumeGroup.isValidGainIndex(MUSIC_MAX_INDEX + 1)) in checkIndexRange()
/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java828 protected boolean isValidGainIndex(int gainIndex) { in isValidGainIndex() method in CarVolumeGroup
869 || !isValidGainIndex(halIndex)) { in onAudioGainChanged()