HomeSort by relevance Sort by last modified time
    Searched refs:ShadowApplication (Results 1 - 25 of 33) sorted by null

1 2

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowSystemClock.java 26 if (ShadowApplication.getInstance() == null) {
29 return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime();
34 if (ShadowApplication.getInstance() == null) {
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis);
44 if (ShadowApplication.getInstance() == null) {
52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis);
ShadowListPopupWindow.java 20 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
21 shadowApplication.setLatestListPopupWindow(realListPopupWindow);
26 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
27 return shadowApplication.getLatestListPopupWindow();
ShadowScroller.java 60 startTime = ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime();
64 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() {
92 return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime() - startTime;
ShadowToast.java 46 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
47 shadowApplication.getShownToasts().add(toast);
132 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
133 shadowApplication.getShownToasts().clear();
144 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
145 return shadowApplication.getShownToasts().size();
157 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application)
    [all...]
ShadowPopupWindow.java 20 ShadowApplication.getInstance().setLatestPopupWindow(realPopupWindow);
ShadowAsyncTaskLoader.java 29 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() {
43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future);
ShadowPopupMenu.java 45 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
46 ShadowPopupMenu popupMenu = shadowApplication.getLatestPopupMenu();
51 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
52 if (shadowApplication != null) shadowApplication.setLatestPopupMenu(latestPopupMenu);
ShadowAlertDialog.java 32 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
33 ShadowAlertDialog dialog = shadowApplication.getLatestAlertDialog();
48 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
49 shadowApplication.setLatestAlertDialog(null);
94 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
95 shadowApplication.setLatestAlertDialog(this);
ShadowAsyncTask.java 34 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() {
44 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() {
90 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(new Runnable() {
131 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() {
ShadowPowerManager.java 6 import static org.robolectric.shadows.ShadowApplication.getInstance;
113 ShadowApplication shadowApplication = ShadowApplication.getInstance();
114 if (shadowApplication != null) {
115 shadowApplication.clearWakeLocks();
125 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application);
126 return shadowApplication.getLatestWakeLock();
ShadowDialog.java 51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog();
56 ShadowApplication shadowApplication = ShadowApplication.getInstance();
57 if (shadowApplication != null) shadowApplication.setLatestDialog(latestDialog);
ShadowApplication.java 34 public class ShadowApplication extends ShadowContextWrapper {
55 public static ShadowApplication getInstance() {
ShadowView.java 363 ShadowApplication.getInstance().getForegroundThreadScheduler().post(action);
369 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills);
375 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() {
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
LocalPermissionGranter.java 9 import org.robolectric.shadows.ShadowApplication;
26 ShadowApplication shadowApplication = Shadow.extract(application);
27 shadowApplication.grantPermissions(permissions);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/
RoboExecutorServiceTest.java 15 import org.robolectric.shadows.ShadowApplication;
42 ShadowApplication.runBackgroundTasks();
53 ShadowApplication.runBackgroundTasks();
73 ShadowApplication.runBackgroundTasks();
95 ShadowApplication.runBackgroundTasks();
105 ShadowApplication.runBackgroundTasks();
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
RoboMenuTest.java 16 import org.robolectric.shadows.ShadowApplication;
63 Intent startedIntent = ShadowApplication.getInstance().getNextStartedActivity();
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowApplicationTest.java 264 final ShadowApplication shadowApplication = Shadows.shadowOf(context);
265 shadowApplication.setComponentNameAndServiceForBindServiceForIntent(expectedIntent, expectedComponentName, expectedBinder);
268 assertThat(shadowApplication.getUnboundServiceConnections()).hasSize(1);
269 assertThat(shadowApplication.getUnboundServiceConnections().get(0)).isSameAs(service);
279 final ShadowApplication shadowApplication = Shadows.shadowOf(context);
280 shadowApplication.setComponentNameAndServiceForBindServiceForIntent(expectedIntent, expectedComponentName, expectedBinder);
281 shadowApplication.declareActionUnbindable(expectedIntent.getAction());
286 assertThat(shadowApplication.peekNextStartedService()).isNull()
    [all...]
ShadowAsyncTaskTest.java 40 ShadowApplication.runBackgroundTasks();
60 ShadowApplication.runBackgroundTasks();
75 ShadowApplication.runBackgroundTasks();
103 ShadowApplication.runBackgroundTasks();
ShadowChoreographerTest.java 36 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceToLastPostedRunnable();
  /external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
ShadowLocalBroadcastManager.java 16 import org.robolectric.shadows.ShadowApplication;
27 return ShadowApplication.getInstance().getSingleton(LocalBroadcastManager.class, new Provider<LocalBroadcastManager>() {
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
RobolectricTest.java 31 import org.robolectric.shadows.ShadowApplication;
111 ShadowApplication.getInstance().checkActivities(true);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
ParallelUniverseCreateApplicationTest.java 25 import org.robolectric.shadows.ShadowApplication;
78 List<ShadowApplication.Wrapper> receivers = shadowOf(application).getRegisteredReceivers();
ParallelUniverseTest.java 38 import org.robolectric.shadows.ShadowApplication;
59 .isSameAs(ShadowApplication.getInstance().getForegroundThreadScheduler());
67 final ShadowApplication shadowApplication =
69 assertThat(shadowApplication.getBackgroundThreadScheduler())
70 .isSameAs(shadowApplication.getForegroundThreadScheduler());
81 final ShadowApplication shadowApplication =
83 assertThat(shadowApplication.getBackgroundThreadScheduler())
84 .isNotSameAs(shadowApplication.getForegroundThreadScheduler())
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/
RoboExecutorService.java 14 import org.robolectric.shadows.ShadowApplication;
48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler();
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
Robolectric.java 25 import org.robolectric.shadows.ShadowApplication;
188 return ShadowApplication.getInstance().getForegroundThreadScheduler();
204 return ShadowApplication.getInstance().getBackgroundThreadScheduler();

Completed in 320 milliseconds

1 2