• Home
  • Raw
  • Download

Lines Matching refs:buf

221     ANativeWindowBuffer* buf;  in TEST_F()  local
222 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
223 EXPECT_EQ(1, buf->width); in TEST_F()
224 EXPECT_EQ(1, buf->height); in TEST_F()
225 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
226 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
231 ANativeWindowBuffer* buf; in TEST_F() local
234 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
235 EXPECT_EQ(16, buf->width); in TEST_F()
236 EXPECT_EQ(8, buf->height); in TEST_F()
237 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
238 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
243 ANativeWindowBuffer* buf; in TEST_F() local
246 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
247 EXPECT_EQ(1, buf->width); in TEST_F()
248 EXPECT_EQ(1, buf->height); in TEST_F()
249 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
250 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
255 ANativeWindowBuffer* buf; in TEST_F() local
258 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
259 EXPECT_EQ(16, buf->width); in TEST_F()
260 EXPECT_EQ(8, buf->height); in TEST_F()
261 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
262 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
267 ANativeWindowBuffer* buf; in TEST_F() local
270 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
271 EXPECT_EQ(16, buf->width); in TEST_F()
272 EXPECT_EQ(8, buf->height); in TEST_F()
273 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
274 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
277 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
278 EXPECT_EQ(1, buf->width); in TEST_F()
279 EXPECT_EQ(1, buf->height); in TEST_F()
280 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
281 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
286 ANativeWindowBuffer* buf; in TEST_F() local
289 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
290 EXPECT_EQ(1, buf->width); in TEST_F()
291 EXPECT_EQ(1, buf->height); in TEST_F()
292 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
293 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
295 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
296 EXPECT_EQ(16, buf->width); in TEST_F()
297 EXPECT_EQ(8, buf->height); in TEST_F()
298 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
299 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
305 ANativeWindowBuffer* buf; in TEST_F() local
307 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
308 EXPECT_EQ(16, buf->width); in TEST_F()
309 EXPECT_EQ(8, buf->height); in TEST_F()
310 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
311 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
315 ANativeWindowBuffer* buf[2]; in TEST_F() local
318 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
319 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
320 EXPECT_NE(buf[0], buf[1]); in TEST_F()
321 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
322 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
324 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
325 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
326 EXPECT_NE(buf[0], buf[1]); in TEST_F()
327 EXPECT_EQ(16, buf[0]->width); in TEST_F()
328 EXPECT_EQ(16, buf[1]->width); in TEST_F()
329 EXPECT_EQ(8, buf[0]->height); in TEST_F()
330 EXPECT_EQ(8, buf[1]->height); in TEST_F()
331 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
332 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
336 ANativeWindowBuffer* buf[2]; in TEST_F() local
340 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
341 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
342 EXPECT_NE(buf[0], buf[1]); in TEST_F()
343 EXPECT_EQ(16, buf[0]->width); in TEST_F()
344 EXPECT_EQ(16, buf[1]->width); in TEST_F()
345 EXPECT_EQ(8, buf[0]->height); in TEST_F()
346 EXPECT_EQ(8, buf[1]->height); in TEST_F()
347 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
348 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
351 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
352 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
353 EXPECT_NE(buf[0], buf[1]); in TEST_F()
354 EXPECT_EQ(12, buf[0]->width); in TEST_F()
355 EXPECT_EQ(12, buf[1]->width); in TEST_F()
356 EXPECT_EQ(24, buf[0]->height); in TEST_F()
357 EXPECT_EQ(24, buf[1]->height); in TEST_F()
358 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
359 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
363 android_native_buffer_t* buf[3]; in TEST_F() local
368 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
369 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
376 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
377 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
378 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
379 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
387 android_native_buffer_t* buf[3]; in TEST_F() local
390 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
391 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
392 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
393 EXPECT_NE(buf[0], buf[1]); in TEST_F()
394 EXPECT_NE(buf[1], buf[2]); in TEST_F()
395 EXPECT_NE(buf[2], buf[0]); in TEST_F()
396 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
397 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
398 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
400 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
402 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
404 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
408 android_native_buffer_t* buf[3]; in TEST_F() local
411 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
412 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
413 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
414 EXPECT_NE(buf[0], buf[1]); in TEST_F()
415 EXPECT_NE(buf[1], buf[2]); in TEST_F()
416 EXPECT_NE(buf[2], buf[0]); in TEST_F()
417 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
419 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
420 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
422 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
423 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
425 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
429 android_native_buffer_t* buf[3]; in TEST_F() local
432 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
433 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
435 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
437 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
438 EXPECT_NE(buf[0], buf[1]); in TEST_F()
439 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
441 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
443 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
444 EXPECT_NE(buf[1], buf[2]); in TEST_F()
445 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
447 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
453 android_native_buffer_t* buf[3]; in TEST_F() local
461 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
462 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
463 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
464 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
465 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
466 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
467 EXPECT_NE(buf[0], buf[1]); in TEST_F()
468 EXPECT_NE(buf[1], buf[2]); in TEST_F()
469 EXPECT_NE(buf[2], buf[0]); in TEST_F()
470 EXPECT_EQ(firstBuf, buf[2]); in TEST_F()
474 android_native_buffer_t* buf[3]; in TEST_F() local
479 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
480 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
481 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
483 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
484 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
487 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
489 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
494 native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
496 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
497 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
507 android_native_buffer_t* buf; in TEST_F() local
508 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
509 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf, -1)); in TEST_F()
555 android_native_buffer_t* buf[3]; in TEST_F() local
559 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
560 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
566 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
567 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
569 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
570 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
578 android_native_buffer_t* buf[3]; in TEST_F() local
582 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
583 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
609 android_native_buffer_t* buf[3]; in TEST_F() local
613 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
614 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
653 android_native_buffer_t* buf[3]; in TEST_F() local
665 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
667 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()