display: SMAST is removed 55/56955/1
authorTaeyoung Kim <ty317.kim@samsung.com>
Thu, 14 Jan 2016 00:56:56 +0000 (09:56 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Thu, 14 Jan 2016 00:56:56 +0000 (09:56 +0900)
- SMAST is not supported from the platform deviced.
  Thus macro and related codes are removed

Change-Id: I345d3cb14e755dd4ed85e7043246b30cdf88ef0b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/display/core.c
src/display/core.h

index e1cdd12..0bb007b 100644 (file)
@@ -643,17 +643,10 @@ static void update_display_time(void)
        /* 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;
        }
 
@@ -1486,13 +1479,6 @@ static int default_trans(int evt)
                }
        }
 
-       /* 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;
index 4ac485e..6ad78cb 100644 (file)
 #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