Home
last modified time | relevance | path

Searched refs:DEFAULT_GAIN (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioVolumeGroupTest.java29 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
84 DEFAULT_GAIN);
294 .that(mMediaDeviceInfo.getDefaultGain()).isEqualTo(DEFAULT_GAIN); in updateAudioDeviceInfo_invalidDeviceInfo_doesNotUpdate()
302 .that(mNavigationDeviceInfo.getDefaultGain()).isEqualTo(DEFAULT_GAIN); 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()
363 TEST_NAV_PORT_NAME, MIN_GAIN, MAX_GAIN, DEFAULT_GAIN, STEP_SIZE - 1, in calculateNewGainStageFromDeviceInfos_withDifferentStepValues_throws()
[all …]
DGainBuilder.java27 public static final int DEFAULT_GAIN = 50; field in GainBuilder
33 private int mDefaultValue = DEFAULT_GAIN;
DTestCarAudioDeviceInfoBuilder.java36 public static final int DEFAULT_GAIN = 9; field in TestCarAudioDeviceInfoBuilder
41 private int mDefaultGain = DEFAULT_GAIN;
DHalAudioDeviceInfoBuilder.java23 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
47 private int mDefaultValue = DEFAULT_GAIN;
DVolumeGroupBuilder.java21 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
174 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in build()
DCarAudioGainMonitorTest.java22 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
90 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
98 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
106 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE)
DCarVolumeGroupUnitTest.java77 private static final int DEFAULT_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN
1492 verify(mMediaDeviceInfo).setCurrentGain(TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN); in onAudioGainChanged_validGain()
1493 verify(mNavigationDeviceInfo).setCurrentGain(TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN); in onAudioGainChanged_validGain()
1498 TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN); in onAudioGainChanged_validGain()
1500 TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN); in onAudioGainChanged_validGain()
2288 TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN)); in build()
DCarVolumeGroupFactoryTest.java41 private static final int DEFAULT_GAIN_INDEX = (TestCarAudioDeviceInfoBuilder.DEFAULT_GAIN
DCarAudioServiceUnitTest.java102 import static com.android.car.audio.GainBuilder.DEFAULT_GAIN;
681 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
692 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
704 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
715 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
725 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
735 .setVolumeGainIndex(DEFAULT_GAIN / STEP_SIZE) in setUpAudioManager()
1186 service.createAudioPatch(PRIMARY_ZONE_FM_TUNER_ADDRESS, USAGE_MEDIA, DEFAULT_GAIN)); in createAudioPatch_onMediaOutputDevice_failsForConfigurationMissing()
1201 USAGE_MEDIA, DEFAULT_GAIN)); in createAudioPatch_onMediaOutputDevice_failsForMissingPermission()
1216 .createAudioPatch(mFmTunerInputDevice, mMediaOutputDevice, DEFAULT_GAIN)); in createAudioPatch_onMediaOutputDevice_succeeds()
[all …]
DCarAudioDeviceInfoTest.java291 .isEqualTo(GainBuilder.DEFAULT_GAIN); in getDefaultGain_returnsValueFromDeviceInfo()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DVolumeSettingsPreferenceControllerTest.java92 private static final int DEFAULT_GAIN = 50; field in VolumeSettingsPreferenceControllerTest
95 private static final int TEST_DEFAULT_VOLUME = DEFAULT_GAIN / STEP_SIZE;