Searched refs:thread (Results 26 - 50 of 159) sorted by relevance

1234567

/frameworks/base/libs/hwui/renderthread/
H A DOpenGLPipeline.h31 OpenGLPipeline(RenderThread& thread);
62 static void prepareToDraw(const RenderThread& thread, Bitmap* bitmap);
63 static void invokeFunctor(const RenderThread& thread, Functor* functor);
H A DCanvasContext.cpp66 CanvasContext* CanvasContext::create(RenderThread& thread, argument
73 return new CanvasContext(thread, translucent, rootRenderNode, contextFactory,
74 std::make_unique<OpenGLPipeline>(thread));
76 return new CanvasContext(thread, translucent, rootRenderNode, contextFactory,
77 std::make_unique<skiapipeline::SkiaOpenGLPipeline>(thread));
79 return new CanvasContext(thread, translucent, rootRenderNode, contextFactory,
80 std::make_unique<skiapipeline::SkiaVulkanPipeline>(thread));
104 void CanvasContext::invokeFunctor(const RenderThread& thread, Functor* functor) { argument
109 OpenGLPipeline::invokeFunctor(thread, functor);
112 skiapipeline::SkiaOpenGLPipeline::invokeFunctor(thread, functo
123 prepareToDraw(const RenderThread& thread, Bitmap* bitmap) argument
139 CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode, IContextFactory* contextFactory, std::unique_ptr<IRenderPipeline> renderPipeline) argument
582 trimMemory(RenderThread& thread, int level) argument
[all...]
H A DOpenGLPipeline.cpp34 OpenGLPipeline::OpenGLPipeline(RenderThread& thread) argument
35 : mEglManager(thread.eglManager())
36 , mRenderThread(thread) {
255 void OpenGLPipeline::prepareToDraw(const RenderThread& thread, Bitmap* bitmap) { argument
256 if (Caches::hasInstance() && thread.eglManager().hasEglContext()) {
262 void OpenGLPipeline::invokeFunctor(const RenderThread& thread, Functor* functor) { argument
264 if (thread.eglManager().hasEglContext()) {
267 thread.renderState().invokeFunctor(functor, mode, nullptr);
H A DCanvasContext.h30 #include "thread/Task.h"
31 #include "thread/TaskProcessor.h"
67 static CanvasContext* create(RenderThread& thread, bool translucent,
108 static void invokeFunctor(const RenderThread& thread, Functor* functor);
110 static void prepareToDraw(const RenderThread& thread, Bitmap* bitmap);
146 static void trimMemory(RenderThread& thread, int level);
198 CanvasContext(RenderThread& thread, bool translucent, RenderNode* rootRenderNode,
H A DDrawFrameTask.cpp41 void DrawFrameTask::setContext(RenderThread* thread, CanvasContext* context, argument
43 mRenderThread = thread;
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseLockTest.java66 * same database at the same time with the same prioritization, neither thread
90 * This function is to create the second thread for testLockFairness() test.
93 Thread thread = new DatabaseFairnessThread();
94 thread.start();
147 * This function is to create the second thread for testLockLatency() test.
150 Thread thread = new DatabaseLatencyThread();
151 thread.start();
/frameworks/base/libs/hwui/
H A DDeviceInfo.cpp21 #include <thread>
/frameworks/native/libs/vr/libpdx/
H A Dthread_local_buffer_tests.cpp3 #include <thread>
15 // Returns the unique address of the thread-local buffer. Used to test the
16 // correct behavior of the type-based thread local storage slot mapping
23 // Returns the raw value of the thread local buffer. Used to test the behavior
52 // Tests that index and type-based thread-local slot addressing works by
82 std::thread thread([&id2]() mutable {
85 thread.join();
92 // Tests that thread-local buffers are allocated at the first buffer request.
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLPipeline.h27 SkiaOpenGLPipeline(renderthread::RenderThread& thread);
48 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor);
H A DSkiaVulkanPipeline.h28 SkiaVulkanPipeline(renderthread::RenderThread& thread);
49 static void invokeFunctor(const renderthread::RenderThread& thread, Functor* functor);
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
H A DSkiaPipeline.h30 SkiaPipeline(renderthread::RenderThread& thread);
54 static void prepareToDraw(const renderthread::RenderThread& thread, Bitmap* bitmap);
/frameworks/base/libs/hwui/tests/unit/
H A DGpuMemoryTrackerTests.cpp42 // current thread can spoof being a GPU thread
45 TestUtils::runOnRenderThread([](RenderThread& thread) {
46 thread.eglManager().destroy();
/frameworks/base/media/java/android/mtp/
H A DMtpServer.java56 Thread thread = new Thread(this, "MtpServer");
57 thread.start();
/frameworks/base/tools/layoutlib/bridge/src/android/os/
H A DHandlerThread_Delegate.java44 for (HandlerThread thread : list) {
45 thread.quit();
57 // record the thread so that it can be quit() on clean up.
/frameworks/native/libs/vr/libvrflinger/include/dvr/
H A Dvr_flinger.h4 #include <thread>
27 // These functions are all called on surface flinger's main thread.
32 // Called on a binder thread.
50 std::thread dispatcher_thread_;
/frameworks/av/services/audioflinger/
H A DEffects.cpp59 AudioFlinger::EffectModule::EffectModule(ThreadBase *thread, argument
66 mThread(thread), mChain(chain), mId(id), mSessionId(sessionId),
73 mAudioFlinger(thread->mAudioFlinger)
85 &desc->uuid, sessionId, thread->id(), &mEffectInterface);
98 setOffloaded(thread->type() == ThreadBase::OFFLOAD, thread->id());
211 // unsafe method called when the effect parent thread has been destroyed
348 sp<ThreadBase> thread; local
357 thread = mThread.promote();
358 if (thread
487 sp<ThreadBase> thread = mThread.promote(); local
585 sp<ThreadBase> thread = mThread.promote(); local
1210 sp<ThreadBase> thread = effect->thread().promote(); local
1269 sp<ThreadBase> thread = effect->thread().promote(); local
1298 sp<ThreadBase> thread; local
1508 EffectChain(ThreadBase *thread, audio_session_t sessionId) argument
1571 sp<ThreadBase> thread = mThread.promote(); local
1580 clearInputBuffer_l(const sp<ThreadBase>& thread) argument
1598 sp<ThreadBase> thread = mThread.promote(); local
1656 createEffect_l(sp<EffectModule>& effect, ThreadBase *thread, effect_descriptor_t *desc, int id, audio_session_t sessionId, bool pinned) argument
1688 sp<ThreadBase> thread = mThread.promote(); local
2193 setThread(const sp<ThreadBase>& thread) argument
[all...]
H A DEffects.h45 EffectModule(ThreadBase *thread,
98 void setThread(const wp<ThreadBase>& thread) { mThread = thread; } argument
99 const wp<ThreadBase>& thread() { return mThread; } function in class:EffectModule
153 wp<ThreadBase> mThread; // parent thread
256 // There can be any number of EffectChain objects per output mixer thread (PlaybackThread).
267 EffectChain(ThreadBase *thread, audio_session_t sessionId);
288 ThreadBase *thread,
364 // isCompatibleWithThread_l() must be called with thread->mLock held
365 bool isCompatibleWithThread_l(const sp<ThreadBase>& thread) cons
[all...]
/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/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/base/libs/hwui/tests/microbench/
H A DFontBench.cpp28 TestUtils::runOnRenderThread([&state](renderthread::RenderThread& thread) {
/frameworks/rs/tests/lldb/cpp/InfiniteLoop/
H A DInfiniteLoop.cpp17 #include <thread>
/frameworks/native/libs/vr/libpdx_uds/
H A Dclient_channel_tests.cpp8 #include <thread>
86 dispatch_thread_ = std::thread(
99 std::thread dispatch_thread_;
150 std::vector<std::thread> threads;
158 for (auto& thread : threads)
159 thread.join();
/frameworks/base/core/java/android/widget/
H A DFilter.java104 HandlerThread thread = new HandlerThread(
106 thread.start();
107 mThreadHandler = new RequestHandler(thread.getLooper());
128 * <p>Invoked in a worker thread to filter the data according to the
132 * will then be published in the UI thread through
149 * <p>Invoked in the UI thread to publish the filtering results in the
211 * <p>Worker thread handler. When a new filtering request is posted from
265 * handled in the UI thread.</p>
270 * UI thread. The processing involves calling
/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;

Completed in 487 milliseconds

1234567