Lines Matching refs:anw
379 sp<ANativeWindow> anw = producer; in ImageWriter_init() local
381 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init()
388 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init()
398 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) { in ImageWriter_init()
411 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in ImageWriter_init()
422 res = anw->query(anw.get(), in ImageWriter_init()
432 res = native_window_set_buffer_count(anw.get(), totalBufferCount); in ImageWriter_init()
454 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage() local
457 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
528 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage() local
541 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage()
558 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_queueImage() local
574 res = native_window_set_buffers_timestamp(anw.get(), timestampNs); in ImageWriter_queueImage()
586 res = native_window_set_crop(anw.get(), &cropRect); in ImageWriter_queueImage()
592 res = native_window_set_buffers_transform(anw.get(), transform); in ImageWriter_queueImage()
598 res = native_window_set_scaling_mode(anw.get(), scalingMode); in ImageWriter_queueImage()
605 res = anw->queueBuffer(anw.get(), buffer, fenceFd); in ImageWriter_queueImage()
667 sp < ANativeWindow > anw = surface; in ImageWriter_attachAndQueueImage() local
672 res = native_window_set_buffers_timestamp(anw.get(), timestampNs); in ImageWriter_attachAndQueueImage()
683 res = native_window_set_crop(anw.get(), &cropRect); in ImageWriter_attachAndQueueImage()
689 res = native_window_set_buffers_transform(anw.get(), transform); in ImageWriter_attachAndQueueImage()
695 res = native_window_set_scaling_mode(anw.get(), scalingMode); in ImageWriter_attachAndQueueImage()
702 res = anw->queueBuffer(anw.get(), buffer->mGraphicBuffer.get(), /*fenceFd*/ in ImageWriter_attachAndQueueImage()