Lines Matching refs:window

30 static int32_t query(ANativeWindow* window, int what) {  in query()  argument
32 int res = window->query(window, what, &value); in query()
36 static bool isDataSpaceValid(ANativeWindow* window, int32_t dataSpace) { in isDataSpaceValid() argument
46 native_window_get_wide_color_support(window, &supported); in isDataSpaceValid()
50 native_window_get_hdr_support(window, &supported); in isDataSpaceValid()
61 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire() argument
63 window->incStrong((void*)ANativeWindow_acquire); in ANativeWindow_acquire()
66 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release() argument
68 window->decStrong((void*)ANativeWindow_acquire); in ANativeWindow_release()
71 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth() argument
72 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
75 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight() argument
76 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
79 int32_t ANativeWindow_getFormat(ANativeWindow* window) { in ANativeWindow_getFormat() argument
80 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat()
83 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, in ANativeWindow_setBuffersGeometry() argument
85 int32_t err = native_window_set_buffers_format(window, format); in ANativeWindow_setBuffersGeometry()
87 err = native_window_set_buffers_user_dimensions(window, width, height); in ANativeWindow_setBuffersGeometry()
93 err = native_window_set_scaling_mode(window, mode); in ANativeWindow_setBuffersGeometry()
99 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in ANativeWindow_lock() argument
101 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in ANativeWindow_lock()
104 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window) { in ANativeWindow_unlockAndPost() argument
105 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in ANativeWindow_unlockAndPost()
108 int32_t ANativeWindow_setBuffersTransform(ANativeWindow* window, int32_t transform) { in ANativeWindow_setBuffersTransform() argument
120 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_setBuffersTransform()
125 return native_window_set_buffers_transform(window, transform); in ANativeWindow_setBuffersTransform()
128 int32_t ANativeWindow_setBuffersDataSpace(ANativeWindow* window, int32_t dataSpace) { in ANativeWindow_setBuffersDataSpace() argument
136 if (!window || !query(window, NATIVE_WINDOW_IS_VALID) || in ANativeWindow_setBuffersDataSpace()
137 !isDataSpaceValid(window, dataSpace)) { in ANativeWindow_setBuffersDataSpace()
140 return native_window_set_buffers_data_space(window, in ANativeWindow_setBuffersDataSpace()
144 int32_t ANativeWindow_getBuffersDataSpace(ANativeWindow* window) { in ANativeWindow_getBuffersDataSpace() argument
145 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_getBuffersDataSpace()
147 return query(window, NATIVE_WINDOW_DATASPACE); in ANativeWindow_getBuffersDataSpace()
158 int ANativeWindow_OemStorageSet(ANativeWindow* window, uint32_t slot, intptr_t value) { in ANativeWindow_OemStorageSet() argument
160 window->oem[slot] = value; in ANativeWindow_OemStorageSet()
166 int ANativeWindow_OemStorageGet(ANativeWindow* window, uint32_t slot, intptr_t* value) { in ANativeWindow_OemStorageGet() argument
168 *value = window->oem[slot]; in ANativeWindow_OemStorageGet()
175 int ANativeWindow_setSwapInterval(ANativeWindow* window, int interval) { in ANativeWindow_setSwapInterval() argument
176 return window->setSwapInterval(window, interval); in ANativeWindow_setSwapInterval()
179 int ANativeWindow_query(const ANativeWindow* window, ANativeWindowQuery what, int* value) { in ANativeWindow_query() argument
188 *value = window->minSwapInterval; in ANativeWindow_query()
191 *value = window->maxSwapInterval; in ANativeWindow_query()
194 *value = (int)window->xdpi; in ANativeWindow_query()
197 *value = (int)window->ydpi; in ANativeWindow_query()
203 return window->query(window, int(what), value); in ANativeWindow_query()
206 int ANativeWindow_queryf(const ANativeWindow* window, ANativeWindowQuery what, float* value) { in ANativeWindow_queryf() argument
209 *value = window->xdpi; in ANativeWindow_queryf()
212 *value = window->ydpi; in ANativeWindow_queryf()
219 int e = ANativeWindow_query(window, what, &i); in ANativeWindow_queryf()
226 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd) { in ANativeWindow_dequeueBuffer() argument
227 return window->dequeueBuffer(window, buffer, fenceFd); in ANativeWindow_dequeueBuffer()
230 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_queueBuffer() argument
231 return window->queueBuffer(window, buffer, fenceFd); in ANativeWindow_queueBuffer()
234 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd) { in ANativeWindow_cancelBuffer() argument
235 return window->cancelBuffer(window, buffer, fenceFd); in ANativeWindow_cancelBuffer()
238 int ANativeWindow_setUsage(ANativeWindow* window, uint64_t usage) { in ANativeWindow_setUsage() argument
239 return native_window_set_usage(window, usage); in ANativeWindow_setUsage()
242 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount) { in ANativeWindow_setBufferCount() argument
243 return native_window_set_buffer_count(window, bufferCount); in ANativeWindow_setBufferCount()
246 int ANativeWindow_setBuffersDimensions(ANativeWindow* window, uint32_t w, uint32_t h) { in ANativeWindow_setBuffersDimensions() argument
247 return native_window_set_buffers_dimensions(window, (int)w, (int)h); in ANativeWindow_setBuffersDimensions()
250 int ANativeWindow_setBuffersFormat(ANativeWindow* window, int format) { in ANativeWindow_setBuffersFormat() argument
251 return native_window_set_buffers_format(window, format); in ANativeWindow_setBuffersFormat()
254 int ANativeWindow_setBuffersTimestamp(ANativeWindow* window, int64_t timestamp) { in ANativeWindow_setBuffersTimestamp() argument
255 return native_window_set_buffers_timestamp(window, timestamp); in ANativeWindow_setBuffersTimestamp()
258 int ANativeWindow_setSharedBufferMode(ANativeWindow* window, bool sharedBufferMode) { in ANativeWindow_setSharedBufferMode() argument
259 return native_window_set_shared_buffer_mode(window, sharedBufferMode); in ANativeWindow_setSharedBufferMode()
262 int ANativeWindow_setAutoRefresh(ANativeWindow* window, bool autoRefresh) { in ANativeWindow_setAutoRefresh() argument
263 return native_window_set_auto_refresh(window, autoRefresh); in ANativeWindow_setAutoRefresh()