Searched refs:thread (Results 76 - 100 of 159) sorted by relevance

1234567

/frameworks/native/libs/vr/libpdx_uds/
H A Dservice_framework_tests.cpp12 #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 DDatabaseStatementTest.java287 StatementTestThread thread = new StatementTestThread(mDatabase, statement);
288 thread.start();
290 thread.join();
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java81 // 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 DRecordTracks.h25 RecordTrack(RecordThread *thread,
91 // used by the record thread to convert frames to proper destination format
H A DTrackBase.h45 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 DSkiaPipeline.cpp43 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 DRenderState.h125 explicit RenderState(renderthread::RenderThread& thread);
/frameworks/native/libs/vr/libvrflinger/
H A Dvsync_service.h9 #include <thread>
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessRecord.java68 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 DActivityRecord.java601 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 DProviderMap.java392 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 Dbroadcast_ring_test.cc5 #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 DSection.cpp103 // 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 DAbstractThreadedSyncAdapter.java30 * 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 DAccessoryChat.java146 Thread thread = new Thread(null, this, "AccessoryChat");
147 thread.start();
186 Log.d(TAG, "thread out");
/frameworks/base/tools/bit/
H A Dmake.cpp29 #include <thread>
42 unsigned int threads = std::thread::hardware_concurrency();
/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp19 #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 Degl_cache.cpp30 #include <thread>
145 std::thread deferredSaveThread([this]() {
/frameworks/native/services/sensorservice/hidl/
H A DSensorManager.cpp27 #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 DSQLiteConnectionPool.java50 * 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 Dpdx_benchmarks.cpp35 #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 DSeekBarVolumizer.java250 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 DPluginManagerImpl.java119 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 DRenderingJitter.java50 HandlerThread thread = new HandlerThread("frameMetricsListener");
51 thread.start();
52 sMetricsHandler = new Handler(thread.getLooper());
/frameworks/native/libs/binder/tests/
H A Dschd-dbg.cpp301 // 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

Completed in 1986 milliseconds

1234567