Lines Matching refs:slot
142 int slot; in TEST_F() local
146 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
148 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
159 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
191 int slot; in TEST_F() local
201 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
203 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
204 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
209 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
211 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
212 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
241 int slot; in TEST_F() local
251 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
253 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
254 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
277 int slot; in TEST_F() local
286 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
288 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
289 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
296 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
298 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
299 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
342 int slot; in TEST_F() local
346 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
348 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(slot)); // Not requested in TEST_F()
349 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
350 ASSERT_EQ(OK, mProducer->detachBuffer(slot)); in TEST_F()
351 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(slot)); // Not dequeued in TEST_F()
355 ASSERT_EQ(BAD_VALUE, mProducer->requestBuffer(slot, &safeToClobberBuffer)); in TEST_F()
391 int slot; in TEST_F() local
395 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
397 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
401 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
431 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
433 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
450 int slot; in TEST_F() local
454 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
456 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
467 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
498 int slot; in TEST_F() local
504 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
510 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
514 mProducer->cancelBuffer(slot, fence); in TEST_F()
519 mProducer->dequeueBuffer(&slot, &fence, WIDTH * 2, HEIGHT * 2, 0, in TEST_F()
534 int slot; in TEST_F() local
537 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
541 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
546 ASSERT_EQ(OK, mProducer->detachBuffer(slot)); in TEST_F()
594 int slot; in TEST_F() local
597 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
599 ASSERT_EQ(sharedSlot, slot); in TEST_F()
661 int slot; in TEST_F() local
664 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
666 ASSERT_EQ(sharedSlot, slot); in TEST_F()
720 int slot; in TEST_F() local
723 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
725 ASSERT_EQ(sharedSlot, slot); in TEST_F()
757 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
759 auto result = mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
768 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
773 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
785 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
788 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
790 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
794 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
797 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
801 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
808 ASSERT_EQ(TIMED_OUT, mProducer->attachBuffer(&slot, buffer)); in TEST_F()
820 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
823 mProducer->dequeueBuffer(&slot, &sourceFence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
826 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
827 ASSERT_EQ(OK, mProducer->detachBuffer(slot)); in TEST_F()
831 slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
832 ASSERT_EQ(OK, mProducer->attachBuffer(&slot, buffer)); in TEST_F()
844 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
847 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
850 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &firstBuffer)); in TEST_F()
855 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
858 slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
860 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
863 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &secondBuffer)); in TEST_F()
870 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
899 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
927 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
929 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
944 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
946 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
953 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
955 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
957 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
959 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
974 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
976 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
979 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
981 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1066 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
1092 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1094 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1096 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1098 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1100 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1102 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1105 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1159 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
1184 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1186 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1189 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1191 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1202 virtual void onBufferDetached(int slot) { in onBufferDetached()
1203 mDetachedSlots.push_back(slot); in onBufferDetached()
1251 int slot; in TEST_F() local
1252 result = mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, in TEST_F()
1255 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
1260 result = mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, in TEST_F()
1273 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F() local
1281 status_t result = mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, in TEST_F()
1284 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
1285 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1291 ASSERT_EQ(slot, item.mSlot); in TEST_F()
1298 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1300 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1305 ASSERT_EQ(slot, item.mSlot); in TEST_F()
1312 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, TEST_PRODUCER_USAGE_BITS, nullptr, in TEST_F()
1314 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
1324 ASSERT_EQ(slot, item.mSlot); in TEST_F()