Home
last modified time | relevance | path

Searched refs:CommonPool (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DCommonPoolTests.cpp30 TEST(CommonPool, post) { in TEST() argument
32 CommonPool::post([&ran] { ran = true; }); in TEST()
45 futures[i] = CommonPool::async([] { in TEST()
53 EXPECT_EQ(threads.size(), CommonPool::THREAD_COUNT); in TEST()
59 TEST(CommonPool, DISABLED_singleThread) { in TEST() argument
65 auto f1 = CommonPool::async([&] { in TEST()
84 auto f2 = CommonPool::async([] { in TEST()
106 static constexpr auto QUEUE_COUNT = CommonPool::THREAD_COUNT + CommonPool::QUEUE_SIZE + 10; in TEST()
112 futures[i] = CommonPool::async([&] { in TEST()
128 EXPECT_GT(queuedCount.load(), CommonPool::QUEUE_SIZE); in TEST()
[all …]
/frameworks/base/libs/hwui/thread/
DCommonPool.cpp26 CommonPool::CommonPool() : CommonPoolBase() { in CommonPool() function in android::uirenderer::CommonPool
29 CommonPool* pool = this; in CommonPool()
55 CommonPool& CommonPool::instance() { in instance()
56 static CommonPool pool; in instance()
60 void CommonPool::post(Task&& task) { in post()
64 std::vector<int> CommonPool::getThreadIds() { in getThreadIds()
68 void CommonPool::enqueue(Task&& task) { in enqueue()
81 void CommonPool::workerLoop() { in workerLoop()
100 void CommonPool::waitForIdle() { in waitForIdle()
104 void CommonPool::doWaitForIdle() { in doWaitForIdle()
DCommonPool.h77 class CommonPool : private CommonPoolBase {
78 PREVENT_COPY_AND_ASSIGN(CommonPool);
108 static CommonPool& instance();
110 CommonPool();
111 ~CommonPool() { in ~CommonPool()
/frameworks/native/libs/renderengine/skia/debug/
DCommonPool.cpp33 CommonPool::CommonPool() { in CommonPool() function in android::renderengine::skia::CommonPool
36 CommonPool* pool = this; in CommonPool()
53 CommonPool& CommonPool::instance() { in instance()
54 static CommonPool pool; in instance()
58 void CommonPool::post(Task&& task) { in post()
62 void CommonPool::enqueue(Task&& task) { in enqueue()
76 void CommonPool::workerLoop() { in workerLoop()
DCommonPool.h42 class CommonPool {
43 PREVENT_COPY_AND_ASSIGN(CommonPool);
53 static CommonPool& instance();
55 CommonPool();
56 ~CommonPool() {} in ~CommonPool()
DCaptureTimer.cpp33 CommonPool::post([=]() { in setTimeout()
DSkiaCapture.cpp161 CommonPool::post([doc = std::move(mMultiPic), stream, name = std::move(mCaptureFile)] { in writeToFile()
/frameworks/base/libs/hwui/renderthread/
DHintSessionWrapper.cpp115 mPermanentSessionTids = CommonPool::getThreadIds(); in init()
124 mHintSessionFuture = CommonPool::async([=, this, tids = mPermanentSessionTids] { in init()
163 mSetThreadsFuture = CommonPool::async([this, tids = std::move(combinedTids)] { in setActiveFunctorThreads()
DCacheManager.cpp98 virtual void add(std::function<void(void)> func) override { CommonPool::post(std::move(func)); } in add()
DCanvasContext.cpp1052 mFrameFences.push_back(CommonPool::async(std::move(func))); in enqueueFrameWork()
/frameworks/native/libs/renderengine/
DAndroid.bp99 "skia/debug/CommonPool.cpp",
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp126 CommonPool::post([data, filename] { in savePictureAsync()
314 CommonPool::post([doc = std::move(mMultiPic), stream]{ in endCapture()
/frameworks/base/libs/hwui/
DAndroid.bp569 "thread/CommonPool.cpp",