Lines Matching refs:mProducer
86 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
104 return mProducer->connect(TEST_TOKEN, in TryConnectProducer()
199 return mProducer->dequeueBuffer(&result->slot, &result->fence, async, w, h, format, usage); in dequeueBuffer()
206 sp<IGraphicBufferProducer> mProducer; member in android::IGraphicBufferProducerTest
214 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_F()
220 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_F()
233 EXPECT_EQ(BAD_VALUE, mProducer->connect(TEST_TOKEN, in TEST_F()
240 EXPECT_EQ(NO_INIT, mProducer->connect(TEST_TOKEN, in TEST_F()
249 ASSERT_OK(mProducer->disconnect(TEST_API)); in TEST_F()
257 ASSERT_EQ(BAD_VALUE, mProducer->disconnect(TEST_API_OTHER)); in TEST_F()
259 ASSERT_EQ(BAD_VALUE, mProducer->disconnect(/*api*/0xDEADBEEF)); in TEST_F()
271 EXPECT_OK(mProducer->query(NATIVE_WINDOW_WIDTH, &value)); in TEST_F()
274 EXPECT_OK(mProducer->query(NATIVE_WINDOW_HEIGHT, &value)); in TEST_F()
277 EXPECT_OK(mProducer->query(NATIVE_WINDOW_FORMAT, &value)); in TEST_F()
280 EXPECT_OK(mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &value)); in TEST_F()
284 EXPECT_OK(mProducer->query(NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value)); in TEST_F()
287 EXPECT_OK(mProducer->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &value)); in TEST_F()
300 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/-1, &value)); in TEST_F()
301 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/0xDEADBEEF, &value)); in TEST_F()
302 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_QUERY_LAST_OFF_BY_ONE, &value)); in TEST_F()
305 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, &value)); in TEST_F()
306 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_CONCRETE_TYPE, &value)); in TEST_F()
307 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_DEFAULT_WIDTH, &value)); in TEST_F()
308 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_DEFAULT_HEIGHT, &value)); in TEST_F()
309 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_TRANSFORM_HINT, &value)); in TEST_F()
313 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_FORMAT, /*value*/NULL)); in TEST_F()
318 EXPECT_EQ(NO_INIT, mProducer->query(NATIVE_WINDOW_FORMAT, &value)); in TEST_F()
333 mProducer->dequeueBuffer(&dequeuedSlot, &dequeuedFence, in TEST_F()
343 ASSERT_OK(mProducer->requestBuffer(dequeuedSlot, &dequeuedBuffer)); in TEST_F()
350 ASSERT_OK(mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
367 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
379 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(/*slot*/-1, input, &output)); in TEST_F()
380 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(/*slot*/0xDEADBEEF, input, &output)); in TEST_F()
381 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(BufferQueue::NUM_BUFFER_SLOTS, in TEST_F()
390 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(/*slot*/0, input, &output)); in TEST_F()
398 mProducer->dequeueBuffer(&dequeuedSlot, &dequeuedFence, in TEST_F()
408 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
413 ASSERT_OK(mProducer->requestBuffer(dequeuedSlot, &dequeuedBuffer)); in TEST_F()
423 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
432 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
436 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
446 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
457 EXPECT_EQ(NO_INIT, mProducer->queueBuffer(dequeuedSlot, input, &output)); in TEST_F()
468 mProducer->dequeueBuffer(&dequeuedSlot, &dequeuedFence, in TEST_F()
475 mProducer->cancelBuffer(dequeuedSlot, dequeuedFence); in TEST_F()
481 EXPECT_OK(mProducer->setBufferCount(0)) << "bufferCount: " << 0; in TEST_F()
485 ASSERT_OK(mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &minBuffers)); in TEST_F()
490 ASSERT_OK(mProducer->setBufferCount(minBuffers)) << "bufferCount: " << minBuffers; in TEST_F()
510 mProducer->cancelBuffer(result.slot, result.fence); in TEST_F()
513 ASSERT_OK(mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS)); in TEST_F()
521 mProducer->dequeueBuffer(&dequeuedSlot, &dequeuedFence, in TEST_F()
531 ASSERT_OK(mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &minBuffers)); in TEST_F()
537 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(-1)) << "bufferCount: " << -1; in TEST_F()
538 …EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(minBuffers - 1)) << "bufferCount: " << minBuffers -… in TEST_F()
539 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(BufferQueue::NUM_BUFFER_SLOTS + 1)) in TEST_F()
548 mProducer->dequeueBuffer(&dequeuedSlot, &dequeuedFence, in TEST_F()
556 EXPECT_EQ(BAD_VALUE, mProducer->setBufferCount(minBuffers)) << "bufferCount: " << minBuffers; in TEST_F()
562 EXPECT_EQ(NO_INIT, mProducer->setBufferCount(minBuffers)) << "bufferCount: " << minBuffers; in TEST_F()