/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSystemClock.java | 26 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()
|
D | ShadowToast.java | 46 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()
|
D | ShadowScroller.java | 60 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()
|
D | ShadowAsyncTask.java | 34 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()
|
D | ShadowPowerManager.java | 6 import static org.robolectric.shadows.ShadowApplication.getInstance; 113 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in reset() 125 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestWakeLock()
|
D | ShadowAlertDialog.java | 32 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()
|
D | ShadowListPopupWindow.java | 20 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show() 26 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestListPopupWindow()
|
D | ShadowDialog.java | 51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog(); in getLatestDialog() 56 ShadowApplication shadowApplication = ShadowApplication.getInstance(); in setLatestDialog()
|
D | ShadowAsyncTaskLoader.java | 29 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in onForceLoad() 43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); in onForceLoad()
|
D | ShadowPopupMenu.java | 45 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestPopupMenu() 51 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in setLatestPopupMenu()
|
D | ShadowPopupWindow.java | 20 ShadowApplication.getInstance().setLatestPopupWindow(realPopupWindow); in invokePopup()
|
D | ShadowApplication.java | 34 public class ShadowApplication extends ShadowContextWrapper { class 55 public static ShadowApplication getInstance() { in getInstance()
|
D | ShadowView.java | 363 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/ |
D | RoboExecutorServiceTest.java | 15 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/ |
D | ShadowApplicationTest.java | 264 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 …]
|
D | ShadowAsyncTaskTest.java | 40 ShadowApplication.runBackgroundTasks(); in testNormalFlow() 60 ShadowApplication.runBackgroundTasks(); in testCancelBeforeBackground() 75 ShadowApplication.runBackgroundTasks(); in testCancelBeforePostExecute() 103 ShadowApplication.runBackgroundTasks(); in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
|
D | ShadowChoreographerTest.java | 36 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceToLastPostedRunnable(); in removeFrameCallback_shouldRemoveCallback()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalPermissionGranter.java | 9 import org.robolectric.shadows.ShadowApplication; 26 ShadowApplication shadowApplication = Shadow.extract(application); in requestPermissions()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 38 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()
|
D | ParallelUniverseCreateApplicationTest.java | 25 import org.robolectric.shadows.ShadowApplication; 78 List<ShadowApplication.Wrapper> receivers = shadowOf(application).getRegisteredReceivers(); in shouldRegisterReceiversFromTheManifest()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | Robolectric.java | 25 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/ |
D | RoboMenuTest.java | 16 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/ |
D | ShadowLocalBroadcastManager.java | 16 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/ |
D | RoboExecutorService.java | 14 import org.robolectric.shadows.ShadowApplication; 48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler(); in RoboExecutorService()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | RobolectricTest.java | 31 import org.robolectric.shadows.ShadowApplication; 111 ShadowApplication.getInstance().checkActivities(true); in checkActivities_shouldSetValueOnShadowApplication()
|