/external/testng/src/test/java/test/ant/ |
D | MultipleThreadTest.java | 26 _threads.add(Thread.currentThread()); in recordThread00() 31 _threads.add(Thread.currentThread()); in recordThread01() 36 _threads.add(Thread.currentThread()); in recordThread02() 41 _threads.add(Thread.currentThread()); in recordThread03() 46 _threads.add(Thread.currentThread()); in recordThread04() 51 _threads.add(Thread.currentThread()); in recordThread05() 56 _threads.add(Thread.currentThread()); in recordThread06() 61 _threads.add(Thread.currentThread()); in recordThread07() 66 _threads.add(Thread.currentThread()); in recordThread08() 71 _threads.add(Thread.currentThread()); in recordThread09() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | CycleDetectingLock.java | 148 final Thread currentThread = Thread.currentThread(); in lockOrDetectPotentialLocksCycle() local 152 lockThreadIsWaitingOn.put(currentThread, this); in lockOrDetectPotentialLocksCycle() 156 lockThreadIsWaitingOn.remove(currentThread); in lockOrDetectPotentialLocksCycle() 168 lockThreadIsWaitingOn.remove(currentThread); in lockOrDetectPotentialLocksCycle() 172 lockOwnerThread = currentThread; in lockOrDetectPotentialLocksCycle() 175 locksOwnedByThread.put(currentThread, this); in lockOrDetectPotentialLocksCycle() 183 final Thread currentThread = Thread.currentThread(); in unlock() local 189 lockOwnerThread == currentThread, in unlock() 201 locksOwnedByThread.remove(currentThread, this), in unlock() 203 if (locksOwnedByThread.get(currentThread).isEmpty()) { in unlock() [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | Callables.java | 63 Thread currentThread = Thread.currentThread(); 64 String oldName = currentThread.getName(); 65 boolean restoreName = trySetName(nameSupplier.get(), currentThread); 70 trySetName(oldName, currentThread); 91 Thread currentThread = Thread.currentThread(); 92 String oldName = currentThread.getName(); 93 boolean restoreName = trySetName(nameSupplier.get(), currentThread); 98 trySetName(oldName, currentThread); 106 private static boolean trySetName(final String threadName, Thread currentThread) { 111 currentThread.setName(threadName);
|
D | Uninterruptibles.java | 65 Thread.currentThread().interrupt(); in awaitUninterruptibly() 93 Thread.currentThread().interrupt(); in awaitUninterruptibly() 114 Thread.currentThread().interrupt(); in joinUninterruptibly() 144 Thread.currentThread().interrupt(); in getUninterruptibly() 181 Thread.currentThread().interrupt(); in getUninterruptibly() 210 Thread.currentThread().interrupt(); in joinUninterruptibly() 230 Thread.currentThread().interrupt(); in takeUninterruptibly() 257 Thread.currentThread().interrupt(); in putUninterruptibly() 284 Thread.currentThread().interrupt(); in sleepUninterruptibly() 324 Thread.currentThread().interrupt(); in tryAcquireUninterruptibly()
|
/external/testng/src/test/java/test/testng56/ |
D | ParallelTest.java | 14 System.out.println(Thread.currentThread().getId() + ":setup"); in setup() 19 System.out.println(Thread.currentThread().getId() + ":teardown"); in teardown() 24 System.out.println(Thread.currentThread().getId() + ":test1"); in test1() 29 System.out.println(Thread.currentThread().getId() + ":test2"); in test2() 34 System.out.println(Thread.currentThread().getId() + ":test3"); in test3() 39 System.out.println(Thread.currentThread().getId() + ":test4"); in test4() 44 System.out.println(Thread.currentThread().getId() + ":test5"); in test5()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | CallablesTest.java | 45 String oldName = Thread.currentThread().getName(); in testRenaming() 49 assertEquals(Thread.currentThread().getName(), newName.get()); in testRenaming() 54 assertEquals(oldName, Thread.currentThread().getName()); in testRenaming() 58 String oldName = Thread.currentThread().getName(); in testRenaming_exceptionalReturn() 63 assertEquals(Thread.currentThread().getName(), newName.get()); in testRenaming_exceptionalReturn() 71 assertEquals(oldName, Thread.currentThread().getName()); in testRenaming_exceptionalReturn() 84 final String oldName = Thread.currentThread().getName(); in testRenaming_noPermissions() 88 assertEquals(Thread.currentThread().getName(), oldName); in testRenaming_noPermissions() 93 assertEquals(oldName, Thread.currentThread().getName()); in testRenaming_noPermissions()
|
/external/opencensus-java/contrib/agent/src/integration-test/java/io/opencensus/contrib/agent/instrumentation/ |
D | ExecutorInstrumentationIT.java | 62 final Thread callerThread = Thread.currentThread(); in execute() 72 assertThat(Thread.currentThread()).isNotSameAs(callerThread); in execute() 84 final Thread callerThread = Thread.currentThread(); in submit_Callable() 95 assertThat(Thread.currentThread()).isNotSameAs(callerThread); in submit_Callable() 110 final Thread callerThread = Thread.currentThread(); in submit_Runnable() 121 assertThat(Thread.currentThread()).isNotSameAs(callerThread); in submit_Runnable() 134 final Thread callerThread = Thread.currentThread(); in submit_RunnableWithResult() 146 assertThat(Thread.currentThread()).isNotSameAs(callerThread); in submit_RunnableWithResult() 161 final Thread callerThread = Thread.currentThread(); in currentContextExecutor() 185 assertThat(Thread.currentThread()).isNotSameAs(callerThread); in currentContextExecutor()
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
D | ThreadUtils.java | 42 private Thread thread = Thread.currentThread(); 46 thread = Thread.currentThread(); in checkIsOnValidThread() 48 if (Thread.currentThread() != thread) { in checkIsOnValidThread() 87 Thread.currentThread().interrupt(); in executeUninterruptibly() 109 Thread.currentThread().interrupt(); in joinUninterruptibly() 151 Thread.currentThread().interrupt(); in awaitUninterruptibly()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | SimplePerRealmReloadingClassLoader.java | 87 ClassLoader current = Thread.currentThread().getContextClassLoader(); in doInRealm() 89 Thread.currentThread().setContextClassLoader(this); in doInRealm() 96 Thread.currentThread().setContextClassLoader(current); in doInRealm() 103 ClassLoader current = Thread.currentThread().getContextClassLoader(); in doInRealm() 105 Thread.currentThread().setContextClassLoader(this); in doInRealm() 112 Thread.currentThread().setContextClassLoader(current); in doInRealm()
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/ |
D | AppRTCUtils.java | 33 threadId = Thread.currentThread().getId(); in NonThreadSafe() 38 return threadId.equals(Thread.currentThread().getId()); in calledOnValidThread() 51 return "@[name=" + Thread.currentThread().getName() in getThreadInfo() 52 + ", id=" + Thread.currentThread().getId() + "]"; in getThreadInfo()
|
/external/python/cpython2/Lib/bsddb/test/ |
D | test_thread.py | 25 from threading import currentThread 27 from threading import current_thread as currentThread unknown 127 name = currentThread().getName() 129 name = currentThread().name 156 name = currentThread().getName() 158 name = currentThread().name 255 name = currentThread().getName() 257 name = currentThread().name 281 name = currentThread().getName() 283 name = currentThread().name [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | CycleDetectingLockTest.java | 51 if (Thread.currentThread().getName().equals("T2")) { in testSingletonThreadsRuntimeCircularDependency() 58 assertEquals("T1", Thread.currentThread().getName()); in testSingletonThreadsRuntimeCircularDependency() 70 if (Thread.currentThread().getName().equals("T1")) { in testSingletonThreadsRuntimeCircularDependency() 78 assertEquals("T2", Thread.currentThread().getName()); in testSingletonThreadsRuntimeCircularDependency() 89 Thread.currentThread().setName("T1"); in testSingletonThreadsRuntimeCircularDependency() 104 Thread.currentThread().setName("T2"); in testSingletonThreadsRuntimeCircularDependency() 145 Thread.currentThread().setName("A"); in testCycleDetectingLockFactoriesDoNotDeadlock() 162 Thread.currentThread().setName("B"); in testCycleDetectingLockFactoriesDoNotDeadlock()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/ |
D | CoreLibrarySupportTest.java | 118 Thread.currentThread().getContextClassLoader(), in testIsEmulatedCoreClassOrInterface() 137 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_emulatedDefaultMethod() 173 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_emulatedImplementationMoved() 225 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_abstractMethod() 253 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_emulatedDefaultOverride() 289 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_staticInterfaceMethod() 313 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_renamed() 382 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_ignoreRenamedInvokeInterface() 410 Thread.currentThread().getContextClassLoader(), in testGetCoreInterfaceRewritingTarget_excludedMethodIgnored()
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | ResourcesTest.java | 158 Thread.currentThread().getContextClassLoader(); in testGetResource_contextClassLoader() 160 Thread.currentThread().setContextClassLoader(loader); in testGetResource_contextClassLoader() 165 Thread.currentThread().setContextClassLoader(oldContextLoader); in testGetResource_contextClassLoader() 171 Thread.currentThread().getContextClassLoader(); in testGetResource_contextClassLoaderNull() 173 Thread.currentThread().setContextClassLoader(null); in testGetResource_contextClassLoaderNull() 182 Thread.currentThread().setContextClassLoader(oldContextLoader); in testGetResource_contextClassLoaderNull()
|
/external/testng/src/test/java/test/thread/ |
D | SequentialSample3Test.java | 9 addId("SequentialSample3Test.f1()", Thread.currentThread().getId()); in f1() 13 addId("SequentialSample3Test.f2()", Thread.currentThread().getId()); in f2() 17 addId("SequentialSample3Test.f3()", Thread.currentThread().getId()); in f3()
|
D | SequentialSample2Test.java | 9 addId("SequentialSample2Test.f1()", Thread.currentThread().getId()); in f1() 13 addId("SequentialSample2Test.f2()", Thread.currentThread().getId()); in f2() 17 addId("SequentialSample2Test.f3()", Thread.currentThread().getId()); in f3()
|
D | SequentialSampleTest.java | 9 addId("SequentialSampleTest.f1()", Thread.currentThread().getId()); in f1() 13 addId("SequentialSampleTest.f2()", Thread.currentThread().getId()); in f2() 17 addId("SequentialSampleTest.f3()", Thread.currentThread().getId()); in f3()
|
D | SingleThreadedSample2Test.java | 10 addId("SingleThreadedSample2Test.f1()", Thread.currentThread().getId()); in f1() 15 addId("SingleThreadedSample2Test.f2()", Thread.currentThread().getId()); in f2() 20 addId("SingleThreadedSample2Test.f3()", Thread.currentThread().getId()); in f3()
|
D | SingleThreadedSample3Test.java | 10 addId("SingleThreadedSample3Test.f1()", Thread.currentThread().getId()); in f1() 15 addId("SingleThreadedSample3Test.f2()", Thread.currentThread().getId()); in f2() 20 addId("SingleThreadedSample3Test.f3()", Thread.currentThread().getId()); in f3()
|
D | SingleThreadedSampleTest.java | 10 addId("SingleThreadedSampleTest.f1()", Thread.currentThread().getId()); in f1() 15 addId("SingleThreadedSampleTest.f2()", Thread.currentThread().getId()); in f2() 20 addId("SingleThreadedSampleTest.f3()", Thread.currentThread().getId()); in f3()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | NamedRunnable.java | 30 String oldName = Thread.currentThread().getName(); in run() 31 Thread.currentThread().setName(name); in run() 35 Thread.currentThread().setName(oldName); in run()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/ |
D | NamedRunnable.java | 32 String oldName = Thread.currentThread().getName(); in run() 33 Thread.currentThread().setName(name); in run() 37 Thread.currentThread().setName(oldName); in run()
|
/external/testng/src/test/java/test/tmp/ |
D | Tmp.java | 11 ppp("START " + Thread.currentThread().getId()); in f() 17 Thread.currentThread().interrupt(); in f() 20 ppp("END " + Thread.currentThread().getId()); in f()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ServiceProvidersTest.java | 57 ClassLoader ccl = Thread.currentThread().getContextClassLoader(); in contextClassLoaderProvider() 69 Thread.currentThread().setContextClassLoader(rcll); in contextClassLoaderProvider() 75 Thread.currentThread().setContextClassLoader(ccl); in contextClassLoaderProvider() 81 ClassLoader ccl = Thread.currentThread().getContextClassLoader(); in noProvider() 87 Thread.currentThread().setContextClassLoader(cl); in noProvider() 91 Thread.currentThread().setContextClassLoader(ccl); in noProvider()
|
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/ |
D | ExecutorFactoryTest.java | 60 mThreadContainer.add(Thread.currentThread()); in testExecutorOnCurrentThread() 69 Assert.assertEquals(Thread.currentThread(), thread); in testExecutorOnCurrentThread() 88 mThreadContainer.add(Thread.currentThread()); in testExecutorOnOtherThread() 112 Assert.assertEquals(Thread.currentThread(), thread); in testExecutorOnOtherThread()
|