Home
last modified time | relevance | path

Searched refs:myLooper (Results 1 – 25 of 27) sorted by relevance

12

/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/
DInterpreterInstaller.java111 Looper.myLooper().quit();
114 Looper.myLooper().quit();
146 Looper.myLooper().quit();
221 if (Looper.myLooper() == null) { in executeInBackground()
224 mBackgroundHandler = new Handler(Looper.myLooper()); in executeInBackground()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java57 looper = Looper.myLooper(); in run()
73 assertThat(Looper.myLooper()).isSameAs(Looper.getMainLooper()); in mainLooper_andMyLooper_shouldBeSame_onMainThread()
223 assertThat(Looper.myLooper()).isSameAs(Looper.getMainLooper()); in whenTestHarnessUsesDifferentThread_shouldStillHaveMainLooper()
344 final AtomicReference<Looper> myLooper = new AtomicReference<>(); in myLooper_returnsMainLooper_ifMainThreadIsSwitched() local
348 myLooper.set(Looper.myLooper()); in myLooper_returnsMainLooper_ifMainThreadIsSwitched()
355 assertThat(myLooper.get()).isSameAs(Looper.getMainLooper()); in myLooper_returnsMainLooper_ifMainThreadIsSwitched()
DShadowHandlerTest.java63 Handler handler2 = new Handler(Looper.myLooper()); in testDefaultConstructorUsesDefaultLooper()
66 shadowOf(Looper.myLooper()).idle(); in testDefaultConstructorUsesDefaultLooper()
370 runAt.add(shadowOf(Looper.myLooper()).getScheduler().getCurrentTime()); in scheduler_wontDispatchRemovedMessage_evenIfMessageReused()
508 Handler h = new Handler(Looper.myLooper()) { in shouldRemoveMessageFromQueueBeforeDispatching()
DShadowMessengerTest.java27 Looper looper = Looper.myLooper(); in testMessengerSend()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalUiController.java37 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()
DParallelUniverse.java117 if (Looper.myLooper() == null) { in setUpApplicationState()
178 .setStaticField(ActivityThread.class, "sMainThreadHandler", new Handler(Looper.myLooper())); in setUpApplicationState()
/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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowChoreographer.java27 private Handler handler = new Handler(Looper.myLooper());
35 Looper looper = Looper.myLooper(); in makeThreadLocal()
DShadowLooper.java93 protected static Looper myLooper() { in myLooper() method in ShadowLooper
99 shadowOf(Looper.myLooper()).doLoop(); in loop()
DShadowMediaPlayer.java544 Looper myLooper = Looper.myLooper(); in __constructor__() local
545 if (myLooper != null) { in __constructor__()
546 handler = getHandler(myLooper); in __constructor__()
DShadowSystemVibrator.java25 private Handler handler = new Handler(Looper.myLooper());
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java180 if (Looper.myLooper() != Looper.getMainLooper()) { in checkMainThread()
186 if (Looper.myLooper() == Looper.getMainLooper()) { in checkNotMainThread()
DActivityUtils.java48 if (Looper.myLooper() == Looper.getMainLooper()) {
/external/volley/src/main/java/com/android/volley/toolbox/
DThreads.java9 if (Looper.myLooper() != Looper.getMainLooper()) { in throwIfNotOnMainThread()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockLooper.java17 public static Looper myLooper() { in myLooper() method in MockLooper
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DPreconditions.java59 if (Looper.myLooper() == Looper.getMainLooper()) { in ensureOnMainThread()
DSetupCompatServiceProvider.java62 disableLooperCheckForTesting || Looper.getMainLooper() != Looper.myLooper(), in getService()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
DLooperExecutor.java71 Looper.myLooper().quit(); in requestStop()
/external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/
DPresencePollingTestBase.java49 if (Looper.myLooper() == null) { in setUp()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DUtil.java132 return Looper.myLooper() == Looper.getMainLooper(); in isOnMainThread()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DDecodeHandler.java57 Looper.myLooper().quit(); in handleMessage()
/external/libchrome/base/android/java/src/org/chromium/base/
DThreadUtils.java244 return getUiThreadHandler().getLooper() == Looper.myLooper(); in runningOnUiThread()
/external/apache-http/android/src/android/net/http/
DAndroidHttpClient.java97 if (Looper.myLooper() != null && Looper.myLooper() == Looper.getMainLooper() ) {
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingAction.java109 if (Looper.myLooper() == null) { in doInBackground()
/external/volley/src/main/java/com/android/volley/
DRequest.java234 if (Looper.myLooper() != Looper.getMainLooper()) { in finish()

12