Home
last modified time | relevance | path

Searched refs:runSync (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp51 mContext = mRenderThread.queue().runSync([=, this]() -> CanvasContext* { in RenderProxy()
71 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext()
81 return mRenderThread.queue().runSync([this]() -> bool { in loadSystemProperties()
93 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName()
136 return mRenderThread.queue().runSync([this]() -> bool { return mContext->pauseSurface(); }); in pause()
140 mRenderThread.queue().runSync([this, stopped]() { mContext->setStopped(stopped); }); in setStopped()
161 return mRenderThread.queue().runSync( in setColorMode()
189 mRenderThread.queue().runSync([this]() { mContext->destroy(); }); in destroy()
199 return mRenderThread.queue().runSync([this]() -> auto { in createTextureLayer()
205 mRenderThread.queue().runSync([&]() { mContext->buildLayer(node); }); in buildLayer()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DThreadBaseTests.cpp63 TEST(ThreadBase, runSync) { in TEST() argument
67 auto result = queue().runSync([&otherTid]() -> auto { in TEST()
132 queue().runSync([c = std::move(counter)](){}); in TEST()
141 return queue().runSync([t = test]()->int { return t->getStrongCount(); }); in lifecycleTestHelper()
147 ASSERT_EQ(2, queue().runSync([dummyObject]() -> int { return dummyObject->getStrongCount(); })); in TEST()
DCommonPoolTests.cpp184 EXPECT_LT(1, CommonPool::runSync([obj] { return ObjectTracker::count(); })); in TEST()
/frameworks/base/libs/hwui/
DHardwareBitmapUploader.cpp153 mUploadThread->queue().runSync([this]() { in onBeginUpload()
189 EGLSyncKHR fence = mUploadThread->queue().runSync([&]() -> EGLSyncKHR { in onUploadHardwareBitmap()
247 mUploadThread->queue().runSync([this, &uploadSucceeded, bitmap, ahb]() { in onUploadHardwareBitmap()
/frameworks/base/libs/hwui/thread/
DCommonPool.h96 static auto runSync(F&& func) -> decltype(func()) {
DWorkQueue.h106 auto runSync(F&& func) -> decltype(func()) {
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h251 renderthread::RenderThread::getInstance().queue().runSync([&]() { task.run(); }); in runOnRenderThread()
256 rt.queue().runSync([&]() { rtCallback(rt); }); in runOnRenderThreadUnmanaged()