/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLooperTest.java | 73 assertThat(Looper.myLooper()).isSameAs(Looper.getMainLooper()); in mainLooper_andMyLooper_shouldBeSame_onMainThread() 79 assertThat(ht.getLooper()).isNotSameAs(Looper.getMainLooper()); in differentThreads_getDifferentLoopers() 84 assertThat(Looper.getMainLooper().getThread()).isSameAs(Thread.currentThread()); in mainLooperThread_shouldBeTestThread() 89 assertThat(ShadowLooper.getShadowMainLooper()).isSameAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper() 100 …sertThat(ShadowLooper.getLooperForThread(Thread.currentThread())).isSameAs(Looper.getMainLooper()); in getLooperForThread_returnsLooperForMainThread() 136 Looper.getMainLooper().quit(); in shouldThrowRuntimeExceptionIfTryingToQuitMainLooper() 223 assertThat(Looper.myLooper()).isSameAs(Looper.getMainLooper()); in whenTestHarnessUsesDifferentThread_shouldStillHaveMainLooper() 246 Looper mainLooper = Looper.getMainLooper(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() 249 assertThat(ApplicationProvider.getApplicationContext().getMainLooper()).isSameAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() 261 assertThat(Looper.getMainLooper()).named("Looper.getMainLooper()").isSameAs(mainLooper); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() [all …]
|
D | ShadowInputMethodManagerTest.java | 51 new CapturingResultReceiver(new Handler(Looper.getMainLooper())); in hideSoftInputFromWindow_shouldNotifiyResult_hidden() 59 new CapturingResultReceiver(new Handler(Looper.getMainLooper())); in hideSoftInputFromWindow_shouldNotifiyResult_alreadHidden()
|
D | ShadowWindowManagerGlobalTest.java | 24 assertThat(ShadowWindowManagerGlobal.getWindowSession(Looper.getMainLooper())).isNull(); in getWindowSession_withLooper_shouldReturnNull_toStubAndroidStartup()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalUiController.java | 37 checkState(Looper.myLooper() == Looper.getMainLooper(), "Expecting to be on main thread!"); in injectMotionEvent() 51 checkState(Looper.myLooper() == Looper.getMainLooper(), "Expecting to be on main thread!"); in injectKeyEvent() 65 checkState(Looper.myLooper() == Looper.getMainLooper(), "Expecting to be on main thread!"); in injectString() 141 shadowOf(Looper.getMainLooper()).idle(); in loopMainThreadUntilIdle() 146 shadowOf(Looper.getMainLooper()).idle(millisDelay, TimeUnit.MILLISECONDS); in loopMainThreadForAtLeast()
|
D | LocalControlledLooper.java | 12 shadowOf(Looper.getMainLooper()).idle(); in drainMainThreadUntilIdle()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLooper.java | 88 protected static Looper getMainLooper() { in getMainLooper() method in ShadowLooper 103 if (realObject != Looper.getMainLooper()) { in doLoop() 117 …if (realObject == Looper.getMainLooper()) throw new RuntimeException("Main thread not allowed to q… in quit() 144 return shadowOf(Looper.getMainLooper()); in getShadowMainLooper() 366 if (realObject == Looper.getMainLooper() || RoboSettings.isUseGlobalScheduler()) { in resetScheduler()
|
D | ShadowAccessibilityManager.java | 65 …pers.setField(accessibilityManager, "mHandler", new MyHandler(context.getMainLooper(), accessibili… in createInstance() 69 …pers.setField(accessibilityManager, "mHandler", new MyHandler(context.getMainLooper(), accessibili… in createInstance()
|
D | ShadowOverScroller.java | 124 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in getScheduler()
|
D | ShadowViewGroup.java | 26 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in addView()
|
/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/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | IntentServiceControllerTest.java | 64 assertThat(shadowOf(Looper.getMainLooper()).isPaused()).isFalse(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 72 assertThat(shadowOf(Looper.getMainLooper()).isPaused()).isTrue(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 110 private Handler handler = new Handler(Looper.getMainLooper());
|
D | ServiceControllerTest.java | 65 assertThat(shadowOf(Looper.getMainLooper()).isPaused()).isFalse(); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 73 assertThat(shadowOf(Looper.getMainLooper()).isPaused()).isTrue(); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 112 private Handler handler = new Handler(Looper.getMainLooper());
|
/external/libchrome/base/android/java/src/org/chromium/base/ |
D | ThreadUtils.java | 46 + Looper.getMainLooper() + "), cannot set to new looper " + looper); in setUiThread() 59 sUiThreadHandler = new Handler(Looper.getMainLooper()); in getUiThreadHandler()
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | InstrumentationUtils.java | 180 if (Looper.myLooper() != Looper.getMainLooper()) { in checkMainThread() 186 if (Looper.myLooper() == Looper.getMainLooper()) { in checkNotMainThread()
|
D | ActivityUtils.java | 48 if (Looper.myLooper() == Looper.getMainLooper()) {
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | Threads.java | 9 if (Looper.myLooper() != Looper.getMainLooper()) { in throwIfNotOnMainThread()
|
D | ClearCacheRequest.java | 48 Handler handler = new Handler(Looper.getMainLooper()); in isCanceled()
|
/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 | 117 mHandler = new Handler(Looper.getMainLooper()); in BluetoothMediaFacade() 229 Handler mainHandler = new Handler(mContext.getMainLooper()); in setCurrentMediaController() 440 Handler mainHandler = new Handler(mContext.getMainLooper()); in bluetoothMediaConnectToCarMBS()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
D | TelephonyManagerFacade.java | 1453 new ServiceStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener() 1455 new SignalStrengthChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener() 1458 mEventFacade, mTelephonyManager, subId, mService.getMainLooper()); in StateChangeListener() 1461 mEventFacade, mTelephonyManager, subId, mService.getMainLooper()); in StateChangeListener() 1463 new CallStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener() 1465 new CellInfoChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener() 1468 mEventFacade, subId, mService.getMainLooper()); in StateChangeListener() 1470 new VoiceMailStateChangeListener(mEventFacade, subId, mService.getMainLooper()); in StateChangeListener()
|
/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | Preconditions.java | 59 if (Looper.myLooper() == Looper.getMainLooper()) { in ensureOnMainThread()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/controller/ |
D | ComponentController.java | 30 shadowMainLooper = Shadow.extract(Looper.getMainLooper()); in ComponentController()
|
/external/volley/src/main/java/com/android/volley/ |
D | Request.java | 234 if (Looper.myLooper() != Looper.getMainLooper()) { in finish() 237 Handler mainThread = new Handler(Looper.getMainLooper()); in finish()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
|