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

/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp68 sp<ANativeWindow> anw(mSurface);
70 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
79 sp<ANativeWindow> anw(mSurface);
81 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
89 sp<ANativeWindow> anw(mSurface);
104 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(),
106 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3));
109 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_geometry(anw.get(),
464 err = native_window_set_usage(anw.get(),
469 err = anw.get()->query(anw.get(),
476 err = native_window_set_buffer_count(anw.get(),
484 void produceOneFrame(const sp<ANativeWindow>& anw, argument
489 ALOGVV("Dequeue buffer from %p", anw.get());
490 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb);
500 ALOGVV("Lock buffer from %p for write", anw
[all...]
H A DSurfaceTextureGL_test.cpp206 ProducerThread(const sp<ANativeWindow>& anw, argument
208 mANW(anw),
417 ProducerThread(const sp<ANativeWindow>& anw): argument
418 mANW(anw) {
594 ProducerThread(const sp<ANativeWindow>& anw): argument
595 mANW(anw),
H A DSurfaceTextureClient_test.cpp657 sp<ANativeWindow> anw(mSTC);
671 ASSERT_EQ(OK, native_window_set_buffers_geometry(anw.get(), 0, 0, fmts[i]));
672 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
384 sp<ANativeWindow> anw; local
425 sp<ANativeWindow> anw; local
454 sp<ANativeWindow> anw; local
480 sp<ANativeWindow> anw; local
499 sp<ANativeWindow> anw; local
530 sp<ANativeWindow> anw; local
546 sp<ANativeWindow> anw; local
580 sp<ANativeWindow> anw; local
596 sp<ANativeWindow> anw; local
640 sp<ANativeWindow> anw; local
676 sp<ANativeWindow> anw; local
[all...]
H A Dandroid_view_Surface.cpp176 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local
177 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
362 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
364 anw->query(anw, NATIVE_WINDOW_WIDTH, &value);
370 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
372 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/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h573 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro
579 ANativeWindow *a = anw(w);
598 ANativeWindow *a = anw(w);
606 ANativeWindow *a = anw(w);
614 ANativeWindow *a = anw(w);
621 ANativeWindow *a = anw(w);
629 ANativeWindow *a = anw(w);
641 ANativeWindow *a = anw(w);
652 ANativeWindow *a = anw(w);
658 ANativeWindow *a = anw(
[all...]
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp365 sp<ANativeWindow> anw; local
368 anw = new Surface(bufferProducer, useAsync);
373 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) {
378 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) {
383 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) {
407 res = mDevice->createStream(anw, width, height, format, &streamId);
/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/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/native/opengl/libs/EGL/
H A DeglApi.cpp506 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local
507 anw->setSwapInterval(anw, 1);
/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;

Completed in 1447 milliseconds