/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityMediumTests.java | 49 Context mMockContext; 58 mMockContext = getMockContext(); 63 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); 64 account1.mHostAuthRecv = ProviderTestUtils.setupHostAuth("ha1", -1, false, mMockContext); 65 account1.mHostAuthSend = ProviderTestUtils.setupHostAuth("ha1", -1, false, mMockContext); 66 account1.save(mMockContext); 67 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); 68 account2.mHostAuthRecv = ProviderTestUtils.setupHostAuth("ha2", -1, false, mMockContext); 69 account2.mHostAuthSend = ProviderTestUtils.setupHostAuth("ha2", -1, false, mMockContext); 70 account2.save(mMockContext); [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 40 private Context mMockContext; 49 mMockContext = getMockContext(); 86 ProviderTestUtils.setupAccount("testBackup1", false, mMockContext); 88 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); 90 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); 91 saved1.save(mMockContext); 93 ProviderTestUtils.setupAccount("testBackup2", false, mMockContext); 95 ProviderTestUtils.setupHostAuth("legacy-recv", 0, false, mMockContext); 97 ProviderTestUtils.setupHostAuth("legacy-send", 0, false, mMockContext); 98 saved2.save(mMockContext); [all...] |
PolicyTests.java | 49 private Context mMockContext; 58 mMockContext = getMockContext(); 71 Account account1 = ProviderTestUtils.setupAccount("acct1", true, mMockContext); 73 SecurityPolicy.setAccountPolicy(mMockContext, account1, policy1, securitySyncKey); 74 Account account2 = ProviderTestUtils.setupAccount("acct2", true, mMockContext); 76 SecurityPolicy.setAccountPolicy(mMockContext, account2, policy2, securitySyncKey); 78 account1.refresh(mMockContext); 79 account2.refresh(mMockContext); 84 assertEquals(account1.mId, Policy.getAccountIdWithPolicyKey(mMockContext, 86 assertEquals(account2.mId, Policy.getAccountIdWithPolicyKey(mMockContext, [all...] |
ProviderTests.java | 77 private Context mMockContext; 123 mMockContext = new MockContext2(getMockContext(), getContext()); 151 SQLiteDatabase db = getProvider().getDatabase(mMockContext); 157 return Utility.getFirstRowInt(mMockContext, 191 Account account1 = ProviderTestUtils.setupAccount("account-save", true, mMockContext); 194 Account account2 = Account.restoreAccountWithId(mMockContext, account1Id); 204 Account account1 = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); 207 ProviderTestUtils.setupHostAuth("account-hostauth-recv", -1, false, mMockContext); 209 ProviderTestUtils.setupHostAuth("account-hostauth-send", -1, false, mMockContext); 210 account1.save(mMockContext); [all...] |
AttachmentProviderTests.java | 55 Context mMockContext; 65 mMockContext = getMockContext(); 66 mMockResolver = mMockContext.getContentResolver(); 70 mEmailProvider.attachInfo(mMockContext, null); 83 Account account1 = ProviderTestUtils.setupAccount("attachment-query", false, mMockContext); 85 account1.save(mMockContext); 109 false, mMockContext); 116 false, mMockContext); 123 false, mMockContext); 172 Account a1 = ProviderTestUtils.setupAccount("inboxquery-1", true, mMockContext); [all...] |
ContentCacheTests.java | 47 Context mMockContext; 56 mMockContext = getMockContext(); 136 final ContentResolver resolver = mMockContext.getContentResolver(); 137 final Context context = mMockContext;
|
/packages/apps/Email/tests/src/com/android/email/ |
SecurityPolicyTests.java | 48 private Context mMockContext; 60 mMockContext = new MockContext2(getMockContext(), mContext); 130 mSecurityPolicy = SecurityPolicy.getInstance(mMockContext); 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); 145 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3ain, null); 153 SecurityPolicy.setAccountPolicy(mMockContext, a3, p3bin, null); 168 Account a4 = ProviderTestUtils.setupAccount("sec-4", true, mMockContext); 169 SecurityPolicy.setAccountPolicy(mMockContext, a4, p4in, null) [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 42 Context mMockContext; 51 mMockContext = getMockContext(); 74 Integer flags = Utility.getFirstRowInt(mMockContext, uri, 87 Account account1 = ProviderTestUtils.setupAccount("eas-account1", false, mMockContext); 90 account1.save(mMockContext); 92 Account account2 = ProviderTestUtils.setupAccount("pop-account1", false, mMockContext); 96 account2.save(mMockContext); 98 Account account3 = ProviderTestUtils.setupAccount("pop-account2", false, mMockContext); 101 account3.save(mMockContext); 103 Account account4 = ProviderTestUtils.setupAccount("imap-account1", false, mMockContext); [all...] |
AttachmentDownloadServiceTests.java | 45 private Context mMockContext; 58 mMockContext = getMockContext(); 61 mAccount = ProviderTestUtils.setupAccount("account", false, mMockContext); 63 mAccount.save(mMockContext); 66 mMailbox = ProviderTestUtils.setupMailbox("mailbox", mAccountId, true, mMockContext); 72 mService.mContext = mMockContext; 97 true, mMockContext); 99 Attachment.FLAG_DOWNLOAD_USER_REQUEST, true, mMockContext); 101 Attachment.FLAG_DOWNLOAD_FORWARD, true, mMockContext); 103 Attachment.FLAG_DOWNLOAD_FORWARD, true, mMockContext); [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
QuickResponseTests.java | 33 private Context mMockContext; 43 mMockContext = getMockContext();
|
MailboxTests.java | 52 private Context mMockContext; 62 mMockContext = getMockContext(); 74 return Utility.getFirstRowInt(mMockContext, 97 final Context c = mMockContext; 113 final Context c = mMockContext; 147 final Context c = mMockContext; 159 final Context c = mMockContext; 171 final Context c = mMockContext; 193 final Context c = mMockContext; 208 final Context c = mMockContext; [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 43 private Context mMockContext; 48 mMockContext = getMockContext(); 64 Account testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); 69 testAccount.save(mMockContext); 77 testAccount = ProviderTestUtils.setupAccount("pop", false, mMockContext); 82 testAccount.save(mMockContext); 89 testAccount = ProviderTestUtils.setupAccount("unknown", false, mMockContext);
|
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
Rfc822OutputTests.java | 81 private Context mMockContext; 91 mMockContext = getMockContext(); 92 mForwardIntro = mMockContext.getString(R.string.message_compose_fwd_header_fmt, SUBJECT, 111 message.save(mMockContext); 117 Body body = Body.restoreBodyWithMessageId(mMockContext, message.mId); 137 message1.save(mMockContext); 146 message1.save(mMockContext); 155 message1.save(mMockContext); 170 message2.save(mMockContext); 179 message2.save(mMockContext); [all...] |
/frameworks/testing/androidtestlib/tests/src/com/android/test/runner/ |
AndroidJUnitRunnerTest.java | 41 private Context mMockContext; 56 return mMockContext;
|
/packages/apps/Exchange/tests/src/com/android/exchange/ |
EasAccountServiceTests.java | 30 Context mMockContext; 35 mMockContext = getContext();
|
EasSyncServiceTests.java | 44 Context mMockContext; 49 mMockContext = getContext();
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
ConversationCursorTests.java | 41 Context mMockContext; 59 mMockContext = getMockContext(); 60 mMockResolver = (MockContentResolver)mMockContext.getContentResolver(); 61 mMockResolver.addProvider(TestProvider.AUTHORITY, new TestProvider(mMockContext));
|
TestProviderTests.java | 37 Context mMockContext; 61 mMockContext = getMockContext(); 62 mMockResolver = (MockContentResolver)mMockContext.getContentResolver(); 63 mMockResolver.addProvider(CANHAZ_AUTHORITY, new TestProvider(mMockContext));
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
MockProviderTests.java | 43 Context mMockContext; 67 mMockContext = getMockContext(); 68 //mMockResolver = (MockContentResolver)mMockContext.getContentResolver(); 69 //mMockResolver.addProvider(CANHAZ_AUTHORITY, new MockProvider(mMockContext));
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
Pop3StoreUnitTests.java | 56 private Context mMockContext; 65 mMockContext = DBTestHelper.ProviderContextSetupHelper.getProviderContext( 69 TempDirectory.setTempDirectory(mMockContext); 73 Account testAccount = ProviderTestUtils.setupAccount("acct1", false, mMockContext); 78 testAccount.save(mMockContext); 79 mStore = (Pop3Store) Pop3Store.newInstance(testAccount, mMockContext); [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
ContactLoaderTest.java | 45 private ContactsMockContext mMockContext; 51 mMockContext = new ContactsMockContext(getContext()); 52 mContactsProvider = mMockContext.getContactsProvider(); 73 mMockContext = null; 79 final ContactLoader loader = new ContactLoader(mMockContext, uri, true);
|