Searched refs:PreferenceUtil (Results 1 – 4 of 4) sorted by relevance
39 assertThat(PreferenceUtil.checkPreferenceType(preference, SwitchPreference.class)).isTrue(); in testCheckPreferenceType_true()46 PreferenceUtil.checkPreferenceType(preference, TwoStatePreference.class)).isTrue(); in testCheckPreferenceType_superclass_true()53 PreferenceUtil.checkPreferenceType(preference, TwoStatePreference.class)).isFalse(); in testCheckPreferenceType_false()60 PreferenceUtil.requirePreferenceType(preference, SwitchPreference.class); in testRequirePreferenceType_true()67 PreferenceUtil.requirePreferenceType(preference, TwoStatePreference.class); in testRequirePreferenceType_superclass_true()74 () -> PreferenceUtil.requirePreferenceType(preference, TwoStatePreference.class)); in testRequirePreferenceType_false()
29 import com.android.car.settings.common.PreferenceUtil;99 if (PreferenceUtil.checkPreferenceType(preference, PreferenceCategory.class)) { in populateBasePreference()
22 public class PreferenceUtil { class
279 PreferenceUtil.requirePreferenceType(preference, getPreferenceType()); in setPreference()