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.java587 accounts.sort((account1, account2) -> { in sortSimPhoneAccountsForEmergency() argument
591 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccountsForEmergency()
599 boolean isSim1Preferred = account1.hasCapabilities( in sortSimPhoneAccountsForEmergency()
610 int subId1 = mTelephonyAdapter.getSubIdForPhoneAccount(mContext, account1); in sortSimPhoneAccountsForEmergency()
630 if (account1.equals(userPreferredAccount)) { in sortSimPhoneAccountsForEmergency()
645 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccountsForEmergency()
653 String label1 = nullToEmpty(account1.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()
939 sb.append("[").append(account1.getAccountHandle()); in getAccountDiffString()
940 appendDiff(sb, "addr", Log.piiHandle(account1.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()
946 appendDiff(sb, "subAddr", Log.piiHandle(account1.getSubscriptionAddress()), in getAccountDiffString()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java312 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
316 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
322 int subId1 = mTelephonyManager.getSubIdForPhoneAccount(account1); in initAccountList()
332 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
339 String label1 = nullToEmpty(account1.getLabel().toString()); in initAccountList()
346 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java728 PhoneAccount account1 = new PhoneAccount.Builder( in testSortBySortOrder() local
747 registerAndEnableAccount(account1); in testSortBySortOrder()
768 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle(componentA, "c"), in testSortByLabel() local
783 registerAndEnableAccount(account1); in testSortByLabel()
817 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() local
853 registerAndEnableAccount(account1); in testSortAll()
973 PhoneAccount account1 = builder.build(); in testPhoneAccountEquality() local
975 assertEquals(account1, account2); in testPhoneAccountEquality()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java386 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
388 mAccounts.add(account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
410 ), account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
424 account1, ImmutableSet.of(existsInBoth, existsInAccount1), in hasMultipleAccountsWhenMultipleMatchingContactsExist()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1072 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithIdBasedUri() local
1075 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
1094 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithLookupUri() local
1097 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
1324 Account account1 = new Account("a", "b"); in testRawContactDataQuery() local
1326 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account1); in testRawContactDataQuery()
1331 Uri uri1 = TestUtil.maybeAddAccountQueryParameters(dataUri1, account1); in testRawContactDataQuery()
2901 Account account1 = new Account(accountName1, accountType1); in testUpdateFromMetadataEntry() local
2902 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, account1); in testUpdateFromMetadataEntry()
2920 mResolver, account1); in testUpdateFromMetadataEntry()
[all …]