/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | MailboxTests.java | 31 import com.android.email.provider.ProviderTestUtils; 82 Message message = ProviderTestUtils.setupMessage( in createMessage() 99 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); in testSave() 101 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testSave() 106 ProviderTestUtils.assertMailboxEqual("testMailboxSave", box1, box2); in testSave() 115 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c); in testDelete() 117 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testDelete() 119 Mailbox box2 = ProviderTestUtils.setupMailbox("box2", account1Id, true, c); in testDelete() 149 Account a = ProviderTestUtils.setupAccount("acct1", true, c); in testGetMailboxType() 150 Mailbox bi = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_INBOX); in testGetMailboxType() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 170 Message message = ProviderTestUtils.setupMessage("1", in createMessage() 192 Account account1 = ProviderTestUtils.setupAccount("account-save", true, mMockContext); in testAccountSave() 197 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account2); in testAccountSave() 205 Account account1 = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); in testAccountSaveHostAuth() 208 ProviderTestUtils.setupHostAuth("account-hostauth-recv", -1, false, mMockContext); in testAccountSaveHostAuth() 210 ProviderTestUtils.setupHostAuth("account-hostauth-send", -1, false, mMockContext); in testAccountSaveHostAuth() 216 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account1get); in testAccountSaveHostAuth() 221 ProviderTestUtils.assertHostAuthEqual( in testAccountSaveHostAuth() 225 ProviderTestUtils.assertHostAuthEqual( in testAccountSaveHostAuth() 230 Account account = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); in testAccountGetHostAuthSend() [all …]
|
D | AttachmentProviderTests.java | 83 Account account1 = ProviderTestUtils.setupAccount("attachment-query", false, mMockContext); in testQuery() 107 Attachment newAttachment1 = ProviderTestUtils.setupAttachment(message1Id, "file1", 100, in testQuery() 114 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 200, in testQuery() 121 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 300, in testQuery() 162 Message m = ProviderTestUtils.setupMessage("1", b.mAccountKey, b.mId, true, false, c, false, in createMessage() 171 Account a1 = ProviderTestUtils.setupAccount("inboxquery-1", true, mMockContext); in testInboxQuery() 172 Account a2 = ProviderTestUtils.setupAccount("inboxquery-2", true, mMockContext); in testInboxQuery() 175 Mailbox b1 = ProviderTestUtils.setupMailbox( in testInboxQuery() 177 Mailbox b2 = ProviderTestUtils.setupMailbox( in testInboxQuery() 179 Mailbox b3 = ProviderTestUtils.setupMailbox( in testInboxQuery() [all …]
|
D | AccountBackupRestoreTests.java | 84 ProviderTestUtils.setupAccount("testBackup1", false, mMockContext); in testBackupAndRestore() 86 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); in testBackupAndRestore() 88 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); in testBackupAndRestore() 91 ProviderTestUtils.setupAccount("testBackup2", false, mMockContext); in testBackupAndRestore() 93 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); in testBackupAndRestore() 95 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); in testBackupAndRestore() 135 ProviderTestUtils.assertHostAuthEqual("backup", saved1.mHostAuthRecv, recv, false); in testBackupAndRestore() 136 ProviderTestUtils.assertHostAuthEqual("backup", saved1.mHostAuthSend, send, false); in testBackupAndRestore() 149 ProviderTestUtils.assertHostAuthEqual("backup", saved2.mHostAuthRecv, recv, false); in testBackupAndRestore() 150 ProviderTestUtils.assertHostAuthEqual("backup", saved2.mHostAuthSend, send, false); in testBackupAndRestore()
|
D | PolicyTests.java | 71 Account account1 = ProviderTestUtils.setupAccount("acct1", true, mMockContext); in testGetAccountIdWithPolicyKey() 74 Account account2 = ProviderTestUtils.setupAccount("acct2", true, mMockContext); in testGetAccountIdWithPolicyKey() 92 Account account = ProviderTestUtils.setupAccount("acct", true, mMockContext); in testSetAndClearAccountPolicy() 119 Attachment att = ProviderTestUtils.setupAttachment(-1, name, size, false, mMockContext); in setupSimpleAttachment() 124 Account acct = ProviderTestUtils.setupAccount("acct1", true, mMockContext); in testSetAttachmentFlagsForNewPolicy() 128 Mailbox box = ProviderTestUtils.setupMailbox("box1", acct.mId, true, mMockContext); in testSetAttachmentFlagsForNewPolicy() 129 Message msg1 = ProviderTestUtils.setupMessage("message1", acct.mId, box.mId, false, false, in testSetAttachmentFlagsForNewPolicy() 138 Message msg2 = ProviderTestUtils.setupMessage("message2", acct.mId, box.mId, false, false, in testSetAttachmentFlagsForNewPolicy()
|
D | ContentCacheTests.java | 140 Account acct = ProviderTestUtils.setupAccount("account", true, context); in testCachedCursors() 141 ProviderTestUtils.setupMailbox("box1", acct.mId, true, context); in testCachedCursors() 142 Mailbox box = ProviderTestUtils.setupMailbox("box2", acct.mId, true, context); in testCachedCursors()
|
D | ProviderTestUtils.java | 39 public class ProviderTestUtils extends Assert { class 44 private ProviderTestUtils() { in ProviderTestUtils() method in ProviderTestUtils
|
/packages/apps/Email/tests/src/com/android/email/ |
D | SecurityPolicyTests.java | 29 import com.android.email.provider.ProviderTestUtils; 136 ProviderTestUtils.setupAccount("no-sec-1", true, mMockContext); in testAggregator() 137 ProviderTestUtils.setupAccount("no-sec-2", true, mMockContext); in testAggregator() 142 Account a3 = ProviderTestUtils.setupAccount("sec-3", true, mMockContext); in testAggregator() 168 Account a4 = ProviderTestUtils.setupAccount("sec-4", true, mMockContext); in testAggregator() 194 Account a5 = ProviderTestUtils.setupAccount("sec-5", true, mMockContext); in testAggregator() 235 Account account = ProviderTestUtils.setupAccount("testaccount", true, mMockContext); in testSettingAccountPolicy() 278 Account a2 = ProviderTestUtils.setupAccount("holdflag-2", false, mMockContext); in testSetClearHoldFlag() 299 Account a1 = ProviderTestUtils.setupAccount("disable-1", true, mMockContext); in testDisableAdmin() 304 Account a2 = ProviderTestUtils.setupAccount("disable-2", true, mMockContext); in testDisableAdmin() [all …]
|
D | LegacyConversionsTests.java | 27 import com.android.email.provider.ProviderTestUtils; 88 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddAttachments() 94 final EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage( in brokentestAddAttachments() 176 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAttachmentDispositions() 194 final EmailContent.Message localMessage = ProviderTestUtils.setupMessage( in brokentestAddDuplicateAttachments() 333 EmailContent.Message localMessage1 = ProviderTestUtils.setupMessage("make-legacy", in brokentestMakeLegacyMessage() 339 EmailContent.Message localMessage2 = ProviderTestUtils.setupMessage("make-legacy", in brokentestMakeLegacyMessage() 347 EmailContent.Message localMessage3 = ProviderTestUtils.setupMessage("make-legacy", in brokentestMakeLegacyMessage() 356 EmailContent.Message localMessage4 = ProviderTestUtils.setupMessage("make-legacy", in brokentestMakeLegacyMessage()
|
D | AccountTestCase.java | 28 import com.android.email.provider.ProviderTestUtils; 67 return ProviderTestUtils.setupAccount(username, true, getMockContext()); in setupProviderAndAccountManagerAccount()
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | EmailBroadcastProcessorServiceTests.java | 25 import com.android.email.provider.ProviderTestUtils; 63 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); in setupSimpleHostAuth() 87 Account account1 = ProviderTestUtils.setupAccount("eas-account1", false, mMockContext); in testSetImapDeletePolicy() 92 Account account2 = ProviderTestUtils.setupAccount("pop-account1", false, mMockContext); in testSetImapDeletePolicy() 98 Account account3 = ProviderTestUtils.setupAccount("pop-account2", false, mMockContext); in testSetImapDeletePolicy() 103 Account account4 = ProviderTestUtils.setupAccount("imap-account1", false, mMockContext); in testSetImapDeletePolicy() 109 Account account5 = ProviderTestUtils.setupAccount("imap-account2", false, mMockContext); in testSetImapDeletePolicy() 115 Account account6 = ProviderTestUtils.setupAccount("imap-account3", false, mMockContext); in testSetImapDeletePolicy()
|
/packages/apps/Email/tests/src/com/android/email/mail/ |
D | StoreTests.java | 25 import com.android.email.provider.ProviderTestUtils; 64 Account testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); in testGetInstance() 77 testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); in testGetInstance() 89 testAccount = ProviderTestUtils.setupAccount("unknown", false, mMockContext); in testGetInstance()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 26 import com.android.email.provider.ProviderTestUtils; 73 Account testAccount = ProviderTestUtils.setupAccount("acct1", false, mMockContext); in setUp()
|