diff options
Diffstat (limited to 'src/policy_manager/zipc/dummy_stm.c')
-rw-r--r-- | src/policy_manager/zipc/dummy_stm.c | 89 |
1 files changed, 87 insertions, 2 deletions
diff --git a/src/policy_manager/zipc/dummy_stm.c b/src/policy_manager/zipc/dummy_stm.c index 3c9cba2..78e25d7 100644 --- a/src/policy_manager/zipc/dummy_stm.c +++ b/src/policy_manager/zipc/dummy_stm.c @@ -1,7 +1,93 @@ - #include <string.h> #include "dummy_stm.h" +const char* gStmEventName[] = { + "activate", + "deactivate", + "parking_brake_off", + "parking_brake_on", + "car_stop", + "car_run", + "timer_expired", + "lamp_off", + "lamp_on" +}; + +const int gStmEventNo[] = { + STM_EVT_NO_ACTIVATE, + STM_EVT_NO_DEACTIVATE, + STM_EVT_NO_PARKING_BRAKE_OFF, + STM_EVT_NO_PARKING_BRAKE_ON, + STM_EVT_NO_CAR_STOP, + STM_EVT_NO_CAR_RUN, + STM_EVT_NO_TIMER_EXPIRED, + STM_EVT_NO_LAMP_OFF, + STM_EVT_NO_LAMP_ON +}; + +const char* gStmCategoryName[] = { + "homescreen", + "map", + "general", + "splitable", + "popup", + "system_alert" +}; + +const int gStmCategoryNo[] = { + STM_CTG_NO_HOMESCREEN, + STM_CTG_NO_MAP, + STM_CTG_NO_GENERAL, + STM_CTG_NO_SPLITABLE, + STM_CTG_NO_POPUP, + STM_CTG_NO_SYSTEM_ALERT +}; + +const char* gStmAreaName[] = { + "full", + "normal", + "split.main", + "split.sub", + "onscreen" +}; + +const int gStmAreaNo[] = { + STM_ARA_NO_FULL, + STM_ARA_NO_NORMAL, + STM_ARA_NO_SPLIT_MAIN, + STM_ARA_NO_SPLIT_SUB, + STM_ARA_NO_ON_SCREEN +}; + +// String for state +const char* gStmParkingBrakeStateNo2Name[] = { + "parking_brake_off", + "parking_brake_on" +}; + +const char* gStmCarStateNo2Name[] = { + "car_stop", + "car_run" +}; + +const char* gStmLampStateNo2Name[] = { + "lamp_off", + "lamp_on" +}; + +const char* gStmLayoutNo2Name[] = { + "none", + "pu", + "sa", + "m1", + "m2", + "mf", + "s1", + "s2", + "g", + "hs", +}; + stm_state_t g_crr_state = {0}; stm_state_t g_prv_state = {0}; int g_prv_apps_state_car_stop = 0; @@ -209,4 +295,3 @@ int stmTransitionState(int event, stm_state_t* state) { return 0; } - |