/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 | 57 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 59 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() 64 preferenceGroup.addPreference(profilePref); in updateState() 68 Preference prefToRemove = preferenceGroup.findPreference(removedProfile.toString()); in updateState() 70 preferenceGroup.removePreference(prefToRemove); in updateState() 73 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/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/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/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | EnabledKeyboardPreferenceController.java | 72 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 94 updatePreferenceGroup(preferenceGroup, preferencesToDisplay, preferencesToRemove); in updateState() 98 PreferenceGroup preferenceGroup, List<Preference> preferencesToDisplay, in updatePreferenceGroup() argument 105 preferenceGroup.removePreference(mPreferences.get(key)); in updatePreferenceGroup() 113 preferenceGroup.addPreference(pref); in updatePreferenceGroup()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceController.java | 78 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 107 preferenceGroup.addPreference(accountPref); in updateState() 113 preferenceGroup.removePreference(mAccountPreferenceMap.get(accountToRemove)); in updateState() 117 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 1); in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceController.java | 79 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 83 preferenceGroup.removeAll(); in updateState() 85 preferenceGroup.addPreference(createNonePreference()); in updateState() 103 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in updateState() 104 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, getExclusionSet(), 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 | 90 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 97 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
D | LocationFooterPreferenceController.java | 123 protected void updateState(PreferenceGroup preferenceGroup) { in updateState() argument 124 preferenceGroup.setVisible(preferenceGroup.getPreferenceCount() > 0); in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 128 PreferenceGroup preferenceGroup = getPreference(); in rebuildAppList() local 129 preferenceGroup.removeAll(); in rebuildAppList() 132 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/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()
|
/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()
|