Lines Matching refs:OK

56         ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS,  in GetMinUndequeuedBufferCount()
108 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
110 ASSERT_EQ(OK, in TEST_F()
119 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
122 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
125 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
132 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 0)); in TEST_F()
135 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
138 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); 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()
163 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, 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()
201 EXPECT_EQ(OK, mConsumer->setMaxAcquiredBufferCount(1)); in TEST_F()
202 EXPECT_EQ(OK, mConsumer->setMaxAcquiredBufferCount(2)); in TEST_F()
203 EXPECT_EQ(OK, mConsumer->setMaxAcquiredBufferCount(minBufferCount)); in TEST_F()
204 EXPECT_EQ(OK, mConsumer->setMaxAcquiredBufferCount( in TEST_F()
211 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
213 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, in TEST_F()
228 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
229 ASSERT_EQ(OK, mProducer->detachBuffer(slot)); in TEST_F()
237 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
240 ASSERT_EQ(OK, buffer->unlock()); 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()
252 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, static_cast<nsecs_t>(0))); in TEST_F()
255 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
258 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
264 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
266 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, 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()
286 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, static_cast<nsecs_t>(0))); in TEST_F()
288 ASSERT_EQ(OK, mConsumer->detachBuffer(item.mBuf)); in TEST_F()
292 ASSERT_EQ(OK, item.mGraphicBuffer->lock( in TEST_F()
296 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()
302 ASSERT_EQ(OK, mConsumer->attachBuffer(&newSlot, item.mGraphicBuffer)); in TEST_F()
304 ASSERT_EQ(OK, mConsumer->releaseBuffer(newSlot, 0, EGL_NO_DISPLAY, in TEST_F()
310 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
313 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
316 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
322 ASSERT_EQ(OK, mConsumer->consumerConnect(dc, false)); in TEST_F()
324 ASSERT_EQ(OK, mProducer->connect(new DummyProducerListener, in TEST_F()
333 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
336 ASSERT_EQ(OK, buffer->lock(GraphicBuffer::USAGE_SW_WRITE_OFTEN, in TEST_F()
339 ASSERT_EQ(OK, buffer->unlock()); in TEST_F()
343 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
346 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, static_cast<nsecs_t>(0))); in TEST_F()
347 ASSERT_EQ(OK, mConsumer->detachBuffer(item.mBuf)); 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()
352 ASSERT_EQ(OK, mConsumer->acquireBuffer(&item, static_cast<nsecs_t>(0))); in TEST_F()
355 ASSERT_EQ(OK, item.mGraphicBuffer->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, in TEST_F()
358 ASSERT_EQ(OK, item.mGraphicBuffer->unlock()); in TEST_F()