Searched refs:getMockContext (Results 1 – 6 of 6) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | PermissionHelperTest.java | 84 private Context getMockContext(String permissionToGrant, PackageManager packageManager) { in getMockContext() method in PermissionHelperTest 103 getMockContext( 107 getMockContext( 116 getMockContext( 120 getMockContext( 129 getMockContext( 135 Context mockContextDeny = getMockContext("not_granted_permission", mMockPackageManagerDeny); 142 getMockContext( 149 Context mockContextDeny = getMockContext("not_granted_permission", mMockPackageManagerDeny); 156 getMockContext(ACCESS_ADSERVICES_TOPICS, mMockPackageManagerGrant); [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 124 context = getMockContext(true, true); in testCrossProfile_userSettingOn() 140 context = getMockContext(true, /* isContactsSearchEnabled= */ false); in testCrossProfile_userSettingOn() 156 context = getMockContext(/* isCallerIdEnabled= */ false, true); in testCrossProfile_userSettingOn() 172 context = getMockContext(/* isCallerIdEnabled= */ false, in testCrossProfile_userSettingOn() 189 context = getMockContext(true, true, false); in testCrossProfile_userSettingOn() 217 Context context = getMockContext(true, true); in testCrossProfile_userSettingOff() 290 private Context getMockContext(boolean isCallerIdEnabled, boolean isContactsSearchEnabled) { in getMockContext() method in EnterprisePolicyGuardTest 291 return getMockContext(isCallerIdEnabled, isContactsSearchEnabled, true); in getMockContext() 294 private Context getMockContext(boolean isCallerIdEnabled, boolean isContactsSearchEnabled, in getMockContext() method in EnterprisePolicyGuardTest
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VoicemailCleanupTest.java | 53 ContactsPackageMonitor.cleanupVoicemail(getMockContext(), TEST_PACKAGE_1); in testCleanupVoicemail() 59 ContactsPackageMonitor.cleanupVoicemail(getMockContext(), TEST_PACKAGE_2); in testCleanupVoicemail() 66 ContactsPackageMonitor.cleanupVoicemail(getMockContext(), TEST_PACKAGE_2); in testCleanupVoicemail()
|
D | CallLogProviderTest.java | 450 Uri uri = Calls.addCall(ci, getMockContext(), "1-800-263-7643", in testAddCall()
|
D | BaseContactsProvider2Test.java | 180 public Context getMockContext() { in getMockContext() method in BaseContactsProvider2Test
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 189 final Context mockContext = getMockContext(); in launchImagesIntent_resolveActionViewNull_settingsIntent() 206 final Context mockContext = getMockContext(); in launchAudioIntent_resolveActionViewNull_settingsIntent() 288 final Context mockContext = getMockContext(); in launchDocumentsIntent_resolveActionViewNull_settingsIntent() 305 final Context mockContext = getMockContext(); in launchOtherIntent_resolveActionViewNull_settingsIntent() 340 final Context mockContext = getMockContext(); in launchVideosIntent_resolveActionViewNull_settingsIntent() 498 private Context getMockContext() { in getMockContext() method in StorageItemPreferenceControllerTest
|