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

/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp67 sp<ANativeWindow> anw(mSurface);
69 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
78 sp<ANativeWindow> anw(mSurface);
80 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
88 sp<ANativeWindow> anw(mSurface);
101 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(),
103 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3));
106 status_t err = native_window_dequeue_buffer_and_wait(anw
[all...]
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 DSurfaceTextureClient_test.cpp654 sp<ANativeWindow> anw(mSTC);
668 ASSERT_EQ(OK, native_window_set_buffers_geometry(anw.get(), 0, 0, fmts[i]));
669 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt));
H A DSurfaceTexture_test.cpp772 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) {
774 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(),
785 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(),
968 ProducerThread(const sp<ANativeWindow>& anw, argument
970 mANW(anw),
1179 ProducerThread(const sp<ANativeWindow>& anw): argument
1180 mANW(anw) {
1356 ProducerThread(const sp<ANativeWindow>& anw): argument
1357 mANW(anw),
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp52 ANativeWindow* anw = mSurface.get(); local
54 err = native_window_api_connect(anw, NATIVE_WINDOW_API_CPU);
58 anw, GRALLOC_USAGE_SW_READ_NEVER | GRALLOC_USAGE_SW_WRITE_OFTEN);
61 err = native_window_set_buffer_count(anw, 3);
65 anw, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW);
69 anw, mWidth, mHeight, HAL_PIXEL_FORMAT_YV12);
72 err = native_window_set_buffers_transform(anw, 0);
H A DNativeWindowRenderer.cpp380 void NativeWindowRenderer::queueInternalBuffer(ANativeWindow *anw, argument
384 native_window_set_buffers_timestamp(anw, timeUs * 1000);
385 status_t err = anw->queueBuffer(anw, buffer->graphicBuffer().get(), -1);
395 void NativeWindowRenderer::queueExternalBuffer(ANativeWindow* anw, argument
397 native_window_set_buffers_geometry(anw, width, height,
399 native_window_set_usage(anw, GRALLOC_USAGE_SW_WRITE_OFTEN);
402 CHECK(NO_ERROR == native_window_dequeue_buffer_and_wait(anw, &anb));
411 CHECK(NO_ERROR == anw->queueBuffer(anw, bu
[all...]
H A DNativeWindowRenderer.h76 void queueInternalBuffer(ANativeWindow* anw, MediaBuffer* buffer);
77 void queueExternalBuffer(ANativeWindow* anw, MediaBuffer* buffer,
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.h559 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro
565 ANativeWindow *a = anw(w);
584 ANativeWindow *a = anw(w);
592 ANativeWindow *a = anw(w);
600 ANativeWindow *a = anw(w);
607 ANativeWindow *a = anw(w);
614 ANativeWindow *a = anw(w);
622 ANativeWindow *a = anw(w);
633 ANativeWindow *a = anw(w);
639 ANativeWindow *a = anw(
[all...]
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp310 sp<ANativeWindow> anw; local
313 anw = new Surface(bufferProducer, useAsync);
318 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) {
323 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) {
328 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) {
358 res = mDevice->createStream(anw, width, height, format, maxJpegSize,
362 res = mDevice->createStream(anw, widt
[all...]
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp211 sp<ANativeWindow> anw = new Surface(bq); local
212 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
290 sp<ANativeWindow> anw = sc->getSurface(); local
291 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp173 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local
174 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp504 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local
505 anw->setSwapInterval(anw, 1);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp745 sp<ANativeWindow> anw; local
747 anw = new Surface(bufferProducer, true /* controlledByApp */);
748 status_t err = native_window_api_connect(anw.get(),
771 mConnectedWindow = anw;

Completed in 225 milliseconds