Searched refs:MIN_GAIN_INDEX (Results 1 – 5 of 5) sorted by relevance
79 private static final int MIN_GAIN_INDEX = 0; field in CarVolumeGroupUnitTest91 private static final int MIN_ACTIVATION_GAIN_INDEX = MIN_GAIN_INDEX + (int) Math.round(92 MIN_ACTIVATION_GAIN_INDEX_PERCENTAGE / 100.0 * (MAX_GAIN_INDEX - MIN_GAIN_INDEX));93 private static final int MAX_ACTIVATION_GAIN_INDEX = MIN_GAIN_INDEX + (int) Math.round(94 MAX_ACTIVATION_GAIN_INDEX_PERCENTAGE / 100.0 * (MAX_GAIN_INDEX - MIN_GAIN_INDEX));216 musicGain.volumeIndex = MIN_GAIN_INDEX; in setMuted_whenHalMuted_onActivation_returnsTrue()232 musicGain.volumeIndex = MIN_GAIN_INDEX; in setMuted_whenHalMuted_onDeactivation_returnsFalse()364 musicGain.volumeIndex = MIN_GAIN_INDEX; in isHalMuted_withHalMuted()391 musicGain.volumeIndex = MIN_GAIN_INDEX; in getMutedBySystem_withHalMuted()456 () -> carVolumeGroup.setCurrentGainIndex(MIN_GAIN_INDEX - 1)); in setCurrentGainIndex_checksNewGainIsAboveMin()[all …]
85 private static final int MIN_GAIN_INDEX = 0; field in CarAudioVolumeGroupTest168 .isEqualTo(MIN_GAIN_INDEX); in testInitializedIndexes()179 expect.withMessage("Min index").that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX)) in checkValidGainIndexes()188 .that(carVolumeGroup.isValidGainIndex(MIN_GAIN_INDEX - 1)) in checkValidGainIndexes()323 .that(carVolumeGroup.getMinGainIndex()).isEqualTo(MIN_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_forSameGainStage_returnsNoEventType()348 .that(carVolumeGroup.getMinGainIndex()).isEqualTo(MIN_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_withOnlyDefaultUpdate_returnsNoEventType()396 .that(carVolumeGroup.getMinGainIndex()).isEqualTo(MIN_GAIN_INDEX); in calculateNewGainStageFromDeviceInfos_extrapolationSucceeds()
43 private static final int MIN_GAIN_INDEX = 0; field in CarVolumeGroupFactoryTest274 CONFIG_ID, GROUP_ID)).thenReturn(MIN_GAIN_INDEX - 1); in factoryBuild_withTooSmallStoredGain_usesDefaultGain()
489 proto.write(CarAudioDumpProto.CarVolumeGain.MIN_GAIN_INDEX, mMinGain); in dumpProto()
672 proto.write(CarAudioDumpProto.CarVolumeGain.MIN_GAIN_INDEX, getMinGainIndex()); in dumpProto()