Searched refs:checkPreferenceType (Results 1 – 3 of 3) sorted by relevance
40 assertThat(PreferenceUtil.checkPreferenceType(preference, SwitchPreference.class)).isTrue(); in testCheckPreferenceType_true()47 PreferenceUtil.checkPreferenceType(preference, TwoStatePreference.class)).isTrue(); in testCheckPreferenceType_superclass_true()54 PreferenceUtil.checkPreferenceType(preference, TwoStatePreference.class)).isFalse(); in testCheckPreferenceType_false()
25 public static boolean checkPreferenceType(Preference preference, Class expectedType) { in checkPreferenceType() method in PreferenceUtil35 if (!checkPreferenceType(preference, expectedType)) { in requirePreferenceType()
98 if (PreferenceUtil.checkPreferenceType(preference, PreferenceCategory.class)) { in populateBasePreference()