Lines Matching refs:anw
68 sp<ANativeWindow> anw(mSurface); in TEST_F() local
70 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
79 sp<ANativeWindow> anw(mSurface); in TEST_F() local
81 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
89 sp<ANativeWindow> anw(mSurface); in TEST_F() local
104 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F()
106 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F()
109 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); in TEST_F()
114 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F()
115 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), in TEST_F()
119 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1)); in TEST_F()
123 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), in TEST_F()
125 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1)); in TEST_F()
132 sp<ANativeWindow> anw(mSurface); in TEST_F() local
134 int err = anw->query(anw.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
149 sp<ANativeWindow> anw(s); in TEST_F() local
152 int err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &flags); in TEST_F()