Home
last modified time | relevance | path

Searched refs:allAccounts (Results 1 – 6 of 6) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java364 private void adjustAttemptsForEmergencyNoSimRequired(List<PhoneAccount> allAccounts) { in adjustAttemptsForEmergencyNoSimRequired() argument
367 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired()
388 List<PhoneAccount> allAccounts = mPhoneAccountRegistrar in adjustAttemptsForEmergency() local
391 if (allAccounts.isEmpty()) { in adjustAttemptsForEmergency()
397 allAccounts = new ArrayList<PhoneAccount>(); in adjustAttemptsForEmergency()
398 allAccounts.add(TelephonyUtil.getDefaultEmergencyPhoneAccount()); in adjustAttemptsForEmergency()
404 allAccounts = mPhoneAccountRegistrar.filterRestrictedPhoneAccounts(allAccounts); in adjustAttemptsForEmergency()
411 sortSimPhoneAccountsForEmergency(allAccounts, preferredPA); in adjustAttemptsForEmergency()
413 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency()
453 adjustAttemptsForEmergencyNoSimRequired(allAccounts); in adjustAttemptsForEmergency()
DCallsManager.java2685 List<PhoneAccountHandle> allAccounts =
2709 allAccounts.removeAll(simAccounts);
2712 return allAccounts;
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java200 List<PhoneAccount> allAccounts = new ArrayList<>(); in testFilterPhoneAccountForTest() local
201 allAccounts.addAll(accountAList); in testFilterPhoneAccountForTest()
202 allAccounts.addAll(accountBList); in testFilterPhoneAccountForTest()
203 allAccounts.addAll(accountCList); in testFilterPhoneAccountForTest()
205 assertEquals(allAccounts, mRegistrar.filterRestrictedPhoneAccounts(allAccounts)); in testFilterPhoneAccountForTest()
208 assertEquals(accountAList, mRegistrar.filterRestrictedPhoneAccounts(allAccounts)); in testFilterPhoneAccountForTest()
211 assertEquals(accountBList, mRegistrar.filterRestrictedPhoneAccounts(allAccounts)); in testFilterPhoneAccountForTest()
214 assertEquals(accountCList, mRegistrar.filterRestrictedPhoneAccounts(allAccounts)); in testFilterPhoneAccountForTest()
217 assertEquals(allAccounts, mRegistrar.filterRestrictedPhoneAccounts(allAccounts)); in testFilterPhoneAccountForTest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java380 final Account[] allAccounts = new Account[4]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences() local
381 allAccounts[0] = accountType1[0]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
382 allAccounts[1] = accountType1[1]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
383 allAccounts[2] = accountType2[0]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
384 allAccounts[3] = accountType2[1]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
392 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts); in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java416 final List<AccountWithDataSet> allAccounts = new ArrayList<>(); in loadAccountsInBackground() local
530 allAccounts.add(accountWithDataSet); in loadAccountsInBackground()
542 Collections.sort(allAccounts, ACCOUNT_COMPARATOR); in loadAccountsInBackground()
550 mAccounts = allAccounts; in loadAccountsInBackground()
554 findAllInvitableAccountTypes(mContext, allAccounts, accountTypesByTypeAndDataSet); in loadAccountsInBackground()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java234 final List<AccountWithDataSet> allAccounts =
236 if (allAccounts == null || allAccounts.size() == 0) {
239 if (allAccounts.size() > 1) {
242 return !allAccounts.get(0).isNullAccount();