Lines Matching refs:get

135     int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,  in TEST_F()
143 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
174 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), in TEST_F()
188 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), NULL); in TEST_F()
215 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F()
216 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F()
220 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
222 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
226 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
230 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
232 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
233 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
234 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
238 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
242 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
244 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
245 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
246 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
250 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
254 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
256 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
257 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
258 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
262 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
266 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
268 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
269 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
270 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
274 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
275 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
276 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
277 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
281 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
285 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
287 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
288 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
289 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
293 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
294 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
295 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
299 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
303 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
307 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
311 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
316 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
317 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
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()
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()
337 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
338 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
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()
349 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 12, 24)); in TEST_F()
350 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); 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()
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()
364 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
365 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 0)); in TEST_F()
366 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
373 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 1)); in TEST_F()
374 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); 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()
388 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
389 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
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()
409 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
410 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
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()
430 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
431 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
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()
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()
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()
455 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
456 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
457 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &firstBuf)); in TEST_F()
458 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), firstBuf, -1)); in TEST_F()
460 EXPECT_EQ(mST->getCurrentBuffer().get(), firstBuf); in TEST_F()
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()
475 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
476 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
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()
501 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
503 native_window_set_crop(mANW.get(), &rect); in TEST_F()
505 ASSERT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 4, 4)); in TEST_F()
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()
556 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
557 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
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()
580 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
581 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
611 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
612 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
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()
616 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers in TEST_F()
661 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
662 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
663 ASSERT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 8)); in TEST_F()
664 ASSERT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
665 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
666 ASSERT_EQ(OK, native_window_set_crop(mANW.get(), &crop)); in TEST_F()
667 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
669 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers in TEST_F()
714 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); in TEST_F()
715 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); in TEST_F()
716 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
768 static_cast<ANativeWindow*>(stc.get()), NULL); in SetUp()