Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp167 static status_t produceFrame(const sp<ANativeWindow>& anw, in produceFrame() argument
177 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize); in produceFrame()
179 if (anw == 0) { in produceFrame()
201 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceFrame()
221 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt); in produceFrame()
258 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
286 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
318 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); in produceFrame()
362 ALOGV("%s: Unlock buffer from %p", __FUNCTION__, anw.get()); in produceFrame()
369 ALOGV("%s: Queue buffer to %p", __FUNCTION__, anw.get()); in produceFrame()
[all …]
Dandroid_view_Surface.cpp204 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local
205 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind()
417 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth() local
419 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); in nativeGetWidth()
425 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight() local
427 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); in nativeGetHeight()
458 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled() local
459 return anw->perform(surface, NATIVE_WINDOW_SET_SHARED_BUFFER_MODE, int(enabled)); in nativeSetSharedBufferModeEnabled()
465 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled() local
466 return anw->perform(surface, NATIVE_WINDOW_SET_AUTO_REFRESH, int(enabled)); in nativeSetAutoRefreshEnabled()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp380 sp<ANativeWindow> anw = producer; in ImageWriter_init() local
382 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init()
389 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init()
399 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) { in ImageWriter_init()
409 res = native_window_set_buffers_format(anw.get(), nativeFormat); in ImageWriter_init()
417 res = native_window_set_buffers_data_space(anw.get(), nativeDataspace); in ImageWriter_init()
432 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in ImageWriter_init()
443 res = anw->query(anw.get(), in ImageWriter_init()
453 res = native_window_set_buffer_count(anw.get(), totalBufferCount); in ImageWriter_init()
475 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage() local
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCameraDevice.h359 ACameraWindowType* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(24);
716 ACameraWindowType* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(28);
734 ACameraWindowType *anw) __INTRODUCED_IN(28);
750 ACameraWindowType* anw) __INTRODUCED_IN(28);
812 ACameraWindowType* anw, const char* physicalId,
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp444 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()
[all …]
DSurface_test.cpp218 sp<ANativeWindow> anw(mSurface); in TEST_F() local
220 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
231 sp<ANativeWindow> anw(mSurface); in TEST_F() local
233 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
241 sp<ANativeWindow> anw(mSurface); in TEST_F() local
255 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), in TEST_F()
260 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F()
262 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F()
265 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); in TEST_F()
270 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F()
[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()
439 explicit ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument
440 mANW(anw) { in TEST_F()
622 explicit ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument
623 mANW(anw), in TEST_F()
DFillBuffer.h39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
DSurfaceTextureClient_test.cpp685 sp<ANativeWindow> anw(mSTC); in TEST_F() local
699 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); in TEST_F()
700 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); in TEST_F()
701 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
/frameworks/av/camera/ndk/impl/
DACameraDevice.cpp242 for (auto& anw : output.mSharedWindows) { in isSessionConfigurationSupported() local
243 ret = getIGBPfromAnw(anw, iGBP); in isSessionConfigurationSupported()
307 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local
308 ret = getIGBPfromAnw(anw, iGBP); in updateOutputConfigurationLocked()
362 ANativeWindow* anw = outputTarget.mWindow; in allocateCaptureRequest() local
364 ret = getSurfaceFromANativeWindow(anw, surface); in allocateCaptureRequest()
390 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequest()
413 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); in allocateACaptureRequest() local
414 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest()
581 ANativeWindow* anw, in getIGBPfromAnw() argument
[all …]
DACameraDevice.h176 ANativeWindow* anw, sp<IGraphicBufferProducer>& out);
179 ANativeWindow* anw, sp<Surface>& out);
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp78 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local
79 return (EGLNativeWindowType) anw.get(); in getSurface()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp136 sp<ANativeWindow> anw(mSurface); in readyToRun() local
137 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); in readyToRun()
142 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height); in readyToRun()
146 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); in readyToRun()
217 sp<ANativeWindow> anw(mSurface); in threadLoop() local
225 if (mBufferState == CAPTURED && anw != NULL) { in threadLoop()
226 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1); in threadLoop()
234 if (mBuffer == NULL && !mShutdown && anw != NULL) { in threadLoop()
236 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); in threadLoop()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraDevice.cpp306 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local
307 outConfig.windowHandles[i++] = anw; in updateOutputConfigurationLocked()
358 native_handle_t* anw = outputTarget.mWindow; in allocateCaptureRequestLocked() local
360 req->mSurfaceList.push_back(anw); in allocateCaptureRequestLocked()
369 anw)) { in allocateCaptureRequestLocked()
381 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequestLocked()
437 native_handle_t* anw = req->mSurfaceList[i]; in allocateACaptureRequest() local
438 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest()
614 native_handle_t* anw = outConfig.mWindow; in configureStreamsLocked() local
620 outConfigInsert.windowHandles[0] = anw; in configureStreamsLocked()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp483 ANativeWindow *anw = surface.get(); in isDepthCompositeStream() local
486 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isDepthCompositeStream()
494 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isDepthCompositeStream()
611 ANativeWindow *anw = mBlobSurface.get(); in configureStream() local
612 if ((res = anw->query(anw, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &maxProducerBuffers)) != OK) { in configureStream()
DCameraDeviceClient.cpp1360 ANativeWindow *anw = surface.get(); in createSurfaceFromGbp() local
1364 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { in createSurfaceFromGbp()
1370 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { in createSurfaceFromGbp()
1376 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in createSurfaceFromGbp()
1382 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in createSurfaceFromGbp()
DHeicCompositeStream.cpp93 ANativeWindow *anw = surface.get(); in isHeicCompositeStream() local
96 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isHeicCompositeStream()
104 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isHeicCompositeStream()
/frameworks/av/cmds/screenrecord/
DEglWindow.cpp51 sp<ANativeWindow> anw = new Surface(surface); in createWindow() local
52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
/frameworks/av/camera/ndk/ndk_vendor/tests/
DAImageReaderVendorTest.cpp63 native_handle_t* anw; member
110 ret = ACaptureSessionPhysicalOutput_create(physicalStream.anw, in initCamera()
129 configuredWindows.insert(physicalStream.anw); in initCamera()
133 physicalStreamMap.insert(physicalStream.anw); in initCamera()
170 if (physicalStreamMap.find(physicalStream.anw) == physicalStreamMap.end()) { in initCamera()
171 ALOGI("Skipping physicalStream anw=%p", physicalStream.anw); in initCamera()
175 ret = ACameraOutputTarget_create(physicalStream.anw, &outputTarget); in initCamera()
/frameworks/native/cmds/flatland/
DGLHelper.cpp212 sp<ANativeWindow> anw = new Surface(producer); in createNamedSurfaceTexture() local
213 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createNamedSurfaceTexture()
277 sp<ANativeWindow> anw = sc->getSurface(); in createWindowSurface() local
278 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createWindowSurface()
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h863 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, in native_window_dequeue_buffer_and_wait() argument
865 return anw->dequeueBuffer_DEPRECATED(anw, anb); in native_window_dequeue_buffer_and_wait()
/frameworks/rs/cpp/
DAllocation.cpp504 ANativeWindow *anw = (ANativeWindow *)RS::dispatch->AllocationGetSurface(mRS->getContext(), in getSurface() local
506 sp<Surface> surface(static_cast<Surface*>(anw)); in getSurface()
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp2206 ANativeWindow *anw = window.get(); in setVideoTarget() local
2208 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in setVideoTarget()
2213 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in setVideoTarget()
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp1168 auto anw = static_cast<ANativeWindow*>(s.get()); in TEST_F() local
1169 native_window_set_buffers_transform(anw, NATIVE_WINDOW_TRANSFORM_ROT_90); in TEST_F()
1170 native_window_set_buffers_dimensions(anw, 64, 128); in TEST_F()

12