Home
last modified time | relevance | path

Searched defs:mockContext (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/reporting/
DDebugReportingJobServiceTest.java225 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
254 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule_debugReportApi() local
284 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
314 final Context mockContext = mock(Context.class); in scheduleIfNeeded_previouslyExecuted_dontForceSchedule_dontSchedule_debugReportApi() local
344 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
374 final Context mockContext = mock(Context.class); in scheduleIfNeeded_previouslyExecuted_forceSchedule_schedule_debugReportApi() local
404 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
433 final Context mockContext = mock(Context.class); in scheduleIfNeeded_previouslyNotExecuted_dontForceSchedule_schedule_debugReportApi() local
DEventReportingJobServiceTest.java209 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
238 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
267 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
296 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DAggregateReportingJobServiceTest.java210 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
239 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
268 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
297 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DEventFallbackReportingJobServiceTest.java210 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
239 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
268 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
298 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DAggregateFallbackReportingJobServiceTest.java210 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
240 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
270 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
300 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueJobServiceTest.java200 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
229 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
258 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
288 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DAsyncRegistrationFallbackJobServiceTest.java200 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
230 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
260 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
290 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DDeleteUninstalledJobServiceTest.java192 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
221 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
250 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
279 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DDeleteExpiredJobServiceTest.java208 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
237 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
266 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
295 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/attribution/
DAttributionJobServiceTest.java208 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
237 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
266 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
294 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DAttributionFallbackJobServiceTest.java208 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
237 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
266 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
295 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/
DKotlinUtilsTest.kt83 val mockContext = mock(Context::class.java) in <lambda>() constant
110 val mockContext = mock(Context::class.java) in <lambda>() constant
130 val mockContext = mock(Context::class.java) in <lambda>() constant
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt75 val mockContext = getMockedContextWithStringArrayRes( in testGetSupportedKeepalives() constant
104 val mockContext = getMockedContextWithStringArrayRes( in testGetSupportedKeepalives() constant
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSettingsTest.java172 Context mockContext = mock(Context.class); in testPreferenceChangeByUser() local
191 Context mockContext = mock(Context.class); in testGetResources() local
253 Context mockContext = mock(Context.class); in testGetResourcesByOperator() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java173 final Context mockContext = getMockContext(); in launchImagesIntent_resolveActionViewNull_settingsIntent() local
190 final Context mockContext = getMockContext(); in launchAudioIntent_resolveActionViewNull_settingsIntent() local
270 final Context mockContext = getMockContext(); in launchDocumentsAndOtherIntent_resolveActionViewNull_settingsIntent() local
305 final Context mockContext = getMockContext(); in launchVideosIntent_resolveActionViewNull_settingsIntent() local
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentitySetTest.kt35 private val mockContext = mock(Context::class.java) constant
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/compat/
DPackageManagerCompatUtilsTest.java222 Context mockContext = mock(Context.class); in testIsAdServicesActivityEnabled_enabled() local
243 Context mockContext = mock(Context.class); in testIsAdServicesActivityEnabled_disabled() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java309 Context mockContext = mock(Context.class); in canCurrentUserDream_isMainUser_returnTrue() local
326 Context mockContext = mock(Context.class); in canCurrentUserDream_nullMainUser_returnFalse() local
337 Context mockContext = mock(Context.class); in canCurrentUserDream_notMainUser_returnFalse() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/
DDreamSettingsTest.java136 final Context mockContext = mock(Context.class); in summaryText_whenDreamsAreOff() local
149 final Context mockContext = mock(Context.class); in summaryTest_WhenDreamsAreOn() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsHearingDeviceControlsControllerTest.java94 private void assertStartActivityWithExpectedFragment(Context mockContext, String fragmentName) { in assertStartActivityWithExpectedFragment()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcTagOccurredTest.java73 Context mockContext = new ContextWrapper(context) { in setUp() local
DNfcReaderConflictOccurredTest.java89 Context mockContext = new ContextWrapper(context) { in setUp() local
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java432 final Context mockContext = mock(Context.class); in checkDestinationFilePathRestrictions_noPermission() local
457 final Context mockContext = mock(Context.class); in checkDestinationFilePathRestrictions_installer() local
483 final Context mockContext = mock(Context.class); in checkDestinationFilePathRestrictions_WES() local
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DNfcAidConflictOccurredTest.java79 Context mockContext = new ContextWrapper(context) { in setUp() local
DNfcCardEmulationOccurredTest.java74 Context mockContext = new ContextWrapper(context) { in setUp() local

123