/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() 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/ |
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/TvSettings/Settings/src/com/android/tv/settings/compat/ |
D | RenderUtil.java | 59 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/ |
D | AccountPreferenceController.java | 117 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/ |
D | BluetoothDeviceProfilesPreferenceController.java | 71 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()
|
D | BluetoothDevicesGroupPreferenceController.java | 123 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/ |
D | DefaultAppListChildFragment.java | 148 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/ |
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 | PreferenceController.java | 516 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()
|
D | GroupSelectionPreferenceController.java | 49 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/ |
D | DeviceListPreferenceFragment.java | 263 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/ |
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/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() 105 preferenceGroup.addPreference( in updateState() 108 preferenceGroup.addPreference( in updateState()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoReviewPermissionDecisionsFragment.kt | 171 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/ |
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/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/location/ |
D | LocationServicesPreferenceController.java | 91 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/ |
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/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 132 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/ |
D | PermissionsPreferenceControllerTest.java | 160 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()
|