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