Home
last modified time | relevance | path

Searched refs:getMockContext (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DDevicePolicyUtilsTest.java63 Context mockContext = getMockContext(false, true); in testIsBluetoothWorkContactSharingDisabled()
70 Context mockContext = getMockContext(false, false); in testIsBluetoothWorkContactSharingDisabled()
77 Context mockContext = getMockContext(true, true); in testIsBluetoothWorkContactSharingDisabled()
84 Context mockContext = getMockContext(true, false); in testIsBluetoothWorkContactSharingDisabled()
98 private Context getMockContext(boolean managedProfileExists, in getMockContext() method in DevicePolicyUtilsTest
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridSizeMigrationTaskTest.java60 new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 2, 3, 1) in testHotseatMigration_apps_dropped()
75 new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, 5, 2, 3, 1) in testHotseatMigration_shortcuts_dropped()
119 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_empty_row_column_removed()
138 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_new_screen_created()
162 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_items_merged_in_next_screen()
193 … new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(), in testWorkspace_items_not_merged_in_next_screen()
250 ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext()); in verifyWorkspace()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuardTest.java119 context = getMockContext(true, true); in testCrossProfile_userSettingOn()
135 context = getMockContext(true, /* isContactsSearchEnabled= */ false); in testCrossProfile_userSettingOn()
151 context = getMockContext(/* isCallerIdEnabled= */ false, true); in testCrossProfile_userSettingOn()
167 context = getMockContext(/* isCallerIdEnabled= */ false, in testCrossProfile_userSettingOn()
186 Context context = getMockContext(true, true); in testCrossProfile_userSettingOff()
258 private Context getMockContext(boolean isCallerIdEnabled, boolean isContactsSearchEnabled) { in getMockContext() method in EnterprisePolicyGuardTest
/packages/apps/Email/tests/src/com/android/email/
DAccountTestCase.java67 return ProviderTestUtils.setupAccount(username, true, getMockContext()); in setupProviderAndAccountManagerAccount()
72 Cursor c = getMockContext().getContentResolver().query(Account.CONTENT_URI, in makeExchangeServiceAccountList()
DControllerProviderOpsTests.java52 mProviderContext = getMockContext(); in setUp()
DLegacyConversionsTests.java69 mProviderContext = getMockContext(); in setUp()
DSecurityPolicyTests.java60 mMockContext = new MockContext2(getMockContext(), mContext); in setUp()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DQuickResponseTests.java43 mMockContext = getMockContext(); in setUp()
DMailboxTests.java62 mMockContext = getMockContext(); in setUp()
300 final Context context = getMockContext(); in testRestoreMailboxOfType()
/packages/apps/Email/tests/src/com/android/email/service/
DEmailBroadcastProcessorServiceTests.java51 mMockContext = getMockContext(); in setUp()
/packages/apps/Email/tests/src/com/android/email/mail/
DStoreTests.java48 mMockContext = getMockContext(); in setUp()
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java49 mMockContext = getMockContext(); in setUp()
DPolicyTests.java58 mMockContext = getMockContext(); in setUp()
DContentCacheTests.java56 mMockContext = getMockContext(); in setUp()
DAttachmentProviderTests.java65 mMockContext = getMockContext(); in setUp()
DProviderTests.java124 mMockContext = new MockContext2(getMockContext(), getContext()); in setUp()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DConversationCursorTests.java61 mMockContext = getMockContext(); in setUp()
DTestProviderTests.java61 mMockContext = getMockContext(); in setUp()
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DRfc822OutputTests.java83 mMockContext = getMockContext(); in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallLogProviderTest.java188 Uri uri = Calls.addCall(ci, getMockContext(), "1-800-263-7643", in testAddCall()
DBaseContactsProvider2Test.java154 public Context getMockContext() { in getMockContext() method in BaseContactsProvider2Test