CALLUI_DISPLAY_CONTROL_ON = 0,
CALLUI_DISPLAY_CONTROL_ON_LOCK,
CALLUI_DISPLAY_CONTROL_ON_UNLOCK,
+ CALLUI_DISPLAY_CONTROL_LOCK,
CALLUI_DISPLAY_CONTROL_UNLOCK,
CALLUI_DISPLAY_CONTROL_OFF_SLEEP_LOCK,
CALLUI_DISPLAY_CONTROL_OFF_SLEEP_UNLOCK,
CALLUI_RETURN_VALUE_IF_FAIL(result == DEVICE_ERROR_NONE, CALLUI_RESULT_FAIL);
result = _callui_window_set_screen_mode(disp->ad->window, CALLUI_WIN_SCREEN_MODE_ALWAYS_ON);
CALLUI_RETURN_VALUE_IF_FAIL(result == CALLUI_RESULT_OK, result);
+ result = device_power_request_lock(POWER_LOCK_CPU, 0);
+ CALLUI_RETURN_VALUE_IF_FAIL(result == EFL_UTIL_ERROR_NONE, CALLUI_RESULT_FAIL);
break;
case CALLUI_DISPLAY_CONTROL_ON_UNLOCK:
result = device_display_change_state(DISPLAY_STATE_NORMAL);
result = device_power_release_lock(POWER_LOCK_CPU);
CALLUI_RETURN_VALUE_IF_FAIL(result == DEVICE_ERROR_NONE, CALLUI_RESULT_FAIL);
break;
+ case CALLUI_DISPLAY_CONTROL_LOCK:
+ result = device_display_change_state(DISPLAY_STATE_NORMAL);
+ CALLUI_RETURN_VALUE_IF_FAIL(result == DEVICE_ERROR_NONE, CALLUI_RESULT_FAIL);
+ result = _callui_window_set_screen_mode(disp->ad->window, CALLUI_WIN_SCREEN_MODE_ALWAYS_ON);
+ CALLUI_RETURN_VALUE_IF_FAIL(result == CALLUI_RESULT_OK, result);
+ break;
case CALLUI_DISPLAY_CONTROL_UNLOCK:
result = _callui_window_set_screen_mode(disp->ad->window, CALLUI_WIN_SCREEN_MODE_DEFAULT);
CALLUI_RETURN_VALUE_IF_FAIL(result == CALLUI_RESULT_OK, result);
callui_view_type_e cur_view_type = _callui_vm_get_cur_view_type(plm_h->base.ad->view_manager);
if (prev_view_type == CALLUI_VIEW_INCOMING_CALL
- || prev_view_type == CALLUI_VIEW_INCOMING_CALL_NOTI
+ || (prev_view_type == CALLUI_VIEW_INCOMING_CALL_NOTI
+ && cur_view_type != CALLUI_VIEW_INCOMING_CALL)
|| prev_view_type == CALLUI_VIEW_DIALLING) {
- if (cur_view_type != CALLUI_VIEW_INCOMING_CALL) {
- _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
- }
+ _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
}
- if (plm_h->lcd_state == CALLUI_PLM_LCD_OFF) {
- _callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_UNLOCK);
- } else if (cur_view_type != CALLUI_VIEW_INCOMING_CALL) {
- _callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_UNLOCK);
+ if (cur_view_type != CALLUI_VIEW_INCOMING_CALL && cur_view_type != CALLUI_VIEW_INCOMING_CALL_NOTI) {
+ if (plm_h->lcd_state == CALLUI_PLM_LCD_OFF) {
+ _callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_UNLOCK);
+ } else {
+ _callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_UNLOCK);
+ }
}
switch (cur_view_type) {
_callui_touch_lock_manager_h tlm_h = (_callui_touch_lock_manager_h)user_data;
+ callui_view_type_e cur_view_type = _callui_vm_get_cur_view_type(tlm_h->base.ad->view_manager);
+
if (prev_view_type == CALLUI_VIEW_INCOMING_CALL
- || prev_view_type == CALLUI_VIEW_INCOMING_CALL_NOTI
+ || (prev_view_type == CALLUI_VIEW_INCOMING_CALL_NOTI
+ && cur_view_type != CALLUI_VIEW_INCOMING_CALL)
|| prev_view_type == CALLUI_VIEW_DIALLING) {
_callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
_callui_display_set_control_state(tlm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_UNLOCK);
}
- switch (_callui_vm_get_cur_view_type(tlm_h->base.ad->view_manager)) {
+ switch (cur_view_type) {
case CALLUI_VIEW_INCOMING_CALL:
case CALLUI_VIEW_INCOMING_CALL_NOTI:
- case CALLUI_VIEW_DIALLING:
__callui_tlm_unlock(tlm_h);
- _callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
if (prev_view_type != CALLUI_VIEW_INCOMING_CALL_NOTI) {
+ _callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
_callui_display_set_control_state(tlm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_LOCK);
}
break;
+ case CALLUI_VIEW_DIALLING:
+ __callui_tlm_unlock(tlm_h);
+ _callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
+ _callui_display_set_control_state(tlm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_LOCK);
+ break;
case CALLUI_VIEW_ENDCALL:
__callui_tlm_unlock(tlm_h);
_callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
switch (_callui_vm_get_cur_view_type(tlm_h->base.ad->view_manager)) {
case CALLUI_VIEW_INCOMING_CALL:
case CALLUI_VIEW_INCOMING_CALL_NOTI:
- case CALLUI_VIEW_DIALLING:
_callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
_callui_display_set_control_state(tlm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_LOCK);
break;
+ case CALLUI_VIEW_DIALLING:
+ _callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
+ _callui_display_set_control_state(tlm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_LOCK);
+ break;
case CALLUI_VIEW_ENDCALL:
_callui_display_set_timeout(tlm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
break;