Lines Matching refs:anw
444 void configureANW(const sp<ANativeWindow>& anw, in configureANW() argument
448 err = native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU); in configureANW()
451 err = native_window_set_buffers_dimensions(anw.get(), in configureANW()
455 err = native_window_set_buffers_format(anw.get(), params.format); in configureANW()
458 err = native_window_set_usage(anw.get(), in configureANW()
463 err = anw.get()->query(anw.get(), in configureANW()
470 err = native_window_set_buffer_count(anw.get(), in configureANW()
478 void produceOneFrame(const sp<ANativeWindow>& anw, in produceOneFrame() argument
483 ALOGVV("Dequeue buffer from %p", anw.get()); in produceOneFrame()
484 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceOneFrame()
494 ALOGVV("Lock buffer from %p for write", anw.get()); in produceOneFrame()
521 ALOGVV("Unlock buffer from %p", anw.get()); in produceOneFrame()
525 ALOGVV("Set timestamp to %p", anw.get()); in produceOneFrame()
526 err = native_window_set_buffers_timestamp(anw.get(), timestamp); in produceOneFrame()
529 ALOGVV("Queue buffer to %p", anw.get()); in produceOneFrame()
530 err = anw->queueBuffer(anw.get(), buf->getNativeBuffer(), -1); in produceOneFrame()