/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()
|
/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/libmojo/base/android/java/src/org/chromium/base/ |
D | ThreadUtils.java | 40 + Looper.getMainLooper() + "), cannot set to new looper " + looper); in setUiThread() 53 sUiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
|
D | PowerMonitor.java | 30 private final Handler mHandler = new Handler(Looper.getMainLooper());
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | InstrumentationUtils.java | 177 if (Looper.myLooper() != Looper.getMainLooper()) { in checkMainThread() 183 if (Looper.myLooper() == Looper.getMainLooper()) { in checkNotMainThread()
|
D | ActivityUtils.java | 46 if (Looper.myLooper() == Looper.getMainLooper()) {
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockLooper.java | 22 public static Looper getMainLooper() { in getMainLooper() method in MockLooper
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
D | BluetoothMediaFacade.java | 118 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/ |
D | ClearCacheRequest.java | 51 Handler handler = new Handler(Looper.getMainLooper()); in isCanceled()
|
D | ImageLoader.java | 64 private final Handler mHandler = new Handler(Looper.getMainLooper()); 491 if (Looper.myLooper() != Looper.getMainLooper()) {
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | TelephonyManagerFacade.java | 1313 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/ |
D | Request.java | 222 if (Looper.myLooper() != Looper.getMainLooper()) { in finish() 225 Handler mainThread = new Handler(Looper.getMainLooper()); in finish()
|
D | RequestQueue.java | 125 new ExecutorDelivery(new Handler(Looper.getMainLooper()))); in RequestQueue()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | SoundLevelCalibration.java | 40 private Handler handler = new Handler(Looper.getMainLooper());
|
/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/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | LocationFacade.java | 144 mLocationListener, mService.getMainLooper()); in startLocating()
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
D | NetworkMonitorTest.java | 153 uiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
|