Home
last modified time | relevance | path

Searched refs:getThread (Results 1 – 25 of 43) sorted by relevance

12

/external/robolectric/robolectric/src/main/java/org/robolectric/android/internal/
DRobolectricThreadChecker.java21 Thread.currentThread().equals(Looper.getMainLooper().getThread()), in checkMainThread()
32 !Thread.currentThread().equals(Looper.getMainLooper().getThread()), in checkNotMainThread()
/external/robolectric/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerSelfTest.java68 assertThat(Looper.getMainLooper().getThread()).isSameInstanceAs(Thread.currentThread()); in testMethod_shouldBeInvoked_onMainThread()
73 assertThat(Looper.getMainLooper().getThread()).isSameInstanceAs(Thread.currentThread()); in whenTestHarnessUsesDifferentThread_shouldStillReportAsMainThread()
106 Boolean.valueOf(Looper.getMainLooper().getThread() == Thread.currentThread()); in onTerminate()
/external/robolectric/robolectric/src/test/java/org/robolectric/android/util/concurrent/
DBackgroundExecutorTest.java23 .isNotSameInstanceAs(Looper.getMainLooper().getThread()); in forRunnable_doesNotRunOnMainLooper()
48 .isNotSameInstanceAs(Looper.getMainLooper().getThread()); in forCallable_doesNotRunOnMainLooper()
/external/nist-sip/java/gov/nist/core/
DThreadAuditor.java59 public Thread getThread() { in getThread() method in ThreadAuditor.ThreadHandle
142 Thread thread = threadHandle.getThread(); in auditThreads()
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/concurrent/
DBackgroundInitializerTest.java217 final Thread getThread = new Thread() { in testGetInterruptedException() local
232 getThread.start(); in testGetInterruptedException()
233 getThread.interrupt(); in testGetInterruptedException()
/external/webrtc/sdk/android/api/org/webrtc/
DSurfaceTextureHelper.java179 if (handler.getLooper().getThread() != Thread.currentThread()) {
339 if (handler.getLooper().getThread() != Thread.currentThread()) {
375 if (handler.getLooper().getThread() != Thread.currentThread()) {
DCameraVideoCapturer.java158 if (Thread.currentThread() != surfaceTextureHelper.getHandler().getLooper().getThread()) { in checkThread()
/external/cronet/stable/components/cronet/android/test/javatests/src/org/chromium/net/
DNQETest.java228 assertThat(rttListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabled()
229 assertThat(throughputListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabled()
407 assertThat(rttListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabledWithParams()
408 assertThat(throughputListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabledWithParams()
DTestNetworkQualityThroughputListener.java58 public Thread getThread() { in getThread() method in TestNetworkQualityThroughputListener
DTestNetworkQualityRttListener.java76 public Thread getThread() { in getThread() method in TestNetworkQualityRttListener
/external/cronet/tot/components/cronet/android/test/javatests/src/org/chromium/net/
DNQETest.java228 assertThat(rttListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabled()
229 assertThat(throughputListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabled()
407 assertThat(rttListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabledWithParams()
408 assertThat(throughputListener.getThread()).isEqualTo(mNetworkQualityThread); in testQuicDisabledWithParams()
DTestNetworkQualityThroughputListener.java58 public Thread getThread() { in getThread() method in TestNetworkQualityThroughputListener
DTestNetworkQualityRttListener.java76 public Thread getThread() { in getThread() method in TestNetworkQualityRttListener
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPausedLooper.java125 if (Thread.currentThread() == realLooper.getThread() || isPaused) { in isIdle()
242 if (Thread.currentThread() == realLooper.getThread()) { in runPaused()
247 "this method can only be called on " + realLooper.getThread().getName()); in runPaused()
388 if (realLooper.getThread().isAlive() in resetLooperToInitialState()
679 if (Thread.currentThread() == realLooper.getThread()) { in executeOnLooper()
DShadowPausedChoreographer.java82 if (looper.getThread() == Thread.currentThread()) { in resetChoreographers()
84 } else if (looper.getThread().isAlive()) { in resetChoreographers()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/
DPlayerMessage.java314 Assertions.checkState(looper.getThread() != Thread.currentThread()); in blockUntilDelivered()
341 Assertions.checkState(looper.getThread() != Thread.currentThread()); in blockUntilDelivered()
/external/webrtc/rtc_base/java/src/org/webrtc/
DThreadUtils.java46 if (Thread.currentThread() != Looper.getMainLooper().getThread()) { in checkIsOnMainThread()
152 if (handler.getLooper().getThread() == Thread.currentThread()) { in invokeAtFrontUninterruptibly()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/
DPlayerMessage.java316 Assertions.checkState(looper.getThread() != Thread.currentThread()); in blockUntilDelivered()
343 Assertions.checkState(looper.getThread() != Thread.currentThread()); in blockUntilDelivered()
/external/dagger2/java/dagger/hilt/android/internal/
DThreadUtil.java31 mainThread = Looper.getMainLooper().getThread(); in isMainThread()
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DWaitingThread.java117 public final Thread getThread() { in getThread() method in WaitingThread
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowPausedLooperTest.java91 assertThat(getMainLooper().getThread()).isSameInstanceAs(Thread.currentThread()); in mainLooperThread_shouldBeTestThread()
96 assertThat(getMainLooper().getThread()).isSameInstanceAs(Thread.currentThread()); in junitTimeoutTestRunsOnMainThread()
143 assertThat(handlerThread.getLooper().getThread()).isEqualTo(threadRef.get()); in idle_backgroundLooperExecuteInBackgroundThread()
144 assertThat(getMainLooper().getThread()).isNotEqualTo(threadRef.get()); in idle_backgroundLooperExecuteInBackgroundThread()
153 assertThat(handlerThread.getLooper().getThread()).isEqualTo(threadRef.get()); in runOneTask_backgroundLooperExecuteInBackgroundThread()
154 assertThat(getMainLooper().getThread()).isNotEqualTo(threadRef.get()); in runOneTask_backgroundLooperExecuteInBackgroundThread()
/external/webrtc/sdk/android/src/java/org/webrtc/
DCameraCapturer.java369 cameraThread = cameraThreadHandler.getLooper().getThread(); in printStackTrace()
442 if (Thread.currentThread() != cameraThreadHandler.getLooper().getThread()) { in checkIsOnCameraThread()
/external/cronet/stable/base/android/java/src/org/chromium/base/
DThreadUtils.java86 Thread uiThread = getUiThreadLooper().getThread(); in assertOnValidThreadHelper()
/external/cronet/tot/base/android/java/src/org/chromium/base/
DThreadUtils.java86 Thread uiThread = getUiThreadLooper().getThread(); in assertOnValidThreadHelper()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DHostActivity.java117 Assertions.checkState(Thread.currentThread() != getMainLooper().getThread()); in runTest()

12