/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | PermissionGroupPreferenceUtils.java | 39 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/ |
D | AccountPreferenceControllerTest.java | 216 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/ |
D | AccountPreferenceController.java | 120 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/ |
D | BluetoothDeviceProfilesPreferenceController.java | 74 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()
|
D | BluetoothDevicesGroupPreferenceController.java | 123 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/ |
D | HighlightablePreferenceGroupAdapter.java | 40 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()
|
D | PreferenceCategoryController.java | 56 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()
|
D | GroupSelectionPreferenceController.java | 49 protected final void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 51 preferenceGroup.removeAll(); in updateState() 64 preferenceGroup.addPreference(preference); in updateState()
|
D | PreferenceController.java | 612 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/ |
D | PartnerPreferencesMerger.java | 99 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/ |
D | DefaultAppListChildFragment.java | 179 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/ |
D | DeviceAdminAppsPreferenceController.java | 63 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()
|
D | BaseApplicationsListPreferenceController.java | 65 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/ |
D | FactoryResetAccountsPreferenceController.java | 76 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/ |
D | HidePrivateSpaceSettings.java | 108 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/ |
D | EnabledKeyboardPreferenceController.java | 71 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/ |
D | WifiEntryListPreferenceController.java | 91 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/ |
D | AutoReviewPermissionDecisionsFragment.kt | 185 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/ |
D | RadioPreference.java | 55 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/ |
D | RadioPreference.java | 60 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/ |
D | LanguageBasePreferenceController.java | 72 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/ |
D | DeviceInfoSettingsFragment.java | 87 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/ |
D | MobileNetworkListPreferenceController.java | 68 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/ |
D | ProfilesBasePreferenceController.java | 86 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/ |
D | LocationServicesPreferenceController.java | 92 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 102 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|