/frameworks/native/libs/gui/tests/ |
Surface_test.cpp | 70 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); 103 ASSERT_EQ(NO_ERROR, native_window_api_connect(anw.get(), 108 ASSERT_EQ(NO_ERROR, native_window_set_usage(anw.get(), 110 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(anw.get(), 3)) [all...] |
FillBuffer.h | 39 void produceOneRGBA8Frame(const sp<ANativeWindow>& anw);
|
FillBuffer.cpp | 92 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(),
|
CpuConsumer_test.cpp | 448 void configureANW(const sp<ANativeWindow>& anw, 452 err = native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU); 455 err = native_window_set_buffers_dimensions(anw.get(), 459 err = native_window_set_buffers_format(anw.get(), params.format); 462 err = native_window_set_usage(anw.get(), 467 err = anw.get()->query(anw.get(), 474 err = native_window_set_buffer_count(anw.get(), 482 void produceOneFrame(const sp<ANativeWindow>& anw, 487 ALOGVV("Dequeue buffer from %p", anw.get()) [all...] |
SurfaceTextureGL_test.cpp | 221 ProducerThread(const sp<ANativeWindow>& anw, 223 mANW(anw), 440 ProducerThread(const sp<ANativeWindow>& anw): 441 mANW(anw) { 623 ProducerThread(const sp<ANativeWindow>& anw): 624 mANW(anw),
|
/frameworks/base/core/jni/ |
android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 138 * anw - a surface to produce a frame in. 148 static status_t produceFrame(const sp<ANativeWindow>& anw, 158 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize); 160 if (anw == 0) { 161 ALOGE("%s: anw must not be NULL", __FUNCTION__); 182 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb); 197 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt); 233 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()); 261 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get()) 354 sp<ANativeWindow> anw; local 372 sp<ANativeWindow> anw; local 413 sp<ANativeWindow> anw; local 430 sp<ANativeWindow> anw; local 459 sp<ANativeWindow> anw; local 485 sp<ANativeWindow> anw; local 524 sp<ANativeWindow> anw; local 570 sp<ANativeWindow> anw; local 604 sp<ANativeWindow> anw; local 620 sp<ANativeWindow> anw; local 664 sp<ANativeWindow> anw; local 700 sp<ANativeWindow> anw; local 720 sp<ANativeWindow> anw; local [all...] |
android_view_Surface.cpp | 272 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local 273 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value); 466 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local 468 anw->query(anw, NATIVE_WINDOW_WIDTH, &value); 474 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local 476 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value);
|
/hardware/intel/common/libva/test/common/ |
va_display_android.cpp | 38 static sp<ANativeWindow> anw = NULL; variable 73 anw = surface_ctr->getSurface(); 87 if (anw == NULL) 90 return vaPutSurface(va_dpy, surface, anw,
|
/hardware/intel/img/hwcomposer/merrifield/test/ |
nv12_ved_test.cpp | 89 sp < ANativeWindow > anw; local 104 anw = s.get(); 105 if (native_window_set_buffers_geometry(anw.get(), 640, 480, 108 if (native_window_set_usage(anw.get(), 116 if (native_window_dequeue_buffer_and_wait(anw.get(), &anb)) 121 //if (anw->lockBuffer(anw.get(), buf->getNativeBuffer()) != NO_ERROR) 132 if (anw->queueBuffer(anw.get(), buf->getNativeBuffer(), -1) != NO_ERROR)
|
/hardware/ti/omap4-aah/test/CameraHal/ |
surfacetexture_test.cpp | 117 sp<ANativeWindow> anw; local 131 anw = stc; 139 native_window_set_usage(anw.get(), usage); 140 native_window_set_buffer_count(anw.get(), N_BUFFERS); 141 native_window_set_buffers_geometry(anw.get(), 149 anw->dequeueBuffer(anw.get(), &anb[i]); 167 anw->cancelBuffer (anw.get(), anb[i]);
|
/frameworks/native/opengl/tests/lib/ |
WindowSurface.cpp | 83 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); local 84 return (EGLNativeWindowType) anw.get();
|
/frameworks/base/media/jni/ |
android_media_ImageWriter.cpp | 257 sp<ANativeWindow> anw = producer; local 259 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) { 266 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) { 273 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &format)) != OK) { 283 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); 294 res = anw->query(anw.get() 326 sp<ANativeWindow> anw = ctx->getProducer(); local 400 sp<ANativeWindow> anw = ctx->getProducer(); local 429 sp<ANativeWindow> anw = ctx->getProducer(); local 533 sp < ANativeWindow > anw = surface; local [all...] |
/frameworks/av/services/camera/libcameraservice/device1/ |
CameraHardwareInterface.h | 609 #define anw(n) __to_anw(((struct camera_preview_window *)n)->user) macro 617 ANativeWindow *a = anw(w); 636 ANativeWindow *a = anw(w); 644 ANativeWindow *a = anw(w); 652 ANativeWindow *a = anw(w); 659 ANativeWindow *a = anw(w); 705 ANativeWindow *a = anw(w); 720 ANativeWindow *a = anw(w); 731 ANativeWindow *a = anw(w); 737 ANativeWindow *a = anw(w) [all...] |
/frameworks/av/camera/ndk/impl/ |
ACameraDevice.cpp | 45 const char* CameraDevice::kAnwKey = "Anw"; 287 ANativeWindow* anw = outputTarget.mWindow; local 289 ret = getSurfaceFromANativeWindow(anw, surface); 307 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); local 308 ACameraOutputTarget outputTarget(anw); 473 ANativeWindow* anw, 475 if (anw == nullptr) { 480 int err = (*anw->query)(anw, NATIVE_WINDOW_CONCRETE_TYPE, &value); 485 const sp<Surface> surface(static_cast<Surface*>(anw)); 522 ANativeWindow* anw = outConfig.mWindow; local 719 ANativeWindow* anw = outputPairIt->second.first; local 1005 ANativeWindow* anw; local [all...] |
ACameraDevice.h | 140 ANativeWindow* anw, sp<IGraphicBufferProducer>& out); 143 ANativeWindow* anw, sp<Surface>& out); 152 // stream id -> pair of (ANW* from application, OutputConfiguration used for camera service)
|
/frameworks/av/include/camera/ndk/ |
NdkCameraDevice.h | 328 * @param anw the {@link ANativeWindow} to be associated with the {@link ACaptureSessionOutput} 335 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if anw or output is NULL.</li></ul> 340 ANativeWindow* anw, /*out*/ACaptureSessionOutput** output); [all...] |
/frameworks/av/cmds/screenrecord/ |
EglWindow.cpp | 52 sp<ANativeWindow> anw = new Surface(surface); local 53 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
|
/frameworks/base/services/core/jni/ |
com_android_server_tv_TvInputHal.cpp | 118 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.get(), &buffer) [all...] |
/system/core/include/system/ |
window.h | 199 * 1. Before dequeuing a buffer, the GL driver (or any other ANW client) 200 * queries the ANW for NATIVE_WINDOW_TRANSFORM_HINT. 202 * 2. The GL driver overrides the width and height of the ANW to [all...] |
/frameworks/native/cmds/flatland/ |
GLHelper.cpp | 213 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/services/camera/libcameraservice/api2/ |
CameraDeviceClient.cpp | 495 ANativeWindow *anw = surface.get(); local 497 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) { 503 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) { 509 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) { 515 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE, [all...] |
/device/huawei/angler/camera/QCamera2/HAL/ |
QCameraMem.h | 224 void setNativeWindow(preview_stream_ops_t *anw);
|
/device/lge/bullhead/camera/QCamera2/HAL/ |
QCameraMem.h | 224 void setNativeWindow(preview_stream_ops_t *anw);
|
/device/moto/shamu/camera/QCamera2/HAL/ |
QCameraMem.h | 205 void setNativeWindow(preview_stream_ops_t *anw);
|
/hardware/qcom/camera/QCamera2/HAL/ |
QCameraMem.h | 252 void setNativeWindow(preview_stream_ops_t *anw);
|