• Home
  • Raw
  • Download

Lines Matching refs:mProducer

56         ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS,  in GetMinUndequeuedBufferCount()
62 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue()
65 sp<IGraphicBufferProducer> mProducer; member in android::BufferQueueTest
100 mProducer = interface_cast<IGraphicBufferProducer>(binderProducer); in TEST_F()
101 EXPECT_TRUE(mProducer != NULL); in TEST_F()
111 mProducer->connect(NULL, NATIVE_WINDOW_API_CPU, false, &output)); in TEST_F()
117 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
119 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
146 mProducer->connect(new DummyProducerListener, NATIVE_WINDOW_API_CPU, false, in TEST_F()
148 mProducer->setBufferCount(4); in TEST_F()
159 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
161 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
162 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
167 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
169 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
170 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
213 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, in TEST_F()
216 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(-1)); // Index too low in TEST_F()
217 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer( in TEST_F()
219 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(0)); // Not dequeued in TEST_F()
225 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
227 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(slot)); // Not requested in TEST_F()
228 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
229 ASSERT_EQ(OK, mProducer->detachBuffer(slot)); in TEST_F()
230 ASSERT_EQ(BAD_VALUE, mProducer->detachBuffer(slot)); // Not dequeued in TEST_F()
234 ASSERT_EQ(BAD_VALUE, mProducer->requestBuffer(slot, &safeToClobberBuffer)); in TEST_F()
243 ASSERT_EQ(BAD_VALUE, mProducer->attachBuffer(NULL, safeToClobberBuffer)); in TEST_F()
244 ASSERT_EQ(BAD_VALUE, mProducer->attachBuffer(&newSlot, NULL)); in TEST_F()
246 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, buffer)); in TEST_F()
249 ASSERT_EQ(OK, mProducer->queueBuffer(newSlot, input, &output)); in TEST_F()
266 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, in TEST_F()
273 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
275 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
278 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
308 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
310 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
324 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, in TEST_F()
331 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
333 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
343 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
350 ASSERT_EQ(OK, mProducer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F()
351 ASSERT_EQ(OK, mProducer->queueBuffer(newSlot, input, &output)); in TEST_F()