/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));
|