Lines Matching defs:err

500     int err = native_window_get_consumer_usage(surface->window.get(),
502 if (err != android::NO_ERROR) {
504 strerror(-err), err);
511 err =
513 if (err != 0) {
516 ALOGE("native_window_api_connect() failed: %s (%d)", strerror(-err),
517 err);
558 int err = window->query(window, NATIVE_WINDOW_FORMAT, &query_value);
559 if (err != 0 || query_value < 0) {
561 strerror(-err), err, query_value);
596 int err;
600 err = window->query(window, NATIVE_WINDOW_DEFAULT_WIDTH, &width);
601 if (err != 0) {
603 strerror(-err), err);
606 err = window->query(window, NATIVE_WINDOW_DEFAULT_HEIGHT, &height);
607 if (err != 0) {
609 strerror(-err), err);
614 err = window->query(window, NATIVE_WINDOW_TRANSFORM_HINT, &transform_hint);
615 if (err != 0) {
617 strerror(-err), err);
623 err = window->query(window, NATIVE_WINDOW_MAX_BUFFER_COUNT, &max_buffer_count);
624 if (err != 0) {
626 strerror(-err), err);
687 int err = native_window_get_wide_color_support(surface.window.get(),
689 if (err) {
803 int err;
807 err = window->query(window, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &query_value);
808 if (err != 0 || query_value < 0) {
810 strerror(-err), err, query_value);
815 err = window->query(window, NATIVE_WINDOW_MAX_BUFFER_COUNT, &query_value);
816 if (err != 0 || query_value < 0) {
818 strerror(-err), err, query_value);
897 int err;
901 err = window->query(window, NATIVE_WINDOW_DEFAULT_WIDTH, &width);
902 if (err != 0) {
904 strerror(-err), err);
906 err = window->query(window, NATIVE_WINDOW_DEFAULT_HEIGHT, &height);
907 if (err != 0) {
909 strerror(-err), err);
926 int err;
993 err = native_window_api_disconnect(surface.window.get(),
995 ALOGW_IF(err != 0, "native_window_api_disconnect failed: %s (%d)",
996 strerror(-err), err);
997 err =
999 ALOGW_IF(err != 0, "native_window_api_connect failed: %s (%d)",
1000 strerror(-err), err);
1002 err = native_window_set_buffer_count(surface.window.get(), 0);
1003 if (err != 0) {
1005 strerror(-err), err);
1011 err = surface.window->setSwapInterval(surface.window.get(), swap_interval);
1012 if (err != 0) {
1016 strerror(-err), err);
1020 err = native_window_set_shared_buffer_mode(surface.window.get(), false);
1021 if (err != 0) {
1023 strerror(-err), err);
1027 err = native_window_set_auto_refresh(surface.window.get(), false);
1028 if (err != 0) {
1030 strerror(-err), err);
1038 err = native_window_set_buffers_format(surface.window.get(),
1040 if (err != 0) {
1044 native_pixel_format, strerror(-err), err);
1047 err = native_window_set_buffers_data_space(surface.window.get(),
1049 if (err != 0) {
1053 native_dataspace, strerror(-err), err);
1057 err = native_window_set_buffers_dimensions(
1060 if (err != 0) {
1065 strerror(-err), err);
1077 err = native_window_set_buffers_transform(
1080 if (err != 0) {
1085 strerror(-err), err);
1089 err = native_window_set_scaling_mode(
1091 if (err != 0) {
1095 strerror(-err), err);
1103 err = native_window_set_shared_buffer_mode(surface.window.get(), true);
1104 if (err != 0) {
1105 ALOGE("native_window_set_shared_buffer_mode failed: %s (%d)", strerror(-err), err);
1111 err = native_window_set_auto_refresh(surface.window.get(), true);
1112 if (err != 0) {
1113 ALOGE("native_window_set_auto_refresh failed: %s (%d)", strerror(-err), err);
1119 err = surface.window->query(surface.window.get(),
1122 if (err != 0 || query_value < 0) {
1125 ALOGE("window->query failed: %s (%d) value=%d", strerror(-err), err,
1138 err = native_window_set_buffer_count(surface.window.get(), std::max(2u, num_images));
1139 if (err != 0) {
1143 strerror(-err), err);
1175 err = native_window_set_usage(surface.window.get(), native_usage);
1176 if (err != 0) {
1179 ALOGE("native_window_set_usage failed: %s (%d)", strerror(-err), err);
1233 err = surface.window->dequeueBuffer(surface.window.get(), &buffer,
1235 if (err != 0) {
1238 ALOGE("dequeueBuffer[%u] failed: %s (%d)", i, strerror(-err), err);
1358 int err;
1379 err = window->dequeueBuffer(window, &buffer, &fence_fd);
1380 if (err != 0) {
1383 ALOGE("dequeueBuffer failed: %s (%d)", strerror(-err), err);
1519 int err;
1585 err = native_window_get_next_frame_id(
1587 if (err != android::NO_ERROR) {
1609 err = window->queueBuffer(window, img.buffer.get(), fence);
1611 if (err != 0) {
1614 ALOGE("queueBuffer failed: %s (%d)", strerror(-err), err);
1631 err = window->dequeueBuffer(window, &buffer, &fence_fd);
1632 if (err != 0) {
1633 ALOGE("dequeueBuffer failed: %s (%d)", strerror(-err), err);