use of com.android.settings.widget.SeekBarPreference in project android_packages_apps_Settings by omnirom.
the class FloatingMenuTransparencyPreferenceControllerTest method onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled.
@Test
public void onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled() {
mController.mPreference = new SeekBarPreference(mContext);
Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR);
mController.mContentObserver.onChange(false);
assertThat(mController.mPreference.isEnabled()).isFalse();
}
use of com.android.settings.widget.SeekBarPreference in project android_packages_apps_Settings by omnirom.
the class RemoteVolumeGroupControllerTest method displayPreference_withActiveSession_checkSeekBarMaxVolume.
@Test
public void displayPreference_withActiveSession_checkSeekBarMaxVolume() {
mController.displayPreference(mScreen);
final SeekBarPreference preference = mPreferenceCategory.findPreference(TEST_SESSION_1_ID);
assertThat(preference.getMax()).isEqualTo(MAX_VOLUME);
}
Aggregations