/frameworks/base/core/jni/ |
D | android_hardware_camera2_utils_SurfaceUtils.cpp | 54 sp<ANativeWindow> anw; in getNativeWindow() local 56 anw = android_view_Surface_getNativeWindow(env, surface); in getNativeWindow() 64 if (anw == NULL) { in getNativeWindow() 68 return anw; in getNativeWindow() 94 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceType() local 95 if ((anw = getNativeWindow(env, surface)) == NULL) { in SurfaceUtils_nativeDetectSurfaceType() 100 status_t err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt); in SurfaceUtils_nativeDetectSurfaceType() 112 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceDataspace() local 113 if ((anw = getNativeWindow(env, surface)) == NULL) { in SurfaceUtils_nativeDetectSurfaceDataspace() 118 status_t err = anw->query(anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, &fmt); in SurfaceUtils_nativeDetectSurfaceDataspace() [all …]
|
D | android_view_Surface.cpp | 191 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local 192 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind() 395 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth() local 397 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); in nativeGetWidth() 403 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight() local 405 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); in nativeGetHeight() 440 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled() local 441 return anw->perform(surface, NATIVE_WINDOW_SET_SHARED_BUFFER_MODE, int(enabled)); in nativeSetSharedBufferModeEnabled() 447 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled() local 448 return anw->perform(surface, NATIVE_WINDOW_SET_AUTO_REFRESH, int(enabled)); in nativeSetAutoRefreshEnabled() [all …]
|
/frameworks/base/services/core/jni/tvinput/ |
D | BufferProducerThread.cpp | 34 sp<ANativeWindow> anw(mSurface); in readyToRun() local 35 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); in readyToRun() 39 err = native_window_set_buffers_dimensions(anw.get(), mStream.buffer_producer.width, in readyToRun() 44 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); in readyToRun() 115 sp<ANativeWindow> anw(mSurface); in threadLoop() local 123 if (mBufferState == CAPTURED && anw != NULL) { in threadLoop() 124 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1); in threadLoop() 132 if (mBuffer == NULL && !mShutdown && anw != NULL) { in threadLoop() 134 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); in threadLoop()
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 417 sp<ANativeWindow> anw = producer; in ImageWriter_init() local 422 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init() 434 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init() 445 res = native_window_set_buffers_user_dimensions(anw.get(), userWidth, userHeight); in ImageWriter_init() 457 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceHalFormat)) != OK) { in ImageWriter_init() 462 if ((res = anw->query( in ImageWriter_init() 463 anw.get(), NATIVE_WINDOW_DEFAULT_DATASPACE, &surfaceDataspace)) != OK) { in ImageWriter_init() 471 res = native_window_set_buffers_format(anw.get(), hardwareBufferFormat); in ImageWriter_init() 479 res = native_window_set_buffers_data_space(anw.get(), nativeDataspace); in ImageWriter_init() 506 res = native_window_set_usage(anw.get(), ndkUsage); in ImageWriter_init() [all …]
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraDevice.h | 367 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(24); 708 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output) __INTRODUCED_IN(28); 726 ANativeWindow *anw) __INTRODUCED_IN(28); 742 ANativeWindow* anw) __INTRODUCED_IN(28); 800 ANativeWindow* anw, const char* physicalId,
|
/frameworks/native/libs/gui/tests/ |
D | CpuConsumer_test.cpp | 444 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 …]
|
D | FillBuffer.cpp | 92 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()
|
D | FillBuffer.h | 39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
|
D | Surface_test.cpp | 227 sp<ANativeWindow> anw(mSurface); in TEST_F() local 229 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 240 sp<ANativeWindow> anw(mSurface); in TEST_F() local 242 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 249 sp<ANativeWindow> anw(mSurface); in TEST_F() local 251 int err = anw->query(anw.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F() 257 sp<ANativeWindow> anw(mSurface); in TEST_F() local 259 int err = anw->query(anw.get(), NATIVE_WINDOW_LAYER_COUNT, &result); in TEST_F() 274 sp<ANativeWindow> anw(s); in TEST_F() local 277 int err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &flags); in TEST_F() [all …]
|
D | SurfaceTextureGL_test.cpp | 222 ProducerThread(const sp<ANativeWindow>& anw, in TEST_F() argument 224 mANW(anw), in TEST_F() 440 explicit ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 441 mANW(anw) { in TEST_F() 623 explicit ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 624 mANW(anw), in TEST_F()
|
/frameworks/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 63 ANativeWindow* anw; member 110 ret = ACaptureSessionPhysicalOutput_create(physicalStream.anw, in initCamera() 129 configuredWindows.insert(physicalStream.anw); in initCamera() 133 physicalStreamMap.insert(physicalStream.anw); in initCamera() 189 if (physicalStreamMap.find(physicalStream.anw) == physicalStreamMap.end()) { in initCamera() 190 ALOGI("Skipping physicalStream anw=%p", physicalStream.anw); in initCamera() 194 ret = ACameraOutputTarget_create(physicalStream.anw, &outputTarget); in initCamera() 299 static void onPreparedCb(void* obj, ANativeWindow *anw, ACameraCaptureSession *session) { in onPreparedCb() argument 301 thiz->handlePrepared(anw, session); in onPreparedCb() 315 void handlePrepared(ANativeWindow *anw, ACameraCaptureSession *session) { in handlePrepared() argument [all …]
|
/frameworks/native/libs/gui/view/ |
D | Surface.cpp | 63 ANativeWindow* anw = surface.get(); in android_view_Surface_readFromParcel() local 64 ANativeWindow_acquire(anw); in android_view_Surface_readFromParcel() 65 *outWindow = anw; in android_view_Surface_readFromParcel()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraDevice.cpp | 241 for (auto& anw : output.mSharedWindows) { in isSessionConfigurationSupported() local 242 ret = getIGBPfromAnw(anw, iGBP); in isSessionConfigurationSupported() 305 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local 306 ret = getIGBPfromAnw(anw, iGBP); in updateOutputConfigurationLocked() 412 ANativeWindow* anw = outputTarget.mWindow; in allocateCaptureRequest() local 414 ret = getSurfaceFromANativeWindow(anw, surface); in allocateCaptureRequest() 440 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequest() 463 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); in allocateACaptureRequest() local 464 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest() 635 ANativeWindow* anw, in getIGBPfromAnw() argument [all …]
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | ACameraDevice.cpp | 307 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local 308 surfaces.emplace_back(anw); in updateOutputConfigurationLocked() 392 ANativeWindow *anw = outputTarget.mWindow; in allocateCaptureRequestLocked() local 394 req->mSurfaceList.push_back(anw); in allocateCaptureRequestLocked() 404 if (anw == surface.get()) { in allocateCaptureRequestLocked() 416 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequestLocked() 476 ANativeWindow *anw = req->mSurfaceList[i]; in allocateACaptureRequest() local 477 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest() 645 ANativeWindow *anw = outConfig.mWindow; in configureStreamsLocked() local 651 surfaces.emplace_back(anw); in configureStreamsLocked() [all …]
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 92 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local 93 return (EGLNativeWindowType) anw.get(); in getSurface()
|
/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 51 sp<ANativeWindow> anw = new Surface(surface); in createWindow() local 52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 214 sp<ANativeWindow> anw = new Surface(producer); in createNamedSurfaceTexture() local 215 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createNamedSurfaceTexture() 273 sp<ANativeWindow> anw = sc->getSurface(); in createWindowSurface() local 274 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), nullptr); in createWindowSurface()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | DepthCompositeStream.cpp | 495 ANativeWindow *anw = surface.get(); in isDepthCompositeStream() local 498 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isDepthCompositeStream() 506 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isDepthCompositeStream() 708 ANativeWindow *anw = mBlobSurface.get(); in configureStream() local 709 if ((res = anw->query(anw, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &maxProducerBuffers)) != OK) { in configureStream()
|
D | JpegRCompositeStream.cpp | 500 ANativeWindow *anw = surface.get(); in isJpegRCompositeStream() local 503 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isJpegRCompositeStream() 510 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isJpegRCompositeStream() 678 ANativeWindow *anw = mP010Surface.get(); in configureStream() local 679 if ((res = anw->query(anw, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &maxProducerBuffers)) != OK) { in configureStream()
|
/frameworks/hardware/interfaces/cameraservice/vts/functional/ |
D | VtsAidlCameraServiceTargetTest.cpp | 319 for (auto anw : windows) { in createOutputConfiguration() local 320 surfaces.emplace_back(anw); in createOutputConfiguration() 569 ANativeWindow* anw = nullptr; in TEST_P() local 570 status_t status = AImageReader_getWindow(readerPtr.get(), &anw); in TEST_P() 571 EXPECT_TRUE(status == AMEDIA_OK && anw != nullptr); in TEST_P() 573 return createOutputConfiguration({anw}); in TEST_P()
|
/frameworks/native/libs/nativewindow/include/system/ |
D | window.h | 885 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, in native_window_dequeue_buffer_and_wait() argument 887 return anw->dequeueBuffer_DEPRECATED(anw, anb); in native_window_dequeue_buffer_and_wait()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | SessionConfigurationUtils.cpp | 471 ANativeWindow *anw = surface.get(); in createSurfaceFromGbp() local 475 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { in createSurfaceFromGbp() 481 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { in createSurfaceFromGbp() 487 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in createSurfaceFromGbp() 493 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, in createSurfaceFromGbp()
|
D | CameraServiceProxyWrapper.cpp | 278 ANativeWindow *anw = surface.get(); in encodeSessionConfiguration() local 280 width = ANativeWindow_getWidth(anw); in encodeSessionConfiguration() 286 height = ANativeWindow_getHeight(anw); in encodeSessionConfiguration()
|
/frameworks/base/libs/hwui/renderthread/ |
D | CanvasContext.cpp | 923 ANativeWindow* anw = mNativeSurface->getNativeWindow(); in getNextFrameSize() local 926 size.fWidth = ANativeWindow_getWidth(anw); in getNextFrameSize() 927 size.fHeight = ANativeWindow_getHeight(anw); in getNextFrameSize() 1067 ANativeWindow* anw = mNativeSurface->getNativeWindow(); in surfaceRequiresRedraw() local 1068 const int width = ANativeWindow_getWidth(anw); in surfaceRequiresRedraw() 1069 const int height = ANativeWindow_getHeight(anw); in surfaceRequiresRedraw()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 757 sp<ANativeWindow> anw(surface); in TEST_F() local 759 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() 760 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), GRALLOC_USAGE_PROTECTED)); in TEST_F() 767 status_t err = anw->dequeueBuffer(anw.get(), &buf, &fenceFd); in TEST_F() 771 anw->queueBuffer(anw.get(), buf, fenceFd); in TEST_F()
|