Searched defs:thread (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLReadback.h27 SkiaOpenGLReadback(renderthread::RenderThread& thread) : OpenGLReadback(thread) {} argument
H A DSkiaOpenGLPipeline.cpp38 SkiaOpenGLPipeline::SkiaOpenGLPipeline(RenderThread& thread) argument
39 : SkiaPipeline(thread)
40 , mEglManager(thread.eglManager()) {
186 void SkiaOpenGLPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { argument
188 if (thread.eglManager().hasEglContext()) {
196 thread.getGrContext()->resetContext();
H A DSkiaVulkanPipeline.cpp43 SkiaVulkanPipeline::SkiaVulkanPipeline(renderthread::RenderThread& thread) argument
44 : SkiaPipeline(thread)
45 , mVkManager(thread.vulkanManager()) {}
155 void SkiaVulkanPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { argument
/frameworks/base/libs/hwui/
H A DOpenGLReadback.h35 explicit OpenGLReadback(renderthread::RenderThread& thread) : Readback(thread) {} argument
47 OpenGLReadbackImpl(renderthread::RenderThread& thread) : OpenGLReadback(thread) {} argument
H A DReadback.h49 explicit Readback(renderthread::RenderThread& thread) : mRenderThread(thread) {} argument
/frameworks/av/media/mtp/
H A DAsyncIO.h27 #include <thread>
48 std::thread thread; member in struct:aiocb
61 // Suspend current thread until given IO is complete, at which point
76 // Suspend current thread until all queued work is complete, then ends the threadpool
/frameworks/base/core/java/com/android/internal/view/
H A DWindowManagerPolicyThread.java22 * Static storage of the thread running the window manager policy, to
29 public static void set(Thread thread, Looper looper) { argument
30 mThread = thread;
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java268 assertNotSame(Thread.State.TERMINATED, factory.thread.getState());
274 factory.thread.join(3000);
275 assertEquals(Thread.State.TERMINATED, factory.thread.getState());
280 assertNotSame(Thread.State.TERMINATED, factory.thread.getState());
286 Thread thread = null; field in class:StorageManagerIntegrationTest.MyThreadFactory
290 thread = new Thread(r);
291 return thread;
/frameworks/base/libs/hwui/renderthread/
H A DDrawFrameTask.cpp41 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context, argument
43 mRenderThread = thread;
H A DEglManager.cpp81 EglManager::EglManager(RenderThread& thread) argument
82 : mRenderThread(thread)
H A DVulkanManager.cpp36 VulkanManager::VulkanManager(RenderThread& thread) : mRenderThread(thread) { argument
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp37 // we do want to limit ourselves to 1 worker thread on dual-core devices.
67 sp<WorkerThread> thread; local
71 thread = mThreads[i];
76 return thread->addTask(wrapper);
/frameworks/native/cmds/lshal/
H A DTimeout.h21 #include <thread>
67 pthread_t thread; local
68 if (pthread_create(&thread, NULL, callAndNotify, &state)) {
69 std::cerr << "FATAL: could not create background thread." << std::endl;
74 pthread_kill(thread, SIGINT);
76 pthread_join(thread, NULL);
/frameworks/native/services/sensorservice/
H A DSensorRegistrationInfo.h46 IPCThreadState *thread = IPCThreadState::self(); local
47 mPid = (thread != nullptr) ? thread->getCallingPid() : -1;
48 mUid = (thread != nullptr) ? thread->getCallingUid() : -1;
/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/support/compat/tests/java/android/support/v4/provider/
H A DSelfDestructiveThreadTest.java49 private void waitUntilDestruction(SelfDestructiveThread thread, long timeoutMs) { argument
50 if (!thread.isRunning()) {
62 if (!thread.isRunning()) {
66 throw new RuntimeException("Timeout for waiting thread destruction.");
87 final SelfDestructiveThread thread = new SelfDestructiveThread(
89 thread.postAndWait(new Callable<Object>() {
95 waitUntilDestruction(thread, DEFAULT_TIMEOUT);
96 assertFalse(thread.isRunning());
102 final SelfDestructiveThread thread = new SelfDestructiveThread(
104 Integer generation = thread
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp133 sp<LooperThread> thread; local
139 thread = mThread;
145 if (thread == NULL && !runningLocally) {
149 if (thread != NULL) {
150 thread->requestExit();
159 if (!runningLocally && !thread->isCurrentThread()) {
160 // If not running locally and this thread _is_ the looper thread,
162 thread->requestExitAndWait();
/frameworks/av/services/audioflinger/
H A DPatchPanel.cpp264 sp<ThreadBase> thread = local
266 newPatch->mPlaybackThread = (MixerThread *)thread.get();
267 if (thread == 0) {
268 ALOGW("createAudioPatch() cannot get playback thread");
277 sp<ThreadBase> thread = audioflinger->openOutput_l( local
284 newPatch->mPlaybackThread = (PlaybackThread *)thread.get();
314 sp<ThreadBase> thread = audioflinger->openInput_l(srcModule, local
321 newPatch->mRecordThread = (RecordThread *)thread.get();
334 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
336 if (thread
381 sp<ThreadBase> thread = local
614 sp<ThreadBase> thread = audioflinger->checkRecordThread_l( local
640 sp<ThreadBase> thread = local
[all...]
H A DPlaybackTracks.h25 Track( PlaybackThread *thread,
126 // FIXME parameters not needed, could get them from the thread
161 // access these three variables only when holding thread lock.
183 bool mFlushHwPending; // track requests for thread flush
197 OutputTrack(PlaybackThread *thread,
213 const wp<ThreadBase>& thread() const { return mThread; } function in class:OutputTrack
/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/app/
H A DService.java49 * thread of their hosting process. This means that, if your service is going
51 * networking) operations, it should spawn its own thread in which to do that
55 * as a standard implementation of Service that has its own thread where it
84 * <li> A Service is <b>not</b> a thread. It is not a means itself to do work off
85 * of the main thread (to avoid Application Not Responding errors).
107 * main thread. It is up to the Service to implement these with the appropriate
108 * behavior, such as creating a secondary thread in which it does its work.</p>
235 * to schedule work to be done asynchronously or in another thread, then you
403 * and spawns a thread to do its networking. If its process is killed
483 * service's main thread
757 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
[all...]
/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/services/tests/servicestests/src/com/android/server/location/
H A DLocationBasedCountryDetectorTest.java211 // Wait for query thread ending
234 // There is no way to stop the thread, let's test it could be stopped, after get country
236 // Wait for query thread ending
313 // Wait for query thread ending
336 // Wait for query thread ending
358 private void waitForThreadEnding(Thread thread) { argument
360 thread.join(5000);
375 Thread thread = detector.getQueryThread();
376 assertTrue(thread != null);
377 return thread;
[all...]
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp173 sp<EventThread> thread; member in class:TouchEvents
177 thread = new EventThread();
178 thread->run("EventThread", PRIORITY_URGENT_DISPLAY);
182 *x = thread->x;
183 *y = thread->y;
184 return thread->down;
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureClient_test.cpp563 MyThread* thread = new MyThread(mST); local
564 sp<Thread> threadBase(thread);
568 thread->run("MyThread");
573 thread->bufferDequeued();
574 thread->requestExitAndWait();

Completed in 549 milliseconds

12