• Home
  • Raw
  • Download

Lines Matching refs:get

134     int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,  in TEST_F()
142 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
173 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), in TEST_F()
187 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), nullptr); in TEST_F()
214 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F()
215 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F()
219 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
221 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
225 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
229 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
231 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
232 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
233 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
237 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
241 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
243 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
244 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
245 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
249 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
253 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
255 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
256 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
257 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
261 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
265 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
267 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
268 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
269 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
273 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
274 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
275 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
276 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
280 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
284 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
286 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 0)); in TEST_F()
287 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), PIXEL_FORMAT_RGB_565)); in TEST_F()
288 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
292 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
293 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8)); in TEST_F()
294 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
298 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
302 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
306 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
310 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
315 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
316 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
317 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
318 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
320 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
321 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
323 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
324 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
330 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
331 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
336 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
337 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
339 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
340 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
346 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
347 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
348 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 12, 24)); in TEST_F()
349 EXPECT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
350 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
351 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
357 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
358 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1)); in TEST_F()
363 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
364 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 0)); in TEST_F()
365 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
367 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
368 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
372 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 1)); in TEST_F()
373 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
375 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
376 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
377 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
378 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
387 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
388 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
389 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
390 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
391 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
395 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
396 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
397 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
399 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
401 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
403 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
408 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
409 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
410 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
411 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
412 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
416 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
418 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
419 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
421 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
422 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
424 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
429 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
430 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
431 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
432 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
434 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[0]); in TEST_F()
436 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
438 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
440 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
442 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
444 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
446 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[2]); in TEST_F()
454 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
455 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
456 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &firstBuf)); in TEST_F()
457 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), firstBuf, -1)); in TEST_F()
459 EXPECT_EQ(mST->getCurrentBuffer().get(), firstBuf); in TEST_F()
460 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
461 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
462 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
463 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
464 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
465 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1)); in TEST_F()
474 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
475 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
478 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
479 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
480 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
482 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
483 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
486 EXPECT_EQ(mST->getCurrentBuffer().get(), buf[1]); in TEST_F()
488 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2])); in TEST_F()
493 native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
495 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1)); in TEST_F()
496 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1)); in TEST_F()
500 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
502 native_window_set_crop(mANW.get(), &rect); in TEST_F()
504 ASSERT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 4, 4)); in TEST_F()
507 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
508 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf, -1)); in TEST_F()
555 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
556 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3)); in TEST_F()
558 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
559 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
565 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
566 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
568 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1])); in TEST_F()
569 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1)); in TEST_F()
579 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
580 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
581 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
582 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
610 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
611 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
612 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
613 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
615 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers in TEST_F()
648 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
649 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4)); in TEST_F()
650 ASSERT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 8)); in TEST_F()
651 ASSERT_EQ(OK, native_window_set_buffers_format(mANW.get(), 0)); in TEST_F()
652 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0])); in TEST_F()
653 ASSERT_EQ(OK, native_window_set_crop(mANW.get(), &crop)); in TEST_F()
654 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1)); in TEST_F()
656 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers in TEST_F()
699 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); in TEST_F()
700 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); in TEST_F()
701 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
753 static_cast<ANativeWindow*>(stc.get()), nullptr); in SetUp()