Home
last modified time | relevance | path

Searched refs:anw (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp148 static status_t produceFrame(const sp<ANativeWindow>& anw, in produceFrame() argument
158 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize); in produceFrame()
160 if (anw == 0) { in produceFrame()
182 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceFrame()
197 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt); in produceFrame()
233 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
261 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
293 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
337 ALOGV("%s: Unlock buffer from %p", __FUNCTION__, anw.get()); in produceFrame()
344 ALOGV("%s: Queue buffer to %p", __FUNCTION__, anw.get()); in produceFrame()
[all …]
Dandroid_view_Surface.cpp272 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local
273 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind()
466 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth() local
468 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); in nativeGetWidth()
474 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight() local
476 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); in nativeGetHeight()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp70 sp<ANativeWindow> anw(mSurface); in TEST_F() local
72 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
81 sp<ANativeWindow> anw(mSurface); in TEST_F() local
83 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
91 sp<ANativeWindow> anw(mSurface); in TEST_F() local
103 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), in TEST_F()
108 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F()
110 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F()
113 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); in TEST_F()
118 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F()
[all …]
DCpuConsumer_test.cpp448 void configureANW(const sp<ANativeWindow>& anw, in configureANW() argument
452 err = native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU); in configureANW()
455 err = native_window_set_buffers_dimensions(anw.get(), in configureANW()
459 err = native_window_set_buffers_format(anw.get(), params.format); in configureANW()
462 err = native_window_set_usage(anw.get(), in configureANW()
467 err = anw.get()->query(anw.get(), in configureANW()
474 err = native_window_set_buffer_count(anw.get(), in configureANW()
482 void produceOneFrame(const sp<ANativeWindow>& anw, in produceOneFrame() argument
487 ALOGVV("Dequeue buffer from %p", anw.get()); in produceOneFrame()
488 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceOneFrame()
[all …]
DFillBuffer.cpp92 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) { in produceOneRGBA8Frame() argument
94 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), in produceOneRGBA8Frame()
105 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(), in produceOneRGBA8Frame()
DSurfaceTextureGL_test.cpp221 ProducerThread(const sp<ANativeWindow>& anw, in TEST_F() argument
223 mANW(anw), in TEST_F()
440 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument
441 mANW(anw) { in TEST_F()
623 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument
624 mANW(anw), in TEST_F()
DFillBuffer.h39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
DSurfaceTextureClient_test.cpp699 sp<ANativeWindow> anw(mSTC); in TEST_F() local
713 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); in TEST_F()
714 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); in TEST_F()
715 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp257 sp<ANativeWindow> anw = producer; in ImageWriter_init() local
259 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init()
266 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init()
273 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) { in ImageWriter_init()
283 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in ImageWriter_init()
294 res = anw->query(anw.get(), in ImageWriter_init()
304 res = native_window_set_buffer_count(anw.get(), totalBufferCount); in ImageWriter_init()
326 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage() local
329 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
400 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage() local
[all …]
/frameworks/av/camera/ndk/impl/
DACameraDevice.cpp287 ANativeWindow* anw = outputTarget.mWindow; in allocateCaptureRequest() local
289 ret = getSurfaceFromANativeWindow(anw, surface); in allocateCaptureRequest()
307 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); in allocateACaptureRequest() local
308 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest()
473 ANativeWindow* anw, in getIGBPfromAnw() argument
475 if (anw == nullptr) { in getIGBPfromAnw()
480 int err = (*anw->query)(anw, NATIVE_WINDOW_CONCRETE_TYPE, &value); in getIGBPfromAnw()
485 const sp<Surface> surface(static_cast<Surface*>(anw)); in getIGBPfromAnw()
492 ANativeWindow* anw, sp<Surface>& out) { in getSurfaceFromANativeWindow() argument
493 if (anw == nullptr) { in getSurfaceFromANativeWindow()
[all …]
DACameraDevice.h140 ANativeWindow* anw, sp<IGraphicBufferProducer>& out);
143 ANativeWindow* anw, sp<Surface>& out);
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h609 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro
617 ANativeWindow *a = anw(w); in __dequeue_buffer()
636 ANativeWindow *a = anw(w); in __lock_buffer()
644 ANativeWindow *a = anw(w); in __enqueue_buffer()
652 ANativeWindow *a = anw(w); in __cancel_buffer()
659 ANativeWindow *a = anw(w); in __set_buffer_count()
705 ANativeWindow *a = anw(w); in __set_buffers_geometry()
720 ANativeWindow *a = anw(w); in __set_crop()
731 ANativeWindow *a = anw(w); in __set_timestamp()
737 ANativeWindow *a = anw(w); in __set_usage()
[all …]
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp83 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local
84 return (EGLNativeWindowType) anw.get(); in getSurface()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp118 sp<ANativeWindow> anw(mSurface); in readyToRun() local
119 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); in readyToRun()
124 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height); in readyToRun()
128 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); in readyToRun()
199 sp<ANativeWindow> anw(mSurface); in threadLoop() local
207 if (mBufferState == CAPTURED && anw != NULL) { in threadLoop()
208 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1); in threadLoop()
216 if (mBuffer == NULL && !mShutdown && anw != NULL) { in threadLoop()
218 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); in threadLoop()
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp52 sp<ANativeWindow> anw = new Surface(surface); in createWindow() local
53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
/frameworks/native/cmds/flatland/
DGLHelper.cpp213 sp<ANativeWindow> anw = new Surface(producer); in createNamedSurfaceTexture() local
214 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL); in createNamedSurfaceTexture()
292 sp<ANativeWindow> anw = sc->getSurface(); in createWindowSurface() local
293 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL); in createWindowSurface()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp495 ANativeWindow *anw = surface.get(); in createStream() local
497 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { in createStream()
503 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { in createStream()
509 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in createStream()
515 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in createStream()
/frameworks/av/include/camera/ndk/
DNdkCameraDevice.h340 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output);
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp2145 ANativeWindow *anw = window.get(); in setVideoTarget() local
2147 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in setVideoTarget()
2152 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in setVideoTarget()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp863 sp<ANativeWindow> anw; in setVideoSurfaceTexture() local
865 anw = new Surface(bufferProducer, true /* controlledByApp */); in setVideoSurfaceTexture()
866 status_t err = native_window_api_connect(anw.get(), in setVideoSurfaceTexture()
889 mConnectedWindow = anw; in setVideoSurfaceTexture()
/frameworks/native/opengl/libs/EGL/
DeglApi.cpp555 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); in eglCreateWindowSurface() local
556 anw->setSwapInterval(anw, 1); in eglCreateWindowSurface()