/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 157 * anw - a surface to produce a frame in. 167 static status_t produceFrame(const sp<ANativeWindow>& anw, argument 177 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize); 179 if (anw == 0) { 180 ALOGE("%s: anw must not be NULL", __FUNCTION__); 201 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); 221 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt); 258 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); 286 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw 380 sp<ANativeWindow> anw; local 398 sp<ANativeWindow> anw; local 439 sp<ANativeWindow> anw; local 457 sp<ANativeWindow> anw; local 487 sp<ANativeWindow> anw; local 515 sp<ANativeWindow> anw; local 556 sp<ANativeWindow> anw; local 605 sp<ANativeWindow> anw; local 639 sp<ANativeWindow> anw; local 656 sp<ANativeWindow> anw; local 701 sp<ANativeWindow> anw; local 737 sp<ANativeWindow> anw; local 757 sp<ANativeWindow> anw; local [all...] |
H A D | android_view_Surface.cpp | 282 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local 283 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); 487 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local 489 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); 495 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local 497 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); 527 ANativeWindow* anw local 534 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local [all...] |
/frameworks/av/camera/ndk/include/camera/ |
H A D | NdkCameraDevice.h | 335 * @param anw the {@link ANativeWindow} to be associated with the {@link ACaptureSessionOutput} 342 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if anw or output is NULL.</li></ul> 347 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output); 682 * @param anw the {@link ANativeWindow} to be associated with the {@link ACaptureSessionOutput} 689 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if anw or output is NULL.</li></ul> 694 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output); 702 * @param anw The new native window. 706 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if anw or output is NULL; or output is not 707 * shared see {@link ACaptureSessionSharedOutput_create}; or anw matches with the native 708 * window associated with ACaptureSessionOutput; or anw i [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | FillBuffer.h | 39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
|
H A D | FillBuffer.cpp | 92 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) { 94 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), 105 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(),
|
H A D | Surface_test.cpp | 107 sp<ANativeWindow> anw(mSurface); 109 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, 120 sp<ANativeWindow> anw(mSurface); 122 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, 130 sp<ANativeWindow> anw(mSurface); 140 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), 145 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 147 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw [all...] |
H A D | CpuConsumer_test.cpp | 444 void configureANW(const sp<ANativeWindow>& anw, argument 448 err = native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU); 451 err = native_window_set_buffers_dimensions(anw.get(), 455 err = native_window_set_buffers_format(anw.get(), params.format); 458 err = native_window_set_usage(anw.get(), 463 err = anw.get()->query(anw.get(), 470 err = native_window_set_buffer_count(anw.get(), 478 void produceOneFrame(const sp<ANativeWindow>& anw, argument 483 ALOGVV("Dequeue buffer from %p", anw [all...] |
H A D | SurfaceTextureGL_test.cpp | 221 ProducerThread(const sp<ANativeWindow>& anw, argument 223 mANW(anw), 439 explicit ProducerThread(const sp<ANativeWindow>& anw): argument 440 mANW(anw) { 622 explicit ProducerThread(const sp<ANativeWindow>& anw): argument 623 mANW(anw),
|
H A D | SurfaceTextureClient_test.cpp | 700 sp<ANativeWindow> anw(mSTC); 714 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); 715 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); 716 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt));
|
/frameworks/native/opengl/tests/lib/ |
H A D | WindowSurface.cpp | 74 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); local 75 return (EGLNativeWindowType) anw.get();
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 266 sp<ANativeWindow> anw = producer; local 268 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { 275 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { 285 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) { 298 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); 309 res = anw->query(anw 341 sp<ANativeWindow> anw = ctx->getProducer(); local 415 sp<ANativeWindow> anw = ctx->getProducer(); local 445 sp<ANativeWindow> anw = ctx->getProducer(); local 554 sp < ANativeWindow > anw = surface; local [all...] |
H A D | android_media_MediaPlayer2.cpp | 459 ANativeWindow* anw = NULL; local 461 anw = ANativeWindow_fromSurface(env, jsurface); 462 if (anw == NULL) { 469 env->SetLongField(thiz, fields.surface_texture, (jlong)anw); 475 mp->setVideoSurfaceTexture(new ANativeWindowWrapper(anw));
|
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraDevice.cpp | 331 for (auto& anw : output->mSharedWindows) { 332 ret = getIGBPfromAnw(anw, iGBP); 382 ANativeWindow* anw = outputTarget.mWindow; local 384 ret = getSurfaceFromANativeWindow(anw, surface); 410 ALOGE("Unconfigured output target %p in capture request!", anw); 426 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); local 427 ACameraOutputTarget outputTarget(anw); 593 ANativeWindow* anw, 596 camera_status_t ret = getSurfaceFromANativeWindow(anw, surface); 606 ANativeWindow* anw, s 592 getIGBPfromAnw( ANativeWindow* anw, sp<IGraphicBufferProducer>& out) argument 605 getSurfaceFromANativeWindow( ANativeWindow* anw, sp<Surface>& out) argument 637 ANativeWindow* anw = outConfig.mWindow; local 844 ANativeWindow* anw = static_cast<ANativeWindow*>(surface.get()); local 1135 ANativeWindow* anw; local [all...] |
H A D | ACameraDevice.h | 151 ANativeWindow* anw, sp<IGraphicBufferProducer>& out); 154 ANativeWindow* anw, sp<Surface>& out);
|
/frameworks/av/cmds/screenrecord/ |
H A D | EglWindow.cpp | 51 sp<ANativeWindow> anw = new Surface(surface); local 52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 136 sp<ANativeWindow> anw(mSurface); 137 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); 142 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height); 146 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); 217 sp<ANativeWindow> anw(mSurface); 225 if (mBufferState == CAPTURED && anw != NULL) { 226 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1); 234 if (mBuffer == NULL && !mShutdown && anw != NULL) { 236 err = native_window_dequeue_buffer_and_wait(anw [all...] |
/frameworks/native/libs/nativewindow/include/system/ |
H A D | window.h | 841 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, argument 843 return anw->dequeueBuffer_DEPRECATED(anw, anb);
|
/frameworks/native/cmds/flatland/ |
H A D | GLHelper.cpp | 212 sp<ANativeWindow> anw = new Surface(producer); local 213 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL); 277 sp<ANativeWindow> anw = sc->getSurface(); local 278 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
|
/frameworks/av/media/libmediaplayer2/ |
H A D | mediaplayer2.cpp | 655 ANativeWindow *anw = (nww == NULL ? NULL : nww->getANativeWindow()); local 656 ALOGV("setVideoSurfaceTexture(%p)", anw); 662 if (anw != NULL) { 664 && mConnectedWindow->getANativeWindow() == anw) { 667 status_t err = native_window_api_connect(anw, NATIVE_WINDOW_API_MEDIA); 690 } else if (anw != NULL) { 692 status_t err = native_window_api_disconnect(anw, NATIVE_WINDOW_API_MEDIA);
|
/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 1059 ANativeWindow *anw = surface.get(); local 1063 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { 1069 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { 1075 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { 1081 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
|
/frameworks/rs/cpp/ |
H A D | Allocation.cpp | 504 ANativeWindow *anw = (ANativeWindow *)RS::dispatch->AllocationGetSurface(mRS->getContext(), local 506 sp<Surface> surface(static_cast<Surface*>(anw));
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 928 sp<ANativeWindow> anw; local 930 anw = new Surface(bufferProducer, true /* controlledByApp */); 931 status_t err = nativeWindowConnect(anw.get(), "setVideoSurfaceTexture"); 956 mConnectedWindow = anw; 962 anw.get(), "disconnectNativeWindow");
|
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | Camera2Client.cpp | 2209 ANativeWindow *anw = window.get(); local 2211 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { 2216 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
H A D | SFFakeHwc_test.cpp | 1168 auto anw = static_cast<ANativeWindow*>(s.get()); local 1169 native_window_set_buffers_transform(anw, NATIVE_WINDOW_TRANSFORM_ROT_90); 1170 native_window_set_buffers_dimensions(anw, 64, 128);
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1268 ANativeWindow *anw = (ANativeWindow *)rsAllocationGetSurface((RsContext)con, (RsAllocation)a); local 1270 sp<Surface> surface(static_cast<Surface*>(anw)); 1285 ANativeWindow *anw = nullptr; local 1288 anw = ANativeWindow_fromSurface(_env, sur); 1289 native_window_api_connect(anw, NATIVE_WINDOW_API_CPU); 1292 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, anw);
|