Home
last modified time | relevance | path

Searched refs:authorities (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/accounts/
DChooseAccountPreferenceController.java81 public void initialize(String[] authorities, String[] accountTypesFilter, UserHandle userHandle, in initialize() argument
84 mAuthorities = authorities; in initialize()
212 List<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() local
213 if (authorities == null) { in getAuthoritiesForAccountType()
214 authorities = new ArrayList<>(); in getAuthoritiesForAccountType()
215 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
221 authorities.add(sa.authority); in getAuthoritiesForAccountType()
DAccountDashboardFragment.java66 final String[] authorities = getIntent().getStringArrayExtra(EXTRA_AUTHORITIES); in createPreferenceControllers() local
67 return buildPreferenceControllers(context, this /* parent */, authorities); in createPreferenceControllers()
71 SettingsPreferenceFragment parent, String[] authorities) { in buildPreferenceControllers() argument
75 new AccountPreferenceController(context, parent, authorities); in buildPreferenceControllers()
DAccountRestrictionHelper.java68 public static boolean showAccount(String[] authorities, ArrayList<String> auths) { in showAccount() argument
70 if (authorities != null && auths != null) { in showAccount()
72 for (String requestedAuthority : authorities) { in showAccount()
DAddAccountSettings.java216 final String[] authorities = in requestChooseAccount() local
221 if (authorities != null) { in requestChooseAccount()
222 intent.putExtra(AccountPreferenceBase.AUTHORITIES_FILTER_KEY, authorities); in requestChooseAccount()
DChooseAccountFragment.java53 final String[] authorities = getIntent().getStringArrayExtra( in onAttach() local
61 use(ChooseAccountPreferenceController.class).initialize(authorities, accountTypesFilter, in onAttach()
DAccountSyncSettings.java497 ArrayList<SyncAdapterType> authorities = new ArrayList<>(); in updateAccountSwitches() local
507 authorities.add(sa); in updateAccountSwitches()
521 for (int j = 0, m = authorities.size(); j < m; j++) { in updateAccountSwitches()
522 final SyncAdapterType syncAdapter = authorities.get(j); in updateAccountSwitches()
DAccountPreference.java49 ArrayList<String> authorities, boolean showTypeIcon) { in AccountPreference() argument
52 mAuthorities = authorities; in AccountPreference()
DAccountPreferenceController.java133 String[] authorities) { in AccountPreferenceController() argument
134 this(context, parent, authorities, new AccountRestrictionHelper(context)); in AccountPreferenceController()
139 String[] authorities, AccountRestrictionHelper helper) { in AccountPreferenceController() argument
142 mAuthorities = authorities; in AccountPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DChooseAccountPreferenceController.java81 public void initialize(String[] authorities, String[] accountTypesFilter, UserHandle userHandle, in initialize() argument
84 mAuthorities = authorities; in initialize()
212 List<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() local
213 if (authorities == null) { in getAuthoritiesForAccountType()
214 authorities = new ArrayList<>(); in getAuthoritiesForAccountType()
215 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
221 authorities.add(sa.authority); in getAuthoritiesForAccountType()
DAccountDashboardFragment.java66 final String[] authorities = getIntent().getStringArrayExtra(EXTRA_AUTHORITIES); in createPreferenceControllers() local
67 return buildPreferenceControllers(context, this /* parent */, authorities); in createPreferenceControllers()
71 SettingsPreferenceFragment parent, String[] authorities) { in buildPreferenceControllers() argument
75 new AccountPreferenceController(context, parent, authorities); in buildPreferenceControllers()
DAccountRestrictionHelper.java68 public static boolean showAccount(String[] authorities, ArrayList<String> auths) { in showAccount() argument
70 if (authorities != null && auths != null) { in showAccount()
72 for (String requestedAuthority : authorities) { in showAccount()
DAddAccountSettings.java216 final String[] authorities = in requestChooseAccount() local
221 if (authorities != null) { in requestChooseAccount()
222 intent.putExtra(AccountPreferenceBase.AUTHORITIES_FILTER_KEY, authorities); in requestChooseAccount()
DChooseAccountFragment.java53 final String[] authorities = getIntent().getStringArrayExtra( in onAttach() local
61 use(ChooseAccountPreferenceController.class).initialize(authorities, accountTypesFilter, in onAttach()
DAccountSyncSettings.java497 ArrayList<SyncAdapterType> authorities = new ArrayList<>(); in updateAccountSwitches() local
507 authorities.add(sa); in updateAccountSwitches()
521 for (int j = 0, m = authorities.size(); j < m; j++) { in updateAccountSwitches()
522 final SyncAdapterType syncAdapter = authorities.get(j); in updateAccountSwitches()
DAccountPreference.java49 ArrayList<String> authorities, boolean showTypeIcon) { in AccountPreference() argument
52 mAuthorities = authorities; in AccountPreference()
DAccountPreferenceController.java133 String[] authorities) { in AccountPreferenceController() argument
134 this(context, parent, authorities, new AccountRestrictionHelper(context)); in AccountPreferenceController()
139 String[] authorities, AccountRestrictionHelper helper) { in AccountPreferenceController() argument
142 mAuthorities = authorities; in AccountPreferenceController()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountDetailsWithSyncStatusPreferenceControllerTest.java141 private void setUpVisibleSyncAdapters(String... authorities) { in setUpVisibleSyncAdapters() argument
142 SyncAdapterType[] syncAdapters = new SyncAdapterType[authorities.length]; in setUpVisibleSyncAdapters()
143 for (int i = 0; i < authorities.length; i++) { in setUpVisibleSyncAdapters()
144 String authority = authorities[i]; in setUpVisibleSyncAdapters()
DAccountSyncDetailsFragmentTest.java201 private void setUpSyncAdapters(String... authorities) { in setUpSyncAdapters() argument
202 SyncAdapterType[] syncAdapters = new SyncAdapterType[authorities.length]; in setUpSyncAdapters()
203 for (int i = 0; i < authorities.length; i++) { in setUpSyncAdapters()
204 String authority = authorities[i]; in setUpSyncAdapters()
DAccountSyncDetailsPreferenceControllerTest.java514 private void setUpVisibleSyncAdapters(String... authorities) { in setUpVisibleSyncAdapters() argument
515 SyncAdapterType[] syncAdapters = new SyncAdapterType[authorities.length]; in setUpVisibleSyncAdapters()
516 for (int i = 0; i < authorities.length; i++) { in setUpVisibleSyncAdapters()
517 String authority = authorities[i]; in setUpVisibleSyncAdapters()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DChooseAccountFragment.java44 String[] authorities = requireActivity().getIntent().getStringArrayExtra( in onAttach() local
46 if (authorities != null) { in onAttach()
48 .setAuthorities(Arrays.asList(authorities)); in onAttach()
DAccountSettingsFragment.java68 String[] authorities = getActivity().getIntent().getStringArrayExtra( in onAttach() local
70 if (authorities != null) { in onAttach()
72 .setAuthorities(authorities); in onAttach()
DChooseAccountPreferenceController.java78 public void setAuthorities(List<String> authorities) { in setAuthorities() argument
79 mAuthorities = authorities; in setAuthorities()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceTest.java41 final ArrayList<String> authorities = new ArrayList<>(); in setUp() local
42 authorities.add("authority"); in setUp()
48 authorities, in setUp()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java348 ArrayList<String> authorities = new ArrayList<>(syncAdapters.length); in updateAccountSwitches() local
357 authorities.add(sa.authority); in updateAccountSwitches()
366 final List<Preference> switches = new ArrayList<>(authorities.size()); in updateAccountSwitches()
371 for (final String authority : authorities) { in updateAccountSwitches()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp357 authorities.resize(nscount); in read()
359 cur = authorities[i].read(cur, buffer_end); in read()
397 header.nscount = htons(authorities.size()); in write()
408 for (const DNSRecord& authority : authorities) { in write()
877 header->authorities.clear(); in makeErrorResponse()
890 header->authorities.clear(); in makeTruncatedResponse()

12