if (ret == 0 &&
(timeout_ms == 0 || timeout_ms > lock_timeout.release))
add_off_lock_timeout();
- } else if (type == POWER_LOCK_DISPLAY) {
- _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
+ } else if (type == POWER_LOCK_DISPLAY)
ret = lock_state(DISPLAY_STATE_NORMAL, STAY_CUR_STATE, timeout_ms);
- } else if (type == POWER_LOCK_DISPLAY_DIM) {
- _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
+ else if (type == POWER_LOCK_DISPLAY_DIM)
ret = lock_state(DISPLAY_STATE_SCREEN_DIM, STAY_CUR_STATE, timeout_ms);
- } else
+ else
return DEVICE_ERROR_INVALID_PARAMETER;
return errno_to_device_error(ret);
remove_off_lock_timeout();
remove_padding_timeout();
}
- } else if (type == POWER_LOCK_DISPLAY) {
- _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
+ } else if (type == POWER_LOCK_DISPLAY)
ret = unlock_state(DISPLAY_STATE_NORMAL, PM_KEEP_TIMER);
- } else if (type == POWER_LOCK_DISPLAY_DIM) {
- _W("DEPRECATION WARNING: This power lock enum is deprecated and will be removed from next release. Use efl_util_set_window_screen_mode() instead.");
+ else if (type == POWER_LOCK_DISPLAY_DIM)
ret = unlock_state(DISPLAY_STATE_SCREEN_DIM, PM_KEEP_TIMER);
- } else
+ else
return DEVICE_ERROR_INVALID_PARAMETER;
return errno_to_device_error(ret);
int device_power_wakeup(bool dim)
{
- _W("DEPRECATION WARNING: device_power_wakeup() is deprecated and will be removed from next release.");
if (dim)
return device_display_change_state(DISPLAY_STATE_SCREEN_DIM);