Home
last modified time | relevance | path

Searched refs:ShadowApplication (Results 1 – 25 of 33) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemClock.java26 if (ShadowApplication.getInstance() == null) { in now()
29 return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime(); in now()
34 if (ShadowApplication.getInstance() == null) { in sleep()
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
44 if (ShadowApplication.getInstance() == null) { in setCurrentTimeMillis()
52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis); in setCurrentTimeMillis()
DShadowToast.java46 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
132 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset()
144 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in shownToastCount()
157 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedCustomToast()
174 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedToast()
191 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getTextOfLatestToast()
208 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestToast()
DShadowScroller.java60 startTime = ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime(); in startScroll()
64 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in startScroll()
92 …return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime() - startTime; in deltaTime()
DShadowAsyncTask.java34 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in ShadowAsyncTask()
44 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in ShadowAsyncTask()
90 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(new Runnable() { in execute()
131 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in publishProgress()
DShadowPowerManager.java6 import static org.robolectric.shadows.ShadowApplication.getInstance;
113 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in reset()
125 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestWakeLock()
DShadowAlertDialog.java32 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestAlertDialog()
48 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset()
94 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
DShadowListPopupWindow.java20 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
26 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestListPopupWindow()
DShadowDialog.java51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog(); in getLatestDialog()
56 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in setLatestDialog()
DShadowAsyncTaskLoader.java29 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in onForceLoad()
43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); in onForceLoad()
DShadowPopupMenu.java45 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestPopupMenu()
51 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in setLatestPopupMenu()
DShadowPopupWindow.java20 ShadowApplication.getInstance().setLatestPopupWindow(realPopupWindow); in invokePopup()
DShadowApplication.java34 public class ShadowApplication extends ShadowContextWrapper { class
55 public static ShadowApplication getInstance() { in getInstance()
DShadowView.java363 ShadowApplication.getInstance().getForegroundThreadScheduler().post(action); in post()
369 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills); in postDelayed()
375 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in postInvalidateDelayed()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/
DRoboExecutorServiceTest.java15 import org.robolectric.shadows.ShadowApplication;
42 ShadowApplication.runBackgroundTasks(); in execute_shouldRunStuffOnBackgroundThread()
53 ShadowApplication.runBackgroundTasks(); in submitRunnable_shouldRunStuffOnBackgroundThread()
73 ShadowApplication.runBackgroundTasks(); in submitCallable_shouldRunStuffOnBackgroundThread()
95 ShadowApplication.runBackgroundTasks(); in whenShutdownBeforeSubmittedTasksAreExecuted_TaskIsNotInTranscript()
105 ShadowApplication.runBackgroundTasks(); in whenShutdownNow_ReturnedListContainsOneRunnable()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowApplicationTest.java264 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in unbindServiceAddsEntryToUnboundServicesCollection()
279 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in declaringServiceUnbindableMakesBindServiceReturnFalse()
298 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in bindServiceWithMultipleIntentsMapping()
318 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in bindServiceWithMultipleIntentsMappingWithDefault()
342 final ShadowApplication shadowApplication = Shadows.shadowOf(context); in unbindServiceWithMultipleIntentsMapping()
365 ShadowApplication shadowApplication = Shadows.shadowOf(context); in shouldHaveStoppedServiceIntentAndIndicateServiceWasntRunning()
385 ShadowApplication shadowApplication = shadowOf(context); in shouldHaveStoppedServiceIntentAndIndicateServiceWasRunning()
401 ShadowApplication shadowApplication = shadowOf(context); in shouldHaveStoppedServiceByStartedComponent()
457 ShadowApplication shadowApplication = shadowOf(context); in canAnswerIfReceiverIsRegisteredForIntent()
467 ShadowApplication shadowApplication = shadowOf(context); in canFindAllReceiversForAnIntent()
[all …]
DShadowAsyncTaskTest.java40 ShadowApplication.runBackgroundTasks(); in testNormalFlow()
60 ShadowApplication.runBackgroundTasks(); in testCancelBeforeBackground()
75 ShadowApplication.runBackgroundTasks(); in testCancelBeforePostExecute()
103 ShadowApplication.runBackgroundTasks(); in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
DShadowChoreographerTest.java36 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceToLastPostedRunnable(); in removeFrameCallback_shouldRemoveCallback()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalPermissionGranter.java9 import org.robolectric.shadows.ShadowApplication;
26 ShadowApplication shadowApplication = Shadow.extract(application); in requestPermissions()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java38 import org.robolectric.shadows.ShadowApplication;
59 .isSameAs(ShadowApplication.getInstance().getForegroundThreadScheduler()); in setUpApplicationState_configuresGlobalScheduler()
67 final ShadowApplication shadowApplication = in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()
81 final ShadowApplication shadowApplication = in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()
DParallelUniverseCreateApplicationTest.java25 import org.robolectric.shadows.ShadowApplication;
78 List<ShadowApplication.Wrapper> receivers = shadowOf(application).getRegisteredReceivers(); in shouldRegisterReceiversFromTheManifest()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java25 import org.robolectric.shadows.ShadowApplication;
188 return ShadowApplication.getInstance().getForegroundThreadScheduler(); in getForegroundThreadScheduler()
204 return ShadowApplication.getInstance().getBackgroundThreadScheduler(); in getBackgroundThreadScheduler()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuTest.java16 import org.robolectric.shadows.ShadowApplication;
63 Intent startedIntent = ShadowApplication.getInstance().getNextStartedActivity(); in clickWithIntent()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManager.java16 import org.robolectric.shadows.ShadowApplication;
27 …return ShadowApplication.getInstance().getSingleton(LocalBroadcastManager.class, new Provider<Loca… in getInstance()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/
DRoboExecutorService.java14 import org.robolectric.shadows.ShadowApplication;
48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler(); in RoboExecutorService()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTest.java31 import org.robolectric.shadows.ShadowApplication;
111 ShadowApplication.getInstance().checkActivities(true); in checkActivities_shouldSetValueOnShadowApplication()

12