/frameworks/base/libs/hwui/thread/ |
D | WorkQueue.h | 67 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
|
D | CommonPool.cpp | 63 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()
|
D | CommonPool.h | 117 ArrayQueue<Task, QUEUE_SIZE> mWorkQueue; variable
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 75 mWorkQueue.emplace_back(new C2Work); in SetUp() 178 mQueueCondition, mWorkQueue, mEos, mCsd, in handleWorkDone() 213 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon236960070111::Codec2VideoEncHidlTest 428 encodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P() 444 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1)); in TEST_P() 446 testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P() 455 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P() 490 if (!mWorkQueue.empty()) { in TEST_F() 491 work.swap(mWorkQueue.front()); in TEST_F() 492 mWorkQueue.pop_front(); in TEST_F() [all …]
|
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 85 mWorkQueue.emplace_back(new C2Work); in SetUp() 188 mQueueCondition, mWorkQueue, mEos, mCsd, in handleWorkDone() 221 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon79ad909d0111::Codec2VideoDecHidlTest 476 mComponent, mQueueLock, mQueueCondition, mWorkQueue, mFlushedIndices, in TEST_P() 483 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1)); in TEST_P() 485 testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P() 494 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P() 569 decodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_F() 583 if (!mWorkQueue.empty()) { in TEST_F() 584 work.swap(mWorkQueue.front()); in TEST_F() [all …]
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/ |
D | VtsHalMediaC2V1_0TargetAudioEncTest.cpp | 76 mWorkQueue.emplace_back(new C2Work); in SetUp() 135 mQueueCondition, mWorkQueue, mEos, mCsd, in handleWorkDone() 163 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anone2a8991d0111::Codec2AudioEncHidlTest 432 encodeNFrames(mComponent, mQueueLock, mQueueCondition, mWorkQueue, in TEST_P() 440 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1)); in TEST_P() 442 testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P() 450 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P() 485 if (!mWorkQueue.empty()) { in TEST_F() 486 work.swap(mWorkQueue.front()); in TEST_F() 487 mWorkQueue.pop_front(); in TEST_F() [all …]
|
D | VtsHalMediaC2V1_0TargetAudioDecTest.cpp | 82 mWorkQueue.emplace_back(new C2Work); in SetUp() 174 mQueueCondition, mWorkQueue, mEos, mCsd, in handleWorkDone() 214 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon38ecc9b30111::Codec2AudioDecHidlTest 567 mComponent, mQueueLock, mQueueCondition, mWorkQueue, mFlushedIndices, in TEST_P() 574 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue, 1)); in TEST_P() 576 testInputBuffer(mComponent, mQueueLock, mWorkQueue, in TEST_P() 583 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P() 679 mComponent, mQueueLock, mQueueCondition, mWorkQueue, mFlushedIndices, in TEST_F() 682 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_F() 698 if (!mWorkQueue.empty()) { in TEST_F() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.cpp | 46 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()
|
D | BenchmarkC2Common.h | 138 std::list<std::unique_ptr<C2Work>> mWorkQueue; variable
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | C2Decoder.cpp | 84 if (mWorkQueue.empty()) mQueueCondition.wait_for(l, MAX_RETRY * TIME_OUT); in decodeFrames() 85 if (!mWorkQueue.empty()) { in decodeFrames() 87 work.swap(mWorkQueue.front()); in decodeFrames() 88 mWorkQueue.pop_front(); in decodeFrames()
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Component.cpp | 238 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/ |
D | codec2.cpp | 103 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/codec2/hidl/1.0/vts/functional/component/ |
D | VtsHalMediaC2V1_0TargetComponentTest.cpp | 80 mWorkQueue.emplace_back(new C2Work); in SetUp() 103 mWorkQueue, mEos, mCsd, mFramesReceived); in handleWorkDone() 111 std::list<std::unique_ptr<C2Work>> mWorkQueue; member in __anon899a80290111::Codec2ComponentHidlTest 243 mComponent, mQueueLock, mWorkQueue, flags, isNullBuffer)); in TEST_P() 247 waitOnInputConsumption(mQueueLock, mQueueCondition, mWorkQueue)); in TEST_P()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 145 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/ |
D | WorkQueue.cpp | 161 Thread(canCallJava), mWorkQueue(workQueue) { in WorkThread() 168 return mWorkQueue->threadLoop(); in threadLoop()
|
D | WorkQueue.h | 97 WorkQueue* const mWorkQueue; variable
|
D | ResourceTable.h | 130 return mWorkQueue; in getWorkQueue() 638 std::queue<CompileResourceWorkItem> mWorkQueue; variable
|
D | ResourceTable.cpp | 4833 mWorkQueue.push(item); in versionForCompat() 4968 mWorkQueue.push(item); in modifyForCompat() 5242 mWorkQueue.push(workItem); in processBundleFormatImpl()
|
/frameworks/av/media/codec2/components/base/include/ |
D | SimpleC2Component.h | 236 Mutexed<WorkQueue> mWorkQueue; variable
|