/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
MailboxUtilitiesTests.java | 57 mResolver = mProviderContext.getContentResolver(); 76 mProviderContext, Mailbox.TYPE_DRAFTS); 78 mProviderContext, Mailbox.TYPE_OUTBOX, box1); 80 mProviderContext, Mailbox.TYPE_ATTACHMENT, box1); 82 mProviderContext, Mailbox.TYPE_NOT_SYNCABLE + 64, box3); 84 mProviderContext, Mailbox.TYPE_MAIL, box3); 94 MailboxUtilities.fixupUninitializedParentKeys(mProviderContext, accountSelector); 95 box1 = Mailbox.restoreMailboxWithId(mProviderContext, box1.mId); 96 box2 = Mailbox.restoreMailboxWithId(mProviderContext, box2.mId); 97 box3 = Mailbox.restoreMailboxWithId(mProviderContext, box3.mId) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
NotificationControllerTest.java | 30 private Context mProviderContext; 48 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); 49 mTarget = new NotificationControllerForTest(mProviderContext);
|
UtilityLargeTest.java | 40 private Context mProviderContext; 46 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 53 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); 54 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext); 64 new Utility.ForEachAccount(mProviderContext) {
|
LegacyConversionsTests.java | 76 Context mProviderContext; 87 mProviderContext = getMockContext(); 204 "local-message", accountId, mailboxId, false, true, mProviderContext); 210 "local-message", accountId, mailboxId, false, true, mProviderContext); 224 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); 228 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, 291 "local-message", accountId, mailboxId, false, true, mProviderContext); 309 "local-message", accountId, mailboxId, false, true, mProviderContext); 318 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); 322 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)) [all...] |
ControllerProviderOpsTests.java | 42 private Context mProviderContext; 52 mProviderContext = getMockContext();
|
/packages/apps/Exchange/tests/src/com/android/exchange/ |
ExchangeServiceAccountTests.java | 53 mProviderContext); 55 mProviderContext); 58 mProviderContext); 60 mProviderContext); 71 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, 85 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, 93 assertFalse(exchangeService.releaseSyncHolds(mProviderContext, 99 assertTrue(exchangeService.releaseSyncHolds(mProviderContext, 108 mProviderContext, Mailbox.TYPE_DRAFTS); 110 mProviderContext, Mailbox.TYPE_OUTBOX) [all...] |
EasOutboxServiceTests.java | 33 EasOutboxService svc = new EasOutboxService(mProviderContext, new Mailbox());
|
CalendarSyncEnablerTest.java | 233 Cursor c = mProviderContext.getContentResolver().query(
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
ExchangeTestCase.java | 31 protected Context mProviderContext; 38 mProviderContext = mContext; 44 ContentResolver resolver = mProviderContext.getContentResolver(); 68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext);
|
/frameworks/base/test-runner/src/android/test/ |
ProviderTestCase.java | 41 private IsolatedContext mProviderContext; 68 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); 71 mProvider.attachInfoForTesting(mProviderContext, null); 93 return mProviderContext;
|
ProviderTestCase2.java | 74 private IsolatedContext mProviderContext; 140 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); 143 mProvider.attachInfoForTesting(mProviderContext, null); 175 return mProviderContext;
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
EmailSyncAdapterTests.java | 109 mProviderContext); 114 true, true, mProviderContext); 117 true, true, mProviderContext); 120 true, true, mProviderContext); 122 assertEquals(3, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, 132 assertEquals(0, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, 134 assertEquals(3, EmailContent.count(mProviderContext, Message.DELETED_CONTENT_URI, 147 true, true, mProviderContext); 148 assertEquals(1, EmailContent.count(mProviderContext, Message.CONTENT_URI, WHERE_ACCOUNT_KEY, 151 Body body = Body.restoreBodyWithMessageId(mProviderContext, msg4.mId) [all...] |
FolderSyncParserTests.java | 58 mProviderContext, Mailbox.TYPE_MAIL); 66 box.save(mProviderContext); 80 mAccount.save(mProviderContext); 85 parser.mContext = mProviderContext; 86 parser.mContentResolver = mProviderContext.getContentResolver(); 114 ContentResolver cr = mProviderContext.getContentResolver(); 136 box1x = Mailbox.restoreMailboxWithId(mProviderContext, box1x.mId); 137 box2x = Mailbox.restoreMailboxWithId(mProviderContext, box2x.mId); 138 boxax = Mailbox.restoreMailboxWithId(mProviderContext, boxax.mId); 139 boxbx = Mailbox.restoreMailboxWithId(mProviderContext, boxbx.mId) [all...] |
SyncAdapterTestCase.java | 38 public Context mProviderContext; 53 mProviderContext = mContext;
|
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/ |
ProviderTestCase3.java | 43 private IsolatedContext mProviderContext; 125 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper) { 134 mProvider.attachInfo(mProviderContext, null); 168 return mProviderContext;
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
SmtpSenderUnitTests.java | 50 Context mProviderContext; 68 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 78 mSender = (SmtpSender) SmtpSender.newInstance(testAccount, mProviderContext); 113 message.save(mProviderContext); 118 body.save(mProviderContext); 144 message.save(mProviderContext); 147 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); 148 attachment.save(mProviderContext);
|
/cts/tests/tests/content/src/android/content/cts/ |
SearchRecentSuggestionsProviderTest.java | 33 private IsolatedContext mProviderContext; 42 mProviderContext = new IsolatedContext(new MockContentResolver(), targetContextWrapper); 51 s.attachInfo(mProviderContext, null);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
SearchRecentSuggestionsTest.java | 35 private Context mProviderContext; 42 mProviderContext = mTestSRSProvider.getContext(); 51 new SearchRecentSuggestions(mProviderContext, TestSearchRecentSuggestionsProvider.AUTHORITY, 56 SearchRecentSuggestions srs = new MySearchRecentSuggestions(mProviderContext, 93 ContentResolver cr = mProviderContext.getContentResolver();
|
/frameworks/base/core/java/android/widget/ |
SuggestionsAdapter.java | 70 private Context mProviderContext; 109 mProviderContext = mSearchable.getProviderContext(mContext, activityContext); 525 + "://" + mProviderContext.getPackageName() + "/" + resourceId; 532 drawable = mProviderContext.getResources().getDrawable(resourceId); 564 mProviderContext.getContentResolver().getResourceId(uri); 572 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri); 639 return cached == null ? null : cached.newDrawable(mProviderContext.getResources());
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SuggestionsAdapter.java | 70 private Context mProviderContext; 101 mProviderContext = context; 485 + "://" + mProviderContext.getPackageName() + "/" + resourceId; 492 drawable = mProviderContext.getResources().getDrawable(resourceId); 530 InputStream stream = mProviderContext.getContentResolver().openInputStream(uri); 599 return cached == null ? null : cached.newDrawable(mProviderContext.getResources());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 138 private IsolatedContext mProviderContext; 163 mProviderContext = new IsolatedContext(resolver, targetContextWrapper) { 189 mMockAccountManager = new MockAccountManager(mProviderContext); 202 provider.attachInfoForTesting(mProviderContext, info);
|