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.java365 private void adjustAttemptsForEmergencyNoSimRequired(List<PhoneAccount> allAccounts) { in adjustAttemptsForEmergencyNoSimRequired() argument
368 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired()
389 List<PhoneAccount> allAccounts = mPhoneAccountRegistrar in adjustAttemptsForEmergency() local
392 if (allAccounts.isEmpty() && mContext.getPackageManager().hasSystemFeature( in adjustAttemptsForEmergency()
399 allAccounts = new ArrayList<PhoneAccount>(); in adjustAttemptsForEmergency()
400 allAccounts.add(TelephonyUtil.getDefaultEmergencyPhoneAccount()); in adjustAttemptsForEmergency()
406 allAccounts = mPhoneAccountRegistrar.filterRestrictedPhoneAccounts(allAccounts); in adjustAttemptsForEmergency()
413 sortSimPhoneAccountsForEmergency(allAccounts, preferredPA); in adjustAttemptsForEmergency()
415 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency()
452 adjustAttemptsForEmergencyNoSimRequired(allAccounts); in adjustAttemptsForEmergency()
DCallsManager.java2705 List<PhoneAccountHandle> allAccounts =
2729 allAccounts.removeAll(simAccounts);
2732 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.java384 final Account[] allAccounts = new Account[4]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences() local
385 allAccounts[0] = accountType1[0]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
386 allAccounts[1] = accountType1[1]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
387 allAccounts[2] = accountType2[0]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
388 allAccounts[3] = accountType2[1]; in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
396 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(allAccounts); in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
/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();
/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()