Home
last modified time | relevance | path

Searched refs:preferenceGroup (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java216 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_oneProfile_shouldSetAccountTitleWithUserName() local
218 preferenceGroup); in onResume_oneProfile_shouldSetAccountTitleWithUserName()
222 verify(preferenceGroup).setTitle( in onResume_oneProfile_shouldSetAccountTitleWithUserName()
234 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_noPreferenceScreen_shouldNotCrash() local
236 preferenceGroup); in onResume_noPreferenceScreen_shouldNotCrash()
358 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local
359 when(preferenceGroup.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
361 preferenceGroup); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
366 verify(preferenceGroup, times(3)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
403 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() local
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionGroupPreferenceUtils.java39 PreferenceGroup preferenceGroup, in updateGroupOfPermissionPreferences() argument
44 if (!hasPermissionsListChanged(preferenceGroup, permissionGroups)) { in updateGroupOfPermissionPreferences()
46 updatePreferenceSummaries(preferenceGroup, permissionGroups); in updateGroupOfPermissionPreferences()
59 PermissionGroupPreference preference = preferenceGroup.findPreference(info.getName()); in updateGroupOfPermissionPreferences()
70 preferenceGroup.removeAll(); in updateGroupOfPermissionPreferences()
72 preferenceGroup.addPreference(preference); in updateGroupOfPermissionPreferences()
76 private static boolean hasPermissionsListChanged(PreferenceGroup preferenceGroup, in hasPermissionsListChanged() argument
78 if (preferenceGroup.getPreferenceCount() != permissionGroups.size()) { in hasPermissionsListChanged()
86 final String existingKey = preferenceGroup.getPreference(i).getKey(); in hasPermissionsListChanged()
95 private static void updatePreferenceSummaries(PreferenceGroup preferenceGroup, in updatePreferenceSummaries() argument
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/compat/
DRenderUtil.java59 PreferenceGroup preferenceGroup, List<PreferenceCompat> newPrefCompats, int order) { in updatePreferenceGroup() argument
60 if (preferenceGroup == null || newPrefCompats == null) { in updatePreferenceGroup()
63 Context context = preferenceGroup.getContext(); in updatePreferenceGroup()
66 while (index < getPreferenceCount(preferenceGroup)) { in updatePreferenceGroup()
67 if (!(preferenceGroup.getPreference(index) instanceof HasKeys)) { in updatePreferenceGroup()
70 HasKeys pref = (HasKeys) preferenceGroup.getPreference(index); in updatePreferenceGroup()
80 preferenceGroup.removePreference((Preference) pref); in updatePreferenceGroup()
93 IntStream.range(0, getPreferenceCount(preferenceGroup)) in updatePreferenceGroup()
96 (HasKeys) preferenceGroup.getPreference( in updatePreferenceGroup()
101 newPref = (HasKeys) preferenceGroup.getPreference( in updatePreferenceGroup()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java117 public PreferenceGroup preferenceGroup; field in AccountPreferenceController.ProfileData
340 AccessiblePreferenceCategory preferenceGroup = in updateProfileUi() local
343 preferenceGroup.setOrder(mAccountProfileOrder++); in updateProfileUi()
344 preferenceGroup.setTitle(R.string.account_settings); // default title; may be modified below in updateProfileUi()
348 preferenceGroup.setTitle(title); in updateProfileUi()
349 preferenceGroup.setContentDescription(title); in updateProfileUi()
352 preferenceGroup.setTitle( in updateProfileUi()
356 preferenceGroup.setSummary(workGroupSummary); in updateProfileUi()
357 preferenceGroup.setContentDescription( in updateProfileUi()
368 preferenceGroup.setTitle( in updateProfileUi()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceController.java71 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
73 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState()
83 preferenceGroup.addPreference(profilePref); in updateState()
87 Preference prefToRemove = preferenceGroup.findPreference(removedProfile.toString()); in updateState()
89 preferenceGroup.removePreference(prefToRemove); in updateState()
92 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
DBluetoothDevicesGroupPreferenceController.java123 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
141 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppListChildFragment.java148 private static void clearPreferences(@NonNull PreferenceGroup preferenceGroup, in clearPreferences() argument
150 for (int i = preferenceGroup.getPreferenceCount() - 1; i >= 0; --i) { in clearPreferences()
151 Preference preference = preferenceGroup.getPreference(i); in clearPreferences()
153 preferenceGroup.removePreference(preference); in clearPreferences()
159 private void addPreferences(@NonNull PreferenceGroup preferenceGroup, in addPreferences() argument
191 preferenceGroup.addPreference(preference); in addPreferences()
209 private static void addMoreDefaultAppsPreference(@NonNull PreferenceGroup preferenceGroup, in addMoreDefaultAppsPreference() argument
229 preferenceGroup.addPreference(preference); in addMoreDefaultAppsPreference()
232 private static void addManageDomainUrlsPreference(@NonNull PreferenceGroup preferenceGroup, in addManageDomainUrlsPreference() argument
252 preferenceGroup.addPreference(preference); in addManageDomainUrlsPreference()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DHighlightablePreferenceGroupAdapter.java40 public HighlightablePreferenceGroupAdapter(PreferenceGroup preferenceGroup) { in HighlightablePreferenceGroupAdapter() argument
41 super(preferenceGroup); in HighlightablePreferenceGroupAdapter()
42 Context context = preferenceGroup.getContext(); in HighlightablePreferenceGroupAdapter()
50 public HighlightablePreferenceGroupAdapter(PreferenceGroup preferenceGroup, in HighlightablePreferenceGroupAdapter() argument
52 super(preferenceGroup); in HighlightablePreferenceGroupAdapter()
DPreferenceController.java516 PreferenceGroup preferenceGroup = (PreferenceGroup) preference; in restrictPreference() local
517 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in restrictPreference()
518 restrictPreference(preferenceGroup.getPreference(i), restrict); in restrictPreference()
541 PreferenceGroup preferenceGroup = (PreferenceGroup) preference; in setClickableWhileDisabled() local
542 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in setClickableWhileDisabled()
543 setClickableWhileDisabled(preferenceGroup.getPreference(i), clickable, in setClickableWhileDisabled()
DGroupSelectionPreferenceController.java49 protected final void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
51 preferenceGroup.removeAll(); in updateState()
64 preferenceGroup.addPreference(preference); in updateState()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.java263 public void addDeviceCategory(PreferenceGroup preferenceGroup, int titleId, in addDeviceCategory() argument
265 cacheRemoveAllPrefs(preferenceGroup); in addDeviceCategory()
266 preferenceGroup.setTitle(titleId); in addDeviceCategory()
267 mDeviceListGroup = preferenceGroup; in addDeviceCategory()
274 preferenceGroup.setEnabled(true); in addDeviceCategory()
275 removeCachedPrefs(preferenceGroup); in addDeviceCategory()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAppsPreferenceController.java63 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
64 preferenceGroup.removeAll(); in updateState()
78 preferenceGroup.addPreference(createPreference(deviceAdminInfo)); in updateState()
82 if (preferenceGroup.getPreferenceCount() == 0) { in updateState()
83 preferenceGroup.addPreference(createEmptyListPreference()); in updateState()
DBaseApplicationsListPreferenceController.java65 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
68 preferenceGroup.removeAll(); in updateState()
77 preferenceGroup.addPreference(preference); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetAccountsPreferenceController.java76 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
104 preferenceGroup.addPreference(accountPref); in updateState()
110 preferenceGroup.removePreference(mAccountPreferenceMap.get(accountToRemove)); in updateState()
114 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 1); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/
DEnabledKeyboardPreferenceController.java71 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
93 updatePreferenceGroup(preferenceGroup, preferencesToDisplay, preferencesToRemove); in updateState()
97 PreferenceGroup preferenceGroup, List<Preference> preferencesToDisplay, in updatePreferenceGroup() argument
104 preferenceGroup.removePreference(mPreferences.get(key)); in updatePreferenceGroup()
112 preferenceGroup.addPreference(pref); in updatePreferenceGroup()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryListPreferenceController.java91 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
99 preferenceGroup.setVisible(!mWifiEntries.isEmpty()); in updateState()
100 preferenceGroup.removeAll(); in updateState()
105 preferenceGroup.addPreference( in updateState()
108 preferenceGroup.addPreference( in updateState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoReviewPermissionDecisionsFragment.kt171 preferenceGroup: PreferenceGroup, in <lambda>()
189 preferenceGroup.addPreference(decisionPreference) in <lambda>()
193 private fun addViewAllPreference(preferenceGroup: PreferenceGroup) { in <lambda>()
209 preferenceGroup.addPreference(preference) in <lambda>()
212 private fun addNoRecentDecisionsPreference(preferenceGroup: PreferenceGroup) { in <lambda>()
216 preferenceGroup.addPreference(preference) in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRadioPreference.java55 public void clearOtherRadioPreferences(PreferenceGroup preferenceGroup) { in clearOtherRadioPreferences() argument
56 final int count = preferenceGroup.getPreferenceCount(); in clearOtherRadioPreferences()
58 final Preference p = preferenceGroup.getPreference(i); in clearOtherRadioPreferences()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DRadioPreference.java60 public void clearOtherRadioPreferences(PreferenceGroup preferenceGroup) { in clearOtherRadioPreferences() argument
61 final int count = preferenceGroup.getPreferenceCount(); in clearOtherRadioPreferences()
63 final Preference p = preferenceGroup.getPreference(i); in clearOtherRadioPreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/language/
DLanguageBasePreferenceController.java72 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
74 if (preferenceGroup.getPreferenceCount() == 0) { in updateState()
75 defineLocaleProvider().populateBasePreference(preferenceGroup, getExclusionSet(), this); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkListPreferenceController.java68 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
69 preferenceGroup.removeAll(); in updateState()
74 preferenceGroup.addPreference(createPreference(info)); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationServicesPreferenceController.java91 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
98 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfilesBasePreferenceController.java86 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
90 preferenceGroup.removeAll(); in updateState()
93 preferenceGroup.addPreference(preference); in updateState()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DDomainAppPreferenceController.java132 PreferenceGroup preferenceGroup = getPreference(); in rebuildAppList() local
133 preferenceGroup.removeAll(); in rebuildAppList()
136 preferenceGroup.addPreference(createPreference(entry)); in rebuildAppList()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DPermissionsPreferenceControllerTest.java160 PreferenceGroup preferenceGroup, String restriction) { in getPreferenceForRestriction() argument
161 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in getPreferenceForRestriction()
162 SwitchPreference preference = (SwitchPreference) preferenceGroup.getPreference(i); in getPreferenceForRestriction()

12