use of com.android.settings.widget.SeekBarPreference in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class SettingsSliderPreferenceControllerTest method setUp.
@Before
public void setUp() {
mPreference = new SeekBarPreference(RuntimeEnvironment.application);
mSliderController = new FakeSliderPreferenceController(RuntimeEnvironment.application, "key");
mPreference.setContinuousUpdates(true);
mPreference.setMin(mSliderController.getMin());
mPreference.setMax(mSliderController.getMax());
}
use of com.android.settings.widget.SeekBarPreference in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class AutoBrightnessMinPreferenceController method displayPreference.
@Override
public void displayPreference(PreferenceScreen screen) {
super.displayPreference(screen);
final SeekBarPreference preference = screen.findPreference(getPreferenceKey());
preference.setContinuousUpdates(true);
preference.setMax(getMax());
preference.setMin(getMin());
}
use of com.android.settings.widget.SeekBarPreference in project android_packages_apps_Settings by omnirom.
the class SettingsSliderPreferenceControllerTest method setUp.
@Before
public void setUp() {
mPreference = new SeekBarPreference(ApplicationProvider.getApplicationContext());
mSliderController = new FakeSliderPreferenceController(ApplicationProvider.getApplicationContext(), "key");
mPreference.setContinuousUpdates(true);
mPreference.setMin(mSliderController.getMin());
mPreference.setMax(mSliderController.getMax());
}
use of com.android.settings.widget.SeekBarPreference in project android_packages_apps_Settings by omnirom.
the class NightDisplayIntensityPreferenceController method displayPreference.
@Override
public void displayPreference(PreferenceScreen screen) {
super.displayPreference(screen);
final SeekBarPreference preference = screen.findPreference(getPreferenceKey());
preference.setContinuousUpdates(true);
preference.setMax(getMax());
preference.setMin(getMin());
preference.setHapticFeedbackMode(SeekBarPreference.HAPTIC_FEEDBACK_MODE_ON_ENDS);
}
use of com.android.settings.widget.SeekBarPreference in project android_packages_apps_Settings by omnirom.
the class RemoteVolumeGroupControllerTest method displayPreference_withActiveSession_checkSeekBarCurrentVolume.
@Test
public void displayPreference_withActiveSession_checkSeekBarCurrentVolume() {
mController.displayPreference(mScreen);
final SeekBarPreference preference = mPreferenceCategory.findPreference(TEST_SESSION_1_ID);
assertThat(preference.getProgress()).isEqualTo(CURRENT_VOLUME);
}
Aggregations