Home
last modified time | relevance | path

Searched refs:MIN_GAIN_INDEX (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeGroupUnitTest.java79 private static final int MIN_GAIN_INDEX = 0; field in CarVolumeGroupUnitTest
91 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 …]
DCarAudioVolumeGroupTest.java85 private static final int MIN_GAIN_INDEX = 0; field in CarAudioVolumeGroupTest
168 .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()
DCarVolumeGroupFactoryTest.java43 private static final int MIN_GAIN_INDEX = 0; field in CarVolumeGroupFactoryTest
274 CONFIG_ID, GROUP_ID)).thenReturn(MIN_GAIN_INDEX - 1); in factoryBuild_withTooSmallStoredGain_usesDefaultGain()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java489 proto.write(CarAudioDumpProto.CarVolumeGain.MIN_GAIN_INDEX, mMinGain); in dumpProto()
DCarVolumeGroup.java672 proto.write(CarAudioDumpProto.CarVolumeGain.MIN_GAIN_INDEX, getMinGainIndex()); in dumpProto()