Searched refs:MAX_GAIN_INDEX (Results 1 – 5 of 5) sorted by relevance
80 private static final int MAX_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.MAX_GAIN field in CarVolumeGroupUnitTest92 MIN_ACTIVATION_GAIN_INDEX_PERCENTAGE / 100.0 * (MAX_GAIN_INDEX - MIN_GAIN_INDEX));94 MAX_ACTIVATION_GAIN_INDEX_PERCENTAGE / 100.0 * (MAX_GAIN_INDEX - MIN_GAIN_INDEX));460 .contains("Gain out of range (" + MIN_GAIN_INDEX + ":" + MAX_GAIN_INDEX + ")"); in setCurrentGainIndex_checksNewGainIsAboveMin()468 () -> carVolumeGroup.setCurrentGainIndex(MAX_GAIN_INDEX + 1)); in setCurrentGainIndex_checksNewGainIsBelowMax()472 .contains("Gain out of range (" + MIN_GAIN_INDEX + ":" + MAX_GAIN_INDEX + ")"); in setCurrentGainIndex_checksNewGainIsBelowMax()504 carVolumeGroup.setCurrentGainIndex(MAX_GAIN_INDEX); in handleActivationVolume_withActivationVolumeDisabled()510 .that(carVolumeGroup.getCurrentGainIndex()).isEqualTo(MAX_GAIN_INDEX); in handleActivationVolume_withActivationVolumeDisabled()517 carVolumeGroup.setCurrentGainIndex(MAX_GAIN_INDEX); in handleActivationVolume_withUnsupportedActivationInvocationType()523 .that(carVolumeGroup.getCurrentGainIndex()).isEqualTo(MAX_GAIN_INDEX); in handleActivationVolume_withUnsupportedActivationInvocationType()[all …]
44 private static final int MAX_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.MAX_GAIN field in CarVolumeGroupFactoryTest262 CONFIG_ID, GROUP_ID)).thenReturn(MAX_GAIN_INDEX + 1); in factoryBuild_withTooLargeStoredGain_usesDefaultGain()286 CONFIG_ID, GROUP_ID)).thenReturn(MAX_GAIN_INDEX - 1); in factoryBuild_withValidStoredGain_usesStoredGain()291 .that(carVolumeGroup.getCurrentGainIndex()).isEqualTo(MAX_GAIN_INDEX - 1); in factoryBuild_withValidStoredGain_usesStoredGain()
86 private static final int MAX_GAIN_INDEX = getIndexForGain(MIN_GAIN, STEP_SIZE, MAX_GAIN); field in CarAudioVolumeGroupTest170 .isEqualTo(MAX_GAIN_INDEX); in testInitializedIndexes()181 expect.withMessage("Max index").that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX)) in checkValidGainIndexes()191 .that(carVolumeGroup.isValidGainIndex(MAX_GAIN_INDEX + 1)) in checkValidGainIndexes()325 .that(carVolumeGroup.getMaxGainIndex()).isEqualTo(MAX_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_forSameGainStage_returnsNoEventType()350 .that(carVolumeGroup.getMaxGainIndex()).isEqualTo(MAX_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_withOnlyDefaultUpdate_returnsNoEventType()
490 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, mMaxGain); in dumpProto()
673 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, getMaxGainIndex()); in dumpProto()