/frameworks/native/libs/gui/tests/ |
D | Surface_test.cpp | 60 sp<ANativeWindow> anw(mSurface); in TEST_F() local 62 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 71 sp<ANativeWindow> anw(mSurface); in TEST_F() local 73 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 81 sp<ANativeWindow> anw(mSurface); in TEST_F() local 95 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), in TEST_F() 97 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); in TEST_F() 100 status_t err = anw->dequeueBuffer(anw.get(), &buf); in TEST_F() 105 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 0)); in TEST_F() 106 ASSERT_EQ(NO_ERROR, anw->dequeueBuffer(anw.get(), &buf)); in TEST_F() [all …]
|
D | SurfaceTexture_test.cpp | 673 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) { in produceOneRGBA8Frame() argument 675 ASSERT_EQ(NO_ERROR, anw->dequeueBuffer(anw.get(), &anb)); in produceOneRGBA8Frame() 679 ASSERT_EQ(NO_ERROR, anw->lockBuffer(anw.get(), buf->getNativeBuffer())); in produceOneRGBA8Frame() 686 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer())); in produceOneRGBA8Frame() 868 ProducerThread(const sp<ANativeWindow>& anw, in TEST_F() argument 870 mANW(anw), in TEST_F() 1082 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 1083 mANW(anw) { in TEST_F() 1268 ProducerThread(const sp<ANativeWindow>& anw): in TEST_F() argument 1269 mANW(anw), in TEST_F()
|
D | SurfaceTextureClient_test.cpp | 626 sp<ANativeWindow> anw(mSTC); in TEST_F() local 642 ASSERT_EQ(OK, native_window_set_buffers_geometry(anw.get(), 0, 0, fmts[i])); in TEST_F() 643 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt)); in TEST_F()
|
/frameworks/av/libvideoeditor/lvpp/ |
D | PreviewRenderer.cpp | 52 ANativeWindow* anw = mSurface.get(); in init() local 54 err = native_window_api_connect(anw, NATIVE_WINDOW_API_CPU); in init() 58 anw, GRALLOC_USAGE_SW_READ_NEVER | GRALLOC_USAGE_SW_WRITE_OFTEN); in init() 61 err = native_window_set_buffer_count(anw, 3); in init() 65 anw, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW); in init() 69 anw, mWidth, mHeight, HAL_PIXEL_FORMAT_YV12); in init() 72 err = native_window_set_buffers_transform(anw, 0); in init()
|
D | NativeWindowRenderer.cpp | 380 void NativeWindowRenderer::queueInternalBuffer(ANativeWindow *anw, in queueInternalBuffer() argument 384 native_window_set_buffers_timestamp(anw, timeUs * 1000); in queueInternalBuffer() 385 status_t err = anw->queueBuffer(anw, buffer->graphicBuffer().get()); in queueInternalBuffer() 395 void NativeWindowRenderer::queueExternalBuffer(ANativeWindow* anw, in queueExternalBuffer() argument 397 native_window_set_buffers_geometry(anw, width, height, in queueExternalBuffer() 399 native_window_set_usage(anw, GRALLOC_USAGE_SW_WRITE_OFTEN); in queueExternalBuffer() 402 anw->dequeueBuffer(anw, &anb); in queueExternalBuffer() 406 CHECK(NO_ERROR == anw->lockBuffer(anw, buf->getNativeBuffer())); in queueExternalBuffer() 413 CHECK(NO_ERROR == anw->queueBuffer(anw, buf->getNativeBuffer())); in queueExternalBuffer()
|
D | NativeWindowRenderer.h | 76 void queueInternalBuffer(ANativeWindow* anw, MediaBuffer* buffer); 77 void queueExternalBuffer(ANativeWindow* anw, MediaBuffer* buffer,
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraHardwareInterface.h | 564 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro 570 ANativeWindow *a = anw(w); in __dequeue_buffer() 589 ANativeWindow *a = anw(w); in __lock_buffer() 597 ANativeWindow *a = anw(w); in __enqueue_buffer() 605 ANativeWindow *a = anw(w); in __cancel_buffer() 612 ANativeWindow *a = anw(w); in __set_buffer_count() 619 ANativeWindow *a = anw(w); in __set_buffers_geometry() 627 ANativeWindow *a = anw(w); in __set_crop() 638 ANativeWindow *a = anw(w); in __set_timestamp() 644 ANativeWindow *a = anw(w); in __set_usage() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_Surface.cpp | 327 ANativeWindow* anw = static_cast<ANativeWindow *>(surface.get()); in Surface_isConsumerRunningBehind() local 328 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); in Surface_isConsumerRunningBehind()
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 264 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); in eglCreateWindowSurface() local 265 anw->setSwapInterval(anw, 1); in eglCreateWindowSurface()
|
/frameworks/av/media/libmediaplayerservice/ |
D | MediaPlayerService.cpp | 902 sp<ANativeWindow> anw; in setVideoSurfaceTexture() local 904 anw = new SurfaceTextureClient(surfaceTexture); in setVideoSurfaceTexture() 905 status_t err = native_window_api_connect(anw.get(), in setVideoSurfaceTexture() 928 mConnectedWindow = anw; in setVideoSurfaceTexture()
|