Lines Matching refs:anw
58 sp<ANativeWindow> anw(mSurface);
60 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
69 sp<ANativeWindow> anw(mSurface);
71 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
79 sp<ANativeWindow> anw(mSurface);
93 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(),
95 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3));
98 status_t err = anw->dequeueBuffer(anw.get(), &buf);
103 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0));
104 ASSERT_EQ(NO_ERROR, anw->dequeueBuffer(anw.get(), &buf));
107 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf));
111 ASSERT_EQ(NO_ERROR, anw->dequeueBuffer(anw.get(), &buf));
112 ASSERT_EQ(NO_ERROR, anw->lockBuffer(anw.get(), buf));
113 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf));
123 sp<ANativeWindow> anw(mSurface);
125 int err = anw->query(anw.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result);