Home
last modified time | relevance | path

Searched refs:getMaxGainIndex (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java239 setLimitLocked(getMaxGainIndex()); in resetLimitLocked()
244 return mLimitedGainIndex != getMaxGainIndex(); in isLimitedLocked()
451 abstract int getMaxGainIndex(); in getMaxGainIndex() method in CarVolumeGroup
456 int maxGainIndex = getMaxGainIndex(); in getMaxActivationGainIndex()
464 int maxGainIndex = getMaxGainIndex(); in getMinActivationGainIndex()
515 "Gain out of range (%d:%d) index %d", getMinGainIndex(), getMaxGainIndex(), in setCurrentGainIndex()
615 getMinGainIndex(), getMaxGainIndex(), getDefaultGainIndex(), in dump()
673 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, getMaxGainIndex()); in dumpProto()
889 setLimitLocked(shouldLimit ? halIndex : getMaxGainIndex()); in onAudioGainChanged()
949 .setVolumeGainIndex(gainIndex).setMaxVolumeGainIndex(getMaxGainIndex()) in getCarVolumeGroupInfo()
DCarAudioVolumeGroup.java66 public int getMaxGainIndex() { in getMaxGainIndex() method in CarAudioVolumeGroup
DCoreAudioVolumeGroup.java87 public int getMaxGainIndex() { in getMaxGainIndex() method in CoreAudioVolumeGroup
DCarAudioService.java1083 return group.getMaxGainIndex(); in getGroupMaxVolume()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioVolumeGroupTest.java169 expect.withMessage("Max index").that(carVolumeGroup.getMaxGainIndex()) in testInitializedIndexes()
325 .that(carVolumeGroup.getMaxGainIndex()).isEqualTo(MAX_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_forSameGainStage_returnsNoEventType()
350 .that(carVolumeGroup.getMaxGainIndex()).isEqualTo(MAX_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_withOnlyDefaultUpdate_returnsNoEventType()
398 .that(carVolumeGroup.getMaxGainIndex()) in calculateNewGainStageFromDeviceInfos_extrapolationSucceeds()
426 .that(carVolumeGroup.getMaxGainIndex()).isEqualTo(TEST_GAIN_MAX_INDEX); in calculateNewGainStageFromDeviceInfos_extrapolationFails_setsToDefaultValue()
DCoreAudioVolumeGroupTest.java201 expectWithMessage("Initial gain index").that(mMusicCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
203 expectWithMessage("Initial gain index").that(mNavCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
205 expectWithMessage("Initial gain index").that(mOemCoreAudioVolumeGroup.getMaxGainIndex()) in getMaxIndex()
DCarVolumeGroupUnitTest.java844 carVolumeGroup.setLimit(carVolumeGroup.getMaxGainIndex() - 1); in setLimited_withGain_thenBackToMaxGain()
1997 .that(info.getMaxVolumeGainIndex()).isEqualTo(carVolumeGroup.getMaxGainIndex()); in getCarVolumeGroupInfo()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperTest.java1601 .isEqualTo(volumeGroups[0].getMaxGainIndex()); in loadAudioZones_withMinMaxActivationVolumeAndNoActivationVolumeSupport()
1609 .isEqualTo(volumeGroups[1].getMaxGainIndex()); in loadAudioZones_withMinMaxActivationVolumeAndNoActivationVolumeSupport()
1634 .isLessThan(volumeGroups[0].getMaxGainIndex()); in loadAudioZones_withMinMaxActivationVolume()
1643 .isEqualTo(volumeGroups[1].getMaxGainIndex()); in loadAudioZones_withMinMaxActivationVolume()