Home
last modified time | relevance | path

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

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLooper.java40 public static Looper getMainLooper() {
41 return Robolectric.getShadowApplication().getMainLooper();
47 if (looper != shadowOf(getMainLooper())) {
66 …if (this == shadowOf(getMainLooper())) throw new RuntimeException("Main thread not allowed to quit…
92 pauseLooper(Looper.getMainLooper());
96 unPauseLooper(Looper.getMainLooper());
100 shadowOf(Looper.getMainLooper()).idle(interval);
DShadowContextWrapper.java230 public Looper getMainLooper() { in getMainLooper() method in ShadowContextWrapper
231 return getShadowApplication().getMainLooper(); in getMainLooper()
DShadowApplication.java202 shadowOf(Looper.getMainLooper()).post(new Runnable() { in bindService()
214 shadowOf(Looper.getMainLooper()).post(new Runnable() { in unbindService()
482 public Looper getMainLooper() { in getMainLooper() method in ShadowApplication
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DLooperTest.java19 assertSame(Looper.myLooper(), Looper.getMainLooper()); in testMainLooperAndMyLooperAreTheSameInstanceOnMainThread()
41 Looper mainLooper = Looper.getMainLooper(); in differentThreadsGetDifferentLoopers()
64 Looper.getMainLooper().quit(); in shouldThrowRuntimeExceptionIfTryingToQuitMainLooper()
104 assertTrue(shadowOf(Looper.getMainLooper()).getThread() == Thread.currentThread()); in testLoopThread()
DHandlerThreadTest.java35 assertNotSame(handlerThread.getLooper(), Robolectric.application.getMainLooper()); in shouldReturnLooper()
DFragmentManagerTest.java202 Scheduler scheduler = shadowOf(Looper.getMainLooper()).getScheduler(); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
206 new Handler(Looper.getMainLooper()).post(otherEnqueuedTask); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
DAdapterViewBehavior.java23 Robolectric.shadowOf(Looper.getMainLooper()).pause(); in shouldActAsAdapterView()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngineResource.java77 if (!Looper.getMainLooper().equals(Looper.myLooper())) { in acquire()
96 if (!Looper.getMainLooper().equals(Looper.myLooper())) { in release()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockLooper.java22 public static Looper getMainLooper() { in getMainLooper() method in MockLooper
DMockContext.java69 public Looper getMainLooper() { in getMainLooper() method in MockContext.MockContext2
/external/droiddriver/droiddriver-android_support_test/src/io/appium/droiddriver/android_support_test/
DD2AndroidJUnitRunner.java68 if (Looper.myLooper() == Looper.getMainLooper()) { in onStart()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DUtil.java132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
DBitmapPreFiller.java24 private final Handler handler = new Handler(Looper.getMainLooper());
DBitmapPreFillRunner.java67 …this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper())); in BitmapPreFillRunner()
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java190 if (Looper.myLooper() == Looper.getMainLooper()) { in validateNotAppThread()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifFrameManager.java44 …this(context, Glide.get(context).getBitmapPool(), decoder, new Handler(Looper.getMainLooper()), ta… in GifFrameManager()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DRequestManagerRetriever.java61 handler = new Handler(Looper.getMainLooper(), this /* Callback */); in RequestManagerRetriever()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestFragmentManager.java49 shadowOf(Looper.getMainLooper()).getScheduler().remove(runnable); in executePendingTransactions()
/external/apache-http/android/src/android/net/http/
DAndroidHttpClient.java97 if (Looper.myLooper() != null && Looper.myLooper() == Looper.getMainLooper() ) {
/external/glide/library/src/main/java/com/bumptech/glide/
DRequestManager.java69 new Handler(Looper.getMainLooper()).post(new Runnable() { in RequestManager()
DGlide.java193 mainHandler = new Handler(Looper.getMainLooper()); in Glide()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/
DPlot.java552 if (Looper.myLooper() == Looper.getMainLooper()) { in redraw()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java1241 return shadowOf(Looper.getMainLooper()).getScheduler(); in getUiThreadScheduler()
/external/robolectric/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/external/chromium-trace/trace-viewer/tracing/test_data/
Dddms_calculator_start.trace716 0x710643d8 android.content.ContextWrapper getMainLooper ()Landroid/os/Looper; ContextWrapper.java
855 0x7107ed18 android.app.ContextImpl getMainLooper ()Landroid/os/Looper; ContextImpl.java
1461 0x710c3fb8 android.os.Looper getMainLooper ()Landroid/os/Looper; Looper.java