Home
last modified time | relevance | path

Searched refs:STEP_SIZE (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioVolumeGroupTest.java32 import static com.android.car.audio.GainBuilder.STEP_SIZE;
83 private static final int DEFAULT_GAIN_INDEX = getIndexForGain(MIN_GAIN, STEP_SIZE,
86 private static final int MAX_GAIN_INDEX = getIndexForGain(MIN_GAIN, STEP_SIZE, MAX_GAIN);
292 .that(mMediaDeviceInfo.getStepValue()).isEqualTo(STEP_SIZE); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
300 .that(mNavigationDeviceInfo.getStepValue()).isEqualTo(STEP_SIZE); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
310 TEST_MEDIA_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN, STEP_SIZE, in calculateNewGainStageFromDeviceInfos_forSameGainStage_returnsNoEventType()
313 TEST_NAV_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN, STEP_SIZE, in calculateNewGainStageFromDeviceInfos_forSameGainStage_returnsNoEventType()
335 TEST_MEDIA_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN * 2, STEP_SIZE, in calculateNewGainStageFromDeviceInfos_withOnlyDefaultUpdate_returnsNoEventType()
338 TEST_NAV_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN * 2, STEP_SIZE, in calculateNewGainStageFromDeviceInfos_withOnlyDefaultUpdate_returnsNoEventType()
360 TEST_MEDIA_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN, STEP_SIZE, in calculateNewGainStageFromDeviceInfos_withDifferentStepValues_throws()
[all …]
DCarAudioGainMonitorTest.java24 import static com.android.car.audio.GainBuilder.STEP_SIZE;
89 .setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE)
90 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
92 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build();
97 .setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE)
98 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
100 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build();
105 .setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE)
106 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
108 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build();
DVolumeGroupBuilder.java23 import static com.android.car.audio.GainBuilder.STEP_SIZE;
52 private static final int TEST_MAX_VOLUME = MAX_GAIN / STEP_SIZE;
54 private static final int TEST_MAX_ACTIVATION_VOLUME = MAX_GAIN / STEP_SIZE;
174 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in build()
DGainBuilder.java28 public static final int STEP_SIZE = 2; field in GainBuilder
34 private int mStepSize = STEP_SIZE;
DHalAudioDeviceInfoBuilder.java26 import static com.android.car.audio.GainBuilder.STEP_SIZE;
48 private int mStepValue = STEP_SIZE;
DCarAudioDeviceInfoTest.java34 import static com.android.car.audio.GainBuilder.STEP_SIZE;
301 .isEqualTo(STEP_SIZE); in getStepValue_returnsValueFromDeviceInfo()
DCarAudioServiceUnitTest.java105 import static com.android.car.audio.GainBuilder.STEP_SIZE;
680 .setMinVolumeGainIndex(0).setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE) in setUpAudioManager()
681 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
687 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build(); in setUpAudioManager()
691 .setMinVolumeGainIndex(0).setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE) in setUpAudioManager()
692 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
698 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build(); in setUpAudioManager()
702 .setMinVolumeGainIndex(0).setMaxVolumeGainIndex(MAX_GAIN / STEP_SIZE) in setUpAudioManager()
704 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
709 .setMaxActivationVolumeGainIndex(MAX_GAIN / STEP_SIZE).build(); in setUpAudioManager()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DGusterpolator.java60 private static final float STEP_SIZE = 1.0f / (VALUES.length - 1); field in Gusterpolator
76 float quantized = position * STEP_SIZE; in getInterpolation()
78 float weight = difference / STEP_SIZE; in getInterpolation()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceControllerTest.java94 private static final int STEP_SIZE = 2; field in VolumeSettingsPreferenceControllerTest
95 private static final int TEST_DEFAULT_VOLUME = DEFAULT_GAIN / STEP_SIZE;
96 private static final int TEST_NEW_VOLUME = NEW_GAIN / STEP_SIZE;
97 private static final int TEST_MIN_VOLUME = MIN_GAIN / STEP_SIZE;
98 private static final int TEST_MAX_VOLUME = MAX_GAIN / STEP_SIZE;