Searched refs:STEP_SIZE (Results 1 – 9 of 9) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioVolumeGroupTest.java | 32 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 …]
|
D | CarAudioGainMonitorTest.java | 24 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();
|
D | VolumeGroupBuilder.java | 23 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()
|
D | GainBuilder.java | 28 public static final int STEP_SIZE = 2; field in GainBuilder 34 private int mStepSize = STEP_SIZE;
|
D | HalAudioDeviceInfoBuilder.java | 26 import static com.android.car.audio.GainBuilder.STEP_SIZE; 48 private int mStepValue = STEP_SIZE;
|
D | CarAudioDeviceInfoTest.java | 34 import static com.android.car.audio.GainBuilder.STEP_SIZE; 301 .isEqualTo(STEP_SIZE); in getStepValue_returnsValueFromDeviceInfo()
|
D | CarAudioServiceUnitTest.java | 105 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/ |
D | Gusterpolator.java | 60 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/ |
D | VolumeSettingsPreferenceControllerTest.java | 94 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;
|