Lines Matching refs:mANW
49 mANW = mSTC;
88 mANW.clear();
112 sp<ANativeWindow> mANW;
127 int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
135 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result);
166 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(),
180 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), NULL);
207 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, 0, 0));
208 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, -1, 0));
209 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, -1));
210 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), -1, -1, 0));
211 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 0, 8, 0));
212 EXPECT_GT(OK, native_window_set_buffers_geometry(mANW.get(), 8, 0, 0));
217 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
221 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
226 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 16, 8, PIXEL_FORMAT_RGB_565));
227 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
231 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
236 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, PIXEL_FORMAT_RGB_565));
237 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
241 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
246 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 16, 8, 0));
247 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
251 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
256 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 16, 8, 0));
257 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
261 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
262 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, 0));
263 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
267 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
272 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 0, 0, PIXEL_FORMAT_RGB_565));
273 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
277 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
278 EXPECT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 16, 8));
279 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
283 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
290 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
294 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1));
299 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
300 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
301 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
303 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1));
304 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1));
306 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
307 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
313 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1));
314 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1));
319 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
321 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
322 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
328 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1));
329 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1));
330 EXPECT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 12, 24, 0));
331 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
332 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
338 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1));
339 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[1], -1));
344 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 0));
345 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
347 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
348 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
352 ASSERT_EQ(OK, mANW->setSwapInterval(mANW.get(), 1));
353 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3));
355 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
356 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
357 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
358 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
367 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
368 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
369 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
370 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
374 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
375 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
376 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1));
387 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
388 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
389 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
390 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
394 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
397 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
400 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1));
407 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3));
409 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
410 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
414 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW
416 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
420 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
422 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1));
432 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3));
433 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &firstBuf));
434 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), firstBuf, -1));
437 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
438 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
439 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
440 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
441 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
442 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1));
451 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3));
454 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
455 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
456 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
458 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1));
459 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
464 EXPECT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
468 EXPECT_EQ(-EBUSY, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
470 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[0], -1));
471 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf[2], -1));
476 native_window_set_crop(mANW.get(), &rect);
478 ASSERT_EQ(OK, native_window_set_buffers_dimensions(mANW.get(), 4, 4));
481 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf));
482 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf, -1));
529 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 3));
531 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
532 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
538 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
539 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
541 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[1]));
542 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[1], -1));
543 //ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[2]));
544 //ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[2], -1));
552 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
553 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
554 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
582 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
583 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
584 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
586 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers
619 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 4));
620 ASSERT_EQ(OK, native_window_set_buffers_geometry(mANW.get(), 8, 8, 0));
621 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf[0]));
622 ASSERT_EQ(OK, native_window_set_crop(mANW.get(), &crop));
623 ASSERT_EQ(OK, mANW->queueBuffer(mANW.get(), buf[0], -1));
625 ASSERT_EQ(OK, native_window_set_buffer_count(mANW.get(), 6)); // frees buffers