Home
last modified time | relevance | path

Searched refs:mProviderContext (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java54 mResolver = mProviderContext.getContentResolver(); in setUp()
73 mProviderContext, Mailbox.TYPE_DRAFTS); in testSetupParentKeyAndFlag()
75 mProviderContext, Mailbox.TYPE_OUTBOX, box1); in testSetupParentKeyAndFlag()
77 mProviderContext, Mailbox.TYPE_ATTACHMENT, box1); in testSetupParentKeyAndFlag()
79 mProviderContext, Mailbox.TYPE_NOT_SYNCABLE + 64, box3); in testSetupParentKeyAndFlag()
81 mProviderContext, Mailbox.TYPE_MAIL, box3); in testSetupParentKeyAndFlag()
91 MailboxUtilities.fixupUninitializedParentKeys(mProviderContext, accountSelector); in testSetupParentKeyAndFlag()
92 box1 = Mailbox.restoreMailboxWithId(mProviderContext, box1.mId); in testSetupParentKeyAndFlag()
93 box2 = Mailbox.restoreMailboxWithId(mProviderContext, box2.mId); in testSetupParentKeyAndFlag()
94 box3 = Mailbox.restoreMailboxWithId(mProviderContext, box3.mId); in testSetupParentKeyAndFlag()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMailboxUtilitiesTests.java54 mResolver = mProviderContext.getContentResolver(); in setUp()
73 mProviderContext, Mailbox.TYPE_DRAFTS); in testSetupParentKeyAndFlag()
75 mProviderContext, Mailbox.TYPE_OUTBOX, box1); in testSetupParentKeyAndFlag()
77 mProviderContext, Mailbox.TYPE_ATTACHMENT, box1); in testSetupParentKeyAndFlag()
79 mProviderContext, Mailbox.TYPE_NOT_SYNCABLE + 64, box3); in testSetupParentKeyAndFlag()
81 mProviderContext, Mailbox.TYPE_MAIL, box3); in testSetupParentKeyAndFlag()
91 MailboxUtilities.fixupUninitializedParentKeys(mProviderContext, accountSelector); in testSetupParentKeyAndFlag()
92 box1 = Mailbox.restoreMailboxWithId(mProviderContext, box1.mId); in testSetupParentKeyAndFlag()
93 box2 = Mailbox.restoreMailboxWithId(mProviderContext, box2.mId); in testSetupParentKeyAndFlag()
94 box3 = Mailbox.restoreMailboxWithId(mProviderContext, box3.mId); in testSetupParentKeyAndFlag()
[all …]
/packages/apps/Email/tests/src/com/android/email/
DControllerProviderOpsTests.java48 private Context mProviderContext; field in ControllerProviderOpsTests
60 mProviderContext = getMockContext(); in setUp()
62 mTestController = new TestController(mProviderContext, mContext); in setUp()
115 Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_DRAFTS)); in testCreateMailbox()
117 Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_SENT)); in testCreateMailbox()
124 testMailboxId = Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_DRAFTS); in testCreateMailbox()
126 testMailbox = Mailbox.restoreMailboxWithId(mProviderContext, testMailboxId); in testCreateMailbox()
133 testMailboxId = Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_SENT); in testCreateMailbox()
135 testMailbox = Mailbox.restoreMailboxWithId(mProviderContext, testMailboxId); in testCreateMailbox()
150 Account account = ProviderTestUtils.setupAccount("mailboxid", true, mProviderContext); in testFindOrCreateMailboxOfType()
[all …]
DLegacyConversionsTests.java73 Context mProviderContext; field in LegacyConversionsTests
84 mProviderContext = getMockContext(); in setUp()
201 "local-message", accountId, mailboxId, false, true, mProviderContext); in testAddAttachments()
207 "local-message", accountId, mailboxId, false, true, mProviderContext); in testAddAttachments()
221 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in convertAndCheckcheckAddedAttachments()
225 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, in convertAndCheckcheckAddedAttachments()
288 "local-message", accountId, mailboxId, false, true, mProviderContext); in testAttachmentDispositions()
306 "local-message", accountId, mailboxId, false, true, mProviderContext); in testAddDuplicateAttachments()
315 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in testAddDuplicateAttachments()
319 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)); in testAddDuplicateAttachments()
[all …]
DNotificationControllerTest.java36 private Context mProviderContext; field in NotificationControllerTest
59 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); in setUp()
60 mTarget = new NotificationControllerForTest(mProviderContext); in setUp()
64 final Context c = mProviderContext; in testSetupSoundAndVibration()
169 final Context c = mProviderContext; in testCreateNewMessageNotification()
200 final Context c = mProviderContext; in testCreateNewMessageNotificationWithEmptyFrom()
DUtilityLargeTest.java38 private Context mProviderContext; field in UtilityLargeTest
44 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
51 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); in testForEachAccount()
52 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext); in testForEachAccount()
62 new Utility.ForEachAccount(mProviderContext) { in testForEachAccount()
DRefreshManagerTest.java42 private Context mProviderContext; field in RefreshManagerTest
60 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); in setUp()
61 mTarget = new RefreshManager(mProviderContext, mController, mClock, null); in setUp()
384 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); in testSendPendingMessagesForAllAccounts()
385 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext); in testSendPendingMessagesForAllAccounts()
/packages/apps/Email/src/com/android/email/
DController.java79 private Context mProviderContext; field in Controller
123 mProviderContext = _context; in Controller()
124 mLegacyController = MessagingController.getInstance(mProviderContext, this); in Controller()
172 mProviderContext = providerContext; in setProviderContext()
211 ContentResolver resolver = mProviderContext.getContentResolver(); in deleteAttachmentMessages()
219 AttachmentUtilities.deleteAllMailboxAttachmentFiles(mProviderContext, 0, in deleteAttachmentMessages()
235 Cursor c = mProviderContext.getContentResolver().query(Mailbox.CONTENT_URI, in getGlobalMailboxWhere()
264 m.save(mProviderContext); in getAttachmentMailbox()
285 m.save(mProviderContext); in getSearchMailbox()
299 InputStream is = mProviderContext.getContentResolver().openInputStream(uri); in loadMessageFromUri()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DFolderSyncParserTests.java64 mProviderContext, Mailbox.TYPE_MAIL); in testIsValidMailFolder()
70 mProviderContext, Mailbox.TYPE_CALENDAR); in testIsValidMailFolder()
72 mProviderContext, Mailbox.TYPE_CONTACTS); in testIsValidMailFolder()
74 mProviderContext, Mailbox.TYPE_TASKS); in testIsValidMailFolder()
82 mProviderContext, Mailbox.TYPE_UNKNOWN); in testIsValidMailFolder()
94 boxMailType.save(mProviderContext); in testIsValidMailFolder()
101 false, mProviderContext, Mailbox.TYPE_UNKNOWN); in testIsValidMailFolder()
120 mProviderContext, Mailbox.TYPE_MAIL); in setupBoxSync()
128 box.save(mProviderContext); in setupBoxSync()
142 mAccount.save(mProviderContext); in testSaveAndRestoreMailboxSyncOptions()
[all …]
DEmailSyncAdapterTests.java108 mProviderContext); in testSendDeletedItems()
113 true, true, mProviderContext); in testSendDeletedItems()
116 true, true, mProviderContext); in testSendDeletedItems()
119 true, true, mProviderContext); in testSendDeletedItems()
121 assertEquals(3, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
131 assertEquals(0, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
133 assertEquals(3, EmailContent.count(mProviderContext, Message.DELETED_CONTENT_URI, in testSendDeletedItems()
146 true, true, mProviderContext); in testSendDeletedItems()
147 assertEquals(1, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
150 Body body = Body.restoreBodyWithMessageId(mProviderContext, msg4.mId); in testSendDeletedItems()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DFolderSyncParserTests.java64 mProviderContext, Mailbox.TYPE_MAIL); in testIsValidMailFolder()
70 mProviderContext, Mailbox.TYPE_CALENDAR); in testIsValidMailFolder()
72 mProviderContext, Mailbox.TYPE_CONTACTS); in testIsValidMailFolder()
74 mProviderContext, Mailbox.TYPE_TASKS); in testIsValidMailFolder()
82 mProviderContext, Mailbox.TYPE_UNKNOWN); in testIsValidMailFolder()
94 boxMailType.save(mProviderContext); in testIsValidMailFolder()
101 false, mProviderContext, Mailbox.TYPE_UNKNOWN); in testIsValidMailFolder()
120 mProviderContext, Mailbox.TYPE_MAIL); in setupBoxSync()
128 box.save(mProviderContext); in setupBoxSync()
142 mAccount.save(mProviderContext); in testSaveAndRestoreMailboxSyncOptions()
[all …]
DEmailSyncAdapterTests.java108 mProviderContext); in testSendDeletedItems()
113 true, true, mProviderContext); in testSendDeletedItems()
116 true, true, mProviderContext); in testSendDeletedItems()
119 true, true, mProviderContext); in testSendDeletedItems()
121 assertEquals(3, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
131 assertEquals(0, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
133 assertEquals(3, EmailContent.count(mProviderContext, Message.DELETED_CONTENT_URI, in testSendDeletedItems()
146 true, true, mProviderContext); in testSendDeletedItems()
147 assertEquals(1, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, in testSendDeletedItems()
150 Body body = Body.restoreBodyWithMessageId(mProviderContext, msg4.mId); in testSendDeletedItems()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DExchangeServiceAccountTests.java52 mProviderContext); in testReleaseSyncHolds()
54 mProviderContext); in testReleaseSyncHolds()
57 mProviderContext); in testReleaseSyncHolds()
59 mProviderContext); in testReleaseSyncHolds()
70 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
84 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
92 assertFalse(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
98 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
107 mProviderContext, Mailbox.TYPE_DRAFTS); in testIsSyncable()
109 mProviderContext, Mailbox.TYPE_OUTBOX); in testIsSyncable()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/
DExchangeServiceAccountTests.java52 mProviderContext); in testReleaseSyncHolds()
54 mProviderContext); in testReleaseSyncHolds()
57 mProviderContext); in testReleaseSyncHolds()
59 mProviderContext); in testReleaseSyncHolds()
70 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
84 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
92 assertFalse(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
98 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, in testReleaseSyncHolds()
107 mProviderContext, Mailbox.TYPE_DRAFTS); in testIsSyncable()
109 mProviderContext, Mailbox.TYPE_OUTBOX); in testIsSyncable()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DMessagesAdapterTests.java36 private Context mProviderContext; field in MessagesAdapterTests
40 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(getContext()); in setUp()
44 Account acct = ProviderTestUtils.setupAccount("acct1", false, mProviderContext); in createAccount()
47 ProviderTestUtils.setupHostAuth(proto, "hostauth", true, mProviderContext); in createAccount()
49 acct.save(mProviderContext); in createAccount()
54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext); in createMailbox()
56 box.save(mProviderContext); in createMailbox()
63 mProviderContext, in getLoaderResult()
DAccountSelectorAdapterTest.java38 private Context mProviderContext; field in AccountSelectorAdapterTest
43 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); in setUp()
55 final Account a1 = ProviderTestUtils.setupAccount("a1", true, mProviderContext); in testCombinedViewRow_twoPane()
58 Loader<Cursor> l = new AccountSelectorAdapter.AccountsLoader(mProviderContext, 0L, in testCombinedViewRow_twoPane()
67 final Account a2 = ProviderTestUtils.setupAccount("a2", true, mProviderContext); in testCombinedViewRow_twoPane()
70 Loader<Cursor> l = new AccountSelectorAdapter.AccountsLoader(mProviderContext, 0L, in testCombinedViewRow_twoPane()
86 final Context context = mProviderContext; in testCursorWithExtras_setAccountMailboxInfo()
182 ProviderTestUtils.setupMessage("a", m.mAccountKey, m.mId, false, true, mProviderContext, in addMessage()
DFindParentMailboxTaskTest.java31 private Context mProviderContext; field in FindParentMailboxTaskTest
60 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
69 Account a = ProviderTestUtils.setupAccount("a", true, mProviderContext); in setUpMailboxes()
82 Mailbox m = ProviderTestUtils.setupMailbox(name, account.mId, false, mProviderContext, in createMailboxAndGetId()
85 m.save(mProviderContext); in createMailboxAndGetId()
290 mProviderContext, null, mAccountId, enableHighlight, parentMailboxId, in doCheck()
DMailboxFinderTest.java49 private Context mProviderContext; field in MailboxFinderTest
63 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
97 Account acct = ProviderTestUtils.setupAccount("acct1", false, mProviderContext); in createAccount()
101 acct.save(mProviderContext); in createAccount()
115 box.save(mProviderContext); in createMailbox()
127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType, in createAndStartFinder()
DMessageFileViewTest.java38 private Context mProviderContext; field in MessageFileViewTest
47 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
65 msg.save(mProviderContext); in createEmlFile()
67 return ProviderTestUtils.createTempEmlFile(mProviderContext, msg, in createEmlFile()
DWelcomeTests.java28 private Context mProviderContext; field in WelcomeTests
33 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
38 final Context c = mProviderContext; in testResolveAccountId()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DSmtpSenderUnitTests.java49 Context mProviderContext; field in SmtpSenderUnitTests
66 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( in setUp()
76 mSender = (SmtpSender) SmtpSender.newInstance(testAccount, mProviderContext); in setUp()
111 message.save(mProviderContext); in testSendMessageWithBody()
116 body.save(mProviderContext); in testSendMessageWithBody()
142 message.save(mProviderContext); in testSendMessageWithEmptyAttachment()
145 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); in testSendMessageWithEmptyAttachment()
146 attachment.save(mProviderContext); in testSendMessageWithEmptyAttachment()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
DExchangeTestCase.java31 protected Context mProviderContext; field in ExchangeTestCase
38 mProviderContext = mContext; in setUp()
44 ContentResolver resolver = mProviderContext.getContentResolver(); in tearDown()
68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); in setupTestAccount()
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
DExchangeTestCase.java31 protected Context mProviderContext; field in ExchangeTestCase
38 mProviderContext = mContext; in setUp()
44 ContentResolver resolver = mProviderContext.getContentResolver(); in tearDown()
68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); in setupTestAccount()
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/
DProviderTestCase3.java43 private IsolatedContext mProviderContext; field in ProviderTestCase3
125 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper) { in setUp()
134 mProvider.attachInfo(mProviderContext, null); in setUp()
168 return mProviderContext; in getMockContext()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java138 private IsolatedContext mProviderContext; field in ContactsActor
163 mProviderContext = new IsolatedContext(resolver, targetContextWrapper) { in ContactsActor()
189 mMockAccountManager = new MockAccountManager(mProviderContext); in ContactsActor()
202 provider.attachInfoForTesting(mProviderContext, info); in addProvider()

12