Lines Matching refs:params

62         CpuConsumerTestParams params = GetParam();
65 params.width, params.height,
66 params.maxLockedBuffers, params.format);
70 mCC = new CpuConsumer(consumer, params.maxLockedBuffers);
449 const CpuConsumerTestParams& params,
456 params.width, params.height);
459 err = native_window_set_buffers_format(anw.get(), params.format);
483 const CpuConsumerTestParams& params,
502 switch (params.format) {
504 fillYV12Buffer(img, params.width, params.height, *stride);
507 fillBayerRawBuffer(img, params.width, params.height, buf->getStride());
510 fillGreyscaleBuffer<uint8_t>(img, params.width, params.height,
514 fillGreyscaleBuffer<uint16_t>((uint16_t*)img, params.width,
515 params.height, buf->getStride(),
519 fillRgba8888Buffer(img, params.width, params.height, buf->getStride());
542 CpuConsumerTestParams params = GetParam();
546 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, 1));
552 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time,
562 EXPECT_EQ(params.width, b.width);
563 EXPECT_EQ(params.height, b.height);
564 EXPECT_EQ(params.format, b.format);
576 CpuConsumerTestParams params = GetParam();
581 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, numInQueue));
590 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time[i],
603 EXPECT_EQ(params.width, b.width);
604 EXPECT_EQ(params.height, b.height);
605 EXPECT_EQ(params.format, b.format);
619 CpuConsumerTestParams params = GetParam();
623 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, params.maxLockedBuffers + 1));
630 for (int i = 0; i < params.maxLockedBuffers + 1; i++) {
632 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time,
638 CpuConsumer::LockedBuffer *b = new CpuConsumer::LockedBuffer[params.maxLockedBuffers];
639 for (int i = 0; i < params.maxLockedBuffers; i++) {
645 EXPECT_EQ(params.width, b[i].width);
646 EXPECT_EQ(params.height, b[i].height);
647 EXPECT_EQ(params.format, b[i].format);
654 ALOGV("Locking frame %d (too many)", params.maxLockedBuffers);
663 ALOGV("Locking frame %d (should work now)", params.maxLockedBuffers);
668 EXPECT_EQ(params.width, bTooMuch.width);
669 EXPECT_EQ(params.height, bTooMuch.height);
670 EXPECT_EQ(params.format, bTooMuch.format);
680 ALOGV("Locking frame %d (no more available)", params.maxLockedBuffers + 1);
684 for (int i = 1; i < params.maxLockedBuffers; i++) {