Lines Matching refs:err

65     int err = native_window_api_connect(window, NATIVE_WINDOW_API_EGL);  in ConnectAndSetWindowDefaults()  local
66 if (err != 0) { in ConnectAndSetWindowDefaults()
67 ALOGE("native_window_api_connect failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
72 err = window->setSwapInterval(window, 1); in ConnectAndSetWindowDefaults()
73 if (err != 0) { in ConnectAndSetWindowDefaults()
74 ALOGE("native_window->setSwapInterval(1) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
78 err = native_window_set_shared_buffer_mode(window, false); in ConnectAndSetWindowDefaults()
79 if (err != 0) { in ConnectAndSetWindowDefaults()
80 ALOGE("native_window_set_shared_buffer_mode(false) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
84 err = native_window_set_auto_refresh(window, false); in ConnectAndSetWindowDefaults()
85 if (err != 0) { in ConnectAndSetWindowDefaults()
86 ALOGE("native_window_set_auto_refresh(false) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
90 err = native_window_set_scaling_mode(window, NATIVE_WINDOW_SCALING_MODE_FREEZE); in ConnectAndSetWindowDefaults()
91 if (err != 0) { in ConnectAndSetWindowDefaults()
93 strerror(-err), err); in ConnectAndSetWindowDefaults()
98 err = native_window_set_buffers_dimensions(window, 0, 0); in ConnectAndSetWindowDefaults()
99 if (err != 0) { in ConnectAndSetWindowDefaults()
100 ALOGE("native_window_set_buffers_dimensions(0,0) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
108 err = native_window_set_auto_prerotation(window, true); in ConnectAndSetWindowDefaults()
109 if (err != 0) { in ConnectAndSetWindowDefaults()
111 strerror(-err), err); in ConnectAndSetWindowDefaults()
150 int err = window->query(window, NATIVE_WINDOW_DEFAULT_WIDTH, &width); in InitializeWindowInfoStruct() local
151 if (err != 0 || width < 0) { in InitializeWindowInfoStruct()
152 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err, width); in InitializeWindowInfoStruct()
155 err = window->query(window, NATIVE_WINDOW_DEFAULT_HEIGHT, &height); in InitializeWindowInfoStruct()
156 if (err != 0 || height < 0) { in InitializeWindowInfoStruct()
157 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err, height); in InitializeWindowInfoStruct()
163 err = window->query(window, NATIVE_WINDOW_TRANSFORM_HINT, &query_value); in InitializeWindowInfoStruct()
164 if (err != 0 || query_value < 0) { in InitializeWindowInfoStruct()
165 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err, query_value); in InitializeWindowInfoStruct()
178 err = window->query(window, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &query_value); in InitializeWindowInfoStruct()
179 if (err != 0 || query_value < 0) { in InitializeWindowInfoStruct()
180 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err, query_value); in InitializeWindowInfoStruct()
186 err = window->query(window, NATIVE_WINDOW_MAX_BUFFER_COUNT, &query_value); in InitializeWindowInfoStruct()
187 if (err != 0 || query_value < 0) { in InitializeWindowInfoStruct()
188 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err, query_value); in InitializeWindowInfoStruct()
253 err = native_window_get_consumer_usage(window, &consumerUsage); in InitializeWindowInfoStruct()
254 if (err != 0) { in InitializeWindowInfoStruct()
255 ALOGE("native_window_get_consumer_usage failed: %s (%d)", strerror(-err), err); in InitializeWindowInfoStruct()
266 int err = native_window_set_buffers_format(window, windowInfo.pixelFormat); in UpdateWindow() local
267 if (err != 0) { in UpdateWindow()
269 windowInfo.pixelFormat, strerror(-err), err); in UpdateWindow()
273 err = native_window_set_buffers_data_space(window, windowInfo.dataspace); in UpdateWindow()
274 if (err != 0) { in UpdateWindow()
277 windowInfo.dataspace, strerror(-err), err); in UpdateWindow()
287 err = native_window_set_buffers_transform(window, InvertTransform(windowInfo.transform)); in UpdateWindow()
288 if (err != 0) { in UpdateWindow()
291 windowInfo.transform, strerror(-err), err); in UpdateWindow()
295 err = native_window_set_buffer_count(window, windowInfo.bufferCount); in UpdateWindow()
296 if (err != 0) { in UpdateWindow()
298 windowInfo.bufferCount, strerror(-err), err); in UpdateWindow()
302 err = native_window_set_usage(window, windowInfo.windowUsageFlags); in UpdateWindow()
303 if (err != 0) { in UpdateWindow()
305 strerror(-err), err); in UpdateWindow()
320 int err = native_window_api_disconnect(mNativeWindow.get(), NATIVE_WINDOW_API_EGL); in ~VulkanSurface() local
321 ALOGW_IF(err != 0, "native_window_api_disconnect failed: %s (%d)", strerror(-err), err); in ~VulkanSurface()
329 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers() local
331 if (err != 0) { in releaseBuffers()
332 ALOGE("cancelBuffer[%u] failed during destroy: %s (%d)", i, strerror(-err), err); in releaseBuffers()
360 int err = in dequeueNativeBuffer() local
367 err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buffer, &fence_fd); in dequeueNativeBuffer()
368 if (err != 0) { in dequeueNativeBuffer()
369 ALOGE("dequeueBuffer failed: %s (%d)", strerror(-err), err); in dequeueNativeBuffer()
383 err = native_window_set_buffers_transform(mNativeWindow.get(), in dequeueNativeBuffer()
385 if (err != 0) { in dequeueNativeBuffer()
387 strerror(-err), err); in dequeueNativeBuffer()
455 int err = native_window_set_surface_damage(mNativeWindow.get(), &aRect, 1); in presentCurrentBuffer() local
456 ALOGE_IF(err != 0, "native_window_set_surface_damage failed: %s (%d)", strerror(-err), err); in presentCurrentBuffer()
462 int err = mNativeWindow->queueBuffer(mNativeWindow.get(), currentBuffer.buffer.get(), queuedFd); in presentCurrentBuffer() local
466 if (err != 0) { in presentCurrentBuffer()
467 ALOGE("queueBuffer failed: %s (%d)", strerror(-err), err); in presentCurrentBuffer()
481 return err == 0; in presentCurrentBuffer()