Home
last modified time | relevance | path

Searched refs:currentThread (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/testng/src/test/java/test/ant/
DMultipleThreadTest.java26 _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/guava/guava/src/com/google/common/util/concurrent/
DCallables.java63 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);
DUninterruptibles.java65 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/chromium-trace/catapult/third_party/Paste/paste/util/
Dthreadedprint.py92 def write(self, v, currentThread=threading.currentThread): argument
93 name = currentThread().getName()
103 name = threading.currentThread().getName()
111 name = threading.currentThread().getName()
134 currentThread=threading.currentThread): argument
136 name = currentThread().getName()
140 currentThread=threading.currentThread): argument
142 name = currentThread().getName()
192 def read(self, size=None, currentThread=threading.currentThread): argument
193 name = currentThread().getName()
[all …]
/external/testng/src/test/java/test/testng56/
DParallelTest.java14 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/
DCallablesTest.java45 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()
DInterruptionUtil.java78 final Thread interruptee = Thread.currentThread(); in requestInterruptIn()
95 new Interruptenator(Thread.currentThread(), interruptPeriodMillis); in repeatedlyInterruptTestThread()
138 Thread.currentThread().interrupt(); in joinUninterruptibly()
/external/guice/core/test/com/google/inject/internal/
DCycleDetectingLockTest.java43 if (Thread.currentThread().getName().equals("T2")) { in testSingletonThreadsRuntimeCircularDependency()
50 assertEquals("T1", Thread.currentThread().getName()); in testSingletonThreadsRuntimeCircularDependency()
59 if (Thread.currentThread().getName().equals("T1")) { in testSingletonThreadsRuntimeCircularDependency()
67 assertEquals("T2", Thread.currentThread().getName()); in testSingletonThreadsRuntimeCircularDependency()
75 Thread.currentThread().setName("T1"); in testSingletonThreadsRuntimeCircularDependency()
87 Thread.currentThread().setName("T2"); in testSingletonThreadsRuntimeCircularDependency()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DThreadUtils.java42 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/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/util/
DAppRTCUtils.java33 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()
DLooperExecutor.java37 threadId = Thread.currentThread().getId(); in run()
79 return (Thread.currentThread().getId() == threadId); in checkOnLooperThread()
88 if (Thread.currentThread().getId() == threadId) { in execute()
/external/testng/src/test/java/test/thread/
DSequentialSample3Test.java9 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()
DSequentialSample2Test.java9 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()
DSequentialSampleTest.java9 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()
DSingleThreadedSampleTest.java10 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()
DSingleThreadedSample2Test.java10 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()
DSingleThreadedSample3Test.java10 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()
DTest2Test.java10 addId("Test2Test.f21()", Thread.currentThread().getId()); in f21()
16 addId("Test2Test.f22()", Thread.currentThread().getId()); in f22()
DTest1Test.java10 addId("Test1Test.f11()", Thread.currentThread().getId()); in f11()
16 addId("Test1Test.f12()", Thread.currentThread().getId()); in f12()
/external/guava/guava-tests/test/com/google/common/io/
DResourcesTest.java158 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/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DNamedRunnable.java30 String oldName = Thread.currentThread().getName(); in run()
31 Thread.currentThread().setName(name); in run()
35 Thread.currentThread().setName(oldName); in run()
/external/testng/src/test/java/test/tmp/
DTmp.java11 ppp("START " + Thread.currentThread().getId()); in f()
17 Thread.currentThread().interrupt(); in f()
20 ppp("END " + Thread.currentThread().getId()); in f()
/external/jetty/src/java/org/eclipse/jetty/util/preventers/
DAbstractLeakPreventer.java50 ClassLoader loader = Thread.currentThread().getContextClassLoader(); in doStart()
53 Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); in doStart()
59 Thread.currentThread().setContextClassLoader(loader); in doStart()
/external/guava/guava-testlib/test/com/google/common/testing/
DGcFinalizationTest.java126 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); in testAwait_CountDownLatch_Interrupted()
142 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); in testAwaitDone_Future_Interrupted_Interrupted()
158 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); in testAwaitClear_Interrupted()
174 Interruptenator interruptenator = new Interruptenator(Thread.currentThread()); in testAwaitDone_FinalizationPredicate_Interrupted()
/external/testng/src/test/java/test/testng285/
DDerived.java9 log(Thread.currentThread().getId()); in f1()
14 log(Thread.currentThread().getId()); in f2()

12345678910