Home
last modified time | relevance | path

Searched refs:ANativeWindow (Results 1 – 25 of 100) sorted by relevance

1234

/frameworks/native/include/android/
Dnative_window.h35 struct ANativeWindow;
36 typedef struct ANativeWindow ANativeWindow; typedef
63 void ANativeWindow_acquire(ANativeWindow* window);
68 void ANativeWindow_release(ANativeWindow* window);
74 int32_t ANativeWindow_getWidth(ANativeWindow* window);
80 int32_t ANativeWindow_getHeight(ANativeWindow* window);
86 int32_t ANativeWindow_getFormat(ANativeWindow* window);
102 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
113 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
120 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
Dnative_activity.h168 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window);
175 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window);
183 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window);
193 void (*onNativeWindowDestroyed)(ANativeActivity* activity, ANativeWindow* window);
/frameworks/base/native/android/
Dnative_window.cpp27 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { in ANativeWindow_fromSurface()
28 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); in ANativeWindow_fromSurface()
35 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire()
39 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release()
43 static int32_t getWindowProp(ANativeWindow* window, int what) { in getWindowProp()
49 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth()
53 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight()
57 int32_t ANativeWindow_getFormat(ANativeWindow* window) { in ANativeWindow_getFormat()
61 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, in ANativeWindow_setBuffersGeometry()
77 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock()
[all …]
/frameworks/native/include/ui/
DFramebufferNativeWindow.h51 ANativeWindow,
72 static int setSwapInterval(ANativeWindow* window, int interval);
73 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd);
74 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
75 static int query(const ANativeWindow* window, int what, int* value);
76 static int perform(ANativeWindow* window, int operation, ...);
78 static int dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer);
79 static int queueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
80 static int lockBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
/frameworks/native/libs/ui/
DFramebufferNativeWindow.cpp142 const_cast<uint32_t&>(ANativeWindow::flags) = fbDev->flags; in FramebufferNativeWindow()
143 const_cast<float&>(ANativeWindow::xdpi) = fbDev->xdpi; in FramebufferNativeWindow()
144 const_cast<float&>(ANativeWindow::ydpi) = fbDev->ydpi; in FramebufferNativeWindow()
145 const_cast<int&>(ANativeWindow::minSwapInterval) = in FramebufferNativeWindow()
147 const_cast<int&>(ANativeWindow::maxSwapInterval) = in FramebufferNativeWindow()
153 ANativeWindow::setSwapInterval = setSwapInterval; in FramebufferNativeWindow()
154 ANativeWindow::dequeueBuffer = dequeueBuffer; in FramebufferNativeWindow()
155 ANativeWindow::queueBuffer = queueBuffer; in FramebufferNativeWindow()
156 ANativeWindow::query = query; in FramebufferNativeWindow()
157 ANativeWindow::perform = perform; in FramebufferNativeWindow()
[all …]
/frameworks/native/include/gui/
DSurface.h48 : public ANativeObjectBase<ANativeWindow, Surface, RefBase>
121 static int hook_cancelBuffer(ANativeWindow* window,
123 static int hook_dequeueBuffer(ANativeWindow* window,
125 static int hook_perform(ANativeWindow* window, int operation, ...);
126 static int hook_query(const ANativeWindow* window, int what, int* value);
127 static int hook_queueBuffer(ANativeWindow* window,
129 static int hook_setSwapInterval(ANativeWindow* window, int interval);
131 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window,
133 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window,
135 static int hook_lockBuffer_DEPRECATED(ANativeWindow* window,
[all …]
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp105 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock()
110 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost()
118 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow()
126 ANativeWindow* nativeWindow = (ANativeWindow*) in android_view_TextureView_destroyNativeWindow()
130 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow()
155 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas()
189 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_unlockCanvasAndPost()
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp96 static status_t configureSurface(const sp<ANativeWindow>& anw, in configureSurface()
159 static status_t produceFrame(const sp<ANativeWindow>& anw, in produceFrame()
364 static sp<ANativeWindow> getNativeWindow(JNIEnv* env, jobject surface) { in getNativeWindow()
365 sp<ANativeWindow> anw; in getNativeWindow()
382 static sp<ANativeWindow> getNativeWindowFromTexture(JNIEnv* env, jobject surfaceTexture) { in getNativeWindowFromTexture()
383 sp<ANativeWindow> anw; in getNativeWindowFromTexture()
424 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceType()
441 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceDataspace()
470 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceDimens()
496 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceUsageFlags()
[all …]
Dandroid_view_Surface.cpp85 sp<ANativeWindow> android_view_Surface_getNativeWindow(JNIEnv* env, jobject surfaceObj) { in android_view_Surface_getNativeWindow()
267 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind()
451 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth()
459 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight()
/frameworks/av/include/media/stagefright/
DSurfaceUtils.h23 struct ANativeWindow;
28 ANativeWindow *nativeWindow /* nonnull */,
30 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h70 bool initialize(ANativeWindow* window);
71 void updateSurface(ANativeWindow* window);
72 bool pauseSurface(ANativeWindow* window);
121 void setSurface(ANativeWindow* window);
129 sp<ANativeWindow> mNativeWindow;
DRenderProxy.h70 ANDROID_API bool initialize(const sp<ANativeWindow>& window);
71 ANDROID_API void updateSurface(const sp<ANativeWindow>& window);
72 ANDROID_API bool pauseSurface(const sp<ANativeWindow>& window);
/frameworks/native/libs/gui/tests/
DSurface_test.cpp70 sp<ANativeWindow> anw(mSurface); in TEST_F()
81 sp<ANativeWindow> anw(mSurface); in TEST_F()
91 sp<ANativeWindow> anw(mSurface); in TEST_F()
134 sp<ANativeWindow> anw(mSurface); in TEST_F()
151 sp<ANativeWindow> anw(s); in TEST_F()
171 sp<ANativeWindow> anw(s); in TEST_F()
188 sp<ANativeWindow> window(surface); in TEST_F()
225 sp<ANativeWindow> window(surface); in TEST_F()
/frameworks/support/v8/renderscript/jni/
Dandroid_rscompat_usage_io_driver.cpp15 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { in IoGetBuffer()
33 extern "C" void rscAllocationSetSurface(RsContext rscR, RsAllocation allocR, ANativeWindow *nw) { in rscAllocationSetSurface()
40 ANativeWindow *old = drv->wndSurface; in rscAllocationSetSurface()
85 ANativeWindow *nw = drv->wndSurface; in rscAllocationDestroy()
98 ANativeWindow *nw = drv->wndSurface; in rscAllocationIoSend()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h118 status_t setPreviewWindow(const sp<ANativeWindow>& buf) in setPreviewWindow()
565 static ANativeWindow *__to_anw(void *user) in __to_anw()
577 ANativeWindow *a = anw(w); in __dequeue_buffer()
596 ANativeWindow *a = anw(w); in __lock_buffer()
604 ANativeWindow *a = anw(w); in __enqueue_buffer()
612 ANativeWindow *a = anw(w); in __cancel_buffer()
619 ANativeWindow *a = anw(w); in __set_buffer_count()
627 ANativeWindow *a = anw(w); in __set_buffers_geometry()
639 ANativeWindow *a = anw(w); in __set_crop()
650 ANativeWindow *a = anw(w); in __set_timestamp()
[all …]
/frameworks/native/libs/gui/
DSurface.cpp49 ANativeWindow::setSwapInterval = hook_setSwapInterval; in Surface()
50 ANativeWindow::dequeueBuffer = hook_dequeueBuffer; in Surface()
51 ANativeWindow::cancelBuffer = hook_cancelBuffer; in Surface()
52 ANativeWindow::queueBuffer = hook_queueBuffer; in Surface()
53 ANativeWindow::query = hook_query; in Surface()
54 ANativeWindow::perform = hook_perform; in Surface()
56 ANativeWindow::dequeueBuffer_DEPRECATED = hook_dequeueBuffer_DEPRECATED; in Surface()
57 ANativeWindow::cancelBuffer_DEPRECATED = hook_cancelBuffer_DEPRECATED; in Surface()
58 ANativeWindow::lockBuffer_DEPRECATED = hook_lockBuffer_DEPRECATED; in Surface()
59 ANativeWindow::queueBuffer_DEPRECATED = hook_queueBuffer_DEPRECATED; in Surface()
[all …]
/frameworks/base/docs/html/ndk/reference/
Dnative__window_8h.jd29ANativeWindow</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___n…
44 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
46 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
48 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
50 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
52 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
54 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window, i…
56 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window, <…
58 …ref="group___native_activity.html#ga66956d540c2e3709e12156d195e64726">ANativeWindow</a> *window)</…
/frameworks/native/opengl/include/EGL/
Deglplatform.h88 struct ANativeWindow;
91 typedef struct ANativeWindow* EGLNativeWindowType;
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h35 const sp<ANativeWindow> &nativeWindow, int32_t rotation = 0);
52 sp<ANativeWindow> mNativeWindow;
/frameworks/wilhelm/tests/sandbox/
Dnativewindow.cpp43 ANativeWindow *getNativeWindow_() in getNativeWindow_()
85 ANativeWindow *getNativeWindow() in getNativeWindow()
/frameworks/base/media/mca/filterfw/jni/
Djni_gl_environment.cpp42 NativeWindowHandle(ANativeWindow* window) : window_(window) { in NativeWindowHandle()
62 ANativeWindow* window_;
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
204 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
295 sp<ANativeWindow> window = surfaceTC; in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder()
/frameworks/native/opengl/specs/
DEGL_ANDROID_framebuffer_target.txt37 Android supports a number of different ANativeWindow implementations that
43 supports rendering to an ANativeWindow for which the buffers are passed to
82 config may be used to create an EGLSurface from an ANativeWindow for
DEGL_ANDROID_recordable.txt37 Android supports a number of different ANativeWindow implementations that
43 rendering to an ANativeWindow that records images to a video.
80 be used to create an EGLSurface from an ANativeWindow that is a video
82 the ANativeWindow.
120 eglSwapBuffers call before queuing the rendered image to the ANativeWindow.
/frameworks/rs/driver/
DrsdAllocation.h36 struct ANativeWindow;
72 ANativeWindow *wnd;
73 ANativeWindow *wndSurface;
101 android::renderscript::Allocation *alloc, ANativeWindow *nw);
DrsdGL.h66 ANativeWindow *wndSurface;
67 ANativeWindow *currentWndSurface;

1234