| /art/test/911-get-stack-trace/src/art/ |
| Frames.java | 36 System.out.println("### Same thread ###"); 39 Thread t = Thread.currentThread(); 60 System.out.println("### Other thread (suspended) ###"); 64 Thread t = new Thread("Frames doTestOtherThreadWait") { 71 Thread.yield(); 72 Thread.sleep(500); // A little bit of time... 90 // Let the thread make progress and die. 99 System.out.println("### Other thread (live) ###") [all...] |
| /cts/tests/tests/rscpp/src/android/cts/rscpp/ |
| RSCppTest.java | 63 Thread.yield();
|
| /device/linaro/bootloader/edk2/MdePkg/Include/Protocol/ |
| MpService.h | 100 /// Zero-based logical thread number within core of the processor.
102 UINT32 Thread;
138 /// logical thread number within core.
[all...] |
| /external/compiler-rt/test/asan/TestCases/Posix/ |
| coverage-caller-callee.cc | 57 void *Thread(void *arg) { 72 pthread_create(&t[i], 0, Thread, 0);
|
| /external/deqp/modules/egl/ |
| teglThreadCleanUpTests.cpp | 21 * \brief EGL thread clean up tests 58 class Thread : public de::Thread 61 Thread (const Library& egl, EGLDisplay display, EGLSurface surface, EGLContext context, EGLConfig config, tcu::Maybe<eglu::Error>& error) 170 : TestCase (eglTestCtx, testCaseName(contextType, surfaceType).c_str(), "Simple thread context clean up test") 256 Thread thread (m_eglTestCtx.getLibrary(), m_display, m_surface, m_context, m_config, error); 258 thread.start(); 259 thread.join(); 293 de::MovePtr<TestCaseGroup> group (new TestCaseGroup(eglTestCtx, "thread_cleanup", "Thread cleanup tests")) [all...] |
| /external/google-breakpad/src/processor/ |
| synth_minidump.h | 40 // Context, Thread, and so on all inherit from test_assembler::Section. 47 // using google_breakpad::SynthMinidump::Thread; 61 // Thread thread1(minidump, 0xe4a4821d, stack1, context1); 92 // memory list; threads should be placed in the thread list; and so 97 // the dump. For example, although the Thread constructor takes 102 // cited both from Thread objects (as their stack contents) and by the 237 class Thread: public Section { 239 // Create a thread belonging to DUMP with the given values, citing 241 Thread(const Dump &dump, 284 // or a thread list [all...] |
| /external/guava/guava-tests/test/com/google/common/collect/ |
| SynchronizedBiMapTest.java | 114 assertTrue(Thread.holdsLock(mutex)); 120 assertTrue(Thread.holdsLock(mutex)); 125 assertTrue(Thread.holdsLock(mutex));
|
| SynchronizedNavigableSetTest.java | 67 assertTrue(Thread.holdsLock(mutex)); 76 assertTrue(Thread.holdsLock(mutex)); 81 assertTrue(Thread.holdsLock(mutex)); 86 assertTrue(Thread.holdsLock(mutex)); 95 assertTrue(Thread.holdsLock(mutex)); 104 assertTrue(Thread.holdsLock(mutex)); 109 assertTrue(Thread.holdsLock(mutex)); 115 assertTrue(Thread.holdsLock(mutex)); 125 assertTrue(Thread.holdsLock(mutex)); 134 assertTrue(Thread.holdsLock(mutex)) [all...] |
| SynchronizedQueueTest.java | 45 assertTrue(Thread.holdsLock(mutex)); 51 assertTrue(Thread.holdsLock(mutex)); 57 assertTrue(Thread.holdsLock(mutex)); 63 assertTrue(Thread.holdsLock(mutex)); 69 assertTrue(Thread.holdsLock(mutex)); 76 assertFalse(Thread.holdsLock(mutex)); 82 assertTrue(Thread.holdsLock(mutex)); 88 assertTrue(Thread.holdsLock(mutex)); 94 assertTrue(Thread.holdsLock(mutex)); 100 assertTrue(Thread.holdsLock(mutex)) [all...] |
| /external/jacoco/org.jacoco.cli.test/src/org/jacoco/cli/internal/commands/ |
| DumpTest.java | 94 new Thread() {
|
| /external/libchrome/base/threading/ |
| thread.h | 31 // A simple thread abstraction that establishes a MessageLoop on a new thread. 32 // The consumer uses the MessageLoop of the thread to cause code to execute on 33 // the thread. When this object is destroyed the thread is terminated. All 34 // pending tasks queued on the thread's message loop will run to completion 35 // before the thread is terminated. 37 // WARNING! SUBCLASSES MUST CALL Stop() IN THEIR DESTRUCTORS! See ~Thread(). 39 // After the thread is stopped, the destruction sequence is: 41 // (1) Thread::CleanUp( [all...] |
| /external/ltp/testcases/realtime/stress/pi-tests/ |
| testpi-3.c | 78 /*typedef struct thread { 88 } Thread;*/ 90 typedef struct thread Thread; 92 Thread arg1, arg2, arg3, arg4, arg5; 94 int strartThread(Thread * thr); 95 void stopThread(Thread * thr); 96 void joinThread(Thread * thr); 100 Thread *pthr = (Thread *) arg [all...] |
| /external/mockito/src/main/java/org/mockito/internal/util/concurrent/ |
| DetachedThreadLocal.java | 9 * A detached local that allows for explicit control of setting and removing values from a thread-local 12 * Instances of this class are non-blocking and fully thread safe. 16 final WeakConcurrentMap<Thread, T> map; 20 case THREAD: 22 map = new WeakConcurrentMap<Thread, T>(cleaner == Cleaner.THREAD) { 24 protected T defaultValue(Thread key) { 30 map = new WeakConcurrentMap.WithInlinedExpunction<Thread, T>() { 32 protected T defaultValue(Thread key) { 43 return map.get(Thread.currentThread()) [all...] |
| /external/nist-sip/java/gov/nist/core/ |
| ThreadAuditor.java | 6 * Thread Auditor class: 15 * the thread can periodically ping the auditor. 25 private Map<Thread,ThreadHandle> threadHandles = new HashMap<Thread,ThreadHandle>(); 32 /// Set to true when the thread pings, periodically reset to false by the auditor 35 /// Thread being monitored 36 private Thread thread; field in class:ThreadAuditor.ThreadHandle 38 /// Thread auditor monitoring this thread 142 Thread thread = threadHandle.getThread(); local [all...] |
| /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
| ShadowHandlerThreadTest.java | 27 // Try to ensure we've exited the thread at the end of each test 51 Thread.setDefaultUncaughtExceptionHandler(new MyUncaughtExceptionHandler()); 95 private static class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler { 97 public void uncaughtException(Thread t, Throwable e) {
|
| /external/testng/src/test/java/test/ant/ |
| MultipleThreadTest.java | 12 * Tests that more than one thread is used for running tests
17 public static Set<Thread> _threads;
21 _threads=Collections.synchronizedSet(new HashSet<Thread>());
26 _threads.add(Thread.currentThread());
31 _threads.add(Thread.currentThread());
36 _threads.add(Thread.currentThread());
41 _threads.add(Thread.currentThread());
46 _threads.add(Thread.currentThread());
51 _threads.add(Thread.currentThread());
56 _threads.add(Thread.currentThread()); [all...] |
| /external/v8/src/wasm/ |
| wasm-interpreter.h | 112 // State machine for a Thread: 123 // Tells a thread to pause after certain instructions. 130 // Representation of a thread in the interpreter. 131 class V8_EXPORT_PRIVATE Thread { 134 Thread() = delete; 152 // Returns true if the thread executed an instruction which may produce 157 // Returns the number of calls / function frames executed on this thread. 160 // Thread-specific breakpoints. 189 // Thread iteration and inspection. 192 Thread* GetThread(int id) [all...] |
| /external/valgrind/helgrind/ |
| hg_lock_n_thread.h | 57 /* Thr, libhb's private thread record, exported abstractly. Thr's are 66 /* Stores information about a thread. Addresses of these also serve 67 as unique thread identifiers and so are never freed, so they should 68 be as small as possible. Freeing Thread structures makes the 74 core's ThreadId associated with this Thread whilst it is alive. 75 Once the thread finishes, the ThreadId is set to 79 completely different thread, which of course must have a different 80 Thread structure. */ 89 WordSetID locksetA; /* WordSet of Lock* currently held by thread */ 92 /* Place where parent was when this thread was created. * [all...] |
| /external/webrtc/webrtc/base/ |
| thread.h | 32 class Thread; 43 Thread* CurrentThread(); 44 void SetCurrentThread(Thread* thread); 46 // Returns a thread object with its thread_ ivar set 47 // to whatever the OS uses to represent the thread. 48 // If there already *is* a Thread object corresponding to this thread, 49 // this method will return that. Otherwise it creates a new Thread 59 Thread *WrapCurrentThread() 76 Thread *thread; member in struct:rtc::_SendMessage [all...] |
| /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
| MediaMetadataRetrieverTest.java | 63 Thread.yield(); // Don't be evil 104 Thread.yield(); // Don't be evil 133 Thread.yield(); // Don't be evil
|
| /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
| CameraTestThread.java | 27 * Camera test thread wrapper for handling camera callbacks 38 * Create and start a looper thread, return the Handler 43 Log.w(TAG, "Looper thread already started"); 47 new Thread() { 52 // Save the looper so that we can terminate this thread 70 * Terminate the looper thread 74 Log.w(TAG, "Looper thread doesn't start yet"); 78 if (VERBOSE) Log.v(TAG, "Terminate looper thread");
|
| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
| LooperAcceleration.java | 75 new Thread() {
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
| StringReaderTest.java | 156 Thread other = new Thread(new Runnable() { 168 Thread.yield();
|
| WriterTest.java | 94 assertTrue(Thread.holdsLock(myLock));
|
| /libcore/jsr166-tests/src/test/java/jsr166/ |
| ExecutorCompletionServiceTest.java | 134 Thread.yield();
|