/cts/tests/tests/database/src/android/database/sqlite/cts/ |
DatabaseStatementTest.java | 246 private static class StatementTestThread extends Thread { 288 StatementTestThread thread = new StatementTestThread(mDatabase, statement); local 289 thread.start(); 291 thread.join();
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaCasTest.java | 279 final HandlerThread thread = new HandlerThread("EventListenerHandlerThread"); local 280 thread.start(); 281 Handler handler = new Handler(thread.getLooper()); 283 thread.interrupt();
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
SocketHandlerTest.java | 170 ServerThread thread = new ServerThread(); local 171 thread.start(); 172 Thread.sleep(2000); 180 // ensure the thread exits and the port becomes available again 181 thread.getReadString(); 204 ServerThread thread = new ServerThread(); local 205 thread.start(); 206 Thread.sleep(2000); 214 // ensure the thread exits and the port becomes available again 215 thread.getReadString() 241 ServerThread thread = new ServerThread(); local 285 ServerThread thread = new ServerThread(); local 420 ServerThread thread = new ServerThread(); local 448 ServerThread thread = new ServerThread(); local 473 ServerThread thread = new ServerThread(); local 512 ServerThread thread = new ServerThread(); local 542 ServerThread thread = new ServerThread(); local 569 ServerThread thread = new ServerThread(); local 594 ServerThread thread = new ServerThread(); local 619 ServerThread thread = new ServerThread(); local [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseStatementTest.java | 245 private static class StatementTestThread extends Thread { 287 StatementTestThread thread = new StatementTestThread(mDatabase, statement); local 288 thread.start(); 290 thread.join();
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
DocumentLoader.java | 42 * background thread to load the rest documents and caches its result for next requests. 55 private Thread mBackgroundThread; 67 * It loads the first NUM_INITIAL_ENTRIES of object info, then launches the background thread 101 * Resumes a background thread. 111 * Obtains next task to be run in background thread, or release the reference to background 112 * thread. 114 * Worker thread that receives null task needs to exit. 145 * Terminates background thread. 149 final Thread thread; local [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldThreadGroupTest.java | 27 public class OldThreadGroupTest extends TestCase implements Thread.UncaughtExceptionHandler { 29 class MyThread extends Thread { 42 Thread.sleep(50); 58 Thread.yield(); 70 // A thread that runs in initialThreadGroup throughout each test. 78 Thread t1 = new Thread(tg, new Runnable() { 98 ThreadGroup tg = new ThreadGroup("thread suspension"); 99 assertTrue("Thread suspention can not be changed", 101 assertTrue("Thread suspention can not be changed" 281 Thread thread = launchFiveSecondDummyThread(group); local 297 Thread thread = new Thread(group, "Bar") { local 376 MyThread thread = new MyThread(group, "MyThread " + i + " of " + threadCount); local [all...] |
ThreadTest.java | 19 import java.lang.Thread.UncaughtExceptionHandler; 43 Thread.currentThread().getContextClassLoader()); 76 Thread.sleep(millis); 85 Thread.currentThread().interrupt(); 87 Thread.sleep(0); 90 assertFalse(Thread.currentThread().isInterrupted()); 97 Thread.sleep(-1); 103 Thread.sleep(0, -1); 109 Thread.sleep(0, 1000000); 126 Thread.sleep(1000) 268 Thread thread = new Thread() { local 299 Thread thread = new Thread(); local [all...] |
/art/compiler/ |
exception_test.cc | 39 #include "thread.h" 53 ScopedObjectAccess soa(Thread::Current()); 137 ScopedObjectAccess soa(Thread::Current()); 172 Thread* thread = Thread::Current(); local 173 thread->TransitionFromSuspendedToRunnable(); 176 JNIEnv* env = thread->GetJniEnv(); 220 // Set up thread to appear as if we called out of method_g_ at given pc dex. 221 thread->SetTopOfStack(reinterpret_cast<ArtMethod**>(&fake_stack[0])) [all...] |
/art/runtime/native/ |
java_lang_Thread.cc | 28 #include "thread.h" 46 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 47 return (thread != nullptr) ? thread->IsInterrupted() : JNI_FALSE; 52 // There are sections in the zygote that forbid thread creation. 61 Thread::CreateNativeThread(env, java_thread, stack_size, daemon == JNI_TRUE); 65 // Ordinals from Java's Thread.State. 76 Thread* thread = Thread::FromManagedThread(soa, java_thread) local 122 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 129 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 150 Thread* thread = thread_list->SuspendThreadByPeer(peer, local 175 Thread* thread = Thread::FromManagedThread(soa, java_thread); local [all...] |
org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 35 static Thread* GetSelf(JNIEnv* env) { 58 Thread* const self = GetSelf(env); 63 trace = Thread::InternalStackTraceToStackTraceElementArray(soa, internal_trace); 68 // Check for valid thread 73 // Suspend thread to build stack trace. 74 Thread* thread = thread_list->SuspendThreadByThreadId(thin_lock_id, local 77 if (thread != nullptr) { 80 jobject internal_trace = thread->CreateInternalStackTrace<false>(soa); 81 trace = Thread::InternalStackTraceToStackTraceElementArray(soa, internal_trace) [all...] |
/art/test/924-threads/ |
threads.cc | 78 // private static native Thread getCurrentThread(); 79 // private static native Object[] getThreadInfo(Thread t); 83 jthread thread = nullptr; local 84 jvmtiError result = jvmti_env->GetCurrentThread(&thread); 88 return thread; 92 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { 96 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); 115 // The thread group; 140 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthread thread) { 142 jvmtiError result = jvmti_env->GetThreadState(thread, &state) [all...] |
/bionic/benchmarks/ |
pthread_benchmark.cpp | 180 pthread_t thread; local 181 pthread_create(&thread, NULL, IdleThread, NULL); 183 pthread_join(thread, NULL); 195 pthread_t thread; local 196 pthread_create(&thread, NULL, RunThread, &state); 197 pthread_join(thread, NULL); 208 pthread_t thread; local 209 pthread_create(&thread, NULL, ExitThread, nullptr); 210 pthread_join(thread, NULL);
|
/bionic/libc/bionic/ |
pthread_attr.cpp | 200 // Ask the kernel where our main thread's stack started. 244 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(t); local 245 *attr = thread->attr; 246 // We prefer reading join_state here to setting thread->attr.flags in pthread_detach. 248 if (atomic_load(&thread->join_state) == THREAD_DETACHED) { 251 // The main thread's stack information is not stored in thread->attr, and we need to 253 if (thread->tid == getpid()) {
|
pthread_create.cpp | 53 // This code is used both by each new pthread and the code that initializes the main thread. 54 bool __init_tls(pthread_internal_t* thread) { 56 thread->tls[TLS_SLOT_SELF] = thread->tls; 57 thread->tls[TLS_SLOT_THREAD_ID] = thread; 71 thread->bionic_tls = reinterpret_cast<bionic_tls*>(static_cast<char*>(allocation) + 73 if (mprotect(thread->bionic_tls, BIONIC_TLS_SIZE, PROT_READ | PROT_WRITE) != 0) { 80 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, thread->bionic_tls, BIONIC_TLS_SIZE, "bionic TLS"); 84 void __init_thread_stack_guard(pthread_internal_t* thread) { 222 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(stack_top); local 244 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(arg); local 281 pthread_internal_t* thread = NULL; local [all...] |
/bionic/tests/ |
sys_socket_test.cpp | 81 pthread_t thread; local 82 ASSERT_EQ(0, pthread_create(&thread, NULL, ConnectFn, &connect_data)); 95 ASSERT_EQ(0, pthread_join(thread, &ret_val));
|
/cts/tests/tests/nativehardware/jni/ |
AHardwareBufferTest.cpp | 272 pthread_t thread; local 273 EXPECT_EQ(0, pthread_create(&thread, NULL, clientFunction, &data)); 286 EXPECT_EQ(0, pthread_join(thread, &ret_val));
|
/cts/tests/tests/os/src/android/os/cts/ |
MessageQueueTest.java | 76 * occurs right before the looper's run thread had started running. The final count down 127 HandlerThread thread = new HandlerThread("testIsIdle"); local 128 thread.start(); 131 assertTrue(thread.getLooper().getQueue().isIdle()); 136 Handler handler = new Handler(thread.getLooper()); 156 assertFalse(thread.getLooper().getQueue().isIdle()); 162 assertTrue(thread.getLooper().getQueue().isIdle()); 164 thread.quitSafely(); 272 AssertableHandlerThread thread = new AssertableHandlerThread(); local 273 thread.start() 403 AssertableHandlerThread thread = new AssertableHandlerThread(); local 482 AssertableHandlerThread thread = new AssertableHandlerThread(); local 571 AssertableHandlerThread thread = new AssertableHandlerThread(); local 658 AssertableHandlerThread thread = new AssertableHandlerThread(); local [all...] |
/development/tools/bugreport/src/com/android/bugreport/inspector/ |
DeadlockDetector.java | 43 public ThreadSnapshot thread; field in class:DeadlockDetector.ThreadRecord 45 public ThreadRecord(ProcessSnapshot process, ThreadSnapshot thread) { 47 this.thread = thread; 52 && this.thread == that.thread; 59 hash = hash * 31 + this.thread.hashCode(); 68 return this.thread.compareTo(that.thread); 119 * Detect any thread cycles that are affecting the main thread of the given pid [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
EventMod.java | 68 public long thread; field in class:EventMod 107 thread = -1;
|
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
thread-prctl.c | 5 * http://bazaar.launchpad.net/~ubuntu-bugcontrol/qa-regression-testing/master/view/head:/scripts/kernel-security/ptrace/thread-prctl.c 53 printf("tracee thread started\n"); 56 printf("tracee thread prtctl result: %d\n", ret); 58 printf("tracee thread finishing\n"); 145 printf("tracee thread starting\n"); 148 printf("tracee thread finished\n"); 191 * 2: tracee calls prctl from non-leader thread. 197 * 0: ptrace happens from non-leader thread. 206 "main" : "thread"); 212 main_does_ptrace ? "main" : "thread"); 242 pthread_t thread; local [all...] |
/external/deqp/framework/delibs/destream/ |
deThreadStream.c | 35 deThread thread; member in struct:deThreadInStream_s 44 deStreamCpyThread* thread; member in struct:deThreadOutStream_s 93 /* \todo [mika] Add handling for errors on thread stream */ 101 /* \todo [mika] Add handling for status on thread stream */ 112 deThread_join(threadStream->thread); 113 deThread_destroy(threadStream->thread); 147 threadStream->thread = deThread_create(inStreamCopy, threadStream, DE_NULL); 162 /* \todo [mika] Add handling for errors on thread stream */ 170 /* \todo [mika] Add handling for errors on thread stream */ 203 threadStream->thread = deStreamCpyThread_create(&(threadStream->consumerStream), output, ringbufferBlockSize) [all...] |
/external/deqp/framework/delibs/dethread/win32/ |
deThreadWin32.c | 2 * drawElements Thread Library 21 * \brief Win32 implementation of thread management. 35 /* Thread handle equals deThread in this implementation. */ 74 HANDLE thread = 0; local 82 thread = CreateThread(DE_NULL, 0, startThread, entry, 0, DE_NULL); 83 if (!thread) 90 SetThreadPriority(thread, mapPriority(attributes->priority)); 92 return (deThread)thread; 95 deBool deThread_join (deThread thread) 97 HANDLE handle = (HANDLE)thread; [all...] |
/external/elfutils/libdwfl/ |
dwfl_frame.c | 46 Ebl *ebl = state->thread->process->ebl; 73 Dwfl_Thread *thread = state->thread; local 74 assert (thread->unwound == state); 75 thread->unwound = state->unwound; 80 thread_free_all_states (Dwfl_Thread *thread) 82 while (thread->unwound) 83 state_free (thread->unwound); 87 state_alloc (Dwfl_Thread *thread) 89 assert (thread->unwound == NULL) 269 Dwfl_Thread thread; local 348 Dwfl_Thread thread; local [all...] |
linux-pid-attach.c | 202 /* Just checks that the thread id exists. */ 222 Dwfl_Thread *thread = (Dwfl_Thread *) arg; local 227 INTUSE(dwfl_thread_state_register_pc) (thread, *regs); 231 return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs); 235 pid_set_initial_registers (Dwfl_Thread *thread, void *thread_arg) 239 pid_t tid = INTUSE(dwfl_thread_tid) (thread); 244 Dwfl_Process *process = thread->process; 247 pid_thread_state_registers_cb, thread); 274 pid_thread_detach (Dwfl_Thread *thread, void *thread_arg) 277 pid_t tid = INTUSE(dwfl_thread_tid) (thread); [all...] |
/external/fio/ |
idletime.h | 26 pthread_t thread; member in struct:idle_prof_thread
|