| /development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
| Camera2VideoFragment.java | 151 * An additional thread for running tasks that shouldn't block the UI. 312 * Starts a background thread and its {@link Handler}. 321 * Stops the background thread and its {@link Handler}. 451 HandlerThread thread = new HandlerThread("CameraPreview"); local 452 thread.start();
|
| /external/nist-sip/java/gov/nist/javax/sip/stack/ |
| TLSMessageChannel.java | 36 * Lamine Brahimi (IBM Zurich) sent in a bug fix - a thread was being uncessarily created. 60 * starts a message parser in its own thread and talks to the message parser via a pipe. The 79 private InputStream myClientInputStream; // just to pass to thread. 87 private Thread mythread; 146 mythread = new Thread(this); 270 Thread thread = new Thread(this); local 271 thread.setDaemon(true); 272 thread.setName("TLSMessageChannelThread") [all...] |
| /frameworks/base/services/core/java/com/android/server/am/ |
| BroadcastQueue.java | 226 if (app.thread == null) { 229 r.receiver = app.thread.asBinder(); 245 app.thread.scheduleReceiver(new Intent(r.intent), r.curReceiver, 428 if (app.thread != null) { 429 // If we have an app thread, do the call through that so it is 431 app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode, 435 throw new RemoteException("app.thread must not be null"); [all...] |
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
| ServerSocketTest.java | 49 Thread t; 63 Thread.sleep(1000); 65 // Sleep again to allow server side processing. Thread is 67 Thread.sleep(10000); 199 Thread thread = new Thread(runnable, "ServerSocket.accept"); local 200 thread.start(); 203 Thread.sleep(500); 204 } while (!thread.isAlive()) [all...] |
| /packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
| HealthService.java | 93 HandlerThread thread = new HandlerThread("BluetoothHdpHandler"); local 94 thread.start(); 95 Looper looper = thread.getLooper(); [all...] |
| /packages/apps/Camera2/src/com/android/camera/ |
| CaptureModule.java | 256 /** Main thread handler. */ 258 /** Handler thread for camera-related operations. */ 311 HandlerThread thread = new HandlerThread("CaptureModule.mCameraHandler"); local 312 thread.start(); 313 mCameraHandler = new Handler(thread.getLooper()); 535 // Don't do always because letting go of thread can cause delay. [all...] |
| /packages/apps/Mms/src/com/android/mms/transaction/ |
| SmsReceiverService.java | 67 * This service essentially plays the role of a "worker thread", allowing us to store 69 * main thread that SmsReceiver runs on. 117 // Start up the thread running the service. Note that we create a 118 // separate thread because the service normally runs in the process's 119 // main thread, which we don't want to block. 120 HandlerThread thread = new HandlerThread(TAG, Process.THREAD_PRIORITY_BACKGROUND); local 121 thread.start(); 123 mServiceLooper = thread.getLooper(); 385 // Called off of the UI thread so ok to block. 403 // Called off of the UI thread so ok to block [all...] |
| TransactionService.java | 177 // Start up the thread running the service. Note that we create a 178 // separate thread because the service normally runs in the process's 179 // main thread, which we don't want to block. 180 HandlerThread thread = new HandlerThread("TransactionService"); local 181 thread.start(); 183 mServiceLooper = thread.getLooper(); 474 // We're already in a non-UI thread called from [all...] |
| /packages/apps/Settings/src/com/android/settings/bluetooth/ |
| DockService.java | 143 HandlerThread thread = new HandlerThread("DockService"); local 144 thread.start(); 146 mServiceLooper = thread.getLooper(); 684 // TODO: move to background thread to fix strict mode warnings [all...] |
| /art/runtime/ |
| thread_list.cc | 36 #include "thread.h" 46 thread_exit_cond_("thread exit condition variable", *Locks::thread_list_lock_) { 51 // Detach the current thread if necessary. If we failed to start, there might not be any threads. 52 // We need to detach the current thread here in case there's another thread waiting to join with 56 Thread* self = Thread::Current(); 65 // TODO: there's an unaddressed race here where a thread may attach during shutdown, see 66 // Thread::Init. 70 bool ThreadList::Contains(Thread* thread) 467 Thread* thread; local 548 Thread* thread = nullptr; local [all...] |
| /device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/ |
| QCameraMjpegDecode.cpp | 49 // Abstract the return type of the function to be run as a thread 52 // Abstract the argument type to the thread function 55 // Helpful constants for return values in the thread functions 59 // Abstract the function modifier placed in the beginning of the thread 103 pthread_t thread; member in struct:__anon3879 202 // Create thread control blocks 206 ALOGE("%s: decoder_test failed: insufficient memory in creating thread control blocks", __func__); 563 // main thread to clean up
|
| /external/chromium_org/content/browser/ |
| browser_thread_impl.cc | 102 // array. Typically, the threads are owned on the UI thread by 120 : Thread(g_browser_thread_names[identifier]), 127 : Thread(message_loop->thread_name()), identifier_(identifier) { 165 // duration of the thread's lifetime 177 Thread::Run(message_loop); 183 Thread::Run(message_loop); 190 Thread::Run(message_loop); 197 Thread::Run(message_loop); 204 Thread::Run(message_loop); 211 Thread::Run(message_loop) 519 base::Thread* thread = globals.threads[identifier]; local [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/base/ |
| thread.cc | 28 #include "talk/base/thread.h" 58 Thread* Thread::Current() { 71 // maintaining thread safety using immutability within context of GCD dispatch 92 Thread *ThreadManager::CurrentThread() { 93 return static_cast<Thread *>(pthread_getspecific(key_)); 96 void ThreadManager::SetCurrentThread(Thread *thread) { 97 pthread_setspecific(key_, thread); 114 Thread *ThreadManager::CurrentThread() 141 Thread* thread; member in struct:talk_base::ThreadInit 393 AutoThread thread; local [all...] |
| thread_unittest.cc | 34 #include "talk/base/thread.h" 69 Thread* post_thread, MessageHandler* phandler) 94 Thread* post_thread_; 101 MessageClient(Thread* pth, Socket* socket) 120 class CustomThread : public talk_base::Thread { 128 // A thread that does nothing when it runs and signals an event 130 class SignalWhenDestroyedThread : public Thread { 149 // Function objects to test Thread::Invoke. 162 Thread::Current()->ProcessMessages(50); 171 // Create the messaging client on its own thread 213 Thread *thread; local 235 Thread *thread; local 274 Thread thread; local 323 Thread thread; local 334 Thread thread; local 346 Thread thread; local 363 Thread thread; local 378 Thread thread; local 455 Thread* thread = new ComThread(); local [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/media/sctp/ |
| sctpdataengine_unittest.cc | 43 #include "talk/base/thread.h" 57 explicit SctpFakeNetworkInterface(talk_base::Thread* thread) 58 : thread_(thread), 112 talk_base::Thread* thread_; 234 net1_.reset(new SctpFakeNetworkInterface(talk_base::Thread::Current())); 235 net2_.reset(new SctpFakeNetworkInterface(talk_base::Thread::Current())); 309 talk_base::Thread* thread = talk_base::Thread::Current() local [all...] |
| /external/chromium_org/third_party/libjingle/source/talk/session/tunnel/ |
| tunnelsessionclient.cc | 63 talk_base::Thread* thread; member in struct:cricket::CreateTunnelData 127 MakeTunnelSession(session, talk_base::Thread::Current(), RESPONDER)); 148 // Valid from any thread 152 data.thread = talk_base::Thread::Current(); 195 TunnelSession* tunnel = MakeTunnelSession(session, data->thread, 204 Session* session, talk_base::Thread* stream_thread, 333 // Signalling thread methods 337 talk_base::Thread* stream_thread [all...] |
| /external/chromium_org/third_party/mesa/src/src/gallium/drivers/rbug/ |
| rbug_core.c | 57 pipe_thread thread; member in struct:rbug_rbug 858 tr_rbug->thread = pipe_thread_create(rbug_thread, tr_rbug); 870 pipe_thread_wait(tr_rbug->thread);
|
| /external/chromium_org/third_party/opus/src/src/ |
| mlp_train.c | 244 pthread_t thread[NB_THREADS]; local 295 pthread_create(&thread[i], NULL, gradient_thread_process, &args[i]); 411 pthread_join(thread[i], NULL);
|
| /external/chromium_org/third_party/skia/gm/rebaseline_server/ |
| server.py | 23 import thread namespace 260 thread attempts to update either self._results or the underlying files at 386 thread.start_new_thread(self._result_loader, arg_tuple) 451 # ExpectationComparisons object within another thread. 555 # no other thread updates expectations (from the Skia repo) while we are 570 # We can do this in a separate thread; we should return our success message 572 thread.start_new_thread(_SERVER.update_results, (True,))
|
| /external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
| profile-handler_unittest.cc | 40 class Thread { 42 Thread() : joinable_(false) { } 60 reinterpret_cast<Thread*>(cls)->Run(); 78 // Whether each thread has separate timers. 92 // Checks whether the profile timer is enabled for the current thread. 106 class VirtualTimerGetterThread : public Thread { 119 // This function checks whether the timers are shared between thread. This 120 // function spawns a thread, so use it carefully when testing thread-dependent 125 // Enable the virtual timer in the current thread 131 VirtualTimerGetterThread thread; local [all...] |
| /external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
| profile-handler_unittest.cc | 40 class Thread { 42 Thread() : joinable_(false) { } 60 reinterpret_cast<Thread*>(cls)->Run(); 78 // Whether each thread has separate timers. 92 // Checks whether the profile timer is enabled for the current thread. 106 class VirtualTimerGetterThread : public Thread { 119 // This function checks whether the timers are shared between thread. This 120 // function spawns a thread, so use it carefully when testing thread-dependent 125 // Enable the virtual timer in the current thread 131 VirtualTimerGetterThread thread; local [all...] |
| /external/chromium_org/third_party/webrtc/base/ |
| thread.cc | 11 #include "webrtc/base/thread.h" 41 Thread* Thread::Current() { 54 // maintaining thread safety using immutability within context of GCD dispatch 75 Thread *ThreadManager::CurrentThread() { 76 return static_cast<Thread *>(pthread_getspecific(key_)); 79 void ThreadManager::SetCurrentThread(Thread *thread) { 80 pthread_setspecific(key_, thread); 97 Thread *ThreadManager::CurrentThread() 124 Thread* thread; member in struct:rtc::ThreadInit 376 AutoThread thread; local [all...] |
| thread_unittest.cc | 17 #include "webrtc/base/thread.h" 52 Thread* post_thread, MessageHandler* phandler) 77 Thread* post_thread_; 84 MessageClient(Thread* pth, Socket* socket) 103 class CustomThread : public rtc::Thread { 111 // A thread that does nothing when it runs and signals an event 113 class SignalWhenDestroyedThread : public Thread { 132 // Function objects to test Thread::Invoke. 145 Thread::Current()->ProcessMessages(50); 154 // Create the messaging client on its own thread 196 Thread *thread; local 218 Thread *thread; local 257 Thread thread; local 306 Thread thread; local 317 Thread thread; local 329 Thread thread; local 346 Thread thread; local 361 Thread thread; local 438 Thread* thread = new ComThread(); local [all...] |
| /external/chromium_org/tools/android/forwarder/ |
| forwarder.cc | 174 // 1. Server thread will get a free ForwarderInfo and initialize it; 176 // 3. Main thread will iterate and print the forwarders. 178 // inter-thread communication. 292 pthread_t thread; local 293 pthread_create(&thread, NULL, ForwarderThread,
|
| /external/deqp/framework/delibs/dethread/ |
| deThreadTest.c | 2 * drawElements Thread Library 21 * \brief Thread library tests. 92 /* Thread test 1. */ 96 deThread thread = deThread_create(threadTestThr1, &val, DE_NULL); local 97 DE_TEST_ASSERT(thread); 99 ret = deThread_join(thread); 102 deThread_destroy(thread); 105 /* Thread test 2. */ 107 deThread thread = deThread_create(threadTestThr2, DE_NULL, DE_NULL); local 109 DE_TEST_ASSERT(thread); 120 deThread thread; local 141 deThread thread; local 158 deThread thread; local 277 deThread thread; local 337 deThread thread; local 562 deThread thread = deThread_create(singletonTestThread, &initTimeMs, DE_NULL); local 574 deThread thread = deThreadArray_get(threads, threadNdx); local [all...] |