Home
last modified time | relevance | path

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

12

/external/robolectric/v1/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/v1/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/sl4a/Utils/src/com/googlecode/android_scripting/
DMainThread.java38 Handler handler = new Handler(context.getMainLooper()); in run()
59 Handler handler = new Handler(context.getMainLooper()); in run()
/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/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java1165 new ServiceStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1167 new SignalStrengthChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1170 mEventFacade, mTelephonyManager, subId, mService.getMainLooper()); in StateChangeListener()
1172 new CallStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1174 new CellInfoChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1177 mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1179 new VoiceMailStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
/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/sl4a/Common/src/com/googlecode/android_scripting/facade/
DLocationFacade.java146 mLocationListener, mService.getMainLooper()); in startLocating()
/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/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DNetworkMonitorTest.java153 uiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestFragmentManager.java49 shadowOf(Looper.getMainLooper()).getScheduler().remove(runnable); in executePendingTransactions()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DRequestManagerRetriever.java61 handler = new Handler(Looper.getMainLooper(), this /* Callback */); in RequestManagerRetriever()
/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()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/
DPlot.java552 if (Looper.myLooper() == Looper.getMainLooper()) { in redraw()

12