Searched defs:anw (Results 1 - 18 of 18) sorted by relevance

/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp83 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); local
84 return (EGLNativeWindowType) anw.get();
/frameworks/av/cmds/screenrecord/
H A DEglWindow.cpp51 sp<ANativeWindow> anw = new Surface(surface); local
52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(),
/frameworks/native/libs/gui/tests/
H A DSurfaceTextureGL_test.cpp221 ProducerThread(const sp<ANativeWindow>& anw, argument
223 mANW(anw),
440 explicit ProducerThread(const sp<ANativeWindow>& anw): argument
441 mANW(anw) {
623 explicit ProducerThread(const sp<ANativeWindow>& anw): argument
624 mANW(anw),
H A DCpuConsumer_test.cpp448 void configureANW(const sp<ANativeWindow>& anw, argument
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, argument
487 ALOGVV("Dequeue buffer from %p", anw
[all...]
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp212 sp<ANativeWindow> anw = new Surface(producer); local
213 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
291 sp<ANativeWindow> anw = sc->getSurface(); local
292 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp1069 auto anw = static_cast<ANativeWindow*>(s.get()); local
1070 native_window_set_buffers_transform(anw, NATIVE_WINDOW_TRANSFORM_ROT_90);
1071 native_window_set_buffers_dimensions(anw, 64, 128);
/frameworks/rs/cpp/
H A DAllocation.cpp504 ANativeWindow *anw = (ANativeWindow *)RS::dispatch->AllocationGetSurface(mRS->getContext(), local
506 sp<Surface> surface(static_cast<Surface*>(anw));
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp138 * anw - a surface to produce a frame in.
148 static status_t produceFrame(const sp<ANativeWindow>& anw, argument
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
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...]
H A Dandroid_view_Surface.cpp276 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local
277 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
481 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
483 anw->query(anw, NATIVE_WINDOW_WIDTH, &value);
489 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
491 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value);
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp257 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) {
276 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) {
289 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN);
300 res = anw->query(anw
332 sp<ANativeWindow> anw = ctx->getProducer(); local
406 sp<ANativeWindow> anw = ctx->getProducer(); local
435 sp<ANativeWindow> anw = ctx->getProducer(); local
532 sp < ANativeWindow > anw = surface; local
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraDevice.cpp287 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));
492 ANativeWindow* anw, s
472 getIGBPfromAnw( ANativeWindow* anw, sp<IGraphicBufferProducer>& out) argument
491 getSurfaceFromANativeWindow( ANativeWindow* anw, sp<Surface>& out) argument
522 ANativeWindow* anw = outConfig.mWindow; local
719 ANativeWindow* anw = outputPairIt->second.first; local
1005 ANativeWindow* anw; local
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp2158 ANativeWindow *anw = window.get(); local
2160 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
2165 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp791 ANativeWindow *anw = surface.get(); local
795 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) {
801 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) {
807 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
813 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp877 #define anw(n) sToAnw(((struct camera_preview_window *)(n))->user) macro
885 ANativeWindow *a = anw(w);
904 ANativeWindow *a = anw(w);
912 ANativeWindow *a = anw(w);
920 ANativeWindow *a = anw(w);
927 ANativeWindow *a = anw(w);
973 ANativeWindow *a = anw(w);
988 ANativeWindow *a = anw(w);
999 ANativeWindow *a = anw(w);
1005 ANativeWindow *a = anw(
[all...]
/frameworks/native/libs/nativewindow/include/system/
H A Dwindow.h852 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, argument
854 return anw->dequeueBuffer_DEPRECATED(anw, anb);
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp572 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local
573 anw->setSwapInterval(anw, 1);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp914 sp<ANativeWindow> anw; local
916 anw = new Surface(bufferProducer, true /* controlledByApp */);
917 status_t err = nativeWindowConnect(anw.get(), "setVideoSurfaceTexture");
939 mConnectedWindow = anw;
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1266 ANativeWindow *anw = (ANativeWindow *)rsAllocationGetSurface((RsContext)con, (RsAllocation)a); local
1268 sp<Surface> surface(static_cast<Surface*>(anw));
1283 ANativeWindow *anw = nullptr; local
1286 anw = ANativeWindow_fromSurface(_env, sur);
1287 native_window_api_connect(anw, NATIVE_WINDOW_API_CPU);
1290 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, anw);

Completed in 383 milliseconds