Home
last modified time | relevance | path

Searched refs:mWorkQueue (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/libs/hwui/thread/
DWorkQueue.h67 if (mWorkQueue.empty()) return; in process()
68 toProcess = std::move(mWorkQueue); in process()
72 mWorkQueue.reserve(std::distance(moveBack, std::end(toProcess)) + 5); in process()
73 std::move(moveBack, std::end(toProcess), std::back_inserter(mWorkQueue)); in process()
113 if (mWorkQueue.empty()) { in nextWakeup()
116 return std::begin(mWorkQueue)->runAt; in nextWakeup()
126 std::begin(mWorkQueue), std::end(mWorkQueue), in enqueue()
128 needsWakeup = std::begin(mWorkQueue) == insertAt; in enqueue()
129 mWorkQueue.emplace(insertAt, std::move(item)); in enqueue()
139 std::vector<WorkItem> mWorkQueue; variable
DCommonPool.cpp63 while (!mWorkQueue.hasSpace()) { in enqueue()
68 mWorkQueue.push(std::move(task)); in enqueue()
69 if (mWaitingThreads == THREAD_COUNT || (mWaitingThreads > 0 && mWorkQueue.size() > 1)) { in enqueue()
77 if (!mWorkQueue.hasWork()) { in workerLoop()
84 while (mWorkQueue.hasWork()) { in workerLoop()
85 auto work = mWorkQueue.pop(); in workerLoop()
DCommonPool.h117 ArrayQueue<Task, QUEUE_SIZE> mWorkQueue; variable
/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp69 mWorkQueue.emplace_back(new C2Work); in SetUp()
154 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
198 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon38ecc9b30111::Codec2AudioDecHidlTestBase
554 ASSERT_NO_FATAL_FAILURE(decodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P()
561 ASSERT_NO_FATAL_FAILURE(waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1)); in TEST_P()
562 ASSERT_NO_FATAL_FAILURE(testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P()
568 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue); in TEST_P()
626 ASSERT_NO_FATAL_FAILURE(decodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P()
629 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue); in TEST_P()
646 if (!mWorkQueue.empty()) { in TEST_P()
[all …]
DVtsHalMediaC2V1_0TargetAudioEncTest.cpp68 mWorkQueue.emplace_back(new C2Work); in SetUp()
131 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
164 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anone2a8991d0111::Codec2AudioEncHidlTestBase
447 mComponent, mQueueLock, mQueueCondition, mWorkQueue, mFlushedIndices, mLinearPool, in TEST_P()
452 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1); in TEST_P()
453 ASSERT_NO_FATAL_FAILURE(testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P()
460 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue); in TEST_P()
487 if (!mWorkQueue.empty()) { in TEST_P()
488 work.swap(mWorkQueue.front()); in TEST_P()
489 mWorkQueue.pop_front(); in TEST_P()
[all …]
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp78 mWorkQueue.emplace_back(new C2Work); in SetUp()
263 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
305 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon79ad909d0111::Codec2VideoDecHidlTestBase
648 ASSERT_NO_FATAL_FAILURE(decodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P()
655 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1); in TEST_P()
656 ASSERT_NO_FATAL_FAILURE(testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P()
664 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue); in TEST_P()
745 ASSERT_NO_FATAL_FAILURE(decodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P()
759 if (!mWorkQueue.empty()) { in TEST_P()
760 work.swap(mWorkQueue.front()); in TEST_P()
[all …]
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp70 mWorkQueue.emplace_back(new C2Work); in SetUp()
177 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
215 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon236960070111::Codec2VideoEncHidlTestBase
476 ASSERT_NO_FATAL_FAILURE(testInputBuffer(mComponent, mQueueLock, mWorkQueue, 0, false)); in TEST_P()
479 ASSERT_NO_FATAL_FAILURE(encodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P()
495 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1); in TEST_P()
496 ASSERT_NO_FATAL_FAILURE(testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P()
504 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue); in TEST_P()
535 if (!mWorkQueue.empty()) { in TEST_P()
536 work.swap(mWorkQueue.front()); in TEST_P()
[all …]
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkC2Common.cpp46 mWorkQueue.emplace_back(new C2Work); in setupCodec2()
77 queueSize = mWorkQueue.size(); in waitOnInputConsumption()
81 if (queueSize != mWorkQueue.size()) { in waitOnInputConsumption()
82 queueSize = mWorkQueue.size(); in waitOnInputConsumption()
106 mWorkQueue.push_back(std::move(work)); in handleWorkDone()
DBenchmarkC2Common.h138 std::list<std::unique_ptr<C2Work>> mWorkQueue; variable
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp86 if (mWorkQueue.empty()) mQueueCondition.wait_for(l, MAX_RETRY * TIME_OUT); in decodeFrames()
87 if (!mWorkQueue.empty()) { in decodeFrames()
89 work.swap(mWorkQueue.front()); in decodeFrames()
90 mWorkQueue.pop_front(); in decodeFrames()
/frameworks/av/media/codec2/components/base/
DSimpleC2Component.cpp238 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in queue_nb()
266 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in flush_sm()
296 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in drain_nb()
340 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in stop()
361 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in reset()
395 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in finish()
420 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in cloneAndSend()
444 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in processQueue()
546 Mutexed<WorkQueue>::Locked queue(mWorkQueue); in processQueue()
/frameworks/av/media/codec2/components/cmds/
Dcodec2.cpp103 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon2aac90ef0111::SimplePlayer
227 mWorkQueue.emplace_back(new C2Work); in play()
283 mWorkQueue.push_back(std::move(work)); in play()
332 if (!mWorkQueue.empty()) { in play()
333 work.swap(mWorkQueue.front()); in play()
334 mWorkQueue.pop_front(); in play()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DC2Encoder.cpp145 if (mWorkQueue.empty()) mQueueCondition.wait_for(l, MAX_RETRY * TIME_OUT); in encodeFrames()
146 if (!mWorkQueue.empty()) { in encodeFrames()
148 work.swap(mWorkQueue.front()); in encodeFrames()
149 mWorkQueue.pop_front(); in encodeFrames()
/frameworks/base/tools/aapt/
DWorkQueue.cpp161 Thread(canCallJava), mWorkQueue(workQueue) { in WorkThread()
168 return mWorkQueue->threadLoop(); in threadLoop()
DWorkQueue.h97 WorkQueue* const mWorkQueue; variable
DResourceTable.h130 return mWorkQueue; in getWorkQueue()
638 std::queue<CompileResourceWorkItem> mWorkQueue; variable
DResourceTable.cpp4833 mWorkQueue.push(item); in versionForCompat()
4968 mWorkQueue.push(item); in modifyForCompat()
5242 mWorkQueue.push(workItem); in processBundleFormatImpl()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/component/
DVtsHalMediaC2V1_0TargetComponentTest.cpp75 mWorkQueue.emplace_back(new C2Work); in SetUp()
100 workDone(mComponent, work, mFlushedIndices, mQueueLock, mQueueCondition, mWorkQueue, in handleWorkDone()
111 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon899a80290111::Codec2ComponentHidlTestBase
342 testInputBuffer(mComponent, mQueueLock, mWorkQueue, flags, isNullBuffer)); in TEST_P()
345 ASSERT_NO_FATAL_FAILURE(waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P()
/frameworks/av/media/codec2/components/base/include/
DSimpleC2Component.h236 Mutexed<WorkQueue> mWorkQueue; variable