Lines Matching refs:buf

208     ANativeWindowBuffer* buf;  in TEST_F()  local
209 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
210 EXPECT_EQ(1, buf->width); in TEST_F()
211 EXPECT_EQ(1, buf->height); in TEST_F()
212 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
213 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
218 ANativeWindowBuffer* buf; in TEST_F() local
221 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
222 EXPECT_EQ(16, buf->width); in TEST_F()
223 EXPECT_EQ(8, buf->height); in TEST_F()
224 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
225 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
230 ANativeWindowBuffer* buf; in TEST_F() local
233 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
234 EXPECT_EQ(1, buf->width); in TEST_F()
235 EXPECT_EQ(1, buf->height); in TEST_F()
236 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
237 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
242 ANativeWindowBuffer* buf; in TEST_F() local
245 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
246 EXPECT_EQ(16, buf->width); in TEST_F()
247 EXPECT_EQ(8, buf->height); in TEST_F()
248 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
249 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
254 ANativeWindowBuffer* buf; in TEST_F() local
257 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
258 EXPECT_EQ(16, buf->width); in TEST_F()
259 EXPECT_EQ(8, buf->height); in TEST_F()
260 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
261 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
264 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
265 EXPECT_EQ(1, buf->width); in TEST_F()
266 EXPECT_EQ(1, buf->height); in TEST_F()
267 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
268 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
273 ANativeWindowBuffer* buf; in TEST_F() local
276 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
277 EXPECT_EQ(1, buf->width); in TEST_F()
278 EXPECT_EQ(1, buf->height); in TEST_F()
279 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
280 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
282 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
283 EXPECT_EQ(16, buf->width); in TEST_F()
284 EXPECT_EQ(8, buf->height); in TEST_F()
285 EXPECT_EQ(PIXEL_FORMAT_RGB_565, buf->format); in TEST_F()
286 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
292 ANativeWindowBuffer* buf; in TEST_F() local
294 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
295 EXPECT_EQ(16, buf->width); in TEST_F()
296 EXPECT_EQ(8, buf->height); in TEST_F()
297 EXPECT_EQ(PIXEL_FORMAT_RGBA_8888, buf->format); in TEST_F()
298 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
302 ANativeWindowBuffer* buf[2]; in TEST_F() local
305 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
306 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
307 EXPECT_NE(buf[0], buf[1]); in TEST_F()
308 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
309 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
311 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
312 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
313 EXPECT_NE(buf[0], buf[1]); in TEST_F()
314 EXPECT_EQ(16, buf[0]->width); in TEST_F()
315 EXPECT_EQ(16, buf[1]->width); in TEST_F()
316 EXPECT_EQ(8, buf[0]->height); in TEST_F()
317 EXPECT_EQ(8, buf[1]->height); in TEST_F()
318 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
319 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
323 ANativeWindowBuffer* buf[2]; in TEST_F() local
327 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
328 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
329 EXPECT_NE(buf[0], buf[1]); in TEST_F()
330 EXPECT_EQ(16, buf[0]->width); in TEST_F()
331 EXPECT_EQ(16, buf[1]->width); in TEST_F()
332 EXPECT_EQ(8, buf[0]->height); in TEST_F()
333 EXPECT_EQ(8, buf[1]->height); in TEST_F()
334 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
335 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
338 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
339 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
340 EXPECT_NE(buf[0], buf[1]); in TEST_F()
341 EXPECT_EQ(12, buf[0]->width); in TEST_F()
342 EXPECT_EQ(12, buf[1]->width); in TEST_F()
343 EXPECT_EQ(24, buf[0]->height); in TEST_F()
344 EXPECT_EQ(24, buf[1]->height); in TEST_F()
345 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
346 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
350 android_native_buffer_t* buf[3]; in TEST_F() local
355 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
356 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
363 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
364 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
365 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
366 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
374 android_native_buffer_t* buf[3]; in TEST_F() local
377 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
378 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
379 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
380 EXPECT_NE(buf[0], buf[1]); in TEST_F()
381 EXPECT_NE(buf[1], buf[2]); in TEST_F()
382 EXPECT_NE(buf[2], buf[0]); in TEST_F()
383 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
384 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
385 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
387 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
389 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
391 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
395 android_native_buffer_t* buf[3]; in TEST_F() local
398 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
399 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
400 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
401 EXPECT_NE(buf[0], buf[1]); in TEST_F()
402 EXPECT_NE(buf[1], buf[2]); in TEST_F()
403 EXPECT_NE(buf[2], buf[0]); in TEST_F()
404 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
406 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
407 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
409 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
410 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
412 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
416 android_native_buffer_t* buf[3]; in TEST_F() local
419 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
420 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
422 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
424 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
425 EXPECT_NE(buf[0], buf[1]); in TEST_F()
426 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
428 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
430 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
431 EXPECT_NE(buf[1], buf[2]); in TEST_F()
432 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
434 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
440 android_native_buffer_t* buf[3]; in TEST_F() local
448 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
449 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
450 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
451 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
452 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
453 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
454 EXPECT_NE(buf[0], buf[1]); in TEST_F()
455 EXPECT_NE(buf[1], buf[2]); in TEST_F()
456 EXPECT_NE(buf[2], buf[0]); in TEST_F()
457 EXPECT_EQ(firstBuf, buf[2]); in TEST_F()
461 android_native_buffer_t* buf[3]; in TEST_F() local
466 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
467 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
468 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
470 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
471 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
474 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
476 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
481 native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
483 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
484 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
494 android_native_buffer_t* buf; in TEST_F() local
495 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
496 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf, -1)); in TEST_F()
542 android_native_buffer_t* buf[3]; in TEST_F() local
546 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
547 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
553 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
554 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
556 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
557 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
565 android_native_buffer_t* buf[3]; in TEST_F() local
569 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
570 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
596 android_native_buffer_t* buf[3]; in TEST_F() local
600 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
601 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
628 android_native_buffer_t* buf[3]; in TEST_F() local
640 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
642 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()