/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityMediumTests.java | 20 import com.android.email.provider.ProviderTestUtils; 62 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); 63 account1.mHostAuthRecv = ProviderTestUtils.setupHostAuth("ha1", -1, false, mMockContext); 64 account1.mHostAuthSend = ProviderTestUtils.setupHostAuth("ha1", -1, false, mMockContext); 66 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); 67 account2.mHostAuthRecv = ProviderTestUtils.setupHostAuth("ha2", -1, false, mMockContext); 68 account2.mHostAuthSend = ProviderTestUtils.setupHostAuth("ha2", -1, false, mMockContext); 86 Account account = ProviderTestUtils.setupAccount("account", true, mMockContext); 91 ProviderTestUtils.setupMailbox("mailbox", account.mId, true, mMockContext); 92 Message message = ProviderTestUtils.setupMessage("foo", account.mId, mailbox.mId, false [all...] |
UtilityUnitTests.java | 22 import com.android.email.provider.ProviderTestUtils; 293 Account account = ProviderTestUtils.setupAccount("account", true, providerContext); 294 Mailbox mailbox = ProviderTestUtils.setupMailbox("box", account.mId, true, providerContext); 297 Attachment att = ProviderTestUtils.setupAttachment(mailbox.mId, "name", 123, true, 321 Account account1 = ProviderTestUtils.setupAccount("account1", true, mockContext); 322 Account account2 = ProviderTestUtils.setupAccount("account2", true, mockContext); 323 Account account3 = ProviderTestUtils.setupAccount("account3", true, mockContext); 324 Account account4 = ProviderTestUtils.setupAccount("account4", true, mockContext); 325 Mailbox mailbox1_1 = ProviderTestUtils.setupMailbox("mbox1_1", account1.mId, true, 327 Mailbox mailbox1_2 = ProviderTestUtils.setupMailbox("mbox1_2", account1.mId, true [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
ControllerProviderOpsTests.java | 25 import com.android.email.provider.ProviderTestUtils; 150 Account account = ProviderTestUtils.setupAccount("mailboxid", true, mProviderContext); 152 Mailbox box = ProviderTestUtils.setupMailbox("box", accountId, false, mProviderContext); 181 Account account1 = ProviderTestUtils.setupAccount("message-move", true, mProviderContext); 183 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, mProviderContext); 185 Mailbox box2 = ProviderTestUtils.setupMailbox("box2", account1Id, true, mProviderContext); 187 Mailbox boxDest = ProviderTestUtils.setupMailbox("d", account1Id, true, mProviderContext); 190 Message message1 = ProviderTestUtils.setupMessage("message1", account1Id, box1Id, false, 192 Message message2 = ProviderTestUtils.setupMessage("message2", account1Id, box2Id, false, 213 Account account1 = ProviderTestUtils.setupAccount("message-delete", true, mProviderContext) [all...] |
UtilityLargeTest.java | 19 import com.android.email.provider.ProviderTestUtils; 51 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); 52 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext);
|
SecurityPolicyTests.java | 28 import com.android.email.provider.ProviderTestUtils; 136 ProviderTestUtils.setupAccount("no-sec-1", true, mMockContext); 137 ProviderTestUtils.setupAccount("no-sec-2", true, mMockContext); 142 Account a3 = ProviderTestUtils.setupAccount("sec-3", true, mMockContext); 168 Account a4 = ProviderTestUtils.setupAccount("sec-4", true, mMockContext); 194 Account a5 = ProviderTestUtils.setupAccount("sec-5", true, mMockContext); 235 Account account = ProviderTestUtils.setupAccount("testaccount", true, mMockContext); 278 Account a1 = ProviderTestUtils.setupAccount("holdflag-1", false, mMockContext); 281 Account a2 = ProviderTestUtils.setupAccount("holdflag-2", false, mMockContext); 306 Account a1 = ProviderTestUtils.setupAccount("disable-1", true, mMockContext) [all...] |
NotificationControllerTest.java | 25 import com.android.email.provider.ProviderTestUtils; 65 final Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 212 Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 213 Mailbox b1 = ProviderTestUtils.setupMailbox("inbox", a1.mId, true, c, Mailbox.TYPE_INBOX); 214 Message m1 = ProviderTestUtils.setupMessage("message", a1.mId, b1.mId, true, true, c); 243 Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 244 Mailbox b1 = ProviderTestUtils.setupMailbox("inbox", a1.mId, true, c, Mailbox.TYPE_INBOX); 245 Message m1 = ProviderTestUtils.setupMessage("message", a1.mId, b1.mId, true, false, c);
|
AccountTestCase.java | 27 import com.android.email.provider.ProviderTestUtils; 65 return ProviderTestUtils.setupAccount(username, true, getMockContext());
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
MailboxTests.java | 21 import com.android.email.provider.ProviderTestUtils; 80 Message message = ProviderTestUtils.setupMessage( 97 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); 99 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); 104 ProviderTestUtils.assertMailboxEqual("testMailboxSave", box1, box2); 113 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c); 115 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); 117 Mailbox box2 = ProviderTestUtils.setupMailbox("box2", account1Id, true, c); 147 Account a = ProviderTestUtils.setupAccount("acct1", true, c); 148 Mailbox bi = ProviderTestUtils.setupMailbox("b1", a.mId, true, c, Mailbox.TYPE_INBOX) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
WelcomeTests.java | 20 import com.android.email.provider.ProviderTestUtils; 39 final Account account1 = ProviderTestUtils.setupAccount("account-1", true, c); 41 final Account account2 = ProviderTestUtils.setupAccount("account-2", true, c); 43 final Account account3 = ProviderTestUtils.setupAccount("account-3", true, c);
|
MailboxFragmentAdapterTest.java | 20 import com.android.email.provider.ProviderTestUtils; 50 Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 51 Account a2 = ProviderTestUtils.setupAccount("a2", true, c); 52 Account a3 = ProviderTestUtils.setupAccount("a3", true, c); 54 Mailbox b1i = ProviderTestUtils.setupMailbox("box1i", a1.mId, true, c, Mailbox.TYPE_INBOX); 55 Mailbox b2i = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_INBOX); 56 Mailbox b3i = ProviderTestUtils.setupMailbox("box3i", a3.mId, true, c, Mailbox.TYPE_INBOX); 57 Mailbox b1o = ProviderTestUtils.setupMailbox("box1i", a1.mId, true, c, Mailbox.TYPE_OUTBOX); 58 Mailbox b2o = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_OUTBOX); 59 Mailbox b1d = ProviderTestUtils.setupMailbox("box1d", a1.mId, true, c, Mailbox.TYPE_DRAFTS) [all...] |
MessageListTests.java | 20 import com.android.email.provider.ProviderTestUtils; 46 final Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 47 final Account a2 = ProviderTestUtils.setupAccount("a2", true, c);
|
AccountSelectorAdapterTest.java | 22 import com.android.email.provider.ProviderTestUtils; 55 final Account a1 = ProviderTestUtils.setupAccount("a1", true, mProviderContext); 67 final Account a2 = ProviderTestUtils.setupAccount("a2", true, mProviderContext); 87 final Account a1 = ProviderTestUtils.setupAccount("a1", true, context); 88 final Account a2 = ProviderTestUtils.setupAccount("a2", true, context); 89 final Mailbox m1 = ProviderTestUtils.setupMailbox("Inbox", a1.mId, true, context, 91 final Mailbox m2 = ProviderTestUtils.setupMailbox("box2", a2.mId, true, context, 182 ProviderTestUtils.setupMessage("a", m.mAccountKey, m.mId, false, true, mProviderContext,
|
MessageFileViewTest.java | 21 import com.android.email.provider.ProviderTestUtils; 67 return ProviderTestUtils.createTempEmlFile(mProviderContext, msg,
|
RecentMailboxManagerTest.java | 28 import com.android.email.provider.ProviderTestUtils; 63 ProviderTestUtils.setupMailbox("inbox", 1L, true, mMockContext, Mailbox.TYPE_INBOX), 64 ProviderTestUtils.setupMailbox("drafts", 1L, true, mMockContext, Mailbox.TYPE_DRAFTS), 65 ProviderTestUtils.setupMailbox("outbox", 1L, true, mMockContext, Mailbox.TYPE_OUTBOX), 66 ProviderTestUtils.setupMailbox("sent", 1L, true, mMockContext, Mailbox.TYPE_SENT), 67 ProviderTestUtils.setupMailbox("trash", 1L, true, mMockContext, Mailbox.TYPE_TRASH), 68 ProviderTestUtils.setupMailbox("junk", 1L, true, mMockContext, Mailbox.TYPE_JUNK), 69 ProviderTestUtils.setupMailbox("abbott", 1L, true, mMockContext, Mailbox.TYPE_MAIL), 70 ProviderTestUtils.setupMailbox("costello", 1L, true, mMockContext, Mailbox.TYPE_MAIL), 71 ProviderTestUtils.setupMailbox("bud_lou", 1L, true, mMockContext, Mailbox.TYPE_MAIL) [all...] |
MessagesAdapterTests.java | 24 import com.android.email.provider.ProviderTestUtils; 44 Account acct = ProviderTestUtils.setupAccount("acct1", false, mProviderContext); 47 ProviderTestUtils.setupHostAuth(proto, "hostauth", true, mProviderContext); 54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext);
|
FindParentMailboxTaskTest.java | 20 import com.android.email.provider.ProviderTestUtils; 69 Account a = ProviderTestUtils.setupAccount("a", true, mProviderContext); 82 Mailbox m = ProviderTestUtils.setupMailbox(name, account.mId, false, mProviderContext,
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 86 ProviderTestUtils.setupAccount("testBackup1", false, mMockContext); 88 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); 90 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); 94 ProviderTestUtils.setupAccount("testBackup2", false, mMockContext); 96 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); 98 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); 139 ProviderTestUtils.assertHostAuthEqual("backup", saved1.mHostAuthRecv, recv, false); 140 ProviderTestUtils.assertHostAuthEqual("backup", saved1.mHostAuthSend, send, false); 153 ProviderTestUtils.assertHostAuthEqual("backup", saved2.mHostAuthRecv, recv, false); 154 ProviderTestUtils.assertHostAuthEqual("backup", saved2.mHostAuthSend, send, false) [all...] |
ProviderTests.java | 165 Message message = ProviderTestUtils.setupMessage( 181 Account account1 = ProviderTestUtils.setupAccount("account-save", true, mMockContext); 186 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account2); 194 Account account1 = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); 196 account1.mHostAuthRecv = ProviderTestUtils.setupHostAuth("account-hostauth-recv", -1, false, 198 account1.mHostAuthSend = ProviderTestUtils.setupHostAuth("account-hostauth-send", -1, false, 205 ProviderTestUtils.assertAccountEqual("testAccountSave", account1, account1get); 210 ProviderTestUtils.assertHostAuthEqual("testAccountSaveHostAuth-recv", 214 ProviderTestUtils.assertHostAuthEqual("testAccountSaveHostAuth-send", 219 Account account = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext) [all...] |
AttachmentProviderTests.java | 93 Account account1 = ProviderTestUtils.setupAccount("attachment-query", false, mMockContext); 118 Attachment newAttachment1 = ProviderTestUtils.setupAttachment(message1Id, "file1", 100, 125 Attachment newAttachment2 = ProviderTestUtils.setupAttachment(message1Id, "file2", 200, 132 Attachment newAttachment3 = ProviderTestUtils.setupAttachment(message1Id, "file3", 300, 173 Message m = ProviderTestUtils.setupMessage("1", b.mAccountKey, b.mId, true, false, c, false, 182 Account a1 = ProviderTestUtils.setupAccount("inboxquery-1", true, mMockContext); 183 Account a2 = ProviderTestUtils.setupAccount("inboxquery-2", true, mMockContext); 186 Mailbox b1 = ProviderTestUtils.setupMailbox( 188 Mailbox b2 = ProviderTestUtils.setupMailbox( 190 Mailbox b3 = ProviderTestUtils.setupMailbox [all...] |
PolicyTests.java | 69 Account account1 = ProviderTestUtils.setupAccount("acct1", true, mMockContext); 72 Account account2 = ProviderTestUtils.setupAccount("acct2", true, mMockContext); 90 Account account = ProviderTestUtils.setupAccount("acct", true, mMockContext); 117 Attachment att = ProviderTestUtils.setupAttachment(-1, name, size, false, mMockContext); 122 Account acct = ProviderTestUtils.setupAccount("acct1", true, mMockContext); 126 Mailbox box = ProviderTestUtils.setupMailbox("box1", acct.mId, true, mMockContext); 127 Message msg1 = ProviderTestUtils.setupMessage("message1", acct.mId, box.mId, false, false, 136 Message msg2 = ProviderTestUtils.setupMessage("message2", acct.mId, box.mId, false, false,
|
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 20 import com.android.email.provider.ProviderTestUtils; 61 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); 85 Account account1 = ProviderTestUtils.setupAccount("eas-account1", false, mMockContext); 90 Account account2 = ProviderTestUtils.setupAccount("pop-account1", false, mMockContext); 96 Account account3 = ProviderTestUtils.setupAccount("pop-account2", false, mMockContext); 101 Account account4 = ProviderTestUtils.setupAccount("imap-account1", false, mMockContext); 107 Account account5 = ProviderTestUtils.setupAccount("imap-account2", false, mMockContext); 113 Account account6 = ProviderTestUtils.setupAccount("imap-account3", false, mMockContext);
|
AttachmentDownloadServiceTests.java | 24 import com.android.email.provider.ProviderTestUtils; 61 mAccount = ProviderTestUtils.setupAccount("account", false, mMockContext); 66 mMailbox = ProviderTestUtils.setupMailbox("mailbox", mAccountId, true, mMockContext); 95 Message message = ProviderTestUtils.setupMessage("message", mAccountId, mMailboxId, false, 97 Attachment att1 = ProviderTestUtils.setupAttachment(message.mId, "filename1", 1000, 99 Attachment att2 = ProviderTestUtils.setupAttachment(message.mId, "filename2", 1000, 101 Attachment att3 = ProviderTestUtils.setupAttachment(message.mId, "filename3", 1000, 103 Attachment att4 = ProviderTestUtils.setupAttachment(message.mId, "filename4", 1000, 264 Account account = ProviderTestUtils.setupAccount("account2", false, mMockContext);
|
MailServiceTests.java | 31 import com.android.email.provider.ProviderTestUtils; 88 firstAccount = ProviderTestUtils.setupAccount(TEST_USER_ACCOUNT, true, context); 204 ProviderTestUtils.setupAccount(getTestAccountName("2"), true, getMockContext()); 240 Account easAccount = ProviderTestUtils.setupAccount("account1", false, mMockContext); 245 Account imapAccount = ProviderTestUtils.setupAccount("account2", false, mMockContext); 250 Account pop3Account = ProviderTestUtils.setupAccount("account3", false, mMockContext); 299 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); 306 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); 312 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext);
|
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 24 import com.android.email.provider.ProviderTestUtils; 59 Account testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); 72 testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); 84 testAccount = ProviderTestUtils.setupAccount("unknown", false, mMockContext);
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupExchangeTests.java | 29 import com.android.email.provider.ProviderTestUtils; 181 ProviderTestUtils.setupAccount("account", false, mActivity.getBaseContext()); 182 account.mHostAuthRecv = ProviderTestUtils.setupHostAuth(
|