Home
last modified time | relevance | path

Searched refs:CommonPool (Results 1 – 7 of 7) 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()
57 TEST(CommonPool, singleThread) { in TEST() argument
63 auto f1 = CommonPool::async([&] { in TEST()
82 auto f2 = CommonPool::async([] { in TEST()
104 static constexpr auto QUEUE_COUNT = CommonPool::THREAD_COUNT + CommonPool::QUEUE_SIZE + 10; in TEST()
110 futures[i] = CommonPool::async([&] { in TEST()
126 EXPECT_GT(queuedCount.load(), CommonPool::QUEUE_SIZE); in TEST()
[all …]
/frameworks/base/libs/hwui/thread/
DCommonPool.cpp28 CommonPool::CommonPool() { in CommonPool() function in android::uirenderer::CommonPool
31 CommonPool* pool = this; in CommonPool()
52 CommonPool& CommonPool::instance() { in instance()
53 static CommonPool pool; in instance()
57 void CommonPool::post(Task&& task) { in post()
61 void CommonPool::enqueue(Task&& task) { in enqueue()
74 void CommonPool::workerLoop() { in workerLoop()
93 void CommonPool::waitForIdle() { in waitForIdle()
97 void CommonPool::doWaitForIdle() { in doWaitForIdle()
DCommonPool.h75 class CommonPool {
76 PREVENT_COPY_AND_ASSIGN(CommonPool);
104 static CommonPool& instance();
106 CommonPool();
107 ~CommonPool() {} in ~CommonPool()
/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp88 virtual void add(std::function<void(void)> func) override { CommonPool::post(std::move(func)); } in add()
DCanvasContext.cpp654 mFrameFences.push_back(CommonPool::async(std::move(func))); in enqueueFrameWork()
/frameworks/base/libs/hwui/
DAndroid.bp194 "thread/CommonPool.cpp",
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp226 CommonPool::post([data, filename] { in savePictureAsync()