ret = syscommon_plugin_deviced_display_set_brightness(brightness);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_get_brightness(brightness);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_set_brightness_smooth(start, end, step);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_load_config(&g_display_config);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
return 0;
}
- return -EOPNOTSUPP;
+ return -ENOSYS;
}
int display_config_get_lcdoff_timeout(int *lcdoff_timeout)
return 0;
}
- return -EOPNOTSUPP;
+ return -ENOSYS;
}
int display_config_get_lcd_always_on(int *lcd_always_on)
return 0;
}
- return -EOPNOTSUPP;
+ return -ENOSYS;
}
int display_config_get_dimming(int *dimming)
return 0;
}
- return -EOPNOTSUPP;
+ return -ENOSYS;
}
int display_config_get_pm_default_brightness(int *pm_default_brightness)
return -EINVAL;
if (!g_display_config)
- return -EOPNOTSUPP;
+ return -ENOSYS;
*pm_default_brightness = g_display_config->pm_default_brightness;
clear_pm_status_flag(DIM_MASK);
if (state == DISPLAY_STATE_NORMAL) {
ret = syscommon_plugin_deviced_display_control_auto_brightness(BR_SET_BRIGHTNESS, brt);
- if (ret == -ENOTSUP || ret == -EOPNOTSUPP) {
+ if (ret == -ENOTSUP || ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend, ret=%d", ret);
display_backlight_set_default_brightness(brt);
ret = display_backlight_set_brightness(brt);
_E("Failed to set vconf value for custom brightness status: %d", vconf_get_ext_errno());
ret = syscommon_plugin_deviced_display_control_auto_brightness(BR_HOLD_BRIGHTNESS, brt);
- if (ret == -ENOTSUP || ret == -EOPNOTSUPP) {
+ if (ret == -ENOTSUP || ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend, ret=%d", ret);
ret = display_backlight_set_brightness(brt);
}
if (autobrt == SETTING_BRIGHTNESS_AUTOMATIC_OFF) {
ret = syscommon_plugin_deviced_display_control_auto_brightness(BR_RELEASE_BRIGHTNESS, BR_IMPLICIT);
- if (ret == -ENOTSUP || ret == -EOPNOTSUPP) {
+ if (ret == -ENOTSUP || ret == -ENOSYS) {
if (brt != setting)
display_backlight_set_brightness(setting);
}
ret = syscommon_plugin_deviced_display_lcd_on_procedure(state, reason);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_lcd_off_procedure(reason);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_custom_lcd_on(timeout);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_custom_lcd_off(reason);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_on_by_reason(reason, timeout);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_off_by_reason(reason);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_proc_change_state(cond, pid);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
int ret;
ret = syscommon_plugin_deviced_display_load_state_info(g_display_states);
- if (ret == -ENOTSUP || ret == EOPNOTSUPP) {
+ if (ret == -ENOTSUP || ret == ENOSYS) {
_D("Take default operation as there is no found plugin backend");
for (int i = 0; i < SYSCOMMON_DEVICED_DISPLAY_STATE_END; ++i)
g_display_states[i] = default_states[i];
ret = syscommon_plugin_deviced_display_set_powersaving_mode(onoff);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);
ret = syscommon_plugin_deviced_display_notify_setting_value_changed(key_idx, val);
if (ret == -ENOTSUP) {
_D("Take default operation as there is no found plugin backend");
- } else if (ret == -EOPNOTSUPP) {
+ } else if (ret == -ENOSYS) {
_D("Take default operation as there is no found plugin backend operation");
} else if (ret < 0) {
_E("Failed to plugin operation, ret=%d", ret);