Lines Matching refs:window
32 static int32_t query(ANativeWindow* window, int what) { in query() argument
34 int res = window->query(window, what, &value); in query()
42 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire() argument
44 window->incStrong((void*)ANativeWindow_acquire); in ANativeWindow_acquire()
47 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release() argument
49 window->decStrong((void*)ANativeWindow_acquire); in ANativeWindow_release()
52 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth() argument
53 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
56 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight() argument
57 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
60 int32_t ANativeWindow_getFormat(ANativeWindow* window) { in ANativeWindow_getFormat() argument
61 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat()
64 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, in ANativeWindow_setBuffersGeometry() argument
66 int32_t err = native_window_set_buffers_format(window, format); in ANativeWindow_setBuffersGeometry()
68 err = native_window_set_buffers_user_dimensions(window, width, height); in ANativeWindow_setBuffersGeometry()
74 err = native_window_set_scaling_mode(window, mode); in ANativeWindow_setBuffersGeometry()
80 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock() argument
82 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in ANativeWindow_lock()
85 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window) { in ANativeWindow_unlockAndPost() argument
86 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in ANativeWindow_unlockAndPost()
89 int32_t ANativeWindow_setBuffersTransform(ANativeWindow* window, int32_t transform) { in ANativeWindow_setBuffersTransform() argument
98 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_setBuffersTransform()
103 return native_window_set_buffers_transform(window, transform); in ANativeWindow_setBuffersTransform()
114 int ANativeWindow_OemStorageSet(ANativeWindow* window, uint32_t slot, intptr_t value) { in ANativeWindow_OemStorageSet() argument
116 window->oem[slot] = value; in ANativeWindow_OemStorageSet()
122 int ANativeWindow_OemStorageGet(ANativeWindow* window, uint32_t slot, intptr_t* value) { in ANativeWindow_OemStorageGet() argument
124 *value = window->oem[slot]; in ANativeWindow_OemStorageGet()
131 int ANativeWindow_setSwapInterval(ANativeWindow* window, int interval) { in ANativeWindow_setSwapInterval() argument
132 return window->setSwapInterval(window, interval); in ANativeWindow_setSwapInterval()
135 int ANativeWindow_query(const ANativeWindow* window, ANativeWindowQuery what, int* value) { in ANativeWindow_query() argument
144 *value = window->minSwapInterval; in ANativeWindow_query()
147 *value = window->maxSwapInterval; in ANativeWindow_query()
150 *value = (int)window->xdpi; in ANativeWindow_query()
153 *value = (int)window->ydpi; in ANativeWindow_query()
159 return window->query(window, int(what), value); in ANativeWindow_query()
162 int ANativeWindow_queryf(const ANativeWindow* window, ANativeWindowQuery what, float* value) { in ANativeWindow_queryf() argument
165 *value = window->xdpi; in ANativeWindow_queryf()
168 *value = window->ydpi; in ANativeWindow_queryf()
175 int e = ANativeWindow_query(window, what, &i); in ANativeWindow_queryf()
182 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in ANativeWindow_dequeueBuffer() argument
183 return window->dequeueBuffer(window, buffer, fenceFd); in ANativeWindow_dequeueBuffer()
186 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_queueBuffer() argument
187 return window->queueBuffer(window, buffer, fenceFd); in ANativeWindow_queueBuffer()
190 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_cancelBuffer() argument
191 return window->cancelBuffer(window, buffer, fenceFd); in ANativeWindow_cancelBuffer()
194 int ANativeWindow_setUsage(ANativeWindow* window, uint64_t usage) { in ANativeWindow_setUsage() argument
196 return native_window_set_usage(window, (uint32_t)usage); // FIXME: we need a 64-bits version in ANativeWindow_setUsage()
199 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount) { in ANativeWindow_setBufferCount() argument
200 return native_window_set_buffer_count(window, bufferCount); in ANativeWindow_setBufferCount()
203 int ANativeWindow_setBuffersDimensions(ANativeWindow* window, uint32_t w, uint32_t h) { in ANativeWindow_setBuffersDimensions() argument
204 return native_window_set_buffers_dimensions(window, (int)w, (int)h); in ANativeWindow_setBuffersDimensions()
207 int ANativeWindow_setBuffersFormat(ANativeWindow* window, int format) { in ANativeWindow_setBuffersFormat() argument
208 return native_window_set_buffers_format(window, format); in ANativeWindow_setBuffersFormat()
211 int ANativeWindow_setBuffersTimestamp(ANativeWindow* window, int64_t timestamp) { in ANativeWindow_setBuffersTimestamp() argument
212 return native_window_set_buffers_timestamp(window, timestamp); in ANativeWindow_setBuffersTimestamp()
215 int ANativeWindow_setBufferDataSpace(ANativeWindow* window, android_dataspace_t dataSpace) { in ANativeWindow_setBufferDataSpace() argument
216 return native_window_set_buffers_data_space(window, dataSpace); in ANativeWindow_setBufferDataSpace()
219 int ANativeWindow_setSharedBufferMode(ANativeWindow* window, bool sharedBufferMode) { in ANativeWindow_setSharedBufferMode() argument
220 return native_window_set_shared_buffer_mode(window, sharedBufferMode); in ANativeWindow_setSharedBufferMode()
223 int ANativeWindow_setAutoRefresh(ANativeWindow* window, bool autoRefresh) { in ANativeWindow_setAutoRefresh() argument
224 return native_window_set_auto_refresh(window, autoRefresh); in ANativeWindow_setAutoRefresh()