Searched refs:anw (Results 1 - 17 of 17) sorted by relevance

/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp70 sp<ANativeWindow> anw(mSurface);
72 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
81 sp<ANativeWindow> anw(mSurface);
83 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
91 sp<ANativeWindow> anw(mSurface);
106 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(),
108 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3));
111 status_t err = native_window_dequeue_buffer_and_wait(anw
[all...]
H A DFillBuffer.h39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
H A DFillBuffer.cpp92 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) {
94 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(),
105 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(),
H A DCpuConsumer_test.cpp456 void configureANW(const sp<ANativeWindow>& anw, argument
460 err = native_window_set_buffers_dimensions(anw.get(),
464 err = native_window_set_buffers_format(anw.get(), params.format);
467 err = native_window_set_usage(anw.get(),
472 err = anw.get()->query(anw.get(),
479 err = native_window_set_buffer_count(anw.get(),
487 void produceOneFrame(const sp<ANativeWindow>& anw, argument
492 ALOGVV("Dequeue buffer from %p", anw.get());
493 err = native_window_dequeue_buffer_and_wait(anw
[all...]
H A DSurfaceTextureGL_test.cpp214 ProducerThread(const sp<ANativeWindow>& anw, argument
216 mANW(anw),
429 ProducerThread(const sp<ANativeWindow>& anw): argument
430 mANW(anw) {
606 ProducerThread(const sp<ANativeWindow>& anw): argument
607 mANW(anw),
H A DSurfaceTextureClient_test.cpp679 sp<ANativeWindow> anw(mSTC);
693 ASSERT_EQ(OK, native_window_set_buffers_dimensions(anw.get(), 0, 0));
694 ASSERT_EQ(OK, native_window_set_buffers_format(anw.get(), fmts[i]));
695 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt));
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp96 static status_t configureSurface(const sp<ANativeWindow>& anw, argument
102 err = native_window_set_buffers_dimensions(anw.get(), width, height);
109 err = native_window_set_buffers_format(anw.get(), pixelFmt);
116 err = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN);
124 err = anw.get()->query(anw.get(),
136 err = native_window_set_buffer_count(anw.get(), maxBufferSlack + 1 + minUndequeuedBuffers);
149 * anw - a surface to produce a frame in.
159 static status_t produceFrame(const sp<ANativeWindow>& anw, argument
169 __FUNCTION__, anw
365 sp<ANativeWindow> anw; local
383 sp<ANativeWindow> anw; local
424 sp<ANativeWindow> anw; local
441 sp<ANativeWindow> anw; local
470 sp<ANativeWindow> anw; local
496 sp<ANativeWindow> anw; local
515 sp<ANativeWindow> anw; local
546 sp<ANativeWindow> anw; local
562 sp<ANativeWindow> anw; local
596 sp<ANativeWindow> anw; local
612 sp<ANativeWindow> anw; local
656 sp<ANativeWindow> anw; local
692 sp<ANativeWindow> anw; local
712 sp<ANativeWindow> anw; local
[all...]
H A Dandroid_view_Surface.cpp267 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local
268 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
451 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
453 anw->query(anw, NATIVE_WINDOW_WIDTH, &value);
459 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
461 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value);
/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp83 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); local
84 return (EGLNativeWindowType) anw.get();
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp267 sp<ANativeWindow> anw = producer; local
269 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) {
276 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) {
283 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) {
293 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN);
304 res = anw->query(anw
336 sp<ANativeWindow> anw = ctx->getProducer(); local
411 sp<ANativeWindow> anw = ctx->getProducer(); local
441 sp<ANativeWindow> anw = ctx->getProducer(); local
545 sp < ANativeWindow > anw = surface; local
[all...]
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h571 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro
577 ANativeWindow *a = anw(w);
596 ANativeWindow *a = anw(w);
604 ANativeWindow *a = anw(w);
612 ANativeWindow *a = anw(w);
619 ANativeWindow *a = anw(w);
627 ANativeWindow *a = anw(w);
639 ANativeWindow *a = anw(w);
650 ANativeWindow *a = anw(w);
656 ANativeWindow *a = anw(
[all...]
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp52 sp<ANativeWindow> anw = new Surface(surface); local
53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp118 sp<ANativeWindow> anw(mSurface);
119 status_t err = native_window_set_usage(anw.get(), mStream.buffer_producer.usage);
124 anw.get(), mStream.buffer_producer.width, mStream.buffer_producer.height);
128 err = native_window_set_buffers_format(anw.get(), mStream.buffer_producer.format);
199 sp<ANativeWindow> anw(mSurface);
207 if (mBufferState == CAPTURED && anw != NULL) {
208 err = anw->queueBuffer(anw.get(), mBuffer.get(), -1);
216 if (mBuffer == NULL && !mShutdown && anw != NULL) {
218 err = native_window_dequeue_buffer_and_wait(anw
[all...]
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp415 ANativeWindow *anw = surface.get(); local
420 if ((res = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) {
425 if ((res = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) {
430 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
435 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp213 sp<ANativeWindow> anw = new Surface(producer); local
214 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
292 sp<ANativeWindow> anw = sc->getSurface(); local
293 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp826 sp<ANativeWindow> anw; local
828 anw = new Surface(bufferProducer, true /* controlledByApp */);
829 status_t err = native_window_api_connect(anw.get(),
852 mConnectedWindow = anw;
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp529 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local
530 anw->setSwapInterval(anw, 1);

Completed in 3726 milliseconds