Lines Matching defs:anw

138  *    anw - a surface to produce a frame in.
148 static status_t produceFrame(const sp<ANativeWindow>& anw,
158 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize);
160 if (anw == 0) {
161 ALOGE("%s: anw must not be NULL", __FUNCTION__);
182 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb);
197 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt);
233 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get());
261 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get());
293 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get());
337 ALOGV("%s: Unlock buffer from %p", __FUNCTION__, anw.get());
344 ALOGV("%s: Queue buffer to %p", __FUNCTION__, anw.get());
345 err = anw->queueBuffer(anw.get(), buf->getNativeBuffer(), /*fenceFd*/-1);
354 sp<ANativeWindow> anw;
356 anw = android_view_Surface_getNativeWindow(env, surface);
364 if (anw == NULL) {
368 return anw;
372 sp<ANativeWindow> anw;
374 anw = android_SurfaceTexture_getNativeWindow(env, surfaceTexture);
382 if (anw == NULL) {
387 return anw;
413 sp<ANativeWindow> anw;
414 if ((anw = getNativeWindow(env, surface)) == NULL) {
419 status_t err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt);
430 sp<ANativeWindow> anw;
431 if ((anw = getNativeWindow(env, surface)) == NULL) {
436 status_t err = anw->query(anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, &fmt);
459 sp<ANativeWindow> anw;
460 if ((anw = getNativeWindow(env, surface)) == NULL) {
465 status_t err = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, dimenBuf);
471 err = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, dimenBuf + 1);
485 sp<ANativeWindow> anw;
486 if ((anw = getNativeWindow(env, surface)) == NULL) {
492 status_t err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &usage);
506 sp<ANativeWindow> anw;
507 if ((anw = getNativeWindow(env, surface)) == NULL) {
512 status_t err = native_window_api_disconnect(anw.get(), NATIVE_WINDOW_API_CAMERA);
524 sp<ANativeWindow> anw;
525 if ((anw = getNativeWindowFromTexture(env, surfaceTexture)) == NULL) {
531 status_t err = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, dimenBuf);
538 err = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, dimenBuf + 1);
570 sp<ANativeWindow> anw;
572 if ((anw = getNativeWindow(env, surface)) == NULL) {
590 status_t err = produceFrame(anw, reinterpret_cast<uint8_t*>(pixels), width, height,
604 sp<ANativeWindow> anw;
605 if ((anw = getNativeWindow(env, surface)) == NULL) {
609 status_t err = native_window_set_buffers_format(anw.get(), pixelFormat);
620 sp<ANativeWindow> anw;
621 if ((anw = getNativeWindow(env, surface)) == NULL) {
628 status_t err = native_window_set_buffers_user_dimensions(anw.get(), width, height);
664 sp<ANativeWindow> anw;
665 if ((anw = getNativeWindow(env, surface)) == NULL) {
688 if ((err = native_window_set_buffers_sticky_transform(anw.get(), transform)) != NO_ERROR) {
700 sp<ANativeWindow> anw;
701 if ((anw = getNativeWindow(env, surface)) == NULL) {
708 if ((err = native_window_set_buffers_timestamp(anw.get(), static_cast<int64_t>(timestamp))) !=
720 sp<ANativeWindow> anw;
721 if ((anw = getNativeWindow(env, surface)) == NULL) {
726 if ((err = native_window_set_scaling_mode(anw.get(), static_cast<int>(mode))) != NO_ERROR) {