/* third priority : lock state */
if ((get_lock_screen_state() == VCONFKEY_IDLE_LOCK) &&
!get_lock_screen_bg_state()) {
- if (pm_status_flag & SMAST_FLAG) {
- /* smart stay is on, timeout is always 5 seconds. */
- states[S_NORMAL].timeout = LOCK_SCREEN_CONTROL_TIMEOUT;
- _I("LOCK : timeout is set, smart stay timeout(%d ms)",
- LOCK_SCREEN_CONTROL_TIMEOUT);
- } else {
- /* timeout is different according to key or event. */
- states[S_NORMAL].timeout = lock_screen_timeout;
- _I("LOCK : timeout is set by normal(%d ms)",
- lock_screen_timeout);
- }
+ /* timeout is different according to key or event. */
+ states[S_NORMAL].timeout = lock_screen_timeout;
+ _I("LOCK : timeout is set by normal(%d ms)",
+ lock_screen_timeout);
return;
}
}
}
- /* smart stay */
- if (display_info.face_detection &&
- (pm_status_flag & SMAST_FLAG) && hallic_open) {
- if (display_info.face_detection(evt, pm_cur_state, next_state))
- return 0;
- }
-
/* state transition */
pm_old_state = pm_cur_state;
pm_cur_state = next_state;
#define LOWBT_FLAG 0x00000100
#define CHRGR_FLAG 0x00000200
#define PWRSV_FLAG 0x00000400
-#define SMAST_FLAG 0x00001000
#define BRTCH_FLAG 0x00002000
#define PWROFF_FLAG 0x00004000
-#define DIMSTAY_FLAG 0x00008000
+#define DIMSTAY_FLAG 0x00008000
#define DEFAULT_NORMAL_TIMEOUT 30