Home
last modified time | relevance | path

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

1234567

/frameworks/native/libs/nativewindow/include/system/
Dwindow.h343 struct ANativeWindow struct
346 ANativeWindow() in ANativeWindow() argument
350 common.version = sizeof(ANativeWindow); in ANativeWindow()
387 int (*setSwapInterval)(struct ANativeWindow* window, argument
407 int (*dequeueBuffer_DEPRECATED)(struct ANativeWindow* window, argument
421 int (*lockBuffer_DEPRECATED)(struct ANativeWindow* window, argument
443 int (*queueBuffer_DEPRECATED)(struct ANativeWindow* window, argument
451 int (*query)(const struct ANativeWindow* window, argument
468 int (*perform)(struct ANativeWindow* window, argument
488 int (*cancelBuffer_DEPRECATED)(struct ANativeWindow* window, argument
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/mock/system/window/
DMockNativeWindow.cpp23 int dispatch_setSwapInterval(struct ANativeWindow* window, int interval) { in dispatch_setSwapInterval()
27 int dispatch_dequeueBuffer_DEPRECATED(struct ANativeWindow* window, in dispatch_dequeueBuffer_DEPRECATED()
32 int dispatch_lockBuffer_DEPRECATED(struct ANativeWindow* window, in dispatch_lockBuffer_DEPRECATED()
37 int dispatch_queueBuffer_DEPRECATED(struct ANativeWindow* window, in dispatch_queueBuffer_DEPRECATED()
42 int dispatch_query(const struct ANativeWindow* window, int what, int* value) { in dispatch_query()
46 int dispatch_perform(struct ANativeWindow* window, int operation, ...) { in dispatch_perform()
51 int dispatch_cancelBuffer_DEPRECATED(struct ANativeWindow* window, in dispatch_cancelBuffer_DEPRECATED()
56 int dispatch_dequeueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer** buffer, in dispatch_dequeueBuffer()
61 int dispatch_queueBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_queueBuffer()
66 int dispatch_cancelBuffer(struct ANativeWindow* window, struct ANativeWindowBuffer* buffer, in dispatch_cancelBuffer()
[all …]
/frameworks/native/libs/nativewindow/include/android/
Dnative_window.h82 struct ANativeWindow;
88 typedef struct ANativeWindow ANativeWindow; typedef
120 void ANativeWindow_acquire(ANativeWindow* window);
125 void ANativeWindow_release(ANativeWindow* window);
132 int32_t ANativeWindow_getWidth(ANativeWindow* window);
139 int32_t ANativeWindow_getHeight(ANativeWindow* window);
146 int32_t ANativeWindow_getFormat(ANativeWindow* window);
166 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
179 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
188 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
[all …]
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h43 int ANativeWindow_OemStorageSet(ANativeWindow* window, uint32_t slot, intptr_t value);
54 int ANativeWindow_OemStorageGet(ANativeWindow* window, uint32_t slot, intptr_t* value);
62 int ANativeWindow_setSwapInterval(ANativeWindow* window, int interval);
176 int ANativeWindow_query(const ANativeWindow* window, ANativeWindowQuery query, int* value);
177 int ANativeWindow_queryf(const ANativeWindow* window, ANativeWindowQuery query, float* value);
199 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd);
221 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
249 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
263 int ANativeWindow_setUsage(ANativeWindow* window, uint64_t usage);
269 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount);
[all …]
/frameworks/native/libs/nativewindow/include/apex/
Dwindow.h46 typedef int (*ANativeWindow_cancelBufferFn)(ANativeWindow* window, ANativeWindowBuffer* buffer,
55 typedef int (*ANativeWindow_cancelBufferInterceptor)(ANativeWindow* window,
64 typedef int (*ANativeWindow_dequeueBufferFn)(ANativeWindow* window, ANativeWindowBuffer** buffer,
73 typedef int (*ANativeWindow_dequeueBufferInterceptor)(ANativeWindow* window,
82 typedef int (*ANativeWindow_performFn)(ANativeWindow* window, int operation, va_list args);
90 typedef int (*ANativeWindow_performInterceptor)(ANativeWindow* window,
98 typedef int (*ANativeWindow_queueBufferFn)(ANativeWindow* window, ANativeWindowBuffer* buffer,
107 typedef int (*ANativeWindow_queueBufferInterceptor)(ANativeWindow* window,
124 int ANativeWindow_setCancelBufferInterceptor(ANativeWindow* window,
140 int ANativeWindow_setDequeueBufferInterceptor(ANativeWindow* window,
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/
DNativeWindow.cpp23 static int forwardSetSwapInterval(ANativeWindow* window, int interval) { in forwardSetSwapInterval()
27 static int forwardDequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in forwardDequeueBuffer()
31 static int forwardCancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardCancelBuffer()
35 static int forwardQueueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in forwardQueueBuffer()
39 static int forwardQuery(const ANativeWindow* window, int what, int* value) { in forwardQuery()
43 static int forwardPerform(ANativeWindow* window, int operation, ...) { in forwardPerform()
89 static int forwardDequeueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer** buffer) { in forwardDequeueBufferDeprecated()
94 static int forwardCancelBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardCancelBufferDeprecated()
98 static int forwardLockBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardLockBufferDeprecated()
102 static int forwardQueueBufferDeprecated(ANativeWindow* window, ANativeWindowBuffer* buffer) { in forwardQueueBufferDeprecated()
[all …]
/frameworks/native/libs/nativewindow/
DANativeWindow.cpp30 static int32_t query(ANativeWindow* window, int what) { in query()
36 static int64_t query64(ANativeWindow* window, int what) { in query64()
42 static bool isDataSpaceValid(ANativeWindow* window, int32_t dataSpace) { in isDataSpaceValid()
67 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire()
72 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release()
77 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth()
81 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight()
85 int32_t ANativeWindow_getFormat(ANativeWindow* window) { in ANativeWindow_getFormat()
89 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, in ANativeWindow_setBuffersGeometry()
105 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DSurfaceUtils.h24 struct ANativeWindow;
37 ANativeWindow *nativeWindow /* nonnull */,
40 ANativeWindow *nativeWindow /* nonnull */, HDRStaticInfo *info /* nonnull */);
42 ANativeWindow *nativeWindow /* nonnull */, int rotation);
43 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
44 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason);
45 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.h36 ReliableSurface(ANativeWindow* window);
44 ANativeWindow* getNativeWindow() { return mWindow; } in getNativeWindow()
60 ANativeWindow* mWindow;
82 static int hook_cancelBuffer(ANativeWindow* window, ANativeWindow_cancelBufferFn cancelBuffer,
84 static int hook_dequeueBuffer(ANativeWindow* window,
87 static int hook_queueBuffer(ANativeWindow* window, ANativeWindow_queueBufferFn queueBuffer,
90 static int hook_perform(ANativeWindow* window, ANativeWindow_performFn perform, void* data,
92 static int hook_query(const ANativeWindow* window, ANativeWindow_queryFn query, void* data,
DVulkanSurface.h38 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType,
109 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, GrDirectContext* grContext);
110 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
114 static bool UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo);
125 sp<ANativeWindow> mNativeWindow;
DReliableSurface.cpp33 ReliableSurface::ReliableSurface(ANativeWindow* window) : mWindow(window) { in ReliableSurface()
175 int ReliableSurface::hook_dequeueBuffer(ANativeWindow* window, in hook_dequeueBuffer()
202 int ReliableSurface::hook_cancelBuffer(ANativeWindow* window, in hook_cancelBuffer()
216 int ReliableSurface::hook_queueBuffer(ANativeWindow* window, in hook_queueBuffer()
232 int ReliableSurface::hook_perform(ANativeWindow* window, ANativeWindow_performFn perform, in hook_perform()
275 int ReliableSurface::hook_query(const ANativeWindow *window, ANativeWindow_queryFn query, in hook_query()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp74 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock()
79 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost()
87 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow()
95 ANativeWindow* nativeWindow = (ANativeWindow*) in android_view_TextureView_destroyNativeWindow()
99 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow()
123 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas()
147 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_unlockCanvasAndPost()
Dandroid_hardware_camera2_utils_SurfaceUtils.cpp53 static sp<ANativeWindow> getNativeWindow(JNIEnv* env, jobject surface) { in getNativeWindow()
54 sp<ANativeWindow> anw; in getNativeWindow()
94 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceType()
112 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceDataspace()
142 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceDimens()
169 sp<ANativeWindow> anw; in SurfaceUtils_nativeDetectSurfaceUsageFlags()
Dandroid_view_Surface.cpp97 sp<ANativeWindow> android_view_Surface_getNativeWindow(JNIEnv* env, jobject surfaceObj) { in android_view_Surface_getNativeWindow()
183 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind()
386 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth()
394 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight()
429 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled()
436 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled()
443 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetFrameRate()
/frameworks/native/libs/gui/include/gui/
DSurface.h73 : public ANativeObjectBase<ANativeWindow, Surface, RefBase>
212 static int hook_cancelBuffer(ANativeWindow* window,
214 static int hook_dequeueBuffer(ANativeWindow* window,
216 static int hook_perform(ANativeWindow* window, int operation, ...);
217 static int hook_query(const ANativeWindow* window, int what, int* value);
218 static int hook_queueBuffer(ANativeWindow* window,
220 static int hook_setSwapInterval(ANativeWindow* window, int interval);
222 static int cancelBufferInternal(ANativeWindow* window, ANativeWindowBuffer* buffer,
224 static int dequeueBufferInternal(ANativeWindow* window, ANativeWindowBuffer** buffer,
226 static int performInternal(ANativeWindow* window, int operation, va_list args);
[all …]
/frameworks/av/media/ndk/include/media/
DNdkMediaCodec.h50 struct ANativeWindow;
51 typedef struct ANativeWindow ANativeWindow; typedef
184 ANativeWindow* surface,
318 media_status_t AMediaCodec_setOutputSurface(AMediaCodec*, ANativeWindow* surface) __INTRODUCED_IN(2…
347 AMediaCodec *mData, ANativeWindow **surface) __INTRODUCED_IN(26);
365 ANativeWindow **surface) __INTRODUCED_IN(26);
380 AMediaCodec *mData, ANativeWindow *surface) __INTRODUCED_IN(26);
/frameworks/base/native/android/
Dnative_window_jni.cpp30 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface) { in ANativeWindow_fromSurface()
31 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); in ANativeWindow_fromSurface()
38 jobject ANativeWindow_toSurface(JNIEnv* env, ANativeWindow* window) { in ANativeWindow_toSurface()
/frameworks/native/include/android/
Dnative_activity.h179 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window);
186 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window);
194 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window);
204 void (*onNativeWindowDestroyed)(ANativeActivity* activity, ANativeWindow* window);
Dnative_window_jni.h45 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
56 jobject ANativeWindow_toSurface(JNIEnv* env, ANativeWindow* window) __INTRODUCED_IN(26);
/frameworks/rs/support/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/base/libs/hostgraphics/gui/
DSurface.h27 class Surface : public ANativeObjectBase<ANativeWindow, Surface, RefBase> {
31 ANativeWindow::perform = hook_perform;
56 static int hook_perform(ANativeWindow* window, int operation, ...) { return 0; } in hook_perform()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurfaceCreationArgs.h25 struct ANativeWindow;
40 sp<ANativeWindow> nativeWindow;
67 RenderSurfaceCreationArgsBuilder& setNativeWindow(sp<ANativeWindow> nativeWindow) { in setNativeWindow()
/frameworks/native/libs/vr/libdvr/include/dvr/
Ddvr_buffer_queue.h10 typedef struct ANativeWindow ANativeWindow; typedef
77 ANativeWindow** out_window);
/frameworks/native/services/surfaceflinger/
DNativeWindowSurface.h23 struct ANativeWindow;
38 virtual sp<ANativeWindow> getNativeWindow() const = 0;
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp31 ANativeWindow *nativeWindow /* nonnull */, in setNativeWindowSizeFormatAndUsage()
134 void setNativeWindowHdrMetadata(ANativeWindow *nativeWindow, HDRStaticInfo *info) { in setNativeWindowHdrMetadata()
179 ANativeWindow *nativeWindow /* nonnull */, int rotation) { in setNativeWindowRotation()
194 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */) { in pushBlankBuffersToNativeWindow()
311 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason) { in nativeWindowConnect()
320 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason) { in nativeWindowDisconnect()

1234567