/packages/apps/Mms/src/com/android/mms/util/ |
DraftCache.java | 71 * Dispatches work to a thread and returns immediately. 78 Thread thread = new Thread(new Runnable() { local 84 thread.setPriority(Thread.MIN_PRIORITY); 85 thread.start(); 157 /** Updates the has-draft status of a particular thread on 193 /** Returns true if the given thread ID has a draft associated 255 Log.d(TAG, "[DraftCache/" + Thread.currentThread().getId() + "] " + s) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsLicenseActivity.java | 113 // Tell the UI thread that we are finished. 169 // Start separate thread to do the actual loading. 170 Thread thread = new Thread(new LicenseFileLoader(fileName, mHandler)); local 171 thread.start(); 200 // Begin the loading. This will be done in a separate thread in WebView.
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadReceiver.java | 51 final HandlerThread thread = new HandlerThread("DownloadReceiver"); typedefs 52 thread.start(); 53 sAsyncHandler = new Handler(thread.getLooper());
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ContactsAsyncHelper.java | 82 /** Handler run on a worker thread to load photo asynchronously. */ 86 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); typedefs 87 thread.start(); 88 sThreadHandler = new WorkerHandler(thread.getLooper()); 103 * Thread worker class that handles the task of opening the stream and loading 244 // notify the thread to begin working
|
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
LunarView.java | 48 class LunarThread extends Thread { 163 /** Message handler used by thread to interact with TextView */ 430 * Used to signal the thread whether it should be running or not. 431 * Passing true allows the thread to run; passing false will shut it 470 * owned by this thread, we can't touch the state of that View. 472 * thread, which updates the user-text View. 796 /** The thread that actually draws the animation */ 797 private LunarThread thread; field in class:LunarView 806 // create thread only; it's started in surfaceCreated() 807 thread = new LunarThread(holder, context, new Handler() [all...] |
/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();
|
/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...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
SSLSocketImplTest.java | 80 Thread thread = new Thread() { local 90 thread.start(); 96 Thread.sleep(500); 144 Thread thread = new Thread() { local 154 thread.start(); 160 Thread.sleep(500) 211 Thread thread = new Thread() { local 277 Thread thread = new Thread() { local 344 Thread thread = new Thread() { local 808 Thread thread = new Thread() { local 923 Thread thread = new Thread() { local 984 Thread thread = new Thread() { local 1046 Thread thread = new Thread() { 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();
|
/libcore/libart/src/main/java/java/lang/ |
Daemons.java | 60 private Thread thread; field in class:Daemons.Daemon 63 if (thread != null) { 66 thread = new Thread(ThreadGroup.systemThreadGroup, this, getClass().getSimpleName()); 67 thread.setDaemon(true); 68 thread.start(); 74 * Returns true while the current thread should continue to run; false 78 return thread != null; 82 if (thread == null) [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(); 75 Thread t1 = new Thread(tg, new Runnable() { 95 ThreadGroup tg = new ThreadGroup("thread suspension"); 96 assertTrue("Thread suspention can not be changed", 98 assertTrue("Thread suspention can not be changed", 103 * Checks whether the current Thread is in the given list 286 Thread thread = launchFiveSecondDummyThread(group); local 302 Thread thread = new Thread(group, "Bar") { local [all...] |
/art/compiler/llvm/ |
runtime_support_builder.cc | 24 #include "thread.h" 55 /* Thread */ 67 Value* thread = EmitGetCurrentThread(); local 68 return irb_.LoadFromObjectOffset(thread, offset, type, s_ty); 73 Value* thread = EmitGetCurrentThread(); local 74 irb_.StoreToObjectOffset(thread, offset, value, s_ty); 77 ::llvm::Value* RuntimeSupportBuilder::EmitSetCurrentThread(::llvm::Value* thread) { 79 return irb_.CreateCall(func, thread); 88 Value* old_shadow_frame = EmitLoadFromThreadOffset(Thread::TopShadowFrameOffset().Int32Value(), 91 EmitStoreToThreadOffset(Thread::TopShadowFrameOffset().Int32Value() [all...] |
/art/runtime/ |
exception_test.cc | 31 #include "thread.h" 41 ScopedObjectAccess soa(Thread::Current()); 122 ScopedObjectAccess soa(Thread::Current()); 158 Thread* thread = Thread::Current(); local 159 thread->TransitionFromSuspendedToRunnable(); 162 JNIEnv* env = thread->GetJniEnv(); 194 // Set up thread to appear as if we called out of method_g_ at pc dex 3 195 thread->SetTopOfStack [all...] |
/art/runtime/native/ |
java_lang_Thread.cc | 25 #include "thread.h" 43 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 44 return (thread != NULL) ? thread->IsInterrupted() : JNI_FALSE; 49 Thread::CreateNativeThread(env, java_thread, stack_size, daemon == JNI_TRUE); 53 // Ordinals from Java's Thread.State. 64 Thread* thread = Thread::FromManagedThread(soa, java_thread) local 104 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 111 Thread* thread = Thread::FromManagedThread(soa, java_thread); local 134 Thread* thread; local 159 Thread* thread = Thread::FromManagedThread(soa, java_thread); local [all...] |
org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 48 Thread* const self = Thread::Current(); 53 trace = Thread::InternalStackTraceToStackTraceElementArray(soa, internal_trace); 58 // Check for valid thread 63 // Suspend thread to build stack trace. 64 Thread* thread; local 66 // Take suspend thread lock to avoid races with threads trying to suspend this one. 68 thread = thread_list->SuspendThreadByThreadId(thin_lock_id, false, &timed_out); 70 if (thread != nullptr) [all...] |
/bionic/tests/ |
sys_socket_test.cpp | 89 pthread_t thread; local 90 ASSERT_EQ(0, pthread_create(&thread, NULL, ConnectFn, reinterpret_cast<void*>(callback_fn))); 103 ASSERT_EQ(0, pthread_join(thread, &ret_val));
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
EventMod.java | 67 public long thread; field in class:EventMod 106 thread = -1;
|
/external/chromium_org/chrome/browser/spellchecker/ |
spellcheck_message_filter_unittest.cc | 64 content::BrowserThread::ID thread; local 71 thread = content::BrowserThread::IO; 72 filter->OverrideThreadForMessage(message, &thread); 73 EXPECT_EQ(content::BrowserThread::UI, thread);
|
/external/chromium_org/ppapi/tests/ |
test_case.cc | 261 PP_ThreadType thread; local 262 PP_CreateThread(&thread, thread_func, thread_param); 264 // thread will set result_ and make us Quit when it's done. 266 PP_JoinThread(thread);
|
/external/chromium_org/third_party/WebKit/Source/core/workers/ |
WorkerGlobalScope.h | 91 // The function is probably called in the main thread. 100 WorkerThread* thread() const { return m_thread; } function in class:WebCore::WorkerGlobalScope 102 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // Executes the task on context's thread asynchronously.
|
WorkerMessagingProxy.cpp | 77 context->thread()->workerObjectProxy().confirmMessageFromWorkerObject(context->hasPendingActivity()); 98 || (m_executionContext->isWorkerGlobalScope() && toWorkerGlobalScope(m_executionContext.get())->thread()->isCurrentThread())); 105 || (m_executionContext->isWorkerGlobalScope() && toWorkerGlobalScope(m_executionContext.get())->thread()->isCurrentThread())); 117 RefPtr<DedicatedWorkerThread> thread = DedicatedWorkerThread::create(*this, *m_workerObjectProxy.get(), originTime, startupData.release()); local 118 workerThreadCreated(thread); 119 thread->start(); 166 // We don't bother checking the askedToTerminate() flag here, because exceptions should *always* be reported even if the thread is terminated. 187 // Worker.terminate() could be called from JS before the thread was created.
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
DeferredImageDecoderTest.cpp | 223 // Create a thread to rasterize SkPicture. 224 OwnPtr<blink::WebThread> thread = adoptPtr(blink::Platform::current()->createThread("RasterThread")); local 225 thread->postTask(new Task(WTF::bind(&rasterizeMain, m_canvas.get(), picture.get()))); 226 thread.clear();
|
ImageFrameGeneratorTest.cpp | 224 OwnPtr<blink::WebThread> thread = adoptPtr(blink::Platform::current()->createThread("DecodeThread")); local 225 thread->postTask(new Task(WTF::bind(&decodeThreadMain, m_generator.get()))); 226 thread.clear();
|
/external/chromium_org/third_party/libjingle/source/talk/media/other/ |
linphonemediaengine.cc | 140 talk_base::Thread *thread = talk_base::ThreadManager::CurrentThread(); local 141 talk_base::SocketServer *ss = thread->socketserver();
|
/external/chromium_org/third_party/mesa/src/src/gallium/winsys/radeon/drm/ |
radeon_drm_cs.h | 61 * by the kernel in another thread, the other one is being filled 67 /* The CS being currently-owned by the other thread. */ 77 pipe_thread thread; member in struct:radeon_drm_cs
|