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

/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp74 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); local
75 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),
439 explicit ProducerThread(const sp<ANativeWindow>& anw): argument
440 mANW(anw) {
622 explicit ProducerThread(const sp<ANativeWindow>& anw): argument
623 mANW(anw),
H A DCpuConsumer_test.cpp444 void configureANW(const sp<ANativeWindow>& anw, argument
448 err = native_window_api_connect(anw.get(), NATIVE_WINDOW_API_CPU);
451 err = native_window_set_buffers_dimensions(anw.get(),
455 err = native_window_set_buffers_format(anw.get(), params.format);
458 err = native_window_set_usage(anw.get(),
463 err = anw.get()->query(anw.get(),
470 err = native_window_set_buffer_count(anw.get(),
478 void produceOneFrame(const sp<ANativeWindow>& anw, argument
483 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);
277 sp<ANativeWindow> anw = sc->getSurface(); local
278 EGLSurface s = eglCreateWindowSurface(mDisplay, mConfig, anw.get(), NULL);
/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.cpp157 * anw - a surface to produce a frame in.
167 static status_t produceFrame(const sp<ANativeWindow>& anw, argument
177 __FUNCTION__, anw.get(), bufWidth, bufHeight, pixelFmt, bufSize);
179 if (anw == 0) {
180 ALOGE("%s: anw must not be NULL", __FUNCTION__);
201 err = native_window_dequeue_buffer_and_wait(anw.get(), &anb);
221 err = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &bufFmt);
258 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw.get());
286 ALOGV("%s: Lock buffer from %p for write", __FUNCTION__, anw
380 sp<ANativeWindow> anw; local
398 sp<ANativeWindow> anw; local
439 sp<ANativeWindow> anw; local
457 sp<ANativeWindow> anw; local
487 sp<ANativeWindow> anw; local
515 sp<ANativeWindow> anw; local
556 sp<ANativeWindow> anw; local
605 sp<ANativeWindow> anw; local
639 sp<ANativeWindow> anw; local
656 sp<ANativeWindow> anw; local
701 sp<ANativeWindow> anw; local
737 sp<ANativeWindow> anw; local
757 sp<ANativeWindow> anw; local
[all...]
H A Dandroid_view_Surface.cpp282 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); local
283 anw->query(anw, NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value);
487 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
489 anw->query(anw, NATIVE_WINDOW_WIDTH, &value);
495 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
497 anw->query(anw, NATIVE_WINDOW_HEIGHT, &value);
527 ANativeWindow* anw local
534 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); local
[all...]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DSFFakeHwc_test.cpp1168 auto anw = static_cast<ANativeWindow*>(s.get()); local
1169 native_window_set_buffers_transform(anw, NATIVE_WINDOW_TRANSFORM_ROT_90);
1170 native_window_set_buffers_dimensions(anw, 64, 128);
/frameworks/av/camera/ndk/impl/
H A DACameraDevice.cpp331 for (auto& anw : output->mSharedWindows) {
332 ret = getIGBPfromAnw(anw, iGBP);
382 ANativeWindow* anw = outputTarget.mWindow; local
384 ret = getSurfaceFromANativeWindow(anw, surface);
410 ALOGE("Unconfigured output target %p in capture request!", anw);
426 ANativeWindow* anw = static_cast<ANativeWindow*>(req->mSurfaceList[i].get()); local
427 ACameraOutputTarget outputTarget(anw);
593 ANativeWindow* anw,
596 camera_status_t ret = getSurfaceFromANativeWindow(anw, surface);
606 ANativeWindow* anw, s
592 getIGBPfromAnw( ANativeWindow* anw, sp<IGraphicBufferProducer>& out) argument
605 getSurfaceFromANativeWindow( ANativeWindow* anw, sp<Surface>& out) argument
637 ANativeWindow* anw = outConfig.mWindow; local
844 ANativeWindow* anw = static_cast<ANativeWindow*>(surface.get()); local
1135 ANativeWindow* anw; local
[all...]
/frameworks/av/media/libmediaplayer2/
H A Dmediaplayer2.cpp655 ANativeWindow *anw = (nww == NULL ? NULL : nww->getANativeWindow()); local
656 ALOGV("setVideoSurfaceTexture(%p)", anw);
662 if (anw != NULL) {
664 && mConnectedWindow->getANativeWindow() == anw) {
667 status_t err = native_window_api_connect(anw, NATIVE_WINDOW_API_MEDIA);
690 } else if (anw != NULL) {
692 status_t err = native_window_api_disconnect(anw, NATIVE_WINDOW_API_MEDIA);
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp266 sp<ANativeWindow> anw = producer; local
268 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) {
275 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) {
285 if ((res = anw->query(anw.get(), NATIVE_WINDOW_FORMAT, &surfaceFormat)) != OK) {
298 res = native_window_set_usage(anw.get(), GRALLOC_USAGE_SW_WRITE_OFTEN);
309 res = anw->query(anw
341 sp<ANativeWindow> anw = ctx->getProducer(); local
415 sp<ANativeWindow> anw = ctx->getProducer(); local
445 sp<ANativeWindow> anw = ctx->getProducer(); local
554 sp < ANativeWindow > anw = surface; local
[all...]
H A Dandroid_media_MediaPlayer2.cpp459 ANativeWindow* anw = NULL; local
461 anw = ANativeWindow_fromSurface(env, jsurface);
462 if (anw == NULL) {
469 env->SetLongField(thiz, fields.surface_texture, (jlong)anw);
475 mp->setVideoSurfaceTexture(new ANativeWindowWrapper(anw));
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp2209 ANativeWindow *anw = window.get(); local
2211 if ((res = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
2216 if ((res = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp1059 ANativeWindow *anw = surface.get(); local
1063 if ((err = anw->query(anw, NATIVE_WINDOW_WIDTH, &width)) != OK) {
1069 if ((err = anw->query(anw, NATIVE_WINDOW_HEIGHT, &height)) != OK) {
1075 if ((err = anw->query(anw, NATIVE_WINDOW_FORMAT, &format)) != OK) {
1081 if ((err = anw->query(anw, NATIVE_WINDOW_DEFAULT_DATASPACE,
/frameworks/native/libs/nativewindow/include/system/
H A Dwindow.h841 static inline int native_window_dequeue_buffer_and_wait(ANativeWindow *anw, argument
843 return anw->dequeueBuffer_DEPRECATED(anw, anb);
/frameworks/native/opengl/libs/EGL/
H A DeglApi.cpp760 ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); local
761 anw->setSwapInterval(anw, 1);
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp2143 auto anw = static_cast<ANativeWindow*>(s.get()); local
2144 native_window_set_buffers_transform(anw, NATIVE_WINDOW_TRANSFORM_ROT_90);
2145 native_window_set_buffers_dimensions(anw, 64, 128);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp928 sp<ANativeWindow> anw; local
930 anw = new Surface(bufferProducer, true /* controlledByApp */);
931 status_t err = nativeWindowConnect(anw.get(), "setVideoSurfaceTexture");
956 mConnectedWindow = anw;
962 anw.get(), "disconnectNativeWindow");
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1268 ANativeWindow *anw = (ANativeWindow *)rsAllocationGetSurface((RsContext)con, (RsAllocation)a); local
1270 sp<Surface> surface(static_cast<Surface*>(anw));
1285 ANativeWindow *anw = nullptr; local
1288 anw = ANativeWindow_fromSurface(_env, sur);
1289 native_window_api_connect(anw, NATIVE_WINDOW_API_CPU);
1292 rsAllocationSetSurface((RsContext)con, (RsAllocation)alloc, anw);

Completed in 479 milliseconds