Home
last modified time | relevance | path

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

1234567

/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/controls/controller/
H A DControlsProviderLifecycleManagerTest.kt138 val mockContext = mock<Context>() in testNullBinding() constant
283 val mockContext = mock<Context> { in testOnPackageUpdateWhileBound_unbound_thenBindAgain() constant
310 val mockContext = mock<Context> { in testOnPackageUpdateWhenNotBound_nothingHappens() constant
338 val mockContext = mock<Context> { in testRebindForPanelWithSameFlags() constant
366 val mockContext = mock<Context> { in testBindAfterSecurityExceptionWorks() constant
/aosp_15_r20/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/
DRoundedCornerEnforcementTest.kt91 val mockContext = mock(Context::class.java) in Compute system radius when smaller() constant
108 val mockContext = mock(Context::class.java) in Compute launcher radius when smaller() constant
125 val mockContext = mock(Context::class.java) in Compute system radius ignoring launcher radius() constant
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/reporting/
DVerboseDebugReportingJobServiceTest.java226 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
254 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_killSwitchOff_sameJobInfoDontForceSchedule_dontSchedule() local
289 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_killSwitchOff_diffJobInfoDontForceSchedule_doesSchedule() local
325 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
353 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DVerboseDebugReportingFallbackJobServiceTest.java189 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
218 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfoDontForceSchedule_dontSchedule() local
256 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_diffJobInfoDontForceSchedule_doesSchedule() local
295 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
325 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DEventFallbackReportingJobServiceTest.java186 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
215 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_dontForceSchedule_dontSchedule() local
253 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_diffJobInfo_doesSchedule() local
293 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
323 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DDebugReportingJobServiceTest.java219 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
314 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
342 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DDebugReportingFallbackJobServiceTest.java176 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
281 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
311 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DEventReportingJobServiceTest.java173 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
277 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
305 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/aosp_15_r20/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DValidateNotificationPeopleTest.java210 final Context mockContext = mock(Context.class); in testSearchContacts_workContact_queriesWorkContactProvider() local
241 final Context mockContext = mock(Context.class); in testSearchContacts_personalContact_queriesPersonalContactProvider() local
268 final Context mockContext = mock(Context.class); in testMergePhoneNumbers_noPhoneNumber() local
300 final Context mockContext = mock(Context.class); in testMergePhoneNumbers_hasNumber() local
339 final Context mockContext = mock(Context.class); in testValidatePeople_needsLookupWhenNoCache() local
361 final Context mockContext = mock(Context.class); in testValidatePeople_noLookupWhenCached_andPopulatesContactInfo() local
401 final Context mockContext = mock(Context.class); in validatePeople_reconsiderationWillNotBeDelayed() local
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/
DDeleteUninstalledJobServiceTest.java126 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
154 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfo_dontSchedule() local
189 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_diffJobInfo_doesSchedule() local
226 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
255 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DDeleteExpiredJobServiceTest.java133 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
161 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfoNoForceSchedule_dontSchedule() local
196 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_diffJobInfoNoForceSchedule_dontSchedule() local
231 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
258 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/aosp_15_r20/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/
DKotlinUtilsTest.kt81 val mockContext = mock(Context::class.java) in <lambda>() constant
114 val mockContext = mock(Context::class.java) in <lambda>() constant
136 val mockContext = mock(Context::class.java) in <lambda>() constant
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/attribution/
DAttributionFallbackJobServiceTest.java180 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
208 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfoDontForceSchedule_dontSchedule() local
248 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfoDontForceSchedule_doesSchedule() local
286 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
315 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
DAttributionJobServiceTest.java389 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
416 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_sameJobInfoDontForceSchedule_dontSchedule() local
456 final Context mockContext = spy(ApplicationProvider.getApplicationContext()); in scheduleIfNeeded_diffJobInfoDontForceSchedule_doesSchedule() local
497 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
525 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java190 final Context mockContext = getMockContext(); in launchImagesIntent_resolveActionViewNull_settingsIntent() local
207 final Context mockContext = getMockContext(); in launchAudioIntent_resolveActionViewNull_settingsIntent() local
289 final Context mockContext = getMockContext(); in launchDocumentsIntent_resolveActionViewNull_settingsIntent() local
306 final Context mockContext = getMockContext(); in launchOtherIntent_resolveActionViewNull_settingsIntent() local
341 final Context mockContext = getMockContext(); in launchVideosIntent_resolveActionViewNull_settingsIntent() local
/aosp_15_r20/packages/modules/Connectivity/tests/unit/java/android/net/util/
DKeepaliveUtilsTest.kt75 val mockContext = getMockedContextWithStringArrayRes( in testGetSupportedKeepalives() constant
104 val mockContext = getMockedContextWithStringArrayRes( in testGetSupportedKeepalives() constant
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueJobServiceTest.java357 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOn_dontSchedule() local
475 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyExecuted_forceSchedule_schedule() local
505 final Context mockContext = mock(Context.class); in scheduleIfNeeded_killSwitchOff_previouslyNotExecuted_dontForceSchedule_schedule() local
531 final Context mockContext = mock(Context.class); in scheduleIfNeeded_minAndMaxDelayModified_scheduleAccordingly() local
/aosp_15_r20/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java511 Context mockContext = mock(Context.class); in testShouldDisplayMessageForSubUsers() local
660 Context mockContext = mock(Context.class); in testShouldDisplayMessage() local
753 Context mockContext = mock(Context.class); in testShouldDisplayMessageForExerciseAlerts() local
892 Context mockContext = mock(Context.class); in testShouldDisplayMessageForOperatorAlerts() local
970 Context mockContext = mock(Context.class); in testShouldDisplayMessageWithMasterToggleState() local
DCellBroadcastConfigServiceTest.java831 Context mockContext = mock(Context.class); in testEnablingExerciseTestChannels() local
907 Context mockContext = mock(Context.class); in testEnablingOperatorTestChannels() local
1066 Context mockContext = mock(Context.class); in testEnableCellBroadcastRoamingChannelsAsNeeded() local
1191 Context mockContext = mock(Context.class); in testEnableCellBroadcastWithMasterToggleState() local
DCellBroadcastSettingsTest.java194 Context mockContext = mock(Context.class); in testPreferenceChangeByUser() local
214 Context mockContext = mock(Context.class); in testGetResources() local
281 Context mockContext = mock(Context.class); in testGetResourcesByOperator() local
/aosp_15_r20/build/soong/java/
H A Djava_test.go1315 type mockContext struct { struct
1316 android.ModuleContext
1317 result bool
1320 func (ctx *mockContext) PropertyErrorf(property, format string, args ...interface{}) {
/aosp_15_r20/build/soong/cc/
H A Dcc_test.go1336 type mockContext struct { struct
1337 BaseModuleContext
1338 result bool
1341 func (ctx *mockContext) PropertyErrorf(property, format string, args ...interface{}) {
/aosp_15_r20/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnTestUtils.java29 Context mockContext, Object service, String name, Class<?> serviceClass) { in setupSystemService()
35 public static IpSecManager setupIpSecManager(Context mockContext, IpSecService service) { in setupIpSecManager()
/aosp_15_r20/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
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java336 Context mockContext = mock(Context.class); in canCurrentUserDream_isMainUser_returnTrue() local
353 Context mockContext = mock(Context.class); in canCurrentUserDream_nullMainUser_returnFalse() local
364 Context mockContext = mock(Context.class); in canCurrentUserDream_notMainUser_returnFalse() local

1234567