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.h324 struct ANativeWindow struct
327 ANativeWindow() in ANativeWindow() argument
331 common.version = sizeof(ANativeWindow); in ANativeWindow()
368 int (*setSwapInterval)(struct ANativeWindow* window, argument
388 int (*dequeueBuffer_DEPRECATED)(struct ANativeWindow* window, argument
402 int (*lockBuffer_DEPRECATED)(struct ANativeWindow* window, argument
424 int (*queueBuffer_DEPRECATED)(struct ANativeWindow* window, argument
432 int (*query)(const struct ANativeWindow* window, argument
449 int (*perform)(struct ANativeWindow* window, argument
469 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/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/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 bool isDataSpaceValid(ANativeWindow* window, int32_t dataSpace) { in isDataSpaceValid()
61 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire()
66 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release()
71 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth()
75 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight()
79 int32_t ANativeWindow_getFormat(ANativeWindow* window) { in ANativeWindow_getFormat()
83 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, in ANativeWindow_setBuffersGeometry()
99 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock()
104 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window) { in ANativeWindow_unlockAndPost()
[all …]
/frameworks/native/libs/nativewindow/include/android/
Dnative_window.h80 struct ANativeWindow;
86 typedef struct ANativeWindow ANativeWindow; typedef
118 void ANativeWindow_acquire(ANativeWindow* window);
123 void ANativeWindow_release(ANativeWindow* window);
130 int32_t ANativeWindow_getWidth(ANativeWindow* window);
137 int32_t ANativeWindow_getHeight(ANativeWindow* window);
144 int32_t ANativeWindow_getFormat(ANativeWindow* window);
163 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
176 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
185 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
[all …]
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.h27 class ReliableSurface : public ANativeObjectBase<ANativeWindow, ReliableSurface, RefBase> {
69 static Surface* getWrapped(const ANativeWindow*);
72 static int hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
73 static int hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer,
75 static int hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
77 static int hook_perform(ANativeWindow* window, int operation, ...);
78 static int hook_query(const ANativeWindow* window, int what, int* value);
79 static int hook_setSwapInterval(ANativeWindow* window, int interval);
81 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
82 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer);
[all …]
DReliableSurface.cpp51 ANativeWindow::setSwapInterval = hook_setSwapInterval; in ReliableSurface()
52 ANativeWindow::dequeueBuffer = hook_dequeueBuffer; in ReliableSurface()
53 ANativeWindow::cancelBuffer = hook_cancelBuffer; in ReliableSurface()
54 ANativeWindow::queueBuffer = hook_queueBuffer; in ReliableSurface()
55 ANativeWindow::query = hook_query; in ReliableSurface()
56 ANativeWindow::perform = hook_perform; in ReliableSurface()
58 ANativeWindow::dequeueBuffer_DEPRECATED = hook_dequeueBuffer_DEPRECATED; in ReliableSurface()
59 ANativeWindow::cancelBuffer_DEPRECATED = hook_cancelBuffer_DEPRECATED; in ReliableSurface()
60 ANativeWindow::lockBuffer_DEPRECATED = hook_lockBuffer_DEPRECATED; in ReliableSurface()
61 ANativeWindow::queueBuffer_DEPRECATED = hook_queueBuffer_DEPRECATED; in ReliableSurface()
[all …]
DVulkanSurface.h37 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType,
104 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, SkISize minWindowSize,
106 static bool UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo);
114 sp<ANativeWindow> mNativeWindow;
/frameworks/av/media/libstagefright/include/media/stagefright/
DSurfaceUtils.h24 struct ANativeWindow;
37 ANativeWindow *nativeWindow /* nonnull */,
40 ANativeWindow *nativeWindow /* nonnull */, HDRStaticInfo *info /* nonnull */);
41 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */);
42 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason);
43 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason);
/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()
190 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_unlockCanvasAndPost()
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp132 err = static_cast<ANativeWindow*>(surface.get())->query(surface.get(), in connectSurface()
167 static status_t produceFrame(const sp<ANativeWindow>& anw, in produceFrame()
379 static sp<ANativeWindow> getNativeWindow(JNIEnv* env, jobject surface) { in getNativeWindow()
380 sp<ANativeWindow> anw; in getNativeWindow()
397 static sp<ANativeWindow> getNativeWindowFromTexture(JNIEnv* env, jobject surfaceTexture) { in getNativeWindowFromTexture()
398 sp<ANativeWindow> anw; in getNativeWindowFromTexture()
439 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceType()
457 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceDataspace()
487 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceDimens()
515 sp<ANativeWindow> anw; in LegacyCameraDevice_nativeDetectSurfaceUsageFlags()
[all …]
Dandroid_view_Surface.cpp87 sp<ANativeWindow> android_view_Surface_getNativeWindow(JNIEnv* env, jobject surfaceObj) { in android_view_Surface_getNativeWindow()
186 ANativeWindow* anw = static_cast<ANativeWindow*>(sur.get()); in nativeIsConsumerRunningBehind()
399 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetWidth()
407 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeGetHeight()
439 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetSharedBufferModeEnabled()
446 ANativeWindow* anw = static_cast<ANativeWindow*>(surface); in nativeSetAutoRefreshEnabled()
/frameworks/av/media/ndk/include/media/
DNdkMediaCodec.h48 struct ANativeWindow;
49 typedef struct ANativeWindow ANativeWindow; typedef
155 ANativeWindow* surface,
260 media_status_t AMediaCodec_setOutputSurface(AMediaCodec*, ANativeWindow* surface) __INTRODUCED_IN(2…
287 AMediaCodec *mData, ANativeWindow **surface) __INTRODUCED_IN(26);
303 ANativeWindow **surface) __INTRODUCED_IN(26);
316 AMediaCodec *mData, ANativeWindow *surface) __INTRODUCED_IN(26);
/frameworks/native/libs/gui/include/gui/
DSurface.h52 : public ANativeObjectBase<ANativeWindow, Surface, RefBase>
182 static int hook_cancelBuffer(ANativeWindow* window,
184 static int hook_dequeueBuffer(ANativeWindow* window,
186 static int hook_perform(ANativeWindow* window, int operation, ...);
187 static int hook_query(const ANativeWindow* window, int what, int* value);
188 static int hook_queueBuffer(ANativeWindow* window,
190 static int hook_setSwapInterval(ANativeWindow* window, int interval);
192 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window,
194 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window,
196 static int hook_lockBuffer_DEPRECATED(ANativeWindow* window,
[all …]
/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);
55 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/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DRenderSurfaceCreationArgs.h25 struct ANativeWindow;
44 sp<ANativeWindow> nativeWindow;
75 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/rs/
DrsGrallocConsumer.h43 ANativeWindow* getNativeWindow();
61 ANativeWindow* mNativeWindow;
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp31 ANativeWindow *nativeWindow /* nonnull */, in setNativeWindowSizeFormatAndUsage()
134 void setNativeWindowHdrMetadata(ANativeWindow *nativeWindow, HDRStaticInfo *info) { in setNativeWindowHdrMetadata()
168 status_t pushBlankBuffersToNativeWindow(ANativeWindow *nativeWindow /* nonnull */) { in pushBlankBuffersToNativeWindow()
280 status_t nativeWindowConnect(ANativeWindow *surface, const char *reason) { in nativeWindowConnect()
289 status_t nativeWindowDisconnect(ANativeWindow *surface, const char *reason) { in nativeWindowDisconnect()
/frameworks/av/media/libstagefright/include/
DSoftwareRenderer.h36 const sp<ANativeWindow> &nativeWindow, int32_t rotation = 0);
53 sp<ANativeWindow> mNativeWindow;

1234567