/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/test/ |
D | HandlerDispatcherTest.kt | 34 val mainMessageQueue = shadowOf(Looper.getMainLooper().queue) in <lambda>() 49 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>() 53 val mainMessageQueue = shadowOf(Looper.getMainLooper().queue) in <lambda>() 68 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>() 72 val mainMessageQueue = shadowOf(Looper.getMainLooper().queue) in <lambda>() 87 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>() 91 val mainMessageQueue = shadowOf(Looper.getMainLooper().queue) in <lambda>() 106 val main = Looper.getMainLooper().asHandler(async = false).asCoroutineDispatcher() in <lambda>() 110 val mainMessageQueue = shadowOf(Looper.getMainLooper().queue) in <lambda>() 124 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher("testName") in testToString()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLooperTest.java | 74 assertThat(Looper.myLooper()).isSameInstanceAs(Looper.getMainLooper()); in mainLooper_andMyLooper_shouldBeSame_onMainThread() 80 assertThat(ht.getLooper()).isNotSameInstanceAs(Looper.getMainLooper()); in differentThreads_getDifferentLoopers() 85 assertThat(Looper.getMainLooper().getThread()).isSameInstanceAs(Thread.currentThread()); in mainLooperThread_shouldBeTestThread() 90 … assertThat(ShadowLooper.getShadowMainLooper()).isSameInstanceAs(shadowOf(Looper.getMainLooper())); in shadowMainLooper_shouldBeShadowOfMainLooper() 101 …(ShadowLooper.getLooperForThread(Thread.currentThread())).isSameInstanceAs(Looper.getMainLooper()); in getLooperForThread_returnsLooperForMainThread() 137 Looper.getMainLooper().quit(); in shouldThrowRuntimeExceptionIfTryingToQuitMainLooper() 224 assertThat(Looper.myLooper()).isSameInstanceAs(Looper.getMainLooper()); in whenTestHarnessUsesDifferentThread_shouldStillHaveMainLooper() 247 Looper mainLooper = Looper.getMainLooper(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() 250 …assertThat(ApplicationProvider.getApplicationContext().getMainLooper()).isSameInstanceAs(mainLoope… in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler() 262 …assertWithMessage("Looper.getMainLooper()").that(Looper.getMainLooper()).isSameInstanceAs(mainLoop… 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()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ads/ |
D | AdsMediaSourceTest.java | 106 shadowOf(Looper.getMainLooper()).idle(); in setUp() 112 shadowOf(Looper.getMainLooper()).idle(); in setUp() 126 shadowOf(Looper.getMainLooper()).idle(); in createPeriod_preparesChildAdMediaSourceAndRefreshesSourceInfo() 146 shadowOf(Looper.getMainLooper()).idle(); in createPeriod_preparesChildAdMediaSourceAndRefreshesSourceInfoWithAdMediaSourceInfo() 168 shadowOf(Looper.getMainLooper()).idle(); in createPeriod_createsChildPrerollAdMediaPeriod() 177 shadowOf(Looper.getMainLooper()).idle(); in createPeriod_createsChildContentMediaPeriod() 200 shadowOf(Looper.getMainLooper()).idle(); in releasePeriod_releasesChildMediaPeriodsAndSources() 212 shadowOf(Looper.getMainLooper()).idle(); in releasePeriod_releasesChildMediaPeriodsAndSources()
|
/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()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/ |
D | IfAvailableTest.java | 134 shadowOf(Looper.getMainLooper()).idle(); in callback_available_makesCall() 144 shadowOf(Looper.getMainLooper()).idle(); in voidCallback_notAvailable_callsBack() 154 shadowOf(Looper.getMainLooper()).idle(); in voidCallback_available_callsBack() 169 shadowOf(Looper.getMainLooper()).idle(); in future_notAvailable_setsDefaultValue() 183 shadowOf(Looper.getMainLooper()).idle(); in future_available_setsCorrectValue()
|
/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()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/ |
D | MediaSourceEventDispatcherTest.java | 92 new Handler(Looper.getMainLooper()), in sameListenerInstanceCanBeRegisteredWithTwoTypes() 96 new Handler(Looper.getMainLooper()), in sameListenerInstanceCanBeRegisteredWithTwoTypes() 115 new Handler(Looper.getMainLooper()), in listenerOnlyReceivesEventsForRegisteredType() 133 new Handler(Looper.getMainLooper()), subclassListener, MediaSourceEventListener.class); in listenerDoesntReceiveEventsDispatchedToSubclass() 146 new Handler(Looper.getMainLooper()), subclassListener, SubclassListener.class); in listenerDoesntReceiveEventsDispatchedToSuperclass()
|
/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/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | TestExoPlayer.java | 65 Assertions.checkNotNull(shadowOfMethod.invoke(new Object(), Looper.getMainLooper())); 488 if (Looper.myLooper() != Looper.getMainLooper() in verifyMainTestThread() 489 || player.getApplicationLooper() != Looper.getMainLooper()) { in verifyMainTestThread() 495 if (Looper.myLooper() != Looper.getMainLooper()) { in verifyMainTestThread()
|
/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/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/types/ |
D | TestCrossProfileTypeWhichNeedsContext.java | 118 new Handler(Looper.getMainLooper()) in asyncIdentityStringMethodWhichDelays10SecondsOnWorkProfile() 134 new Handler(Looper.getMainLooper()) in futureIdentityStringMethodWhichDelays10SecondsOnWorkProfile()
|
/external/v4l2_codec2/tests/c2_e2e_test/src/org/chromium/c2/test/ |
D | E2eTestActivity.java | 101 new Handler(Looper.getMainLooper()) in maybeStartTest() 154 new Handler(Looper.getMainLooper()) in onSizeChanged()
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | Threads.java | 9 if (Looper.myLooper() != Looper.getMainLooper()) { in throwIfNotOnMainThread()
|
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/ |
D | HandlerDispatcher.kt | 55 HandlerContext(Looper.getMainLooper().asHandler(async = true)) in createDispatcher() 100 internal val Main: HandlerDispatcher? = runCatching { HandlerContext(Looper.getMainLooper().asHandl… in <lambda>()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockLooper.java | 22 public static Looper getMainLooper() { in getMainLooper() method in MockLooper
|
/external/kotlinx.coroutines/integration/kotlinx-coroutines-play-services/test/ |
D | FakeAndroid.kt | 16 fun getMainLooper() = Looper() method
|
/external/dagger2/java/dagger/hilt/android/internal/ |
D | ThreadUtil.java | 31 mainThread = Looper.getMainLooper().getThread(); in isMainThread()
|
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
D | ManualGlitchActivity.java | 123 Handler handler = new Handler(Looper.getMainLooper()); // UI thread in processBundleFromIntent() 172 Handler handler = new Handler(Looper.getMainLooper()); // UI thread in startAutomaticTest()
|
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/internal/ |
D | BackgroundExceptionThrower.java | 42 new Handler(Looper.getMainLooper()).postDelayed(new ThrowingRunnable(throwable), 1000); in throwInBackground()
|
/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | Preconditions.java | 59 if (Looper.myLooper() == Looper.getMainLooper()) { in ensureOnMainThread()
|