/frameworks/native/libs/gui/tests/ |
Surface_test.cpp | 67 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.get(), &buf) [all...] |
CpuConsumer_test.cpp | 456 void configureANW(const sp<ANativeWindow>& anw, 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, 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.get()) [all...] |
SurfaceTextureClient_test.cpp | 654 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));
|
SurfaceTexture_test.cpp | 772 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(), [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,
|
/frameworks/av/services/camera/libcameraservice/device1/ |
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...] |
/frameworks/av/services/camera/libcameraservice/api2/ |
CameraDeviceClient.cpp | 311 sp<ANativeWindow> anw; local 314 anw = new Surface(bufferProducer, useAsync); 319 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { 324 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { 329 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) { 359 res = mDevice->createStream(anw, width, height, format, maxJpegSize, 363 res = mDevice->createStream(anw, width, height, format, /*size*/0 [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 834 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, 836 return anw->dequeueBuffer_DEPRECATED(anw, anb);
|
/frameworks/native/cmds/flatland/ |
GLHelper.cpp | 211 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/ |
android_view_Surface.cpp | 173 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local 174 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
|
/device/asus/flo/camera/QCamera2/HAL/ |
QCameraMem.h | 152 void setNativeWindow(preview_stream_ops_t *anw);
|
/hardware/qcom/camera/QCamera2/HAL/ |
QCameraMem.h | 152 void setNativeWindow(preview_stream_ops_t *anw);
|
/frameworks/native/opengl/libs/EGL/ |
eglApi.cpp | 504 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local 505 anw->setSwapInterval(anw, 1); [all...] |
/frameworks/av/media/libmediaplayerservice/ |
MediaPlayerService.cpp | 745 sp<ANativeWindow> anw; local 747 anw = new Surface(bufferProducer, true /* controlledByApp */); 748 status_t err = native_window_api_connect(anw.get(), 753 // Note that we must do the reset before disconnecting from the ANW. 755 // ANW, which may result in errors. 766 // on the disconnected ANW, which may result in errors. 771 mConnectedWindow = anw; [all...] |