int ret;
ret = syscommon_plugin_deviced_display_lcd_on_procedure(state, reason);
- if (ret == 0)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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;
-
- if (ret != -EOPNOTSUPP)
+ } else {
return;
+ }
/*
* Display on procedure
int ret;
ret = syscommon_plugin_deviced_display_lcd_off_procedure(reason);
- if (ret == 0)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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;
-
- if (ret != -EOPNOTSUPP)
+ } else {
return;
+ }
/*
* Display off procedure
* step 0. enhance mode off using nofity (e.g mdnie, HBM, LBM)
int ret;
ret = syscommon_plugin_deviced_display_custom_lcd_on(timeout);
- if (ret == 0)
- return 0;
-
- if (ret != -EOPNOTSUPP)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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 ret;
+ } else {
+ return 0;
+ }
if (timeout <= 0)
return -EINVAL;
int ret;
ret = syscommon_plugin_deviced_display_custom_lcd_off(reason);
- if (ret == 0)
- return 0;
-
- if (ret != -EOPNOTSUPP)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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 ret;
+ } else {
+ return 0;
+ }
/* check holdkey block flag in lock node */
if (display_lock_is_state_locked(SYSCOMMON_DEVICED_DISPLAY_STATE_ON) || display_lock_is_state_locked(SYSCOMMON_DEVICED_DISPLAY_STATE_DIM)) {
int ret;
ret = syscommon_plugin_deviced_display_on_by_reason(reason, timeout);
- if (ret == 0)
- return 0;
-
- if (ret != -EOPNOTSUPP)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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 ret;
+ } else {
+ return 0;
+ }
if (!reason)
return -EINVAL;
int ret;
ret = syscommon_plugin_deviced_display_off_by_reason(reason);
- if (ret == 0)
- return 0;
-
- if (ret != -EOPNOTSUPP)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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 ret;
+ } else {
+ return 0;
+ }
if (!reason)
return -EINVAL;
enum syscommon_deviced_display_state current;
ret = syscommon_plugin_deviced_display_notify_setting_value_changed(key_idx, val);
- if (ret == 0)
- return 0;
-
- if (ret != -EOPNOTSUPP)
+ if (ret == -ENOTSUP) {
+ _D("Take default operation as there is no found plugin backend");
+ } else if (ret == -EOPNOTSUPP) {
+ _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 ret;
+ } else {
+ return 0;
+ }
ret = display_state_get_current(¤t);
if (ret < 0)