/frameworks/native/libs/vr/libpdx_uds/ |
H A D | service_framework_tests.cpp | 12 #include <thread> 413 // thread, order is important; either the service or the client must be 420 // thread (they live in different processes). 424 std::thread dispatch_thread_; 431 // Start the message dispatch loop in a separate thread. 432 dispatch_thread_ = std::thread( 438 // Cancel the dispatcher and wait for the thread to terminate. Explicitly 439 // join the thread so that destruction doesn't deallocate the dispatcher 440 // before the thread finishes. 558 // Tests process id, thread i [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseStatementTest.java | 287 StatementTestThread thread = new StatementTestThread(mDatabase, statement); 288 thread.start(); 290 thread.join();
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkTimeUpdateService.java | 81 // NTP lookup is done on this thread and handler 129 HandlerThread thread = new HandlerThread(TAG); 130 thread.start(); 131 mHandler = new MyHandler(thread.getLooper()); 132 // Check the network time on the new thread
|
/frameworks/av/services/audioflinger/ |
H A D | RecordTracks.h | 25 RecordTrack(RecordThread *thread, 91 // used by the record thread to convert frames to proper destination format
|
H A D | TrackBase.h | 45 ALLOC_READONLY, // allocate from a separate read-only heap per thread 57 TrackBase(ThreadBase *thread, 171 audio_io_handle_t mThreadIoHandle; // I/O handle of the thread the track is attached to
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaPipeline.cpp | 43 SkiaPipeline::SkiaPipeline(RenderThread& thread) : mRenderThread(thread) { } argument 154 void SkiaPipeline::prepareToDraw(const RenderThread& thread, Bitmap* bitmap) { argument 155 GrContext* context = thread.getGrContext();
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | RenderState.h | 125 explicit RenderState(renderthread::RenderThread& thread);
|
/frameworks/native/libs/vr/libvrflinger/ |
H A D | vsync_service.h | 9 #include <thread>
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessRecord.java | 68 IApplicationThread thread; // the actual proc... may be null only if field in class:ProcessRecord 253 pw.print(prefix); pw.print("thread="); pw.println(thread); 462 if (thread == null) { 484 thread = _thread; 488 thread = null; 539 if (deathRecipient != null && thread != null) { 540 thread.asBinder().unlinkToDeath(deathRecipient, 0); 582 if (thread != null) { 589 thread [all...] |
H A D | ActivityRecord.java | 601 if (app == null || app.thread == null) { 612 app.thread.scheduleActivityMovedToDisplay(appToken, displayId, 620 if (app == null || app.thread == null) { 630 app.thread.scheduleActivityConfigurationChanged(appToken, new Configuration(config)); 637 if (task == null || task.getStack() == null || app == null || app.thread == null) { 651 app.thread.scheduleMultiWindowModeChanged(appToken, mLastReportedMultiWindowMode, 659 if (task == null || task.getStack() == null || app == null || app.thread == null) { 679 app.thread.schedulePictureInPictureModeChanged(appToken, 1360 || isTopActivityWhileSleeping) && app != null && app.thread != null) { 1364 app.thread [all...] |
H A D | ProviderMap.java | 392 if (r.proc != null && r.proc.thread != null) { 412 if (r.proc != null && r.proc.thread != null) { 420 * Invokes IApplicationThread.dumpProvider() on the thread of the specified provider without 428 r.proc.thread.dumpProvider(
|
/frameworks/native/libs/vr/libbroadcastring/ |
H A D | broadcast_ring_test.cc | 5 #include <thread> // NOLINT 677 std::unique_ptr<std::thread> CopyTask(std::atomic<bool>* quit, void* in_base, 680 return std::unique_ptr<std::thread>( 681 new std::thread([quit, in_base, in_size, out_base, out_size]() { 713 std::unique_ptr<std::thread> copy_task = CopyTask<Ring>( 740 std::unique_ptr<std::thread> copy_task = CopyTask<Ring>( 780 std::unique_ptr<std::thread> copy_task = CopyTask<Ring>( 808 std::unique_ptr<std::thread> CheckFillTask(std::atomic<bool>* quit, 810 return std::unique_ptr<std::thread>( 811 new std::thread([qui [all...] |
/frameworks/base/cmds/incidentd/src/ |
H A D | Section.cpp | 103 // data might be gone now. don't use it after this point in this thread. 111 pthread_t thread; local 116 // Data shared between this thread and the worker thread. 125 // The worker thread needs a reference and we can't let the count go to zero 126 // if that thread is slow to start. 129 // Create the thread 134 // TODO: Do we need to tweak thread priority? 140 err = pthread_create(&thread, &attr, worker_thread_func, (void*)data.get()); 155 // Done with the read fd. The worker thread close [all...] |
/frameworks/base/core/java/android/content/ |
H A D | AbstractThreadedSyncAdapter.java | 30 * An abstract implementation of a SyncAdapter that spawns a thread to invoke a sync operation. 33 * However if there is no sync in progress then a thread will be spawned and {@link #onPerformSync} 34 * will be invoked on that thread. 44 * A sync is cancelled by issuing a {@link Thread#interrupt()} on the syncing thread. <strong>Either 138 * at the same time, each in their own thread. This must be consistent with the setting 234 * The thread that invokes {@link AbstractThreadedSyncAdapter#onPerformSync}. It also acquires 236 * this thread in order to cancel the sync. 341 * thread than the sync thread and so you must consider the multi-threaded implications 359 * thread tha 366 onSyncCanceled(Thread thread) argument [all...] |
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
H A D | AccessoryChat.java | 146 Thread thread = new Thread(null, this, "AccessoryChat"); 147 thread.start(); 186 Log.d(TAG, "thread out");
|
/frameworks/base/tools/bit/ |
H A D | make.cpp | 29 #include <thread> 42 unsigned int threads = std::thread::hardware_concurrency();
|
/frameworks/native/cmds/dumpsys/ |
H A D | dumpsys.cpp | 19 #include <thread> 202 // dump blocks until completion, so spawn a thread.. 203 std::thread dump_thread([=, remote_end { std::move(remote_end) }]() mutable {
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 30 #include <thread> 145 std::thread deferredSaveThread([this]() {
|
/frameworks/native/services/sensorservice/hidl/ |
H A D | SensorManager.cpp | 27 #include <thread> 52 // Stops pollAll inside the thread. 136 std::thread{[&mutex = mLooperMutex, &looper = mLooper, &looperSet, javaVm = mJavaVm] { 140 if (sched_setscheduler(0 /* current thread*/, SCHED_FIFO, &p) != 0) { 141 LOG(WARNING) << "Could not use SCHED_FIFO for looper thread: " 147 LOG(INFO) << "Another thread has already set the looper, exiting this one."; 153 // Attach the thread to JavaVM so that pollAll do not crash if the event 162 LOG(FATAL) << "Cannot attach SensorManager looper thread to Java VM."; 172 LOG(ERROR) << "Cannot detach SensorManager looper thread from Java VM."; 175 LOG(INFO) << "Looper thread i [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 50 * The connection pool is thread-safe (but the connections themselves are not). 141 * This flag indicates that the connection is needed by the UI thread. 657 // Park the thread until a connection is assigned or the pool is closed. 738 final Thread thread = Thread.currentThread(); 741 msg.append("' has been unable to grant a connection to thread "); 742 msg.append(thread.getId()).append(" (").append(thread.getName()).append(") "); 967 private ConnectionWaiter obtainConnectionWaiterLocked(Thread thread, long startTime, argument 976 waiter.mThread = thread; 1045 + " ms - thread [all...] |
/frameworks/native/libs/vr/libpdx_default_transport/ |
H A D | pdx_benchmarks.cpp | 35 #include <thread> 376 // Updates the scheduler stats from procfs for this thread. 390 // Each service thread has its own scheduler stats object. 509 std::vector<std::thread> dispatch_threads; 530 std::cerr << "Starting dispatch thread " << thread_id_counter 538 // Read the initial schedstats for this thread from procfs. 546 std::cerr << "Error while dispatching message on thread " 550 std::cerr << "Quitting thread " << thread_id << " service " 565 for (auto& thread : dispatch_threads) { 566 thread [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | SeekBarVolumizer.java | 250 HandlerThread thread = new HandlerThread(TAG + ".CallbackHandler"); 251 thread.start(); 252 mHandler = new Handler(thread.getLooper(), this);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
H A D | PluginManagerImpl.java | 119 throw new RuntimeException("Must be called from UI thread"); 330 public void uncaughtException(Thread thread, Throwable throwable) { argument 332 mHandler.uncaughtException(thread, throwable); 347 mHandler.uncaughtException(thread, throwable);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | RenderingJitter.java | 50 HandlerThread thread = new HandlerThread("frameMetricsListener"); 51 thread.start(); 52 sMetricsHandler = new Handler(thread.getLooper());
|
/frameworks/native/libs/binder/tests/ |
H A D | schd-dbg.cpp | 301 // create a fifo thread to transact and wait it to finished 305 pthread_t thread; local 314 ASSERT(!pthread_create(&thread, &attr, &thread_start, &thread_priv)); 315 ASSERT(!pthread_join(thread, &dummy)); 353 // 1. transaction by fifo thread 358 // 2. transaction by other thread
|