/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowLooper.java | 40 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);
|
D | ShadowContextWrapper.java | 230 public Looper getMainLooper() { in getMainLooper() method in ShadowContextWrapper 231 return getShadowApplication().getMainLooper(); in getMainLooper()
|
D | ShadowApplication.java | 202 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/ |
D | LooperTest.java | 19 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()
|
D | HandlerThreadTest.java | 35 assertNotSame(handlerThread.getLooper(), Robolectric.application.getMainLooper()); in shouldReturnLooper()
|
D | FragmentManagerTest.java | 202 Scheduler scheduler = shadowOf(Looper.getMainLooper()).getScheduler(); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused() 206 new Handler(Looper.getMainLooper()).post(otherEnqueuedTask); in executePendingTransactions_shouldRunPendingCommitsAsIfTheMainLooperWereNotPaused()
|
D | AdapterViewBehavior.java | 23 Robolectric.shadowOf(Looper.getMainLooper()).pause(); in shouldActAsAdapterView()
|
/external/sl4a/Utils/src/com/googlecode/android_scripting/ |
D | MainThread.java | 38 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/ |
D | EngineResource.java | 77 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/ |
D | MockLooper.java | 22 public static Looper getMainLooper() { in getMainLooper() method in MockLooper
|
D | MockContext.java | 69 public Looper getMainLooper() { in getMainLooper() method in MockContext.MockContext2
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | TelephonyManagerFacade.java | 1165 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/ |
D | D2AndroidJUnitRunner.java | 68 if (Looper.myLooper() == Looper.getMainLooper()) { in onStart()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/ |
D | BitmapPreFiller.java | 24 private final Handler handler = new Handler(Looper.getMainLooper());
|
D | BitmapPreFillRunner.java | 67 …this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper())); in BitmapPreFillRunner()
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | InstrumentationUtils.java | 190 if (Looper.myLooper() == Looper.getMainLooper()) { in validateNotAppThread()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | LocationFacade.java | 146 mLocationListener, mService.getMainLooper()); in startLocating()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
D | GifFrameManager.java | 44 …this(context, Glide.get(context).getBitmapPool(), decoder, new Handler(Looper.getMainLooper()), ta… in GifFrameManager()
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
D | NetworkMonitorTest.java | 153 uiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
D | TestFragmentManager.java | 49 shadowOf(Looper.getMainLooper()).getScheduler().remove(runnable); in executePendingTransactions()
|
/external/glide/library/src/main/java/com/bumptech/glide/manager/ |
D | RequestManagerRetriever.java | 61 handler = new Handler(Looper.getMainLooper(), this /* Callback */); in RequestManagerRetriever()
|
/external/apache-http/android/src/android/net/http/ |
D | AndroidHttpClient.java | 97 if (Looper.myLooper() != null && Looper.myLooper() == Looper.getMainLooper() ) {
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
D | RequestManager.java | 69 new Handler(Looper.getMainLooper()).post(new Runnable() { in RequestManager()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ |
D | Plot.java | 552 if (Looper.myLooper() == Looper.getMainLooper()) { in redraw()
|