Home
last modified time | relevance | path

Searched refs:account1 (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
660 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccountsForEmergency()
668 boolean isSim1Preferred = account1.hasCapabilities( in sortSimPhoneAccountsForEmergency()
679 int subId1 = mTelephonyAdapter.getSubIdForPhoneAccount(mContext, account1); in sortSimPhoneAccountsForEmergency()
699 if (account1.equals(userPreferredAccount)) { in sortSimPhoneAccountsForEmergency()
714 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccountsForEmergency()
722 String label1 = nullToEmpty(account1.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()
1454 sb.append("[").append(account1.getAccountHandle()); in getAccountDiffString()
1455 appendDiff(sb, "addr", Log.piiHandle(account1.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()
1461 appendDiff(sb, "subAddr", Log.piiHandle(account1.getSubscriptionAddress()), in getAccountDiffString()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java243 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
247 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
253 int subId1 = mTelephonyManager.getSubIdForPhoneAccount(account1); in initAccountList()
263 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
270 String label1 = nullToEmpty(account1.getLabel().toString()); in initAccountList()
277 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java388 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
390 mAccounts.add(account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
412 ), account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
426 account1, ImmutableSet.of(existsInBoth, existsInAccount1), in hasMultipleAccountsWhenMultipleMatchingContactsExist()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java1009 PhoneAccount account1 = new PhoneAccount.Builder( in testSortBySortOrder() local
1030 registerAndEnableAccount(account1); in testSortBySortOrder()
1051 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle(componentA, "c"), in testSortByLabel() local
1066 registerAndEnableAccount(account1); in testSortByLabel()
1103 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() local
1141 registerAndEnableAccount(account1); in testSortAll()
1262 PhoneAccount account1 = builder.build(); in testPhoneAccountEquality() local
1264 assertEquals(account1, account2); in testPhoneAccountEquality()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1291 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithIdBasedUri() local
1294 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
1313 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithLookupUri() local
1316 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
1543 Account account1 = new Account("a", "b"); in testRawContactDataQuery() local
1545 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account1); in testRawContactDataQuery()
1550 Uri uri1 = TestUtil.maybeAddAccountQueryParameters(dataUri1, account1); in testRawContactDataQuery()
4172 Account account1 = new Account("a", "b"); in testGroupQuery() local
4174 long groupId1 = createGroup(account1, "e", "f"); in testGroupQuery()
4176 Uri uri1 = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account1); in testGroupQuery()
[all …]