Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeGroupUnitTest.java80 private static final int MAX_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.MAX_GAIN field in CarVolumeGroupUnitTest
92 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 …]
DCarVolumeGroupFactoryTest.java44 private static final int MAX_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.MAX_GAIN field in CarVolumeGroupFactoryTest
262 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()
DCarAudioVolumeGroupTest.java86 private static final int MAX_GAIN_INDEX = getIndexForGain(MIN_GAIN, STEP_SIZE, MAX_GAIN); field in CarAudioVolumeGroupTest
170 .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()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java490 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, mMaxGain); in dumpProto()
DCarVolumeGroup.java673 proto.write(CarAudioDumpProto.CarVolumeGain.MAX_GAIN_INDEX, getMaxGainIndex()); in dumpProto()