/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 212 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_oneProfile_shouldSetAccountTitleWithUserName() local 214 preferenceGroup); in onResume_oneProfile_shouldSetAccountTitleWithUserName() 218 verify(preferenceGroup).setTitle( in onResume_oneProfile_shouldSetAccountTitleWithUserName() 230 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_noPreferenceScreen_shouldNotCrash() local 232 preferenceGroup); in onResume_noPreferenceScreen_shouldNotCrash() 354 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local 355 when(preferenceGroup.getPreferenceManager()).thenReturn(mock(PreferenceManager.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 357 preferenceGroup); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 362 verify(preferenceGroup, times(3)).addPreference(any(Preference.class)); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 399 AccessiblePreferenceCategory preferenceGroup = mock(AccessiblePreferenceCategory.class); in onResume_twoAccountsOfSameName_shouldAddFivePreferences() local [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountPreferenceController.java | 101 public PreferenceGroup preferenceGroup; field in AccountPreferenceController.ProfileData 312 AccessiblePreferenceCategory preferenceGroup = in updateProfileUi() local 314 preferenceGroup.setOrder(mAccountProfileOrder++); in updateProfileUi() 316 preferenceGroup.setTitle(context.getString(R.string.account_for_section_header, in updateProfileUi() 318 preferenceGroup.setContentDescription( in updateProfileUi() 321 preferenceGroup.setTitle(R.string.category_work); in updateProfileUi() 323 preferenceGroup.setSummary(workGroupSummary); in updateProfileUi() 324 preferenceGroup.setContentDescription( in updateProfileUi() 331 preferenceGroup.setTitle(R.string.category_personal); in updateProfileUi() 332 preferenceGroup.setContentDescription( in updateProfileUi() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceController.java | 101 public PreferenceGroup preferenceGroup; field in AccountPreferenceController.ProfileData 312 AccessiblePreferenceCategory preferenceGroup = in updateProfileUi() local 314 preferenceGroup.setOrder(mAccountProfileOrder++); in updateProfileUi() 316 preferenceGroup.setTitle(context.getString(R.string.account_for_section_header, in updateProfileUi() 318 preferenceGroup.setContentDescription( in updateProfileUi() 321 preferenceGroup.setTitle(R.string.category_work); in updateProfileUi() 323 preferenceGroup.setSummary(workGroupSummary); in updateProfileUi() 324 preferenceGroup.setContentDescription( in updateProfileUi() 331 preferenceGroup.setTitle(R.string.category_personal); in updateProfileUi() 332 preferenceGroup.setContentDescription( in updateProfileUi() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | TrustedDeviceListPreferenceController.java | 115 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 117 preferenceGroup.removeAll(); in updateState() 118 preferenceGroup.addPreference(createAuthenticationReminderPreference()); in updateState() 122 if (!isEqual(preferenceGroup, updatedList)) { in updateState() 123 preferenceGroup.removeAll(); in updateState() 125 preferenceGroup.addPreference(trustedDevice); in updateState() 128 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState() 155 private boolean isEqual(PreferenceGroup preferenceGroup, List<Preference> trustedDeviceList) { in isEqual() argument 156 if (preferenceGroup.getPreferenceCount() != trustedDeviceList.size()) { in isEqual() 160 if (preferenceGroup.findPreference(p.getKey()) == null) { in isEqual()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceController.java | 62 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 64 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() 69 preferenceGroup.addPreference(profilePref); in updateState() 73 Preference prefToRemove = preferenceGroup.findPreference(removedProfile.toString()); in updateState() 75 preferenceGroup.removePreference(prefToRemove); in updateState() 78 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
D | BluetoothDevicesGroupPreferenceController.java | 103 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 121 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | DefaultAppListChildFragment.java | 144 private static void clearPreferences(@NonNull PreferenceGroup preferenceGroup, in clearPreferences() argument 146 for (int i = preferenceGroup.getPreferenceCount() - 1; i >= 0; --i) { in clearPreferences() 147 Preference preference = preferenceGroup.getPreference(i); in clearPreferences() 149 preferenceGroup.removePreference(preference); in clearPreferences() 155 private void addPreferences(@NonNull PreferenceGroup preferenceGroup, in addPreferences() argument 188 preferenceGroup.addPreference(preference); in addPreferences() 206 private static void addMoreDefaultAppsPreference(@NonNull PreferenceGroup preferenceGroup, in addMoreDefaultAppsPreference() argument 226 preferenceGroup.addPreference(preference); in addMoreDefaultAppsPreference() 229 private static void addManageDomainUrlsPreference(@NonNull PreferenceGroup preferenceGroup, in addManageDomainUrlsPreference() argument 249 preferenceGroup.addPreference(preference); in addManageDomainUrlsPreference()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceListPreferenceFragment.java | 256 public void addDeviceCategory(PreferenceGroup preferenceGroup, int titleId, in addDeviceCategory() argument 258 cacheRemoveAllPrefs(preferenceGroup); in addDeviceCategory() 259 preferenceGroup.setTitle(titleId); in addDeviceCategory() 260 mDeviceListGroup = preferenceGroup; in addDeviceCategory() 267 preferenceGroup.setEnabled(true); in addDeviceCategory() 268 removeCachedPrefs(preferenceGroup); in addDeviceCategory()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | DeviceListPreferenceFragment.java | 256 public void addDeviceCategory(PreferenceGroup preferenceGroup, int titleId, in addDeviceCategory() argument 258 cacheRemoveAllPrefs(preferenceGroup); in addDeviceCategory() 259 preferenceGroup.setTitle(titleId); in addDeviceCategory() 260 mDeviceListGroup = preferenceGroup; in addDeviceCategory() 267 preferenceGroup.setEnabled(true); in addDeviceCategory() 268 removeCachedPrefs(preferenceGroup); in addDeviceCategory()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceController.java | 77 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 106 preferenceGroup.addPreference(accountPref); in updateState() 112 preferenceGroup.removePreference(mAccountPreferenceMap.get(accountToRemove)); in updateState() 116 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 98 updatePreferenceGroup(preferenceGroup, preferencesToDisplay, preferencesToRemove); in updateState() 102 PreferenceGroup preferenceGroup, List<Preference> preferencesToDisplay, in updatePreferenceGroup() argument 109 preferenceGroup.removePreference(mPreferences.get(key)); in updatePreferenceGroup() 117 preferenceGroup.addPreference(pref); in updatePreferenceGroup()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceController.java | 78 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 82 preferenceGroup.removeAll(); in updateState() 84 preferenceGroup.addPreference(createNonePreference()); in updateState() 101 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in updateState() 102 Preference preference = preferenceGroup.getPreference(i); in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | AccessPointListPreferenceController.java | 62 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 71 preferenceGroup.setVisible(!mAccessPoints.isEmpty()); in updateState() 72 preferenceGroup.removeAll(); in updateState() 74 preferenceGroup.addPreference(createAccessPointPreference(accessPoint)); in updateState()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataWarningPreferenceControllerTest.java | 71 PreferenceGroup preferenceGroup = new LogicalPreferenceGroup(context); in setUp() local 74 DataWarningPreferenceController.class, preferenceGroup); in setUp() 80 preferenceGroup.addPreference(mEnablePreference); in setUp() 83 preferenceGroup.addPreference(mWarningPreference); in setUp()
|
D | DataLimitPreferenceControllerTest.java | 73 PreferenceGroup preferenceGroup = new LogicalPreferenceGroup(context); in setUp() local 76 DataLimitPreferenceController.class, preferenceGroup); in setUp() 82 preferenceGroup.addPreference(mEnablePreference); in setUp() 85 preferenceGroup.addPreference(mLimitPreference); in setUp()
|
/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/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, this); in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | UsersBasePreferenceController.java | 78 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 82 preferenceGroup.removeAll(); in updateState() 85 preferenceGroup.addPreference(preference); 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 | 99 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 101 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
D | LocationFooterPreferenceController.java | 122 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 123 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 127 PreferenceGroup preferenceGroup = getPreference(); in rebuildAppList() local 128 preferenceGroup.removeAll(); in rebuildAppList() 131 preferenceGroup.addPreference(createPreference(entry)); in rebuildAppList()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | PermissionsPreferenceControllerTest.java | 134 PreferenceGroup preferenceGroup, String restriction) { in getPreferenceForRestriction() argument 135 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in getPreferenceForRestriction() 136 SwitchPreference preference = (SwitchPreference) preferenceGroup.getPreference(i); in getPreferenceForRestriction()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapter.java | 95 public HighlightablePreferenceGroupAdapter(PreferenceGroup preferenceGroup, String key, in HighlightablePreferenceGroupAdapter() argument 97 super(preferenceGroup); in HighlightablePreferenceGroupAdapter() 100 final Context context = preferenceGroup.getContext(); in HighlightablePreferenceGroupAdapter()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | HighlightablePreferenceGroupAdapter.java | 95 public HighlightablePreferenceGroupAdapter(PreferenceGroup preferenceGroup, String key, in HighlightablePreferenceGroupAdapter() argument 97 super(preferenceGroup); in HighlightablePreferenceGroupAdapter() 100 final Context context = preferenceGroup.getContext(); in HighlightablePreferenceGroupAdapter()
|