/packages/apps/Email/tests/src/com/android/email/ |
UtilityLargeTest.java | 38 private Context mProviderContext; 44 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 51 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); 52 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext); 62 new Utility.ForEachAccount(mProviderContext) {
|
NotificationControllerTest.java | 36 private Context mProviderContext; 59 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); 60 mTarget = new NotificationControllerForTest(mProviderContext); 64 final Context c = mProviderContext; 169 final Context c = mProviderContext; 200 final Context c = mProviderContext;
|
ControllerProviderOpsTests.java | 48 private Context mProviderContext; 60 mProviderContext = getMockContext(); 62 mTestController = new TestController(mProviderContext, mContext); 115 Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_DRAFTS)); 117 Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_SENT)); 124 testMailboxId = Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_DRAFTS); 126 testMailbox = Mailbox.restoreMailboxWithId(mProviderContext, testMailboxId); 133 testMailboxId = Mailbox.findMailboxOfType(mProviderContext, 1L, Mailbox.TYPE_SENT); 135 testMailbox = Mailbox.restoreMailboxWithId(mProviderContext, testMailboxId); 150 Account account = ProviderTestUtils.setupAccount("mailboxid", true, mProviderContext); [all...] |
LegacyConversionsTests.java | 73 Context mProviderContext; 84 mProviderContext = getMockContext(); 201 "local-message", accountId, mailboxId, false, true, mProviderContext); 207 "local-message", accountId, mailboxId, false, true, mProviderContext); 221 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); 225 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION, 288 "local-message", accountId, mailboxId, false, true, mProviderContext); 306 "local-message", accountId, mailboxId, false, true, mProviderContext); 315 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); 319 assertEquals(2, EmailContent.count(mProviderContext, uri, null, null)) [all...] |
RefreshManagerTest.java | 42 private Context mProviderContext; 60 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); 61 mTarget = new RefreshManager(mProviderContext, mController, mClock, null); 384 Account acct1 = ProviderTestUtils.setupAccount("acct1", true, mProviderContext); 385 Account acct2 = ProviderTestUtils.setupAccount("acct2", true, mProviderContext);
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageFileViewTest.java | 38 private Context mProviderContext; 47 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 65 msg.save(mProviderContext); 67 return ProviderTestUtils.createTempEmlFile(mProviderContext, msg,
|
WelcomeTests.java | 28 private Context mProviderContext; 33 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 38 final Context c = mProviderContext;
|
MessagesAdapterTests.java | 36 private Context mProviderContext; 40 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(getContext()); 44 Account acct = ProviderTestUtils.setupAccount("acct1", false, mProviderContext); 47 ProviderTestUtils.setupHostAuth(proto, "hostauth", true, mProviderContext); 49 acct.save(mProviderContext); 54 Mailbox box = ProviderTestUtils.setupMailbox("name", accountId, false, mProviderContext); 56 box.save(mProviderContext); 63 mProviderContext,
|
AccountSelectorAdapterTest.java | 38 private Context mProviderContext; 43 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext(mContext); 55 final Account a1 = ProviderTestUtils.setupAccount("a1", true, mProviderContext); 58 Loader<Cursor> l = new AccountSelectorAdapter.AccountsLoader(mProviderContext, 0L, 67 final Account a2 = ProviderTestUtils.setupAccount("a2", true, mProviderContext); 70 Loader<Cursor> l = new AccountSelectorAdapter.AccountsLoader(mProviderContext, 0L, 86 final Context context = mProviderContext; 182 ProviderTestUtils.setupMessage("a", m.mAccountKey, m.mId, false, true, mProviderContext,
|
FindParentMailboxTaskTest.java | 31 private Context mProviderContext; 60 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 69 Account a = ProviderTestUtils.setupAccount("a", true, mProviderContext); 82 Mailbox m = ProviderTestUtils.setupMailbox(name, account.mId, false, mProviderContext, 85 m.save(mProviderContext); 290 mProviderContext, null, mAccountId, enableHighlight, parentMailboxId,
|
MailboxFinderTest.java | 49 private Context mProviderContext; 63 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 97 Account acct = ProviderTestUtils.setupAccount("acct1", false, mProviderContext); 101 acct.save(mProviderContext); 115 box.save(mProviderContext); 127 mMailboxFinder = new MailboxFinder(mProviderContext, accountId, mailboxType,
|
/packages/apps/Exchange/exchange2/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);
|
/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);
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 38 public Context mProviderContext; 53 mProviderContext = mContext;
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 38 public Context mProviderContext; 53 mProviderContext = mContext;
|
/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);
|
/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/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 | 49 Context mProviderContext; 66 mProviderContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 76 mSender = (SmtpSender) SmtpSender.newInstance(testAccount, mProviderContext); 111 message.save(mProviderContext); 116 body.save(mProviderContext); 142 message.save(mProviderContext); 145 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); 146 attachment.save(mProviderContext);
|
/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();
|
/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);
|
/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/apps/Email/src/com/android/email/ |
Controller.java | 79 private Context mProviderContext; 123 mProviderContext = _context; 124 mLegacyController = MessagingController.getInstance(mProviderContext, this); 172 mProviderContext = providerContext; 211 ContentResolver resolver = mProviderContext.getContentResolver(); 219 AttachmentUtilities.deleteAllMailboxAttachmentFiles(mProviderContext, 0, 235 Cursor c = mProviderContext.getContentResolver().query(Mailbox.CONTENT_URI, 264 m.save(mProviderContext); 285 m.save(mProviderContext); 299 InputStream is = mProviderContext.getContentResolver().openInputStream(uri) [all...] |