Home
last modified time | relevance | path

Searched refs:getMainLooper (Results 1 – 25 of 38) 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()
/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/libmojo/base/android/java/src/org/chromium/base/
DThreadUtils.java40 + Looper.getMainLooper() + "), cannot set to new looper " + looper); in setUiThread()
53 sUiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
DPowerMonitor.java30 private final Handler mHandler = new Handler(Looper.getMainLooper());
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java177 if (Looper.myLooper() != Looper.getMainLooper()) { in checkMainThread()
183 if (Looper.myLooper() == Looper.getMainLooper()) { in checkNotMainThread()
DActivityUtils.java46 if (Looper.myLooper() == Looper.getMainLooper()) {
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockLooper.java22 public static Looper getMainLooper() { in getMainLooper() method in MockLooper
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMediaFacade.java118 mHandler = new Handler(Looper.getMainLooper()); in BluetoothMediaFacade()
230 Handler mainHandler = new Handler(mContext.getMainLooper()); in setCurrentMediaController()
419 Handler mainHandler = new Handler(mContext.getMainLooper()); in bluetoothMediaConnectToCarMBS()
/external/volley/src/main/java/com/android/volley/toolbox/
DClearCacheRequest.java51 Handler handler = new Handler(Looper.getMainLooper()); in isCanceled()
DImageLoader.java64 private final Handler mHandler = new Handler(Looper.getMainLooper());
491 if (Looper.myLooper() != Looper.getMainLooper()) {
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java1313 new ServiceStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1315 new SignalStrengthChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1318 mEventFacade, mTelephonyManager, subId, mService.getMainLooper()); in StateChangeListener()
1320 new CallStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1322 new CellInfoChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1325 mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
1327 new VoiceMailStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
/external/volley/src/main/java/com/android/volley/
DRequest.java222 if (Looper.myLooper() != Looper.getMainLooper()) { in finish()
225 Handler mainThread = new Handler(Looper.getMainLooper()); in finish()
DRequestQueue.java125 new ExecutorDelivery(new Handler(Looper.getMainLooper()))); in RequestQueue()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DUtil.java132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DSoundLevelCalibration.java40 private Handler handler = new Handler(Looper.getMainLooper());
/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/sl4a/Common/src/com/googlecode/android_scripting/facade/
DLocationFacade.java144 mLocationListener, mService.getMainLooper()); in startLocating()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DNetworkMonitorTest.java153 uiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()

12