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.java656 accounts.sort((account1, account2) -> { in sortSimPhoneAccountsForEmergency() argument
661 boolean isSim2 = account2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccountsForEmergency()
670 boolean isSim2Preferred = account2.hasCapabilities( in sortSimPhoneAccountsForEmergency()
680 int subId2 = mTelephonyAdapter.getSubIdForPhoneAccount(mContext, account2); in sortSimPhoneAccountsForEmergency()
701 } else if (account2.equals(userPreferredAccount)) { in sortSimPhoneAccountsForEmergency()
715 String pkg2 = account2.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccountsForEmergency()
723 String label2 = nullToEmpty(account2.getLabel().toString()); in sortSimPhoneAccountsForEmergency()
730 return Integer.compare(account1.hashCode(), account2.hashCode()); in sortSimPhoneAccountsForEmergency()
DPhoneAccountRegistrar.java1448 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() argument
1449 if (account1 == null || account2 == null) { in getAccountDiffString()
1450 return "Diff: " + account1 + ", " + account2; in getAccountDiffString()
1456 Log.piiHandle(account2.getAddress())); in getAccountDiffString()
1457 appendDiff(sb, "cap", account1.capabilitiesToString(), account2.capabilitiesToString()); in getAccountDiffString()
1458 appendDiff(sb, "hl", account1.getHighlightColor(), account2.getHighlightColor()); in getAccountDiffString()
1459 appendDiff(sb, "lbl", account1.getLabel(), account2.getLabel()); in getAccountDiffString()
1460 appendDiff(sb, "desc", account1.getShortDescription(), account2.getShortDescription()); in getAccountDiffString()
1462 Log.piiHandle(account2.getSubscriptionAddress())); in getAccountDiffString()
1464 account2.getSupportedUriSchemes()); in getAccountDiffString()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java243 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
248 boolean isSim2 = account2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
254 int subId2 = mTelephonyManager.getSubIdForPhoneAccount(account2); in initAccountList()
264 String pkg2 = account2.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
271 String label2 = nullToEmpty(account2.getLabel().toString()); in initAccountList()
277 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java391 final AccountWithDataSet account2 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
393 mAccounts.add(account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
417 ), account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
427 account2, ImmutableSet.of(existsInBoth, existsInAccount2)))); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1292 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithIdBasedUri() local
1299 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithIdBasedUri()
1314 Account account2 = new Account("act2", "actype2"); in testContactEntitiesWithLookupUri() local
1321 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testContactEntitiesWithLookupUri()
1544 Account account2 = new Account("c", "d"); in testRawContactDataQuery() local
1547 long rawContactId2 = RawContactUtil.createRawContact(mResolver, account2); in testRawContactDataQuery()
1551 Uri uri2 = TestUtil.maybeAddAccountQueryParameters(dataUri2, account2); in testRawContactDataQuery()
4173 Account account2 = new Account("c", "d"); in testGroupQuery() local
4175 long groupId2 = createGroup(account2, "g", "h"); in testGroupQuery()
4177 Uri uri2 = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account2); in testGroupQuery()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java1017 PhoneAccount account2 = new PhoneAccount.Builder( in testSortBySortOrder() local
1029 registerAndEnableAccount(account2); in testSortBySortOrder()
1056 PhoneAccount account2 = new PhoneAccount.Builder(makeQuickAccountHandle(componentB, "b"), in testSortByLabel() local
1067 registerAndEnableAccount(account2); in testSortByLabel()
1112 PhoneAccount account2 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() local
1142 registerAndEnableAccount(account2); in testSortAll()
1263 PhoneAccount account2 = builder.build(); in testPhoneAccountEquality() local
1264 assertEquals(account1, account2); in testPhoneAccountEquality()