Lines Matching refs:anw
66 sp<ANativeWindow> anw(mSurface);
68 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
77 sp<ANativeWindow> anw(mSurface);
79 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
87 sp<ANativeWindow> anw(mSurface);
99 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(),
101 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3));
104 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf);
109 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0));
110 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(),
114 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1));
118 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(),
120 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
127 sp<ANativeWindow> anw(mSurface);
129 int err = anw->query(anw.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result);