Home
last modified time | relevance | path

Searched refs:account1 (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/provider/
DAttachmentProviderTests.java83 Account account1 = ProviderTestUtils.setupAccount("attachment-query", false, mMockContext); in testQuery() local
84 account1.save(mMockContext); in testQuery()
94 Uri attachment1Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery()
96 Uri attachment2Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery()
98 Uri attachment3Uri = AttachmentUtilities.getAttachmentUri(account1.mId, in testQuery()
110 AttachmentUtilities.getAttachmentUri(account1.mId, attachment1Id).toString()); in testQuery()
111 attachment1Id = addAttachmentToDb(account1, newAttachment1); in testQuery()
117 AttachmentUtilities.getAttachmentUri(account1.mId, attachment2Id).toString()); in testQuery()
118 attachment2Id = addAttachmentToDb(account1, newAttachment2); in testQuery()
124 AttachmentUtilities.getAttachmentUri(account1.mId, attachment3Id).toString()); in testQuery()
[all …]
DProviderTests.java192 Account account1 = ProviderTestUtils.setupAccount("account-save", true, mMockContext); in testAccountSave() local
193 long account1Id = account1.mId; in testAccountSave()
197 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account2); in testAccountSave()
205 Account account1 = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); in testAccountSaveHostAuth() local
207 account1.mHostAuthRecv = in testAccountSaveHostAuth()
209 account1.mHostAuthSend = in testAccountSaveHostAuth()
211 account1.save(mMockContext); in testAccountSaveHostAuth()
212 long account1Id = account1.mId; in testAccountSaveHostAuth()
216 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account1get); in testAccountSaveHostAuth()
222 "testAccountSaveHostAuth-recv", account1.mHostAuthRecv, hostAuth1get); in testAccountSaveHostAuth()
[all …]
DPolicyTests.java71 Account account1 = ProviderTestUtils.setupAccount("acct1", true, mMockContext); in testGetAccountIdWithPolicyKey() local
73 SecurityPolicy.setAccountPolicy(mMockContext, account1, policy1, securitySyncKey); in testGetAccountIdWithPolicyKey()
78 account1.refresh(mMockContext); in testGetAccountIdWithPolicyKey()
81 assertTrue(account1.mPolicyKey > 0); in testGetAccountIdWithPolicyKey()
84 assertEquals(account1.mId, Policy.getAccountIdWithPolicyKey(mMockContext, in testGetAccountIdWithPolicyKey()
85 account1.mPolicyKey)); in testGetAccountIdWithPolicyKey()
/packages/apps/Email/tests/src/com/android/email/service/
DEmailBroadcastProcessorServiceTests.java87 Account account1 = ProviderTestUtils.setupAccount("eas-account1", false, mMockContext); in testSetImapDeletePolicy() local
88 account1.mHostAuthRecv = setupSimpleHostAuth("eas"); in testSetImapDeletePolicy()
89 account1.mHostAuthSend = account1.mHostAuthRecv; in testSetImapDeletePolicy()
90 account1.save(mMockContext); in testSetImapDeletePolicy()
91 long accountId1 = account1.mId; in testSetImapDeletePolicy()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java522 accounts.sort((account1, account2) -> { in sortSimPhoneAccountsForEmergency() argument
526 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccountsForEmergency()
534 boolean isSim1Preferred = account1.hasCapabilities( in sortSimPhoneAccountsForEmergency()
545 int subId1 = mTelephonyAdapter.getSubIdForPhoneAccount(mContext, account1); in sortSimPhoneAccountsForEmergency()
565 if (account1.equals(userPreferredAccount)) { in sortSimPhoneAccountsForEmergency()
580 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccountsForEmergency()
588 String label1 = nullToEmpty(account1.getLabel().toString()); in sortSimPhoneAccountsForEmergency()
596 return account1.hashCode() - account2.hashCode(); in sortSimPhoneAccountsForEmergency()
DPhoneAccountRegistrar.java902 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() argument
903 if (account1 == null || account2 == null) { in getAccountDiffString()
904 return "Diff: " + account1 + ", " + account2; in getAccountDiffString()
908 sb.append("[").append(account1.getAccountHandle()); in getAccountDiffString()
909 appendDiff(sb, "addr", Log.piiHandle(account1.getAddress()), in getAccountDiffString()
911 appendDiff(sb, "cap", account1.capabilitiesToString(), account2.capabilitiesToString()); in getAccountDiffString()
912 appendDiff(sb, "hl", account1.getHighlightColor(), account2.getHighlightColor()); in getAccountDiffString()
913 appendDiff(sb, "lbl", account1.getLabel(), account2.getLabel()); in getAccountDiffString()
914 appendDiff(sb, "desc", account1.getShortDescription(), account2.getShortDescription()); in getAccountDiffString()
915 appendDiff(sb, "subAddr", Log.piiHandle(account1.getSubscriptionAddress()), in getAccountDiffString()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java313 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
317 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
323 int subId1 = mTelephonyManager.getSubIdForPhoneAccount(account1); in initAccountList()
333 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
340 String label1 = nullToEmpty(account1.getLabel().toString()); in initAccountList()
347 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java664 PhoneAccount account1 = new PhoneAccount.Builder( in testSortBySortOrder() local
683 registerAndEnableAccount(account1); in testSortBySortOrder()
704 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle(componentA, "c"), in testSortByLabel() local
719 registerAndEnableAccount(account1); in testSortByLabel()
753 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() local
789 registerAndEnableAccount(account1); in testSortAll()
909 PhoneAccount account1 = builder.build(); in testPhoneAccountEquality() local
911 assertEquals(account1, account2); in testPhoneAccountEquality()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java99 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); in testSave() local
100 long account1Id = account1.mId; in testSave()
115 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c); in testDelete() local
116 long account1Id = account1.mId; in testDelete()
/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.java1046 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithIdBasedUri() local
1049 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
1068 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithLookupUri() local
1071 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
1298 Account account1 = new Account("a", "b"); in testRawContactDataQuery() local
1300 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account1); in testRawContactDataQuery()
1305 Uri uri1 = TestUtil.maybeAddAccountQueryParameters(dataUri1, account1); in testRawContactDataQuery()
2875 Account account1 = new Account(accountName1, accountType1); in testUpdateFromMetadataEntry() local
2876 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, account1); in testUpdateFromMetadataEntry()
2894 mResolver, account1); in testUpdateFromMetadataEntry()
[all …]