Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java587 accounts.sort((account1, account2) -> { in sortSimPhoneAccountsForEmergency() argument
592 boolean isSim2 = account2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccountsForEmergency()
601 boolean isSim2Preferred = account2.hasCapabilities( in sortSimPhoneAccountsForEmergency()
611 int subId2 = mTelephonyAdapter.getSubIdForPhoneAccount(mContext, account2); in sortSimPhoneAccountsForEmergency()
632 } else if (account2.equals(userPreferredAccount)) { in sortSimPhoneAccountsForEmergency()
646 String pkg2 = account2.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccountsForEmergency()
654 String label2 = nullToEmpty(account2.getLabel().toString()); in sortSimPhoneAccountsForEmergency()
661 return account1.hashCode() - account2.hashCode(); in sortSimPhoneAccountsForEmergency()
DPhoneAccountRegistrar.java933 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() argument
934 if (account1 == null || account2 == null) { in getAccountDiffString()
935 return "Diff: " + account1 + ", " + account2; in getAccountDiffString()
941 Log.piiHandle(account2.getAddress())); in getAccountDiffString()
942 appendDiff(sb, "cap", account1.capabilitiesToString(), account2.capabilitiesToString()); in getAccountDiffString()
943 appendDiff(sb, "hl", account1.getHighlightColor(), account2.getHighlightColor()); in getAccountDiffString()
944 appendDiff(sb, "lbl", account1.getLabel(), account2.getLabel()); in getAccountDiffString()
945 appendDiff(sb, "desc", account1.getShortDescription(), account2.getShortDescription()); in getAccountDiffString()
947 Log.piiHandle(account2.getSubscriptionAddress())); in getAccountDiffString()
949 account2.getSupportedUriSchemes()); in getAccountDiffString()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java312 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
317 boolean isSim2 = account2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
323 int subId2 = mTelephonyManager.getSubIdForPhoneAccount(account2); in initAccountList()
333 String pkg2 = account2.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
340 String label2 = nullToEmpty(account2.getLabel().toString()); in initAccountList()
346 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java734 PhoneAccount account2 = new PhoneAccount.Builder( in testSortBySortOrder() local
746 registerAndEnableAccount(account2); in testSortBySortOrder()
773 PhoneAccount account2 = new PhoneAccount.Builder(makeQuickAccountHandle(componentB, "b"), in testSortByLabel() local
784 registerAndEnableAccount(account2); in testSortByLabel()
824 PhoneAccount account2 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() local
854 registerAndEnableAccount(account2); in testSortAll()
974 PhoneAccount account2 = builder.build(); in testPhoneAccountEquality() local
975 assertEquals(account1, account2); in testPhoneAccountEquality()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java389 final AccountWithDataSet account2 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
391 mAccounts.add(account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
415 ), account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
425 account2, ImmutableSet.of(existsInBoth, existsInAccount2)))); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1073 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithIdBasedUri() local
1080 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri()
1095 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithLookupUri() local
1102 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri()
1325 Account account2 = new Account("c", "d"); in testRawContactDataQuery() local
1328 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testRawContactDataQuery()
1332 Uri uri2 = TestUtil.maybeAddAccountQueryParameters(dataUri2, account2); in testRawContactDataQuery()
2934 Account account2 = new Account(accountName2, accountType2); in testUpdateFromMetadataEntry() local
2935 long rawContactId2 = RawContactUtil.createRawContactWithName(mResolver, account2); in testUpdateFromMetadataEntry()
4281 Account account2 = new Account("c", "d"); in testGroupQuery() local
[all …]