Home
last modified time | relevance | path

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

123

/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/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()
359 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local
360 when(preferenceGroup.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
362 preferenceGroup); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
367 verify(preferenceGroup, times(3)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
404 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() local
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java120 public PreferenceGroup preferenceGroup; field in AccountPreferenceController.ProfileData
369 AccessiblePreferenceCategory preferenceGroup = in updateProfileUi() local
372 preferenceGroup.setOrder(mAccountProfileOrder++); in updateProfileUi()
373 preferenceGroup.setTitle(R.string.account_settings); // default title; may be modified below in updateProfileUi()
377 preferenceGroup.setTitle(title); in updateProfileUi()
378 preferenceGroup.setContentDescription(title); in updateProfileUi()
381 setCategoryTitleFromDevicePolicyResource(preferenceGroup, WORK_CATEGORY_HEADER, in updateProfileUi()
384 preferenceGroup.setSummary(workGroupSummary); in updateProfileUi()
385 setContentDescriptionFromDevicePolicyResource(preferenceGroup, in updateProfileUi()
395 setCategoryTitleFromDevicePolicyResource(preferenceGroup, CLONE_CATEGORY_HEADER, in updateProfileUi()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceController.java74 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
76 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState()
86 preferenceGroup.addPreference(profilePref); in updateState()
90 Preference prefToRemove = preferenceGroup.findPreference(removedProfile.toString()); in updateState()
92 preferenceGroup.removePreference(prefToRemove); in updateState()
95 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/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()
DPreferenceCategoryController.java56 private int getVisibleChildrenCount(PreferenceGroup preferenceGroup) { in getVisibleChildrenCount() argument
58 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in getVisibleChildrenCount()
59 Preference preference = preferenceGroup.getPreference(i); in getVisibleChildrenCount()
DGroupSelectionPreferenceController.java49 protected final void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
51 preferenceGroup.removeAll(); in updateState()
64 preferenceGroup.addPreference(preference); in updateState()
DPreferenceController.java612 PreferenceGroup preferenceGroup = (PreferenceGroup) preference; in restrictPreference() local
613 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in restrictPreference()
614 restrictPreference(preferenceGroup.getPreference(i), restrict); in restrictPreference()
646 PreferenceGroup preferenceGroup = (PreferenceGroup) preference; in setClickableWhileDisabledInternal() local
647 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in setClickableWhileDisabledInternal()
648 setClickableWhileDisabledInternal(preferenceGroup.getPreference(i), clickable, in setClickableWhileDisabledInternal()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/customization/
DPartnerPreferencesMerger.java99 PreferenceGroup preferenceGroup) { in clonePreferencesInPreferenceGroup() argument
101 for (int index = 0; index < preferenceGroup.getPreferenceCount(); index++) { in clonePreferencesInPreferenceGroup()
102 final Preference preference = preferenceGroup.getPreference(index); in clonePreferencesInPreferenceGroup()
123 PreferenceGroup preferenceGroup, in addPreferences() argument
143 preferenceGroup.addPreference(preference); in addPreferences()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppListChildFragment.java179 private static void clearPreferences(@NonNull PreferenceGroup preferenceGroup, in clearPreferences() argument
181 for (int i = preferenceGroup.getPreferenceCount() - 1; i >= 0; --i) { in clearPreferences()
182 Preference preference = preferenceGroup.getPreference(i); in clearPreferences()
184 preferenceGroup.removePreference(preference); in clearPreferences()
208 private void addPreferences(@NonNull PreferenceGroup preferenceGroup, in addPreferences() argument
245 preferenceGroup.addPreference(preference); in addPreferences()
263 private static void addMoreDefaultAppsPreference(@NonNull PreferenceGroup preferenceGroup, in addMoreDefaultAppsPreference() argument
283 preferenceGroup.addPreference(preference); in addMoreDefaultAppsPreference()
286 private static void addManageDomainUrlsPreference(@NonNull PreferenceGroup preferenceGroup, in addManageDomainUrlsPreference() argument
306 preferenceGroup.addPreference(preference); in addManageDomainUrlsPreference()
/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/Settings/src/com/android/settings/privatespace/
DHidePrivateSpaceSettings.java108 private int countPreferencesRecursive(PreferenceGroup preferenceGroup) { in countPreferencesRecursive() argument
109 int count = preferenceGroup.getPreferenceCount(); in countPreferencesRecursive()
110 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in countPreferencesRecursive()
111 Preference preference = preferenceGroup.getPreference(i); in countPreferencesRecursive()
/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()
108 preferenceGroup.addPreference( in updateState()
111 preferenceGroup.addPreference( in updateState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoReviewPermissionDecisionsFragment.kt185 preferenceGroup: PreferenceGroup, in <lambda>()
207 preferenceGroup.addPreference(decisionPreference) in <lambda>()
211 private fun addViewAllPreference(preferenceGroup: PreferenceGroup) { in <lambda>()
233 preferenceGroup.addPreference(preference) in <lambda>()
236 private fun addNoRecentDecisionsPreference(preferenceGroup: PreferenceGroup) { in <lambda>()
241 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/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/
DDeviceInfoSettingsFragment.java87 if (preference instanceof PreferenceGroup preferenceGroup) { in hideIconView()
88 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in hideIconView()
89 hideIconView(preferenceGroup.getPreference(i)); in hideIconView()
/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/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/location/
DLocationServicesPreferenceController.java92 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument
102 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()

123