Searched refs:shadowApplication (Results 1 – 10 of 10) sorted by relevance
264 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in unbindServiceAddsEntryToUnboundServicesCollection() local265 …shadowApplication.setComponentNameAndServiceForBindServiceForIntent(expectedIntent, expectedCompon… in unbindServiceAddsEntryToUnboundServicesCollection()268 assertThat(shadowApplication.getUnboundServiceConnections()).hasSize(1); in unbindServiceAddsEntryToUnboundServicesCollection()269 assertThat(shadowApplication.getUnboundServiceConnections().get(0)).isSameAs(service); in unbindServiceAddsEntryToUnboundServicesCollection()279 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in declaringServiceUnbindableMakesBindServiceReturnFalse() local280 …shadowApplication.setComponentNameAndServiceForBindServiceForIntent(expectedIntent, expectedCompon… in declaringServiceUnbindableMakesBindServiceReturnFalse()281 shadowApplication.declareActionUnbindable(expectedIntent.getAction()); in declaringServiceUnbindableMakesBindServiceReturnFalse()286 assertThat(shadowApplication.peekNextStartedService()).isNull(); in declaringServiceUnbindableMakesBindServiceReturnFalse()298 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in bindServiceWithMultipleIntentsMapping() local299 …shadowApplication.setComponentNameAndServiceForBindServiceForIntent(expectedIntentOne, expectedCom… in bindServiceWithMultipleIntentsMapping()[all …]
46 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show() local47 shadowApplication.getShownToasts().add(toast); in show()132 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset() local133 shadowApplication.getShownToasts().clear(); in reset()144 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in shownToastCount() local145 return shadowApplication.getShownToasts().size(); in shownToastCount()157 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedCustomToast() local158 for (Toast toast : shadowApplication.getShownToasts()) { in showedCustomToast()174 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedToast() local175 for (Toast toast : shadowApplication.getShownToasts()) { in showedToast()[all …]
45 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestPopupMenu() local46 ShadowPopupMenu popupMenu = shadowApplication.getLatestPopupMenu(); in getLatestPopupMenu()51 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in setLatestPopupMenu() local52 if (shadowApplication != null) shadowApplication.setLatestPopupMenu(latestPopupMenu); in setLatestPopupMenu()
32 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestAlertDialog() local33 ShadowAlertDialog dialog = shadowApplication.getLatestAlertDialog(); in getLatestAlertDialog()48 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset() local49 shadowApplication.setLatestAlertDialog(null); in reset()94 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show() local95 shadowApplication.setLatestAlertDialog(this); in show()
20 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show() local21 shadowApplication.setLatestListPopupWindow(realListPopupWindow); in show()26 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestListPopupWindow() local27 return shadowApplication.getLatestListPopupWindow(); in getLatestListPopupWindow()
113 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in reset() local114 if (shadowApplication != null) { in reset()115 shadowApplication.clearWakeLocks(); in reset()125 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestWakeLock() local126 return shadowApplication.getLatestWakeLock(); in getLatestWakeLock()
56 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in setLatestDialog() local57 if (shadowApplication != null) shadowApplication.setLatestDialog(latestDialog); in setLatestDialog()
67 final ShadowApplication shadowApplication = in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling() local69 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()70 .isSameAs(shadowApplication.getForegroundThreadScheduler()); in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()81 final ShadowApplication shadowApplication = in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault() local83 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()84 .isNotSameAs(shadowApplication.getForegroundThreadScheduler()); in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()
26 ShadowApplication shadowApplication = Shadow.extract(application); in requestPermissions() local27 shadowApplication.grantPermissions(permissions); in requestPermissions()
219 ShadowApplication shadowApplication = Shadow.extract(application); in setUpApplicationState() local220 shadowApplication.callAttach(contextImpl); in setUpApplicationState()