Home
last modified time | relevance | path

Searched refs:account1 (Results 1 – 10 of 10) 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/services/Telecomm/src/com/android/server/telecom/
DTelephonyUtil.java83 public int compare(PhoneAccount account1, PhoneAccount account2) { in sortSimPhoneAccounts()
87 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in sortSimPhoneAccounts()
93 int subId1 = telephonyManager.getSubIdForPhoneAccount(account1); in sortSimPhoneAccounts()
103 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in sortSimPhoneAccounts()
110 String label1 = nullToEmpty(account1.getLabel().toString()); in sortSimPhoneAccounts()
117 retval = account1.hashCode() - account2.hashCode(); in sortSimPhoneAccounts()
DPhoneAccountRegistrar.java786 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() argument
787 if (account1 == null || account2 == null) { in getAccountDiffString()
788 return "Diff: " + account1 + ", " + account2; in getAccountDiffString()
792 sb.append("[").append(account1.getAccountHandle()); in getAccountDiffString()
793 appendDiff(sb, "addr", Log.piiHandle(account1.getAddress()), in getAccountDiffString()
795 appendDiff(sb, "cap", account1.getCapabilities(), account2.getCapabilities()); in getAccountDiffString()
796 appendDiff(sb, "hl", account1.getHighlightColor(), account2.getHighlightColor()); in getAccountDiffString()
797 appendDiff(sb, "lbl", account1.getLabel(), account2.getLabel()); in getAccountDiffString()
798 appendDiff(sb, "desc", account1.getShortDescription(), account2.getShortDescription()); in getAccountDiffString()
799 appendDiff(sb, "subAddr", Log.piiHandle(account1.getSubscriptionAddress()), in getAccountDiffString()
[all …]
/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/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java299 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList()
303 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList()
309 int subId1 = mTelephonyManager.getSubIdForPhoneAccount(account1); in initAccountList()
319 String pkg1 = account1.getAccountHandle().getComponentName().getPackageName(); in initAccountList()
326 String label1 = nullToEmpty(account1.getLabel().toString()); in initAccountList()
333 retval = account1.hashCode() - account2.hashCode(); in initAccountList()
/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.java385 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
387 mAccounts.add(account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
409 ), account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist() local
423 account1, ImmutableSet.of(existsInBoth, existsInAccount1), in hasMultipleAccountsWhenMultipleMatchingContactsExist()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java1036 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithIdBasedUri() local
1039 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithIdBasedUri()
1058 Account account1 = new Account("act1", "actype1"); in testContactEntitiesWithLookupUri() local
1061 long rawContactId1 = RawContactUtil.createRawContactWithName(mResolver, account1); in testContactEntitiesWithLookupUri()
1288 Account account1 = new Account("a", "b"); in testRawContactDataQuery() local
1290 long rawContactId1 = RawContactUtil.createRawContact(mResolver, account1); in testRawContactDataQuery()
1295 Uri uri1 = TestUtil.maybeAddAccountQueryParameters(dataUri1, account1); in testRawContactDataQuery()
2938 Account account1 = new Account(accountName1, accountType1); in testUpdateFromMetadataEntry() local
2939 long rawContactId = RawContactUtil.createRawContactWithName(mResolver, account1); in testUpdateFromMetadataEntry()
2957 mResolver, account1); in testUpdateFromMetadataEntry()
[all …]