Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_utils_SurfaceUtils.cpp54 sp<ANativeWindow> anw; in getNativeWindow() local
64 if (anw == NULL) { in getNativeWindow()
68 return anw; in getNativeWindow()
94 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceType() local
100 status_t err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt); in SurfaceUtils_nativeDetectSurfaceType()
112 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceDataspace() local
118 status_t err = anw->query(anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, &fmt); in SurfaceUtils_nativeDetectSurfaceDataspace()
142 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceDimens() local
148 status_t err = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, dimenBuf); in SurfaceUtils_nativeDetectSurfaceDimens()
154 err = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, dimenBuf + 1); in SurfaceUtils_nativeDetectSurfaceDimens()
[all …]
H A Dandroid_view_Surface.cpp183 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local
184 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind()
386 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth() local
388 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); in nativeGetWidth()
394 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight() local
396 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); in nativeGetHeight()
429 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled() local
430 return anw->perform(surface, NATIVE_WINDOW_SET_SHARED_BUFFER_MODE, int(enabled)); in nativeSetSharedBufferModeEnabled()
436 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled() local
437 return anw->perform(surface, NATIVE_WINDOW_SET_AUTO_REFRESH, int(enabled)); in nativeSetAutoRefreshEnabled()
[all …]
/aosp12/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp406 sp<ANativeWindow> anw = producer; in ImageWriter_init() local
409 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init()
421 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init()
443 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) { in ImageWriter_init()
487 res = anw->query(anw.get(), in ImageWriter_init()
519 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage() local
522 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage()
606 anw->cancelBuffer(anw.get(), buffer, fenceFd); in ImageWriter_cancelImage()
675 res = anw->queueBuffer(anw.get(), buffer, fenceFd); in ImageWriter_queueImage()
714 sp < ANativeWindow > anw = surface; in attachAndQeueuGraphicBuffer() local
[all …]
/aosp12/frameworks/av/camera/ndk/include/camera/
H A DNdkCameraDevice.h367 ACameraWindowType* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(24);
720 ACameraWindowType* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(28);
738 ACameraWindowType *anw) __INTRODUCED_IN(28);
754 ACameraWindowType* anw) __INTRODUCED_IN(28);
812 ACameraWindowType* anw, const char* physicalId,
/aosp12/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp444 void configureANW(const sp<ANativeWindow>& anw, in configureANW() argument
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()
494 ALOGVV("Lock buffer from %p for write", anw.get()); in produceOneFrame()
521 ALOGVV("Unlock buffer from %p", anw.get()); in produceOneFrame()
525 ALOGVV("Set timestamp to %p", anw.get()); in produceOneFrame()
529 ALOGVV("Queue buffer to %p", anw.get()); in produceOneFrame()
[all …]
H A DSurface_test.cpp233 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
246 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
290 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1)); in TEST_F()
296 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1)); in TEST_F()
304 int err = anw->query(anw.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
312 int err = anw->query(anw.get(), NATIVE_WINDOW_LAYER_COUNT, &result); in TEST_F()
327 sp<ANativeWindow> anw(s); in TEST_F() local
330 int err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &flags); in TEST_F()
347 sp<ANativeWindow> anw(s); in TEST_F() local
351 int err = anw->query(anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, in TEST_F()
[all …]
H A 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()
H A 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()
H A DFillBuffer.h39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
H A DSurfaceTextureClient_test.cpp683 sp<ANativeWindow> anw(mSTC); in TEST_F() local
697 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0)); in TEST_F()
698 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i])); in TEST_F()
699 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
/aosp12/frameworks/av/camera/ndk/impl/
H A DACameraDevice.cpp244 ret = getIGBPfromAnw(anw, iGBP); in isSessionConfigurationSupported()
308 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local
309 ret = getIGBPfromAnw(anw, iGBP); in updateOutputConfigurationLocked()
415 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest()
586 ANativeWindow* anw, in getIGBPfromAnw() argument
599 ANativeWindow* anw, sp<Surface>& out) { in getSurfaceFromANativeWindow() argument
600 if (anw == nullptr) { in getSurfaceFromANativeWindow()
605 int err = (*anw->query)(anw, NATIVE_WINDOW_CONCRETE_TYPE, &value); in getSurfaceFromANativeWindow()
630 ANativeWindow* anw = outConfig.mWindow; in configureStreamsLocked() local
632 ret = getIGBPfromAnw(anw, iGBP); in configureStreamsLocked()
[all …]
H A DACameraDevice.h176 ANativeWindow* anw, sp<IGraphicBufferProducer>& out);
179 ANativeWindow* anw, sp<Surface>& out);
/aosp12/frameworks/base/services/core/jni/
H A 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()
/aosp12/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp85 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local
86 return (EGLNativeWindowType) anw.get(); in getSurface()
/aosp12/frameworks/av/camera/ndk/ndk_vendor/impl/
H A DACameraDevice.cpp307 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local
308 outConfig.windowHandles[i++] = anw; in updateOutputConfigurationLocked()
359 const native_handle_t* anw = outputTarget.mWindow; in allocateCaptureRequestLocked() local
361 req->mSurfaceList.push_back(anw); in allocateCaptureRequestLocked()
438 const native_handle_t* anw = req->mSurfaceList[i]; in allocateACaptureRequest() local
439 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest()
619 const native_handle_t* anw = outConfig.mWindow; in configureStreamsLocked() local
625 outConfigInsert.windowHandles[0] = anw; in configureStreamsLocked()
627 native_handle_ptr_wrapper wrap(anw); in configureStreamsLocked()
857 getId(), anw, frameNumber); in onCaptureErrorLocked()
[all …]
/aosp12/frameworks/av/services/camera/libcameraservice/utils/
H A DSessionConfigurationUtils.cpp328 ANativeWindow *anw = surface.get(); in createSurfaceFromGbp() local
332 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { in createSurfaceFromGbp()
338 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { in createSurfaceFromGbp()
344 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in createSurfaceFromGbp()
350 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in createSurfaceFromGbp()
/aosp12/frameworks/av/camera/ndk/ndk_vendor/tests/
H A DAImageReaderVendorTest.cpp63 const 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()
/aosp12/frameworks/av/services/camera/libcameraservice/api2/
H A DDepthCompositeStream.cpp487 ANativeWindow *anw = surface.get(); in isDepthCompositeStream() local
490 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isDepthCompositeStream()
498 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isDepthCompositeStream()
676 ANativeWindow *anw = mBlobSurface.get(); in configureStream() local
677 if ((res = anw->query(anw, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &maxProducerBuffers)) != OK) { in configureStream()
H A DHeicCompositeStream.cpp96 ANativeWindow *anw = surface.get(); in isHeicCompositeStream() local
99 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isHeicCompositeStream()
107 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isHeicCompositeStream()
/aosp12/frameworks/native/cmds/flatland/
H A DGLHelper.cpp211 sp<ANativeWindow> anw = new Surface(producer); in createNamedSurfaceTexture() local
212 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createNamedSurfaceTexture()
276 sp<ANativeWindow> anw = sc->getSurface(); in createWindowSurface() local
277 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createWindowSurface()
/aosp12/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp51 sp<ANativeWindow> anw = new Surface(surface); in createWindow() local
52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
/aosp12/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp730 ANativeWindow* anw = mNativeSurface->getNativeWindow(); in getNextFrameSize() local
733 size.fWidth = ANativeWindow_getWidth(anw); in getNextFrameSize()
734 size.fHeight = ANativeWindow_getHeight(anw); in getNextFrameSize()
868 ANativeWindow* anw = mNativeSurface->getNativeWindow(); in surfaceRequiresRedraw() local
869 const int width = ANativeWindow_getWidth(anw); in surfaceRequiresRedraw()
870 const int height = ANativeWindow_getHeight(anw); in surfaceRequiresRedraw()
/aosp12/frameworks/native/libs/nativewindow/include/system/
H A Dwindow.h882 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, in native_window_dequeue_buffer_and_wait() argument
884 return anw->dequeueBuffer_DEPRECATED(anw, anb); in native_window_dequeue_buffer_and_wait()
/aosp12/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.cpp670 sp<ANativeWindow> anw = consumer; in getBufferLockedCommon() local
671 res = anw->dequeueBuffer(anw.get(), anb, fenceFd); in getBufferLockedCommon()
/aosp12/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp2230 ANativeWindow *anw = window.get(); in setVideoTarget() local
2232 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in setVideoTarget()
2237 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in setVideoTarget()

12