/frameworks/base/core/jni/ |
D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 167 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 …]
|
D | android_view_Surface.cpp | 186 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local 187 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind() 399 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth() local 401 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); in nativeGetWidth() 407 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight() local 409 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value); in nativeGetHeight() 439 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled() local 440 return anw->perform(surface, NATIVE_WINDOW_SET_SHARED_BUFFER_MODE, int(enabled)); in nativeSetSharedBufferModeEnabled() 446 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled() local 447 return anw->perform(surface, NATIVE_WINDOW_SET_AUTO_REFRESH, int(enabled)); in nativeSetAutoRefreshEnabled()
|
/frameworks/base/media/jni/ |
D | android_media_ImageWriter.cpp | 379 sp<ANativeWindow> anw = producer; in ImageWriter_init() local 381 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in ImageWriter_init() 388 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in ImageWriter_init() 398 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) { in ImageWriter_init() 411 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in ImageWriter_init() 422 res = anw->query(anw.get(), in ImageWriter_init() 432 res = native_window_set_buffer_count(anw.get(), totalBufferCount); in ImageWriter_init() 454 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_dequeueImage() local 457 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd); in ImageWriter_dequeueImage() 528 sp<ANativeWindow> anw = ctx->getProducer(); in ImageWriter_cancelImage() local [all …]
|
D | android_media_MediaPlayer2.cpp | 479 ANativeWindow* anw = NULL; in setVideoSurface() local 481 anw = ANativeWindow_fromSurface(env, jsurface); in setVideoSurface() 482 if (anw == NULL) { in setVideoSurface() 489 env->SetLongField(thiz, fields.surface_texture, (jlong)anw); in setVideoSurface() 495 mp->setVideoSurfaceTexture(new ANativeWindowWrapper(anw)); in setVideoSurface()
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraDevice.h | 359 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/ |
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 | Surface_test.cpp | 107 sp<ANativeWindow> anw(mSurface); in TEST_F() local 109 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 120 sp<ANativeWindow> anw(mSurface); in TEST_F() local 122 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 130 sp<ANativeWindow> anw(mSurface); in TEST_F() local 144 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), in TEST_F() 149 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F() 151 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F() 154 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); in TEST_F() 159 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F() [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 | SurfaceTextureGL_test.cpp | 221 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()
|
D | SurfaceTextureClient_test.cpp | 685 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/ |
D | ACameraDevice.cpp | 254 for (auto& anw : output.mSharedWindows) { in isSessionConfigurationSupported() local 255 ret = getIGBPfromAnw(anw, iGBP); in isSessionConfigurationSupported() 319 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local 320 ret = getIGBPfromAnw(anw, iGBP); in updateOutputConfigurationLocked() 374 ANativeWindow* anw = outputTarget.mWindow; in allocateCaptureRequest() local 376 ret = getSurfaceFromANativeWindow(anw, surface); in allocateCaptureRequest() 402 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequest() 425 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); in allocateACaptureRequest() local 426 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest() 593 ANativeWindow* anw, in getIGBPfromAnw() argument [all …]
|
D | ACameraDevice.h | 175 ANativeWindow* anw, sp<IGraphicBufferProducer>& out); 178 ANativeWindow* anw, sp<Surface>& out);
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 78 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local 79 return (EGLNativeWindowType) anw.get(); in getSurface()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 136 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/ |
D | ACameraDevice.cpp | 318 for (auto& anw : output->mSharedWindows) { in updateOutputConfigurationLocked() local 319 outConfig.windowHandles[i++] = anw; in updateOutputConfigurationLocked() 370 native_handle_t* anw = outputTarget.mWindow; in allocateCaptureRequestLocked() local 372 req->mSurfaceList.push_back(anw); in allocateCaptureRequestLocked() 381 anw)) { in allocateCaptureRequestLocked() 393 ALOGE("Unconfigured output target %p in capture request!", anw); in allocateCaptureRequestLocked() 449 native_handle_t* anw = req->mSurfaceList[i]; in allocateACaptureRequest() local 450 ACameraOutputTarget outputTarget(anw); in allocateACaptureRequest() 626 native_handle_t* anw = outConfig.mWindow; in configureStreamsLocked() local 632 outConfigInsert.windowHandles[0] = anw; in configureStreamsLocked() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | DepthCompositeStream.cpp | 476 ANativeWindow *anw = surface.get(); in isDepthCompositeStream() local 479 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { in isDepthCompositeStream() 487 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, &dataspace)) != OK) { in isDepthCompositeStream() 604 ANativeWindow *anw = mBlobSurface.get(); in configureStream() local 605 if ((res = anw->query(anw, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &maxProducerBuffers)) != OK) { in configureStream()
|
D | CameraDeviceClient.cpp | 1360 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()
|
D | HeicCompositeStream.cpp | 93 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/ |
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 | 212 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/ |
D | window.h | 863 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/av/media/libmediaplayer2/ |
D | mediaplayer2.cpp | 423 ANativeWindow *anw = (nww == NULL ? NULL : nww->getANativeWindow()); in setVideoSurfaceTexture() local 424 ALOGV("setVideoSurfaceTexture(%p)", anw); in setVideoSurfaceTexture() 430 if (anw != NULL) { in setVideoSurfaceTexture() 432 && mConnectedWindow->getANativeWindow() == anw) { in setVideoSurfaceTexture() 435 status_t err = native_window_api_connect(anw, NATIVE_WINDOW_API_MEDIA); in setVideoSurfaceTexture() 458 } else if (anw != NULL) { in setVideoSurfaceTexture() 460 status_t err = native_window_api_disconnect(anw, NATIVE_WINDOW_API_MEDIA); in setVideoSurfaceTexture()
|
/frameworks/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 61 native_handle_t* anw; member 104 ret = ACaptureSessionPhysicalOutput_create(physicalStream.anw, in initCamera() 161 ret = ACameraOutputTarget_create(physicalStream.anw, &outputTarget); in initCamera()
|
/frameworks/rs/cpp/ |
D | Allocation.cpp | 504 ANativeWindow *anw = (ANativeWindow *)RS::dispatch->AllocationGetSurface(mRS->getContext(), in getSurface() local 506 sp<Surface> surface(static_cast<Surface*>(anw)); in getSurface()
|