/frameworks/native/libs/gui/tests/ |
Surface_test.cpp | 66 sp<ANativeWindow> anw(mSurface); 68 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, 77 sp<ANativeWindow> anw(mSurface); 79 int err = anw->query(anw.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, 87 sp<ANativeWindow> anw(mSurface); 99 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 101 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)); 104 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf) [all...] |
CpuConsumer_test.cpp | 455 void configureANW(const sp<ANativeWindow>& anw, 459 err = native_window_set_buffers_geometry(anw.get(), 463 err = native_window_set_usage(anw.get(), 468 err = anw.get()->query(anw.get(), 475 err = native_window_set_buffer_count(anw.get(), 483 void produceOneFrame(const sp<ANativeWindow>& anw, 488 ALOGVV("Dequeue buffer from %p", anw.get()); 489 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); 499 ALOGVV("Lock buffer from %p for write", anw.get()) [all...] |
SurfaceTextureClient_test.cpp | 656 sp<ANativeWindow> anw(mSTC); 672 ASSERT_EQ(OK, native_window_set_buffers_geometry(anw.get(), 0, 0, fmts[i])); 673 ASSERT_EQ(OK, anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &fmt));
|
SurfaceTexture_test.cpp | 768 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw) { 770 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(anw.get(), 781 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(), [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
PreviewRenderer.cpp | 52 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);
|
NativeWindowRenderer.cpp | 380 void NativeWindowRenderer::queueInternalBuffer(ANativeWindow *anw, 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, 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, buf->getNativeBuffer(), -1)) [all...] |
NativeWindowRenderer.h | 76 void queueInternalBuffer(ANativeWindow* anw, MediaBuffer* buffer); 77 void queueExternalBuffer(ANativeWindow* anw, MediaBuffer* buffer,
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
GaneshContext.cpp | 133 ANativeWindow* anw = tileQueue->m_ANW.get(); local 135 int result = ANativeWindow_setBuffersGeometry(anw, (int)tileWidth, 140 tileQueue->m_eglSurface = eglCreateWindowSurface(display, m_surfaceConfig, anw, NULL);
|
GLUtils.h | 85 static bool updateSharedSurfaceTextureWithBitmap(ANativeWindow* anw, const SkBitmap& bitmap);
|
GLUtils.cpp | 485 bool GLUtils::updateSharedSurfaceTextureWithBitmap(ANativeWindow* anw, const SkBitmap& bitmap) 492 if (ANativeWindow_lock(anw, &buffer, 0)) 498 ANativeWindow_unlockAndPost(anw); 518 ANativeWindow_unlockAndPost(anw);
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
CanvasTexture.cpp | 130 android::Surface* anw = nativeWindow(); local 131 if (!anw) 140 if (!GLUtils::updateSharedSurfaceTextureWithBitmap(anw, bitmap))
|
/frameworks/av/services/camera/libcameraservice/ |
CameraHardwareInterface.h | 559 #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(w) [all...] |
/system/core/include/system/ |
window.h | 192 * 1. Before dequeuing a buffer, the GL driver (or any other ANW client) 193 * queries the ANW for NATIVE_WINDOW_TRANSFORM_HINT. 195 * 2. The GL driver overrides the width and height of the ANW to 825 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, 827 return anw->dequeueBuffer_DEPRECATED(anw, anb);
|
/frameworks/native/cmds/flatland/ |
GLHelper.cpp | 208 sp<ANativeWindow> anw = new Surface(bq); local 209 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL); 287 sp<ANativeWindow> anw = sc->getSurface(); local 288 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
|
/frameworks/base/core/jni/ |
android_view_Surface.cpp | 173 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local 174 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
|
/frameworks/native/opengl/libs/EGL/ |
eglApi.cpp | 395 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local 396 anw->setSwapInterval(anw, 1); [all...] |
/frameworks/av/media/libmediaplayerservice/ |
MediaPlayerService.cpp | 743 sp<ANativeWindow> anw; local 745 anw = new Surface(bufferProducer); 746 status_t err = native_window_api_connect(anw.get(), 751 // Note that we must do the reset before disconnecting from the ANW. 753 // ANW, which may result in errors. 764 // on the disconnected ANW, which may result in errors. 769 mConnectedWindow = anw; [all...] |