/external/kotlinx.coroutines/kotlinx-coroutines-core/nativeDarwin/test/ |
D | MainDispatcherTest.kt | 14 private fun isMainThread(): Boolean = CFRunLoopGetCurrent() == CFRunLoopGetMain() in isMainThread() method 15 private fun canTestMainDispatcher() = !isMainThread() in isMainThread() 39 assertFalse(isMainThread()) in <lambda>() 41 assertTrue(isMainThread()) in <lambda>() 44 assertFalse(isMainThread()) in <lambda>() 52 assertTrue(isMainThread()) in <lambda>() 55 assertTrue(isMainThread()) in <lambda>() 58 assertFalse(isMainThread()) in <lambda>() 67 assertTrue(isMainThread()) in <lambda>() 70 assertTrue(isMainThread()) in <lambda>() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | RuntimeEnvironmentTest.java | 37 res.set(RuntimeEnvironment.isMainThread()); in isMainThread_forNewThread_withoutSwitch() 46 assertWithMessage("testThread").that(RuntimeEnvironment.isMainThread()).isTrue(); in isMainThread_forNewThread_withoutSwitch() 57 res.set(RuntimeEnvironment.isMainThread()); in isMainThread_forNewThread_withSwitch() 66 assertWithMessage("testThread").that(RuntimeEnvironment.isMainThread()).isFalse(); in isMainThread_forNewThread_withSwitch() 74 assertThat(RuntimeEnvironment.isMainThread(t)).isTrue(); in isMainThread_withArg_forNewThread_withSwitch()
|
D | RobolectricTestRunnerSelfTest.java | 71 assertThat(RuntimeEnvironment.isMainThread()).isTrue(); in testMethod_shouldBeInvoked_onMainThread() 76 assertThat(RuntimeEnvironment.isMainThread()).isTrue(); in whenTestHarnessUsesDifferentThread_shouldStillReportAsMainThread() 108 onTerminateCalledFromMain = Boolean.valueOf(RuntimeEnvironment.isMainThread()); in onTerminate()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/ |
D | RuntimeEnvironmentTest.java | 54 res.set(RuntimeEnvironment.isMainThread()); in isMainThread_forNewThread_withoutSwitch() 63 assertWithMessage("testThread").that(RuntimeEnvironment.isMainThread()).isTrue(); in isMainThread_forNewThread_withoutSwitch() 75 res.set(RuntimeEnvironment.isMainThread()); in isMainThread_forNewThread_withSwitch() 83 assertWithMessage("testThread").that(RuntimeEnvironment.isMainThread()).isFalse(); in isMainThread_forNewThread_withSwitch() 92 assertThat(RuntimeEnvironment.isMainThread(t)).isTrue(); in isMainThread_withArg_forNewThread_withSwitch()
|
/external/dagger2/java/dagger/hilt/android/internal/ |
D | ThreadUtil.java | 29 public static boolean isMainThread() { in isMainThread() method in ThreadUtil 38 if (!isMainThread()) { in ensureMainThread()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLooper.java | 4 import static org.robolectric.RuntimeEnvironment.isMainThread; 52 if (!isMainThread()) { in resetThreadLoopers() 79 if (isMainThread()) { in __constructor__() 148 return isMainThread(thread) ? mainLooper : loopingLoopers.get(thread); in getLooperForThread()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/ |
D | RuntimeEnvironment.java | 46 public static boolean isMainThread(Thread thread) { in isMainThread() method in RuntimeEnvironment 55 public static boolean isMainThread() { in isMainThread() method in RuntimeEnvironment 56 return isMainThread(Thread.currentThread()); in isMainThread()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 90 assertThat(RuntimeEnvironment.isMainThread()).isFalse(); in setUpApplicationState_setsMainThread() 92 assertThat(RuntimeEnvironment.isMainThread()).isTrue(); in setUpApplicationState_setsMainThread() 101 res.set(RuntimeEnvironment.isMainThread()); in setUpApplicationState_setsMainThread_onAnotherThread() 106 assertThat(RuntimeEnvironment.isMainThread()).isFalse(); in setUpApplicationState_setsMainThread_onAnotherThread()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLegacyLooper.java | 4 import static org.robolectric.RuntimeEnvironment.isMainThread; 101 if (isMainThread()) { in __constructor__() 168 return isMainThread(thread) ? mainLooper : loopingLoopers.get(thread); in getLooperForThread()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/ |
D | RuntimeEnvironment.java | 111 public static boolean isMainThread(Thread thread) { in isMainThread() method in RuntimeEnvironment 123 public static boolean isMainThread() { in isMainThread() method in RuntimeEnvironment 125 return isMainThread(Thread.currentThread()); in isMainThread()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/nativeDarwin/src/ |
D | Dispatchers.kt | 14 internal fun isMainThread(): Boolean = CFRunLoopGetCurrent() == CFRunLoopGetMain() in isMainThread() method 37 …e fun isDispatchNeeded(context: CoroutineContext): Boolean = !(invokeImmediately && isMainThread()) in isDispatchNeeded()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/android/internal/ |
D | AndroidTestEnvironmentTest.java | 97 assertThat(RuntimeEnvironment.isMainThread()).isFalse(); in setUpApplicationState_setsMainThread() 99 assertThat(RuntimeEnvironment.isMainThread()).isTrue(); in setUpApplicationState_setsMainThread() 108 res.set(RuntimeEnvironment.isMainThread()); in setUpApplicationState_setsMainThread_onAnotherThread() 113 assertThat(RuntimeEnvironment.isMainThread()).isFalse(); in setUpApplicationState_setsMainThread_onAnotherThread()
|
/external/skia/src/gpu/graphite/mtl/ |
D | MtlUtils.mm | 198 return [NSThread isMainThread] &&
|
/external/swiftshader/src/WSI/ |
D | MetalSurface.mm | 35 if(!NSThread.isMainThread)
|
/external/tensorflow/tensorflow/lite/objc/apps/TestApp/TestApp/ |
D | ViewController.m | 33 if (NSThread.isMainThread) {
|
/external/skia/src/gpu/ganesh/mtl/ |
D | GrMtlUtil.mm | 444 return [NSThread isMainThread] &&
|
/external/cronet/base/threading/ |
D | platform_thread_mac.mm | 301 if ([[NSThread currentThread] isMainThread] &&
|
/external/cronet/base/message_loop/ |
D | message_pump_mac.mm | 933 DCHECK([NSThread isMainThread]); 956 if ([NSThread isMainThread]) {
|