/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 68 sp<ANativeWindow> anw(mSurface); in TEST_F() local 70 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 79 sp<ANativeWindow> anw(mSurface); in TEST_F() local 81 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 89 sp<ANativeWindow> anw(mSurface); in TEST_F() local 104 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F() 106 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F() 109 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf); in TEST_F() 114 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F() 115 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), in TEST_F() [all …]
|
D | CpuConsumer_test.cpp | 456 void configureANW(const sp<ANativeWindow>& anw, in configureANW() argument 460 err = native_window_set_buffers_geometry(anw.get(), in configureANW() 464 err = native_window_set_usage(anw.get(), in configureANW() 469 err = anw.get()->query(anw.get(), in configureANW() 476 err = native_window_set_buffer_count(anw.get(), in configureANW() 484 void produceOneFrame(const sp<ANativeWindow>& anw, in produceOneFrame() argument 489 ALOGVV("Dequeue buffer from %p", anw.get()); in produceOneFrame() 490 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceOneFrame() 500 ALOGVV("Lock buffer from %p for write", anw.get()); in produceOneFrame() 527 ALOGVV("Unlock buffer from %p", anw.get()); 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 | SurfaceTextureGL_test.cpp | 206 ProducerThread(const sp<ANativeWindow>& anw, in TEST_F() argument 208 mANW(anw), in TEST_F() 417 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 418 mANW(anw) { in TEST_F() 594 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 595 mANW(anw), in TEST_F()
|
D | SurfaceTextureClient_test.cpp | 657 sp<ANativeWindow> anw(mSTC); in TEST_F() local 671 ASSERT_EQ(OK, native_window_set_buffers_geometry(anw.get(), 0, 0, fmts[i])); in TEST_F() 672 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 95 static status_t configureSurface(const sp<ANativeWindow>& anw, in configureSurface() argument 101 err = native_window_set_buffers_dimensions(anw.get(), width, height); in configureSurface() 108 err = native_window_set_buffers_format(anw.get(), pixelFmt); in configureSurface() 115 err = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in configureSurface() 123 err = anw.get()->query(anw.get(), in configureSurface() 135 err = native_window_set_buffer_count(anw.get(), maxBufferSlack + 1 + minUndequeuedBuffers); in configureSurface() 158 static status_t produceFrame(const sp<ANativeWindow>& anw, in produceFrame() argument 168 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize); in produceFrame() 170 if (anw == 0) { in produceFrame() 192 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); in produceFrame() [all …]
|
D | android_view_Surface.cpp | 171 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind() local 172 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in nativeIsConsumerRunningBehind()
|
/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 573 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro 579 ANativeWindow *a = anw(w); in __dequeue_buffer() 598 ANativeWindow *a = anw(w); in __lock_buffer() 606 ANativeWindow *a = anw(w); in __enqueue_buffer() 614 ANativeWindow *a = anw(w); in __cancel_buffer() 621 ANativeWindow *a = anw(w); in __set_buffer_count() 629 ANativeWindow *a = anw(w); in __set_buffers_geometry() 641 ANativeWindow *a = anw(w); in __set_crop() 652 ANativeWindow *a = anw(w); in __set_timestamp() 658 ANativeWindow *a = anw(w); in __set_usage() [all …]
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraDeviceClient.cpp | 357 sp<ANativeWindow> anw; in createStream() local 360 anw = new Surface(bufferProducer, useAsync); in createStream() 365 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { in createStream() 370 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { in createStream() 375 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) { in createStream() 395 res = mDevice->createStream(anw, width, height, format, &streamId); in createStream()
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 83 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface() local 84 return (EGLNativeWindowType) anw.get(); in getSurface()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 116 sp<ANativeWindow> anw(mSurface); in readyToRun() local 117 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage); in readyToRun() 122 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height); in readyToRun() 126 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format); in readyToRun() 197 sp<ANativeWindow> anw(mSurface); in threadLoop() local 205 if (mBufferState == CAPTURED && anw != NULL) { in threadLoop() 206 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1); in threadLoop() 214 if (mBuffer == NULL && !mShutdown && anw != NULL) { in threadLoop() 216 err = native_window_dequeue_buffer_and_wait(anw.get(), &buffer); in threadLoop()
|
/frameworks/av/cmds/screenrecord/ |
D | EglWindow.cpp | 52 sp<ANativeWindow> anw = new Surface(surface); in createWindow() local 53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), in createWindow()
|
/frameworks/native/cmds/flatland/ |
D | GLHelper.cpp | 213 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/native/opengl/libs/EGL/ |
D | eglApi.cpp | 506 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); in eglCreateWindowSurface() local 507 anw->setSwapInterval(anw, 1); in eglCreateWindowSurface()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaPlayerService.cpp | 826 sp<ANativeWindow> anw; in setVideoSurfaceTexture() local 828 anw = new Surface(bufferProducer, true /* controlledByApp */); in setVideoSurfaceTexture() 829 status_t err = native_window_api_connect(anw.get(), in setVideoSurfaceTexture() 852 mConnectedWindow = anw; in setVideoSurfaceTexture()
|