aboutsummaryrefslogtreecommitdiffstats
path: root/policy_manager/stm
diff options
context:
space:
mode:
Diffstat (limited to 'policy_manager/stm')
-rw-r--r--policy_manager/stm/stm.c13
-rw-r--r--policy_manager/stm/stm.h15
-rw-r--r--policy_manager/stm/zipc/CMakeLists.txt18
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.c810
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.h24
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.c16
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.h2
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/ZST_StateTransitionor_func.c72
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/ZST_include.h8
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.c179
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.h41
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.c50
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.h14
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.c179
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.h41
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.c49
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.h14
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud.c18
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud_func.c2
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.c32
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.c2
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c179
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.h41
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.c50
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.h14
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.c32
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.c2
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.c179
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.h41
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.c50
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.h14
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.c32
-rwxr-xr-xpolicy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.c2
33 files changed, 2086 insertions, 149 deletions
diff --git a/policy_manager/stm/stm.c b/policy_manager/stm/stm.c
index fd3eff6..162d250 100644
--- a/policy_manager/stm/stm.c
+++ b/policy_manager/stm/stm.c
@@ -49,10 +49,13 @@ const char* kStmCategoryName[] = {
"system_alert",
"restriction",
"system",
+ "launcher",
"software_keyboard",
"tbt",
"meter",
"receiver",
+ "receiver2",
+ "speed",
"debug",
};
@@ -62,13 +65,17 @@ const char* kStmAreaName[] = {
"normal.full",
"split.main",
"split.sub",
+ "upper.left",
"on_screen",
"restriction.normal",
"restriction.split.main",
"restriction.split.sub",
"software_keyboard",
"master.split.sub",
- "upper.left",
+ "hud.upper.left",
+ "hud.normal.full",
+ "rse1.normal.full",
+ "rse2.normal.full",
};
const char* kStmLayoutName[] = {
@@ -86,8 +93,11 @@ const char* kStmLayoutName[] = {
"restriction.split.main",
"restriction.split.sub",
"system.normal",
+ "launcher.normal",
+ "launcher.fullscreen",
"software_keyboard",
"tbt",
+ "upper.left",
"remote_tbt",
"remote_rse1",
"remote_rse2",
@@ -107,6 +117,7 @@ const char* kStmLayoutName[] = {
const char* kStmLayerName[] = {
"homescreen",
"apps",
+ "near_apps",
"near_homescreen",
"restriction",
"on_screen",
diff --git a/policy_manager/stm/stm.h b/policy_manager/stm/stm.h
index 487adb5..d6028a5 100644
--- a/policy_manager/stm/stm.h
+++ b/policy_manager/stm/stm.h
@@ -79,10 +79,13 @@ enum StmCtgNo {
StmCtgNoSystemAlert,
StmCtgNoRestriction,
StmCtgNoSystem,
+ StmCtgNoLauncher,
StmCtgNoSoftwareKeyboard,
StmCtgNoTbt,
StmCtgNoMeter,
StmCtgNoReceiver,
+ StmCtgNoReceiver2,
+ StmCtgNoSpeed,
StmCtgNoDebug,
StmCtgNoNum,
@@ -98,13 +101,17 @@ enum StmAreaNo {
StmAreaNoNormal,
StmAreaNoSplitMain,
StmAreaNoSplitSub,
+ StmAreaNoUpperLeft,
StmAreaNoOnScreen,
StmAreaNoRestrictionNormal,
StmAreaNoRestrictionSplitMain,
StmAreaNoRestrictionSplitSub,
StmAreaNoSoftwareKyeboard,
StmAreaNoMasterSplitSub,
- StmAreaNoUpperLeft,
+ StmAreaNoHUDUpperLeft,
+ StmAreaNoHUDNormal,
+ StmAreaNoRse1Normal,
+ StmAreaNoRse2Normal,
StmAreaNoNum,
@@ -116,6 +123,7 @@ enum StmAreaNo {
enum StmLayerNo {
StmLayerNoHomescreen = 0,
StmLayerNoApps,
+ StmLayerNoNearApps,
StmLayerNoNearHomescreen,
StmLayerNoRestriction,
StmLayerNoOnScreen,
@@ -147,13 +155,16 @@ enum StmLayoutNo {
StmLayoutNoRstSplMain,
StmLayoutNoRstSplSub,
StmLayoutNoSysNml,
+ StmLayoutNoLchNml,
+ StmLayoutNoLchFll,
StmLayoutNoSftKbd,
StmLayoutNoTbt,
+ StmLayoutNoUpperLeft,
StmLayoutNoRmtTbt,
StmLayoutNoRmtRse1,
StmLayoutNoRmtRse2,
StmLayoutNoRmtHud,
- StmLayoutNoRmtUpLeft,
+ StmLayoutNoRmtHudUpLeft,
StmLayoutNoMtrNml,
StmLayoutNoMtrRcv,
StmLayoutNoMtrSpl,
diff --git a/policy_manager/stm/zipc/CMakeLists.txt b/policy_manager/stm/zipc/CMakeLists.txt
index 76a2109..b162298 100644
--- a/policy_manager/stm/zipc/CMakeLists.txt
+++ b/policy_manager/stm/zipc/CMakeLists.txt
@@ -31,10 +31,14 @@ set(ST_DIR_LSB ${ST_DIR}/LightStatusBrake)
set(ST_DIR_MST_AL ${ST_DIR}/master/layer/apps)
set(ST_DIR_MST_RMT ${ST_DIR}/master/layer/remote)
+set(ST_DIR_HUD_AL ${ST_DIR}/hud/layer/apps)
+set(ST_DIR_HUD_NA ${ST_DIR}/hud/layer/near_apps)
set(ST_DIR_RMT_HUD ${ST_DIR}/hud/layer/remote_hud)
set(ST_DIR_RMT_HUD_UL ${ST_DIR}/hud/layer/remote_hud_upper_left)
+set(ST_DIR_RSE1_AL ${ST_DIR}/rse1/layer/apps)
set(ST_DIR_RMT_RSE1 ${ST_DIR}/rse1/layer/remote_rse1)
+set(ST_DIR_RSE2_AL ${ST_DIR}/rse2/layer/apps)
set(ST_DIR_RMT_RSE2 ${ST_DIR}/rse2/layer/remote_rse2)
add_library(${TARGETS_STM}
@@ -63,12 +67,20 @@ add_library(${TARGETS_STM}
./stm_master_remote.c
${ST_DIR_MST_AL}/Zmaster_apps_apps_main.c
${ST_DIR_MST_RMT}/Zmaster_remote_remote.c
+ ${ST_DIR_HUD_AL}/Zhud_apps_hud_apps.c
+ ${ST_DIR_HUD_AL}/Zhud_apps_hud_apps_func.c
+ ${ST_DIR_HUD_NA}/Zhud_near_apps_hud_near_apps.c
+ ${ST_DIR_HUD_NA}/Zhud_near_apps_hud_near_apps_func.c
${ST_DIR_RMT_HUD}/Zremote_hud_remote_hud.c
${ST_DIR_RMT_HUD}/Zremote_hud_remote_hud_func.c
${ST_DIR_RMT_HUD_UL}/Zremote_hud_upper_left_remote_hud_up_left.c
${ST_DIR_RMT_HUD_UL}/Zremote_hud_upper_left_remote_hud_up_left_func.c
+ ${ST_DIR_RSE1_AL}/Zrse1_apps_rse1_apps.c
+ ${ST_DIR_RSE1_AL}/Zrse1_apps_rse1_apps_func.c
${ST_DIR_RMT_RSE1}/Zremote_rse1_remote_rse1.c
${ST_DIR_RMT_RSE1}/Zremote_rse1_remote_rse1_func.c
+ ${ST_DIR_RSE2_AL}/Zrse2_apps_rse2_apps.c
+ ${ST_DIR_RSE2_AL}/Zrse2_apps_rse2_apps_func.c
${ST_DIR_RMT_RSE2}/Zremote_rse2_remote_rse2.c
${ST_DIR_RMT_RSE2}/Zremote_rse2_remote_rse2_func.c
)
@@ -88,10 +100,14 @@ target_include_directories(${TARGETS_STM}
./${ST_DIR_LSB}
./${ST_DIR_MST_AL}
./${ST_DIR_MST_RMT}
+ ./${ST_DIR_HUD_AL}
+ ./${ST_DIR_HUD_AL_UL}
./${ST_DIR_RMT_HUD}
./${ST_DIR_RMT_HUD_UL}
+ ./${ST_DIR_RSE1_AL}
+ ./${ST_DIR_RMT_RSE1}
+ ./${ST_DIR_RSE2_AL}
./${ST_DIR_RMT_RSE1}
- ./${ST_DIR_RMT_RSE2}
./${ST_DIR_CMN}
)
diff --git a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.c b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.c
index ac1fb16..e1710b1 100755
--- a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.c
+++ b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.c
@@ -17,17 +17,21 @@ static void ZAPL_RestrictionModeOffs0e2( void );
static void ZAPL_RestrictionModeOffs0e3( void );
static void ZAPL_RestrictionModeOffs0e6( void );
static void ZAPL_RestrictionModeOffs0e7( void );
-static void ZAPL_RestrictionModeOffs0e13( void );
-static void ZAPL_RestrictionModeOffs0e15( void );
+static void ZAPL_RestrictionModeOffs0e8( void );
+static void ZAPL_RestrictionModeOffs0e9( void );
+static void ZAPL_RestrictionModeOffs0e16( void );
static void ZAPL_RestrictionModeOffs0e18( void );
+static void ZAPL_RestrictionModeOffs0e21( void );
static void ZAPL_RestrictionModeOffs1e0( void );
-static void ZAPL_RestrictionModeOffs1e8( void );
+static void ZAPL_RestrictionModeOffs1e10( void );
static void ZAPL_RestrictionModeOffs2e3( void );
-static void ZAPL_RestrictionModeOffs3e16( void );
+static void ZAPL_RestrictionModeOffs3e19( void );
static void ZAPL_RestrictionModeOffs4e3( void );
static void ZAPL_RestrictionModeOffs5e3( void );
static void ZAPL_RestrictionModeOffs6e6( void );
static void ZAPL_RestrictionModeOffs7e7( void );
+static void ZAPL_RestrictionModeOffs8e8( void );
+static void ZAPL_RestrictionModeOffs9e9( void );
static void ZAPL_RestrictionModeOns0e1( void );
static void ZAPL_RestrictionModeOns0e2( void );
static void ZAPL_RestrictionModeOns1e0( void );
@@ -41,6 +45,8 @@ static void ZAPL_RestrictionModeOffs4Event( void );
static void ZAPL_RestrictionModeOffs5Event( void );
static void ZAPL_RestrictionModeOffs6Event( void );
static void ZAPL_RestrictionModeOffs7Event( void );
+static void ZAPL_RestrictionModeOffs8Event( void );
+static void ZAPL_RestrictionModeOffs9Event( void );
static void ZAPL_AppsLayers1Event( void );
static void ZAPL_RestrictionModeOns0Event( void );
static void ZAPL_RestrictionModeOns1Event( void );
@@ -78,6 +84,12 @@ static void ZAPL_AppsLayers0StateEntry( void )
case ZAPL_RESTRICTIONMODEOFFS7:
stm_apl_start_activity_system();
break;
+ case ZAPL_RESTRICTIONMODEOFFS8:
+ stm_apl_start_activity_launcher();
+ break;
+ case ZAPL_RESTRICTIONMODEOFFS9:
+ stm_apl_start_activity_launcher_fullscreen();
+ break;
default:
/*Not accessible to this else (default).*/
break;
@@ -194,9 +206,33 @@ static void ZAPL_RestrictionModeOffs0e7( void )
/* Action function */
/* STM : RestrictionModeOff */
/* State : none( No 0 ) */
-/* Event : stt_prv_layer_apps_none( No 13 ) */
+/* Event : ara_normal( No 8 ) */
+/****************************************/
+static void ZAPL_RestrictionModeOffs0e8( void )
+{
+ ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS8;
+ stm_apl_start_activity_launcher();
+}
+
+/****************************************/
+/* Action function */
+/* STM : RestrictionModeOff */
+/* State : none( No 0 ) */
+/* Event : ara_fullscreen( No 9 ) */
+/****************************************/
+static void ZAPL_RestrictionModeOffs0e9( void )
+{
+ ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS9;
+ stm_apl_start_activity_launcher_fullscreen();
+}
+
+/****************************************/
+/* Action function */
+/* STM : RestrictionModeOff */
+/* State : none( No 0 ) */
+/* Event : stt_prv_layer_apps_none( No 16 ) */
/****************************************/
-static void ZAPL_RestrictionModeOffs0e13( void )
+static void ZAPL_RestrictionModeOffs0e16( void )
{
stm_apl_start_activity_none();
}
@@ -205,9 +241,9 @@ static void ZAPL_RestrictionModeOffs0e13( void )
/* Action function */
/* STM : RestrictionModeOff */
/* State : none( No 0 ) */
-/* Event : stt_prv_layer_apps_map_spl( No 15 ) */
+/* Event : stt_prv_layer_apps_map_spl( No 18 ) */
/****************************************/
-static void ZAPL_RestrictionModeOffs0e15( void )
+static void ZAPL_RestrictionModeOffs0e18( void )
{
ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS2;
stm_apl_start_activity_map_split();
@@ -217,9 +253,9 @@ static void ZAPL_RestrictionModeOffs0e15( void )
/* Action function */
/* STM : RestrictionModeOff */
/* State : none( No 0 ) */
-/* Event : stt_prv_layer_apps_spl_spl( No 18 ) */
+/* Event : stt_prv_layer_apps_spl_spl( No 21 ) */
/****************************************/
-static void ZAPL_RestrictionModeOffs0e18( void )
+static void ZAPL_RestrictionModeOffs0e21( void )
{
ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS5;
stm_apl_start_activity_splitable_split();
@@ -240,9 +276,9 @@ static void ZAPL_RestrictionModeOffs1e0( void )
/* Action function */
/* STM : RestrictionModeOff */
/* State : map( No 1 ) */
-/* Event : ara_fullscreen( No 8 ) */
+/* Event : ara_fullscreen( No 10 ) */
/****************************************/
-static void ZAPL_RestrictionModeOffs1e8( void )
+static void ZAPL_RestrictionModeOffs1e10( void )
{
ZAPL_AppsLayerState[ZAPL_APPSLAYERS0F] = ( uint8_t )ZAPL_RESTRICTIONMODEOFFS0;
stm_apl_start_activity_none();
@@ -263,9 +299,9 @@ static void ZAPL_RestrictionModeOffs2e3( void )
/* Action function */
/* STM : RestrictionModeOff */
/* State : map_fullscreen( No 3 ) */
-/* Event : stt_prv_layer_apps_map_fll( No 16 ) */
+/* Event : stt_prv_layer_apps_map_fll( No 19 ) */
/****************************************/
-static void ZAPL_RestrictionModeOffs3e16( void )
+static void ZAPL_RestrictionModeOffs3e19( void )
{
stm_apl_start_activity_map_fullscreen();
}
@@ -316,6 +352,28 @@ static void ZAPL_RestrictionModeOffs7e7( void )
/****************************************/
/* Action function */
+/* STM : RestrictionModeOff */
+/* State : launcher_normal( No 8 ) */
+/* Event : ara_normal( No 8 ) */
+/****************************************/
+static void ZAPL_RestrictionModeOffs8e8( void )
+{
+ stm_apl_start_activity_launcher();
+}
+
+/****************************************/
+/* Action function */
+/* STM : RestrictionModeOff */
+/* State : launcher_fullscreen( No 9 )*/
+/* Event : ara_fullscreen( No 9 ) */
+/****************************************/
+static void ZAPL_RestrictionModeOffs9e9( void )
+{
+ stm_apl_start_activity_launcher_fullscreen();
+}
+
+/****************************************/
+/* Action function */
/* STM : RestrictionModeOn */
/* State : map( No 0 ) */
/* Event : ara_fullscreen( No 1 ) */
@@ -472,6 +530,25 @@ static void ZAPL_RestrictionModeOffs0Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
else
{
/*Else and default design have not done.*/
@@ -484,7 +561,7 @@ static void ZAPL_RestrictionModeOffs0Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs0e13();
+ ZAPL_RestrictionModeOffs0e16();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -494,7 +571,7 @@ static void ZAPL_RestrictionModeOffs0Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -509,7 +586,7 @@ static void ZAPL_RestrictionModeOffs0Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -521,6 +598,16 @@ static void ZAPL_RestrictionModeOffs0Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -578,12 +665,12 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*ara_normal*/
if( g_stm_area == StmAreaNoNormal )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*ara_split_sub*/
else if( g_stm_area == StmAreaNoSplitSub )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
else
{
@@ -619,13 +706,32 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -645,7 +751,7 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*ctg_map*/
if( g_stm_category == StmCtgNoMap )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -659,7 +765,7 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -669,7 +775,7 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -684,7 +790,7 @@ static void ZAPL_RestrictionModeOffs1Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -696,6 +802,16 @@ static void ZAPL_RestrictionModeOffs1Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -794,13 +910,32 @@ static void ZAPL_RestrictionModeOffs2Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -834,7 +969,7 @@ static void ZAPL_RestrictionModeOffs2Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -859,7 +994,7 @@ static void ZAPL_RestrictionModeOffs2Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -871,6 +1006,16 @@ static void ZAPL_RestrictionModeOffs2Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -923,7 +1068,7 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*ara_normal*/
if( g_stm_area == StmAreaNoNormal )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
else
{
@@ -959,13 +1104,32 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -985,7 +1149,7 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*ctg_map*/
if( g_stm_category == StmCtgNoMap )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -999,7 +1163,7 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -1009,12 +1173,12 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
{
- ZAPL_RestrictionModeOffs3e16();
+ ZAPL_RestrictionModeOffs3e19();
}
/*stt_prv_layer_apps_spl_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
@@ -1024,7 +1188,7 @@ static void ZAPL_RestrictionModeOffs3Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -1036,6 +1200,16 @@ static void ZAPL_RestrictionModeOffs3Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -1074,12 +1248,12 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*ara_normal*/
if( g_stm_area == StmAreaNoNormal )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*ara_split_main*/
else if( g_stm_area == StmAreaNoSplitMain )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*ara_fullscreen*/
else if( g_stm_area == StmAreaNoFullscreen )
@@ -1103,12 +1277,12 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*ara_split_main*/
else if( g_stm_area == StmAreaNoSplitMain )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*ara_split_sub*/
else if( g_stm_area == StmAreaNoSplitSub )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
else
{
@@ -1144,13 +1318,32 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1170,7 +1363,7 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*ctg_splitable*/
if( g_stm_category == StmCtgNoSplitable )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1184,7 +1377,7 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -1194,7 +1387,7 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -1209,7 +1402,7 @@ static void ZAPL_RestrictionModeOffs4Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -1221,6 +1414,16 @@ static void ZAPL_RestrictionModeOffs4Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -1259,12 +1462,12 @@ static void ZAPL_RestrictionModeOffs5Event( void )
/*ara_normal*/
if( g_stm_area == StmAreaNoNormal )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*ara_split_main*/
else if( g_stm_area == StmAreaNoSplitMain )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*ara_fullscreen*/
else if( g_stm_area == StmAreaNoFullscreen )
@@ -1329,13 +1532,32 @@ static void ZAPL_RestrictionModeOffs5Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1369,7 +1591,7 @@ static void ZAPL_RestrictionModeOffs5Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -1379,7 +1601,7 @@ static void ZAPL_RestrictionModeOffs5Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -1406,6 +1628,16 @@ static void ZAPL_RestrictionModeOffs5Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -1499,13 +1731,32 @@ static void ZAPL_RestrictionModeOffs6Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1525,7 +1776,7 @@ static void ZAPL_RestrictionModeOffs6Event( void )
/*ctg_general*/
if( g_stm_category == StmCtgNoGeneral )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1539,7 +1790,7 @@ static void ZAPL_RestrictionModeOffs6Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -1549,7 +1800,7 @@ static void ZAPL_RestrictionModeOffs6Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -1564,7 +1815,7 @@ static void ZAPL_RestrictionModeOffs6Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -1576,6 +1827,16 @@ static void ZAPL_RestrictionModeOffs6Event( void )
{
ZAPL_RestrictionModeOffs0e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -1669,13 +1930,32 @@ static void ZAPL_RestrictionModeOffs7Event( void )
/*Please confirm the STM and design else and default.*/
}
}
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
/*ctg_homescreen*/
else if( g_stm_category == StmCtgNoHomescreen )
{
/*ara_fullscreen*/
if( g_stm_area == StmAreaNoFullscreen )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1695,7 +1975,7 @@ static void ZAPL_RestrictionModeOffs7Event( void )
/*ctg_system*/
if( g_stm_category == StmCtgNoSystem )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
else
{
@@ -1709,7 +1989,7 @@ static void ZAPL_RestrictionModeOffs7Event( void )
/*stt_prv_layer_apps_none*/
if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
{
- ZAPL_RestrictionModeOffs1e8();
+ ZAPL_RestrictionModeOffs1e10();
}
/*stt_prv_layer_apps_map_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
@@ -1719,7 +1999,7 @@ static void ZAPL_RestrictionModeOffs7Event( void )
/*stt_prv_layer_apps_map_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
{
- ZAPL_RestrictionModeOffs0e15();
+ ZAPL_RestrictionModeOffs0e18();
}
/*stt_prv_layer_apps_map_fll*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -1734,7 +2014,7 @@ static void ZAPL_RestrictionModeOffs7Event( void )
/*stt_prv_layer_apps_spl_spl*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
{
- ZAPL_RestrictionModeOffs0e18();
+ ZAPL_RestrictionModeOffs0e21();
}
/*stt_prv_layer_apps_gen_nml*/
else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
@@ -1746,6 +2026,414 @@ static void ZAPL_RestrictionModeOffs7Event( void )
{
ZAPL_RestrictionModeOffs7e7();
}
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : RestrictionModeOff */
+/* State : launcher_normal( No 8 ) */
+/****************************************/
+static void ZAPL_RestrictionModeOffs8Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_map*/
+ if( g_stm_category == StmCtgNoMap )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e0();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e2();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_splitable*/
+ else if( g_stm_category == StmCtgNoSplitable )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e3();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_general*/
+ else if( g_stm_category == StmCtgNoGeneral )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e6();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_system*/
+ else if( g_stm_category == StmCtgNoSystem )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e7();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs8e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_homescreen*/
+ else if( g_stm_category == StmCtgNoHomescreen )
+ {
+ /*ara_fullscreen*/
+ if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_launcher*/
+ if( g_stm_category == StmCtgNoLauncher )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_apps_none*/
+ if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ /*stt_prv_layer_apps_map_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
+ {
+ ZAPL_RestrictionModeOffs0e0();
+ }
+ /*stt_prv_layer_apps_map_spl*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
+ {
+ ZAPL_RestrictionModeOffs0e18();
+ }
+ /*stt_prv_layer_apps_map_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
+ {
+ ZAPL_RestrictionModeOffs0e2();
+ }
+ /*stt_prv_layer_apps_spl_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
+ {
+ ZAPL_RestrictionModeOffs0e3();
+ }
+ /*stt_prv_layer_apps_spl_spl*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
+ {
+ ZAPL_RestrictionModeOffs0e21();
+ }
+ /*stt_prv_layer_apps_gen_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
+ {
+ ZAPL_RestrictionModeOffs0e6();
+ }
+ /*stt_prv_layer_apps_sys_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
+ {
+ ZAPL_RestrictionModeOffs0e7();
+ }
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs8e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs0e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : RestrictionModeOff */
+/* State : launcher_fullscreen( No 9 )*/
+/****************************************/
+static void ZAPL_RestrictionModeOffs9Event( void )
+{
+ /*stt_restriction_mode_off*/
+ if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+ {
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_map*/
+ if( g_stm_category == StmCtgNoMap )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e0();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs0e2();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_splitable*/
+ else if( g_stm_category == StmCtgNoSplitable )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e3();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_general*/
+ else if( g_stm_category == StmCtgNoGeneral )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e6();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_system*/
+ else if( g_stm_category == StmCtgNoSystem )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e7();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_launcher*/
+ else if( g_stm_category == StmCtgNoLauncher )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*ara_fullscreen*/
+ else if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs9e9();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*ctg_homescreen*/
+ else if( g_stm_category == StmCtgNoHomescreen )
+ {
+ /*ara_fullscreen*/
+ if( g_stm_area == StmAreaNoFullscreen )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_launcher*/
+ if( g_stm_category == StmCtgNoLauncher )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_undo*/
+ else if( g_stm_event == StmEvtNoUndo )
+ {
+ /*stt_prv_layer_apps_none*/
+ if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoNone )
+ {
+ ZAPL_RestrictionModeOffs1e10();
+ }
+ /*stt_prv_layer_apps_map_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
+ {
+ ZAPL_RestrictionModeOffs0e0();
+ }
+ /*stt_prv_layer_apps_map_spl*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapSpl )
+ {
+ ZAPL_RestrictionModeOffs0e18();
+ }
+ /*stt_prv_layer_apps_map_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
+ {
+ ZAPL_RestrictionModeOffs0e2();
+ }
+ /*stt_prv_layer_apps_spl_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplNml )
+ {
+ ZAPL_RestrictionModeOffs0e3();
+ }
+ /*stt_prv_layer_apps_spl_spl*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSplSpl )
+ {
+ ZAPL_RestrictionModeOffs0e21();
+ }
+ /*stt_prv_layer_apps_gen_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoGenNml )
+ {
+ ZAPL_RestrictionModeOffs0e6();
+ }
+ /*stt_prv_layer_apps_sys_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoSysNml )
+ {
+ ZAPL_RestrictionModeOffs0e7();
+ }
+ /*stt_prv_layer_apps_lch_nml*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchNml )
+ {
+ ZAPL_RestrictionModeOffs0e8();
+ }
+ /*stt_prv_layer_apps_lch_fll*/
+ else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoLchFll )
+ {
+ ZAPL_RestrictionModeOffs9e9();
+ }
else
{
/*Else and default design have not done.*/
@@ -1951,6 +2639,12 @@ void stm_apl_event_call( void )
case ZAPL_RESTRICTIONMODEOFFS7:
ZAPL_RestrictionModeOffs7Event();
break;
+ case ZAPL_RESTRICTIONMODEOFFS8:
+ ZAPL_RestrictionModeOffs8Event();
+ break;
+ case ZAPL_RESTRICTIONMODEOFFS9:
+ ZAPL_RestrictionModeOffs9Event();
+ break;
default:
/*Not accessible to this else (default).*/
break;
diff --git a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.h b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.h
index d94cbc0..c4556e6 100755
--- a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.h
+++ b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_AppsLayer.h
@@ -19,13 +19,15 @@
#define ZAPL_RESTRICTIONMODEOFFS5 ( 5U )
#define ZAPL_RESTRICTIONMODEOFFS6 ( 6U )
#define ZAPL_RESTRICTIONMODEOFFS7 ( 7U )
+#define ZAPL_RESTRICTIONMODEOFFS8 ( 8U )
+#define ZAPL_RESTRICTIONMODEOFFS9 ( 9U )
#define ZAPL_APPSLAYERS1 ( 1U )
#define ZAPL_RESTRICTIONMODEONS0 ( 0U )
#define ZAPL_RESTRICTIONMODEONS1 ( 1U )
#define ZAPL_APPSLAYERSTATENOMAX ( 3U )
/*End state define*/
-#define ZAPL_APPSLAYEREND ( 8U )
+#define ZAPL_APPSLAYEREND ( 10U )
/*Terminate state define*/
#define ZAPL_APPSLAYERTERMINATE ( ZAPL_APPSLAYEREND + 1U )
@@ -39,6 +41,8 @@
#define ZAPL_RESTRICTIONMODEOFFS5STATENO ( 5U )
#define ZAPL_RESTRICTIONMODEOFFS6STATENO ( 6U )
#define ZAPL_RESTRICTIONMODEOFFS7STATENO ( 7U )
+#define ZAPL_RESTRICTIONMODEOFFS8STATENO ( 8U )
+#define ZAPL_RESTRICTIONMODEOFFS9STATENO ( 9U )
#define ZAPL_APPSLAYERS1STATENO ( 1U )
#define ZAPL_RESTRICTIONMODEONS0STATENO ( 0U )
#define ZAPL_RESTRICTIONMODEONS1STATENO ( 1U )
@@ -53,9 +57,11 @@
#define ZAPL_RESTRICTIONMODEOFFS5STATESERIALNO ( 6U )
#define ZAPL_RESTRICTIONMODEOFFS6STATESERIALNO ( 7U )
#define ZAPL_RESTRICTIONMODEOFFS7STATESERIALNO ( 8U )
-#define ZAPL_APPSLAYERS1STATESERIALNO ( 9U )
-#define ZAPL_RESTRICTIONMODEONS0STATESERIALNO ( 10U )
-#define ZAPL_RESTRICTIONMODEONS1STATESERIALNO ( 11U )
+#define ZAPL_RESTRICTIONMODEOFFS8STATESERIALNO ( 9U )
+#define ZAPL_RESTRICTIONMODEOFFS9STATESERIALNO ( 10U )
+#define ZAPL_APPSLAYERS1STATESERIALNO ( 11U )
+#define ZAPL_RESTRICTIONMODEONS0STATESERIALNO ( 12U )
+#define ZAPL_RESTRICTIONMODEONS1STATESERIALNO ( 13U )
/*Event no define*/
#define ZAPL_APPSLAYERE0EVENTNO ( 0U )
@@ -81,6 +87,11 @@
#define ZAPL_RESTRICTIONMODEOFFE18EVENTNO ( 18U )
#define ZAPL_RESTRICTIONMODEOFFE19EVENTNO ( 19U )
#define ZAPL_RESTRICTIONMODEOFFE20EVENTNO ( 20U )
+#define ZAPL_RESTRICTIONMODEOFFE21EVENTNO ( 21U )
+#define ZAPL_RESTRICTIONMODEOFFE22EVENTNO ( 22U )
+#define ZAPL_RESTRICTIONMODEOFFE23EVENTNO ( 23U )
+#define ZAPL_RESTRICTIONMODEOFFE24EVENTNO ( 24U )
+#define ZAPL_RESTRICTIONMODEOFFE25EVENTNO ( 25U )
#define ZAPL_RESTRICTIONMODEONE0EVENTNO ( 0U )
#define ZAPL_RESTRICTIONMODEONE1EVENTNO ( 1U )
#define ZAPL_RESTRICTIONMODEONE2EVENTNO ( 2U )
@@ -110,6 +121,11 @@
#define ZAPL_RESTRICTIONMODEOFFE18EVENTNO ( 18U )
#define ZAPL_RESTRICTIONMODEOFFE19EVENTNO ( 19U )
#define ZAPL_RESTRICTIONMODEOFFE20EVENTNO ( 20U )
+#define ZAPL_RESTRICTIONMODEOFFE21EVENTNO ( 21U )
+#define ZAPL_RESTRICTIONMODEOFFE22EVENTNO ( 22U )
+#define ZAPL_RESTRICTIONMODEOFFE23EVENTNO ( 23U )
+#define ZAPL_RESTRICTIONMODEOFFE24EVENTNO ( 24U )
+#define ZAPL_RESTRICTIONMODEOFFE25EVENTNO ( 25U )
#define ZAPL_RESTRICTIONMODEONE0EVENTNO ( 0U )
#define ZAPL_RESTRICTIONMODEONE1EVENTNO ( 1U )
#define ZAPL_RESTRICTIONMODEONE2EVENTNO ( 2U )
diff --git a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.c b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.c
index 245271f..8d14bf3 100755
--- a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.c
@@ -89,6 +89,22 @@ void stm_apl_start_activity_system() {
}
/*
+ * @name stm_apl_start_activity_launcher
+ */
+void stm_apl_start_activity_launcher() {
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoLchNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
+
+/*
+ * @name stm_apl_start_activity_launcher_fullscreen
+ */
+void stm_apl_start_activity_launcher_fullscreen() {
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoLchFll;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
+
+/*
* @name stm_apl_event_restriction_mode_off
*/
void stm_apl_event_restriction_mode_off() {
diff --git a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.h b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.h
index 8d1de90..2d17845 100755
--- a/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.h
+++ b/policy_manager/stm/zipc/StateTransitionor/AppsLayer/ZAPL_Apps_func.h
@@ -14,6 +14,8 @@ extern void stm_apl_start_activity_splitable_normal();
extern void stm_apl_start_activity_splitable_split();
extern void stm_apl_start_activity_general();
extern void stm_apl_start_activity_system();
+extern void stm_apl_start_activity_launcher();
+extern void stm_apl_start_activity_launcher_fullscreen();
extern void stm_apl_event_restriction_mode_off();
extern void stm_apl_event_restriction_mode_on();
extern void stm_apl_initialize_variable();
diff --git a/policy_manager/stm/zipc/StateTransitionor/ZST_StateTransitionor_func.c b/policy_manager/stm/zipc/StateTransitionor/ZST_StateTransitionor_func.c
index 2779653..09d75ac 100755
--- a/policy_manager/stm/zipc/StateTransitionor/ZST_StateTransitionor_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/ZST_StateTransitionor_func.c
@@ -27,23 +27,23 @@ void stmInitializeInner(const char *ecu_name) {
if (0 == strcmp("slave", ecu_name))
{
- stm_ecu_type = StmEcuTypeIVI;
+ stm_ecu_type = StmEcuTypeIVI;
}
else if (0 == strcmp("master", ecu_name))
{
- stm_ecu_type = StmEcuTypeMeter;
+ stm_ecu_type = StmEcuTypeMeter;
}
else if (0 == strcmp("hud", ecu_name))
{
- stm_ecu_type = StmEcuTypeHUD;
+ stm_ecu_type = StmEcuTypeHUD;
}
else if (0 == strcmp("rse1", ecu_name))
{
- stm_ecu_type = StmEcuTypeRSE1;
+ stm_ecu_type = StmEcuTypeRSE1;
}
else if (0 == strcmp("rse2", ecu_name))
{
- stm_ecu_type = StmEcuTypeRSE2;
+ stm_ecu_type = StmEcuTypeRSE2;
}
// Initialize previous state
@@ -53,7 +53,7 @@ void stmInitializeInner(const char *ecu_name) {
g_stm_crr_state = g_stm_prv_state;
// Initialize map activate state
- g_stm_map_is_activated = STM_FALSE;
+ g_stm_map_is_activated = STM_FALSE;
switch ( stm_ecu_type )
{
@@ -95,24 +95,40 @@ void stmInitializeInner(const char *ecu_name) {
stm_mst_rmt_initialize_valiable();
break;
case StmEcuTypeHUD:
+ // Initialize hud apps layer
+ stm_hud_apps_initialize();
+ stm_hud_apps_initialize_variable();
+
+ // Initialize hud near_apps layer
+ stm_hud_near_apps_initialize();
+ stm_hud_near_apps_initialize_variable();
+
// Initialize remote_hud layer on HUD ecu
stm_rmt_hud_initialize();
stm_rmt_hud_initialize_variable();
- // Initialize remote_hud_up_left layer on HUD ecu
- stm_rmt_hud_up_left_initialize();
- stm_rmt_hud_up_left_initialize_variable();
- break;
+ // Initialize remote_hud_up_left layer on HUD ecu
+ stm_rmt_hud_up_left_initialize();
+ stm_rmt_hud_up_left_initialize_variable();
+ break;
case StmEcuTypeRSE1:
+ // Initialize rse1 apps layer
+ stm_rse1_apps_initialize();
+ stm_rse1_apps_initialize_variable();
+
// Initialize remote_rse1 layer on RSE1 ecu
- stm_rmt_rse1_initialize();
- stm_rmt_rse1_initialize_variable();
- break;
+ stm_rmt_rse1_initialize();
+ stm_rmt_rse1_initialize_variable();
+ break;
case StmEcuTypeRSE2:
+ // Initialize rse2 apps layer
+ stm_rse2_apps_initialize();
+ stm_rse2_apps_initialize_variable();
+
// Initialize remote_rse2 layer on RSE2 ecu
stm_rmt_rse2_initialize();
stm_rmt_rse2_initialize_variable();
- break;
+ break;
case StmEcuTypeIVI:
default:
// Initialize LightstatusBrake state
@@ -192,20 +208,32 @@ int stmTransitionStateInner(int event_id, StmState* state) {
stm_mst_rmt_event_call();
break;
case StmEcuTypeHUD:
+ // hud apps layer
+ stm_hud_apps_event_call();
+
+ // hud near_apps layer on HUD ecu
+ stm_hud_near_apps_event_call();
+
// remote_hud layer on HUD ecu
- stm_rmt_hud_event_call();
+ stm_rmt_hud_event_call();
// remote_hud_up_left layer on HUD ecu
- stm_rmt_hud_up_left_event_call();
- break;
+ stm_rmt_hud_up_left_event_call();
+ break;
case StmEcuTypeRSE1:
+ // rse1 apps layer
+ stm_rse1_apps_event_call();
+
// remote_rse1 layer on RSE1 ecu
- stm_rmt_rse1_event_call();
- break;
+ stm_rmt_rse1_event_call();
+ break;
case StmEcuTypeRSE2:
+ // rse2 apps layer
+ stm_rse2_apps_event_call();
+
// remote_rse2 layer on RSE2 ecu
- stm_rmt_rse1_event_call();
- break;
+ stm_rmt_rse2_event_call();
+ break;
case StmEcuTypeIVI:
default:
// LightstatusBrake state
@@ -275,5 +303,5 @@ void stmUndoStateInner() {
stm_mst_rmt_event_call();
}
- g_stm_crr_state = g_stm_prv_state;
+ g_stm_crr_state = g_stm_prv_state;
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/ZST_include.h b/policy_manager/stm/zipc/StateTransitionor/ZST_include.h
index b5beb20..e37e686 100755
--- a/policy_manager/stm/zipc/StateTransitionor/ZST_include.h
+++ b/policy_manager/stm/zipc/StateTransitionor/ZST_include.h
@@ -17,8 +17,12 @@
#include "ZST_StateTransitionor_var.h"
#include "hud/layer/remote_hud/Zremote_hud_remote_hud_func.h"
#include "hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.h"
+#include "hud/layer/apps/Zhud_apps_hud_apps_func.h"
+#include "hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.h"
#include "rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.h"
+#include "rse1/layer/apps/Zrse1_apps_rse1_apps_func.h"
#include "rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.h"
+#include "rse2/layer/apps/Zrse2_apps_rse2_apps_func.h"
#include "AppsLayer/ZAPL_Apps_func.h"
#include "OnScreenlayer/ZOSL_OnScreen_func.h"
#include "HomeScreenLayer/ZHSL_HomeScreen_func.h"
@@ -32,8 +36,12 @@
#include "master/layer/remote/Zmaster_remote_remote.h"
#include "hud/layer/remote_hud/Zremote_hud_remote_hud.h"
#include "hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.h"
+#include "hud/layer/apps/Zhud_apps_hud_apps.h"
+#include "hud/layer/near_apps/Zhud_near_apps_hud_near_apps.h"
#include "rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.h"
+#include "rse1/layer/apps/Zrse1_apps_rse1_apps.h"
#include "rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.h"
+#include "rse2/layer/apps/Zrse2_apps_rse2_apps.h"
#include "AppsLayer/ZAPL_AppsLayer.h"
#include "OnScreenlayer/ZOSL_OslMain.h"
#include "HomeScreenLayer/ZHSL_HomeScreen.h"
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.c
new file mode 100755
index 0000000..52744cd
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.c
@@ -0,0 +1,179 @@
+/************************************************************/
+/* Zhud_apps_hud_apps.c */
+/* hud_apps State transition model source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/* State management variable */
+static uint8_t Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPSSTATENOMAX];
+
+static void Zhud_apps_hud_appss0e0( void );
+static void Zhud_apps_hud_appss1e0( void );
+static void Zhud_apps_hud_appss1e1( void );
+static void Zhud_apps_hud_appss0Event( void );
+static void Zhud_apps_hud_appss1Event( void );
+
+/****************************************/
+/* Action function */
+/* STM : hud_apps */
+/* State : none( No 0 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zhud_apps_hud_appss0e0( void )
+{
+ Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPS] = ( uint8_t )ZHUD_APPS_HUD_APPSS1;
+ stm_hud_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : hud_apps */
+/* State : general( No 1 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zhud_apps_hud_appss1e0( void )
+{
+ stm_hud_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : hud_apps */
+/* State : general( No 1 ) */
+/* Event : ctg_receiver( No 1 ) */
+/****************************************/
+static void Zhud_apps_hud_appss1e1( void )
+{
+ Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPS] = ( uint8_t )ZHUD_APPS_HUD_APPSS0;
+ stm_hud_apps_start_activity_none();
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : hud_apps */
+/* State : none( No 0 ) */
+/****************************************/
+static void Zhud_apps_hud_appss0Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zhud_apps_hud_appss0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : hud_apps */
+/* State : general( No 1 ) */
+/****************************************/
+static void Zhud_apps_hud_appss1Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zhud_apps_hud_appss1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ Zhud_apps_hud_appss1e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event call function */
+/* STM : hud_apps */
+/****************************************/
+void stm_hud_apps_event_call( void )
+{
+ stm_hud_apps_start_stm();
+ switch( Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPS] )
+ {
+ case ZHUD_APPS_HUD_APPSS0:
+ Zhud_apps_hud_appss0Event();
+ break;
+ case ZHUD_APPS_HUD_APPSS1:
+ Zhud_apps_hud_appss1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Initial function */
+/* STM : hud_apps */
+/****************************************/
+void stm_hud_apps_initialize( void )
+{
+ Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPS] = ( uint8_t )ZHUD_APPS_HUD_APPSS0;
+ stm_hud_apps_start_activity_none();
+}
+
+/****************************************/
+/* Terminate function */
+/* STM : hud_apps */
+/****************************************/
+void Zhud_apps_hud_appsTerminate( void )
+{
+ Zhud_apps_hud_appsState[ZHUD_APPS_HUD_APPS] = ( uint8_t )ZHUD_APPS_HUD_APPSTERMINATE;
+}
+
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.h b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.h
new file mode 100755
index 0000000..77063df
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps.h
@@ -0,0 +1,41 @@
+/************************************************************/
+/* Zhud_apps_hud_apps.h */
+/* hud_apps State transition model header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZHUD_APPS_HUD_APPS_H
+#define ZHEADER_ZHUD_APPS_HUD_APPS_H
+
+/*State management variable access define*/
+#define ZHUD_APPS_HUD_APPS ( 0U )
+#define ZHUD_APPS_HUD_APPSS0 ( 0U )
+#define ZHUD_APPS_HUD_APPSS1 ( 1U )
+#define ZHUD_APPS_HUD_APPSSTATENOMAX ( 1U )
+
+/*End state define*/
+#define ZHUD_APPS_HUD_APPSEND ( 2U )
+/*Terminate state define*/
+#define ZHUD_APPS_HUD_APPSTERMINATE ( ZHUD_APPS_HUD_APPSEND + 1U )
+
+/*State no define*/
+#define ZHUD_APPS_HUD_APPSS0STATENO ( 0U )
+#define ZHUD_APPS_HUD_APPSS1STATENO ( 1U )
+
+/*State serial no define*/
+#define ZHUD_APPS_HUD_APPSS0STATESERIALNO ( 0U )
+#define ZHUD_APPS_HUD_APPSS1STATESERIALNO ( 1U )
+
+/*Event no define*/
+#define ZHUD_APPS_HUD_APPSE0EVENTNO ( 0U )
+#define ZHUD_APPS_HUD_APPSE1EVENTNO ( 1U )
+
+/*Event serial no define*/
+#define ZHUD_APPS_HUD_APPSE0EVENTSERIALNO ( 0U )
+#define ZHUD_APPS_HUD_APPSE1EVENTSERIALNO ( 1U )
+
+/*Extern function*/
+extern void stm_hud_apps_event_call( void );
+extern void stm_hud_apps_initialize( void );
+extern void Zhud_apps_hud_appsTerminate( void );
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.c
new file mode 100755
index 0000000..b11ef61
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.c
@@ -0,0 +1,50 @@
+/************************************************************/
+/* Zhud_apps_hud_apps_func.c */
+/* Function and variable source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/*************************************************************
+ Function definition
+*************************************************************/
+
+/**
+ * stm_hud_apps_initialize_variable
+ */
+void stm_hud_apps_initialize_variable() {
+ g_stm_prv_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_prv_state.layer[StmLayerNoApps].changed = STM_FALSE;
+
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/**
+ * stm_hud_apps_start_stm
+ */
+void stm_hud_apps_start_stm() {
+ if (g_stm_event == StmEvtNoUndo) {
+ // nop
+ }
+ else {
+ g_stm_prv_state.layer[StmLayerNoApps].state = g_stm_crr_state.layer[StmLayerNoApps].state;
+ }
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/*
+ * @name stm_hud_apps_start_activity_none
+ */
+void stm_hud_apps_start_activity_none() {
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoNone;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
+
+/**
+ * stm_hud_apps_start_activity_general
+ */
+void stm_hud_apps_start_activity_general(){
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.h b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.h
new file mode 100755
index 0000000..161107f
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/apps/Zhud_apps_hud_apps_func.h
@@ -0,0 +1,14 @@
+/************************************************************/
+/* Zhud_apps_hud_apps_func.h */
+/* Function and variable header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZHUD_APPS_HUD_APPS_FUNC_H
+#define ZHEADER_ZHUD_APPS_HUD_APPS_FUNC_H
+
+extern void stm_hud_apps_initialize_variable();
+extern void stm_hud_apps_start_stm();
+extern void stm_hud_apps_start_activity_none();
+extern void stm_hud_apps_start_activity_general();
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.c
new file mode 100755
index 0000000..73d7784
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.c
@@ -0,0 +1,179 @@
+/************************************************************/
+/* Zhud_near_apps_hud_near_apps.c */
+/* hud_near_apps State transition model source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/* State management variable */
+static uint8_t Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPSSTATENOMAX];
+
+static void Zhud_near_apps_hud_near_appss0e0( void );
+static void Zhud_near_apps_hud_near_appss1e0( void );
+static void Zhud_near_apps_hud_near_appss1e1( void );
+static void Zhud_near_apps_hud_near_appss0Event( void );
+static void Zhud_near_apps_hud_near_appss1Event( void );
+
+/****************************************/
+/* Action function */
+/* STM : hud_near_apps */
+/* State : none( No 0 ) */
+/* Event : ara_upper_left( No 0 ) */
+/****************************************/
+static void Zhud_near_apps_hud_near_appss0e0( void )
+{
+ Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS1;
+ stm_hud_near_apps_start_activity_upper_left();
+}
+
+/****************************************/
+/* Action function */
+/* STM : hud_near_apps */
+/* State : upper_left( No 1 ) */
+/* Event : ara_upper_left( No 0 ) */
+/****************************************/
+static void Zhud_near_apps_hud_near_appss1e0( void )
+{
+ stm_hud_near_apps_start_activity_upper_left();
+}
+
+/****************************************/
+/* Action function */
+/* STM : hud_near_apps */
+/* State : upper_left( No 1 ) */
+/* Event : ctg_receiver2( No 1 ) */
+/****************************************/
+static void Zhud_near_apps_hud_near_appss1e1( void )
+{
+ Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
+ stm_hud_near_apps_start_activity_none();
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : hud_near_apps */
+/* State : none( No 0 ) */
+/****************************************/
+static void Zhud_near_apps_hud_near_appss0Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver2*/
+ if( g_stm_category == StmCtgNoReceiver2 )
+ {
+ /*ara_upper_left*/
+ if( g_stm_area == StmAreaNoUpperLeft )
+ {
+ Zhud_near_apps_hud_near_appss0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : hud_near_apps */
+/* State : upper_left( No 1 ) */
+/****************************************/
+static void Zhud_near_apps_hud_near_appss1Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver2*/
+ if( g_stm_category == StmCtgNoReceiver2 )
+ {
+ /*ara_upper_left*/
+ if( g_stm_area == StmAreaNoUpperLeft )
+ {
+ Zhud_near_apps_hud_near_appss1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_receiver2*/
+ if( g_stm_category == StmCtgNoReceiver2 )
+ {
+ Zhud_near_apps_hud_near_appss1e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event call function */
+/* STM : hud_near_apps */
+/****************************************/
+void stm_hud_near_apps_event_call( void )
+{
+ stm_hud_near_apps_start_stm();
+ switch( Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] )
+ {
+ case ZHUD_NEAR_APPS_HUD_NEAR_APPSS0:
+ Zhud_near_apps_hud_near_appss0Event();
+ break;
+ case ZHUD_NEAR_APPS_HUD_NEAR_APPSS1:
+ Zhud_near_apps_hud_near_appss1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Initial function */
+/* STM : hud_near_apps */
+/****************************************/
+void stm_hud_near_apps_initialize( void )
+{
+ Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
+ stm_hud_near_apps_start_activity_none();
+}
+
+/****************************************/
+/* Terminate function */
+/* STM : hud_near_apps */
+/****************************************/
+void Zhud_near_apps_hud_near_appsTerminate( void )
+{
+ Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSTERMINATE;
+}
+
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.h b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.h
new file mode 100755
index 0000000..081e2bc
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps.h
@@ -0,0 +1,41 @@
+/************************************************************/
+/* Zhud_near_apps_hud_near_apps.h */
+/* hud_near_apps State transition model header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZHUD_NEAR_APPS_HUD_NEAR_APPS_H
+#define ZHEADER_ZHUD_NEAR_APPS_HUD_NEAR_APPS_H
+
+/*State management variable access define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPS ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS0 ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS1 ( 1U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSSTATENOMAX ( 1U )
+
+/*End state define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSEND ( 2U )
+/*Terminate state define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSTERMINATE ( ZHUD_NEAR_APPS_HUD_NEAR_APPSEND + 1U )
+
+/*State no define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS0STATENO ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS1STATENO ( 1U )
+
+/*State serial no define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS0STATESERIALNO ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSS1STATESERIALNO ( 1U )
+
+/*Event no define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSE0EVENTNO ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSE1EVENTNO ( 1U )
+
+/*Event serial no define*/
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSE0EVENTSERIALNO ( 0U )
+#define ZHUD_NEAR_APPS_HUD_NEAR_APPSE1EVENTSERIALNO ( 1U )
+
+/*Extern function*/
+extern void stm_hud_near_apps_event_call( void );
+extern void stm_hud_near_apps_initialize( void );
+extern void Zhud_near_apps_hud_near_appsTerminate( void );
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.c
new file mode 100755
index 0000000..7c8fb61
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.c
@@ -0,0 +1,49 @@
+/************************************************************/
+/* Zhud_near_apps_hud_near_apps_func.c */
+/* Function and variable source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/*************************************************************
+ Function definition
+ *************************************************************/
+
+/**
+ * stm_hud_near_apps_initialize_variable
+ */
+void stm_hud_near_apps_initialize_variable() {
+ g_stm_prv_state.layer[StmLayerNoNearApps].state = StmLayoutNoUpperLeft;
+ g_stm_prv_state.layer[StmLayerNoNearApps].changed = STM_FALSE;
+
+ g_stm_crr_state.layer[StmLayerNoNearApps].state = StmLayoutNoUpperLeft;
+ g_stm_crr_state.layer[StmLayerNoNearApps].changed = STM_FALSE;
+}
+
+/**
+ * stm_hud_near_apps_start_stm
+ */
+void stm_hud_near_apps_start_stm() {
+ if (g_stm_event == StmEvtNoUndo) {
+ // nop
+ } else {
+ g_stm_prv_state.layer[StmLayerNoNearApps].state =
+ g_stm_crr_state.layer[StmLayerNoNearApps].state;
+ }
+ g_stm_crr_state.layer[StmLayerNoNearApps].changed = STM_FALSE;
+}
+/*
+ * @name stm_hud_near_apps_start_activity_none
+ */
+void stm_hud_near_apps_start_activity_none() {
+ g_stm_crr_state.layer[StmLayerNoNearApps].state = StmLayoutNoNone;
+ g_stm_crr_state.layer[StmLayerNoNearApps].changed = STM_TRUE;
+}
+
+/**
+ * stm_hud_near_apps_start_activity_upper_left
+ */
+void stm_hud_near_apps_start_activity_upper_left() {
+ g_stm_crr_state.layer[StmLayerNoNearApps].state = StmLayoutNoUpperLeft;
+ g_stm_crr_state.layer[StmLayerNoNearApps].changed = STM_TRUE;
+}
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.h b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.h
new file mode 100755
index 0000000..3c0bdff
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/near_apps/Zhud_near_apps_hud_near_apps_func.h
@@ -0,0 +1,14 @@
+/************************************************************/
+/* Zhud_near_apps_hud_near_apps_func.h */
+/* Function and variable header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZHUD_NEAR_APPS_HUD_NEAR_APPS_FUNC_H
+#define ZHEADER_ZHUD_NEAR_APPS_HUD_NEAR_APPS_FUNC_H
+
+extern void stm_hud_near_apps_initialize_variable();
+extern void stm_hud_near_apps_start_stm();
+extern void stm_hud_near_apps_start_activity_none();
+extern void stm_hud_near_apps_start_activity_upper_left();
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud.c
index 26569e3..b2dbcfc 100755
--- a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud.c
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud.c
@@ -18,7 +18,7 @@ static void Zremote_hud_remote_huds1Event( void );
/* Action function */
/* STM : remote_hud */
/* State : none( No 0 ) */
-/* Event : ara_normal( No 0 ) */
+/* Event : ara_hud_normal( No 0 ) */
/****************************************/
static void Zremote_hud_remote_huds0e0( void )
{
@@ -29,8 +29,8 @@ static void Zremote_hud_remote_huds0e0( void )
/****************************************/
/* Action function */
/* STM : remote_hud */
-/* State : general( No 1 ) */
-/* Event : ara_normal( No 0 ) */
+/* State : remote_hud( No 1 ) */
+/* Event : ara_hud_normal( No 0 ) */
/****************************************/
static void Zremote_hud_remote_huds1e0( void )
{
@@ -40,7 +40,7 @@ static void Zremote_hud_remote_huds1e0( void )
/****************************************/
/* Action function */
/* STM : remote_hud */
-/* State : general( No 1 ) */
+/* State : remote_hud( No 1 ) */
/* Event : ctg_general( No 1 ) */
/****************************************/
static void Zremote_hud_remote_huds1e1( void )
@@ -62,8 +62,8 @@ static void Zremote_hud_remote_huds0Event( void )
/*ctg_general*/
if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_hud_normal*/
+ if( g_stm_area == StmAreaNoHUDNormal )
{
Zremote_hud_remote_huds0e0();
}
@@ -89,7 +89,7 @@ static void Zremote_hud_remote_huds0Event( void )
/****************************************/
/* Event appraisal function */
/* STM : remote_hud */
-/* State : general( No 1 ) */
+/* State : remote_hud( No 1 ) */
/****************************************/
static void Zremote_hud_remote_huds1Event( void )
{
@@ -99,8 +99,8 @@ static void Zremote_hud_remote_huds1Event( void )
/*ctg_general*/
if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_hud_normal*/
+ if( g_stm_area == StmAreaNoHUDNormal )
{
Zremote_hud_remote_huds1e0();
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud_func.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud_func.c
index 9a1c17f..2134467 100755
--- a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud/Zremote_hud_remote_hud_func.c
@@ -45,6 +45,6 @@ void stm_remote_hud_start_activity_none() {
* stm_remote_hud_start_activity_general
*/
void stm_remote_hud_start_activity_general(){
- g_stm_crr_state.layer[StmLayerNoRemoteHUD].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoRemoteHUD].state = StmLayoutNoRmtHud;
g_stm_crr_state.layer[StmLayerNoRemoteHUD].changed = STM_TRUE;
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.c
index 32c5041..40cf614 100755
--- a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.c
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left.c
@@ -18,7 +18,7 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts1Event( void );
/* Action function */
/* STM : remote_hud_up_left */
/* State : none( No 0 ) */
-/* Event : ara_upper_left( No 0 ) */
+/* Event : ara_hud_upper_left( No 0 ) */
/****************************************/
static void Zremote_hud_upper_left_remote_hud_up_lefts0e0( void )
{
@@ -29,8 +29,8 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts0e0( void )
/****************************************/
/* Action function */
/* STM : remote_hud_up_left */
-/* State : upper_left( No 1 ) */
-/* Event : ara_upper_left( No 0 ) */
+/* State : remote_hud_upper_left( No 1 ) */
+/* Event : ara_hud_upper_left( No 0 ) */
/****************************************/
static void Zremote_hud_upper_left_remote_hud_up_lefts1e0( void )
{
@@ -40,8 +40,8 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts1e0( void )
/****************************************/
/* Action function */
/* STM : remote_hud_up_left */
-/* State : upper_left( No 1 ) */
-/* Event : ctg_general( No 1 ) */
+/* State : remote_hud_upper_left( No 1 ) */
+/* Event : ctg_speed( No 1 ) */
/****************************************/
static void Zremote_hud_upper_left_remote_hud_up_lefts1e1( void )
{
@@ -59,11 +59,11 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts0Event( void )
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_general*/
- if( g_stm_category == StmCtgNoGeneral )
+ /*ctg_speed*/
+ if( g_stm_category == StmCtgNoSpeed )
{
- /*ara_upper_left*/
- if( g_stm_area == StmAreaNoUpperLeft )
+ /*ara_hud_upper_left*/
+ if( g_stm_area == StmAreaNoHUDUpperLeft )
{
Zremote_hud_upper_left_remote_hud_up_lefts0e0();
}
@@ -89,18 +89,18 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts0Event( void )
/****************************************/
/* Event appraisal function */
/* STM : remote_hud_up_left */
-/* State : upper_left( No 1 ) */
+/* State : remote_hud_upper_left( No 1 ) */
/****************************************/
static void Zremote_hud_upper_left_remote_hud_up_lefts1Event( void )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_general*/
- if( g_stm_category == StmCtgNoGeneral )
+ /*ctg_speed*/
+ if( g_stm_category == StmCtgNoSpeed )
{
- /*ara_upper_left*/
- if( g_stm_area == StmAreaNoUpperLeft )
+ /*ara_hud_upper_left*/
+ if( g_stm_area == StmAreaNoHUDUpperLeft )
{
Zremote_hud_upper_left_remote_hud_up_lefts1e0();
}
@@ -119,8 +119,8 @@ static void Zremote_hud_upper_left_remote_hud_up_lefts1Event( void )
/*evt_deactivate*/
else if( g_stm_event == StmEvtNoDeactivate )
{
- /*ctg_general*/
- if( g_stm_category == StmCtgNoGeneral )
+ /*ctg_speed*/
+ if( g_stm_category == StmCtgNoSpeed )
{
Zremote_hud_upper_left_remote_hud_up_lefts1e1();
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.c b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.c
index 2ed9d3b..05ecf4f 100755
--- a/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/hud/layer/remote_hud_upper_left/Zremote_hud_upper_left_remote_hud_up_left_func.c
@@ -44,6 +44,6 @@ void stm_remote_hud_up_left_start_activity_none() {
* stm_remote_hud_up_left_start_activity_upper_left
*/
void stm_remote_hud_up_left_start_activity_upper_left(){
- g_stm_crr_state.layer[StmLayerNoRemoteHUDUpperLeft].state = StmLayoutNoRmtUpLeft;
+ g_stm_crr_state.layer[StmLayerNoRemoteHUDUpperLeft].state = StmLayoutNoRmtHudUpLeft;
g_stm_crr_state.layer[StmLayerNoRemoteHUDUpperLeft].changed = STM_TRUE;
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c
new file mode 100755
index 0000000..09851de
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.c
@@ -0,0 +1,179 @@
+/************************************************************/
+/* Zrse1_apps_rse1_apps.c */
+/* rse1_apps State transition model source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/* State management variable */
+static uint8_t Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPSSTATENOMAX];
+
+static void Zrse1_apps_rse1_appss0e0( void );
+static void Zrse1_apps_rse1_appss1e0( void );
+static void Zrse1_apps_rse1_appss1e1( void );
+static void Zrse1_apps_rse1_appss0Event( void );
+static void Zrse1_apps_rse1_appss1Event( void );
+
+/****************************************/
+/* Action function */
+/* STM : rse1_apps */
+/* State : none( No 0 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zrse1_apps_rse1_appss0e0( void )
+{
+ Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS1;
+ stm_rse1_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : rse1_apps */
+/* State : general( No 1 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zrse1_apps_rse1_appss1e0( void )
+{
+ stm_rse1_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : rse1_apps */
+/* State : general( No 1 ) */
+/* Event : ctg_receiver( No 1 ) */
+/****************************************/
+static void Zrse1_apps_rse1_appss1e1( void )
+{
+ Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0;
+ stm_rse1_apps_start_activity_none();
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : rse1_apps */
+/* State : none( No 0 ) */
+/****************************************/
+static void Zrse1_apps_rse1_appss0Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zrse1_apps_rse1_appss0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : rse1_apps */
+/* State : general( No 1 ) */
+/****************************************/
+static void Zrse1_apps_rse1_appss1Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zrse1_apps_rse1_appss1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ Zrse1_apps_rse1_appss1e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event call function */
+/* STM : rse1_apps */
+/****************************************/
+void stm_rse1_apps_event_call( void )
+{
+ stm_rse1_apps_start_stm();
+ switch( Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] )
+ {
+ case ZRSE1_APPS_RSE1_APPSS0:
+ Zrse1_apps_rse1_appss0Event();
+ break;
+ case ZRSE1_APPS_RSE1_APPSS1:
+ Zrse1_apps_rse1_appss1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Initial function */
+/* STM : rse1_apps */
+/****************************************/
+void stm_rse1_apps_initialize( void )
+{
+ Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0;
+ stm_rse1_apps_start_activity_none();
+}
+
+/****************************************/
+/* Terminate function */
+/* STM : rse1_apps */
+/****************************************/
+void Zrse1_apps_rse1_appsTerminate( void )
+{
+ Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSTERMINATE;
+}
+
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.h b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.h
new file mode 100755
index 0000000..da7becb
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps.h
@@ -0,0 +1,41 @@
+/************************************************************/
+/* Zrse1_apps_rse1_apps.h */
+/* rse1_apps State transition model header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZRSE1_APPS_RSE1_APPS_H
+#define ZHEADER_ZRSE1_APPS_RSE1_APPS_H
+
+/*State management variable access define*/
+#define ZRSE1_APPS_RSE1_APPS ( 0U )
+#define ZRSE1_APPS_RSE1_APPSS0 ( 0U )
+#define ZRSE1_APPS_RSE1_APPSS1 ( 1U )
+#define ZRSE1_APPS_RSE1_APPSSTATENOMAX ( 1U )
+
+/*End state define*/
+#define ZRSE1_APPS_RSE1_APPSEND ( 2U )
+/*Terminate state define*/
+#define ZRSE1_APPS_RSE1_APPSTERMINATE ( ZRSE1_APPS_RSE1_APPSEND + 1U )
+
+/*State no define*/
+#define ZRSE1_APPS_RSE1_APPSS0STATENO ( 0U )
+#define ZRSE1_APPS_RSE1_APPSS1STATENO ( 1U )
+
+/*State serial no define*/
+#define ZRSE1_APPS_RSE1_APPSS0STATESERIALNO ( 0U )
+#define ZRSE1_APPS_RSE1_APPSS1STATESERIALNO ( 1U )
+
+/*Event no define*/
+#define ZRSE1_APPS_RSE1_APPSE0EVENTNO ( 0U )
+#define ZRSE1_APPS_RSE1_APPSE1EVENTNO ( 1U )
+
+/*Event serial no define*/
+#define ZRSE1_APPS_RSE1_APPSE0EVENTSERIALNO ( 0U )
+#define ZRSE1_APPS_RSE1_APPSE1EVENTSERIALNO ( 1U )
+
+/*Extern function*/
+extern void stm_rse1_apps_event_call( void );
+extern void stm_rse1_apps_initialize( void );
+extern void Zrse1_apps_rse1_appsTerminate( void );
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.c b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.c
new file mode 100755
index 0000000..23f44ed
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.c
@@ -0,0 +1,50 @@
+/************************************************************/
+/* Zrse1_apps_rse1_apps_func.c */
+/* Function and variable source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/*************************************************************
+ Function definition
+*************************************************************/
+
+/**
+ * stm_rse1_apps_initialize_variable
+ */
+void stm_rse1_apps_initialize_variable() {
+ g_stm_prv_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_prv_state.layer[StmLayerNoApps].changed = STM_FALSE;
+
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/**
+ * stm_rse1_apps_start_stm
+ */
+void stm_rse1_apps_start_stm() {
+ if (g_stm_event == StmEvtNoUndo) {
+ // nop
+ }
+ else {
+ g_stm_prv_state.layer[StmLayerNoApps].state = g_stm_crr_state.layer[StmLayerNoApps].state;
+ }
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/*
+ * @name stm_rse1_apps_start_activity_none
+ */
+void stm_rse1_apps_start_activity_none() {
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoNone;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
+
+/**
+ * stm_rse1_apps_start_activity_general
+ */
+void stm_rse1_apps_start_activity_general(){
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.h b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.h
new file mode 100755
index 0000000..7ef6feb
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/apps/Zrse1_apps_rse1_apps_func.h
@@ -0,0 +1,14 @@
+/************************************************************/
+/* Zrse1_apps_rse1_apps_func.h */
+/* Function and variable header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZRSE1_APPS_RSE1_APPS_FUNC_H
+#define ZHEADER_ZRSE1_APPS_RSE1_APPS_FUNC_H
+
+extern void stm_rse1_apps_initialize_variable();
+extern void stm_rse1_apps_start_stm();
+extern void stm_rse1_apps_start_activity_none();
+extern void stm_rse1_apps_start_activity_general();
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.c b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.c
index 7a39d96..b3116dd 100755
--- a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.c
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1.c
@@ -18,7 +18,7 @@ static void Zremote_rse1_remote_rse1s1Event( void );
/* Action function */
/* STM : remote_rse1 */
/* State : none( No 0 ) */
-/* Event : ara_normal( No 0 ) */
+/* Event : ara_rse1_normal( No 0 ) */
/****************************************/
static void Zremote_rse1_remote_rse1s0e0( void )
{
@@ -29,8 +29,8 @@ static void Zremote_rse1_remote_rse1s0e0( void )
/****************************************/
/* Action function */
/* STM : remote_rse1 */
-/* State : general( No 1 ) */
-/* Event : ara_normal( No 0 ) */
+/* State : remote_rse1( No 1 ) */
+/* Event : ara_rse1_normal( No 0 ) */
/****************************************/
static void Zremote_rse1_remote_rse1s1e0( void )
{
@@ -40,8 +40,8 @@ static void Zremote_rse1_remote_rse1s1e0( void )
/****************************************/
/* Action function */
/* STM : remote_rse1 */
-/* State : general( No 1 ) */
-/* Event : ctg_receiver( No 1 ) */
+/* State : remote_rse1( No 1 ) */
+/* Event : ctg_general( No 1 ) */
/****************************************/
static void Zremote_rse1_remote_rse1s1e1( void )
{
@@ -59,11 +59,11 @@ static void Zremote_rse1_remote_rse1s0Event( void )
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_rse1_normal*/
+ if( g_stm_area == StmAreaNoRse1Normal )
{
Zremote_rse1_remote_rse1s0e0();
}
@@ -89,18 +89,18 @@ static void Zremote_rse1_remote_rse1s0Event( void )
/****************************************/
/* Event appraisal function */
/* STM : remote_rse1 */
-/* State : general( No 1 ) */
+/* State : remote_rse1( No 1 ) */
/****************************************/
static void Zremote_rse1_remote_rse1s1Event( void )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_rse1_normal*/
+ if( g_stm_area == StmAreaNoRse1Normal )
{
Zremote_rse1_remote_rse1s1e0();
}
@@ -119,8 +119,8 @@ static void Zremote_rse1_remote_rse1s1Event( void )
/*evt_deactivate*/
else if( g_stm_event == StmEvtNoDeactivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
Zremote_rse1_remote_rse1s1e1();
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.c b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.c
index cfeb4a1..1b05d89 100755
--- a/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/rse1/layer/remote_rse1/Zremote_rse1_remote_rse1_func.c
@@ -44,6 +44,6 @@ void stm_remote_rse1_start_activity_none() {
* stm_remote_rse1_start_activity_general
*/
void stm_remote_rse1_start_activity_general(){
- g_stm_crr_state.layer[StmLayerNoRemoteRSE1].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoRemoteRSE1].state = StmLayoutNoRmtRse1;
g_stm_crr_state.layer[StmLayerNoRemoteRSE1].changed = STM_TRUE;
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.c b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.c
new file mode 100755
index 0000000..5d0e84c
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.c
@@ -0,0 +1,179 @@
+/************************************************************/
+/* Zrse2_apps_rse2_apps.c */
+/* rse2_apps State transition model source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/* State management variable */
+static uint8_t Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPSSTATENOMAX];
+
+static void Zrse2_apps_rse2_appss0e0( void );
+static void Zrse2_apps_rse2_appss1e0( void );
+static void Zrse2_apps_rse2_appss1e1( void );
+static void Zrse2_apps_rse2_appss0Event( void );
+static void Zrse2_apps_rse2_appss1Event( void );
+
+/****************************************/
+/* Action function */
+/* STM : rse2_apps */
+/* State : none( No 0 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zrse2_apps_rse2_appss0e0( void )
+{
+ Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPS] = ( uint8_t )ZRSE2_APPS_RSE2_APPSS1;
+ stm_rse2_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : rse2_apps */
+/* State : general( No 1 ) */
+/* Event : ara_normal( No 0 ) */
+/****************************************/
+static void Zrse2_apps_rse2_appss1e0( void )
+{
+ stm_rse2_apps_start_activity_general();
+}
+
+/****************************************/
+/* Action function */
+/* STM : rse2_apps */
+/* State : general( No 1 ) */
+/* Event : ctg_receiver( No 1 ) */
+/****************************************/
+static void Zrse2_apps_rse2_appss1e1( void )
+{
+ Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPS] = ( uint8_t )ZRSE2_APPS_RSE2_APPSS0;
+ stm_rse2_apps_start_activity_none();
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : rse2_apps */
+/* State : none( No 0 ) */
+/****************************************/
+static void Zrse2_apps_rse2_appss0Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zrse2_apps_rse2_appss0e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event appraisal function */
+/* STM : rse2_apps */
+/* State : general( No 1 ) */
+/****************************************/
+static void Zrse2_apps_rse2_appss1Event( void )
+{
+ /*evt_activate*/
+ if( g_stm_event == StmEvtNoActivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ /*ara_normal*/
+ if( g_stm_area == StmAreaNoNormal )
+ {
+ Zrse2_apps_rse2_appss1e0();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ /*evt_deactivate*/
+ else if( g_stm_event == StmEvtNoDeactivate )
+ {
+ /*ctg_receiver*/
+ if( g_stm_category == StmCtgNoReceiver )
+ {
+ Zrse2_apps_rse2_appss1e1();
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+ }
+ else
+ {
+ /*Else and default design have not done.*/
+ /*Please confirm the STM and design else and default.*/
+ }
+}
+
+/****************************************/
+/* Event call function */
+/* STM : rse2_apps */
+/****************************************/
+void stm_rse2_apps_event_call( void )
+{
+ stm_rse2_apps_start_stm();
+ switch( Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPS] )
+ {
+ case ZRSE2_APPS_RSE2_APPSS0:
+ Zrse2_apps_rse2_appss0Event();
+ break;
+ case ZRSE2_APPS_RSE2_APPSS1:
+ Zrse2_apps_rse2_appss1Event();
+ break;
+ default:
+ /*Not accessible to this else (default).*/
+ break;
+ }
+}
+
+/****************************************/
+/* Initial function */
+/* STM : rse2_apps */
+/****************************************/
+void stm_rse2_apps_initialize( void )
+{
+ Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPS] = ( uint8_t )ZRSE2_APPS_RSE2_APPSS0;
+ stm_rse2_apps_start_activity_none();
+}
+
+/****************************************/
+/* Terminate function */
+/* STM : rse2_apps */
+/****************************************/
+void Zrse2_apps_rse2_appsTerminate( void )
+{
+ Zrse2_apps_rse2_appsState[ZRSE2_APPS_RSE2_APPS] = ( uint8_t )ZRSE2_APPS_RSE2_APPSTERMINATE;
+}
+
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.h b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.h
new file mode 100755
index 0000000..371f4a5
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps.h
@@ -0,0 +1,41 @@
+/************************************************************/
+/* Zrse2_apps_rse2_apps.h */
+/* rse2_apps State transition model header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZRSE2_APPS_RSE2_APPS_H
+#define ZHEADER_ZRSE2_APPS_RSE2_APPS_H
+
+/*State management variable access define*/
+#define ZRSE2_APPS_RSE2_APPS ( 0U )
+#define ZRSE2_APPS_RSE2_APPSS0 ( 0U )
+#define ZRSE2_APPS_RSE2_APPSS1 ( 1U )
+#define ZRSE2_APPS_RSE2_APPSSTATENOMAX ( 1U )
+
+/*End state define*/
+#define ZRSE2_APPS_RSE2_APPSEND ( 2U )
+/*Terminate state define*/
+#define ZRSE2_APPS_RSE2_APPSTERMINATE ( ZRSE2_APPS_RSE2_APPSEND + 1U )
+
+/*State no define*/
+#define ZRSE2_APPS_RSE2_APPSS0STATENO ( 0U )
+#define ZRSE2_APPS_RSE2_APPSS1STATENO ( 1U )
+
+/*State serial no define*/
+#define ZRSE2_APPS_RSE2_APPSS0STATESERIALNO ( 0U )
+#define ZRSE2_APPS_RSE2_APPSS1STATESERIALNO ( 1U )
+
+/*Event no define*/
+#define ZRSE2_APPS_RSE2_APPSE0EVENTNO ( 0U )
+#define ZRSE2_APPS_RSE2_APPSE1EVENTNO ( 1U )
+
+/*Event serial no define*/
+#define ZRSE2_APPS_RSE2_APPSE0EVENTSERIALNO ( 0U )
+#define ZRSE2_APPS_RSE2_APPSE1EVENTSERIALNO ( 1U )
+
+/*Extern function*/
+extern void stm_rse2_apps_event_call( void );
+extern void stm_rse2_apps_initialize( void );
+extern void Zrse2_apps_rse2_appsTerminate( void );
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.c b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.c
new file mode 100755
index 0000000..7ae2775
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.c
@@ -0,0 +1,50 @@
+/************************************************************/
+/* Zrse2_apps_rse2_apps_func.c */
+/* Function and variable source file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#include "../../../ZST_include.h"
+
+/*************************************************************
+ Function definition
+*************************************************************/
+
+/**
+ * stm_rse2_apps_initialize_variable
+ */
+void stm_rse2_apps_initialize_variable() {
+ g_stm_prv_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_prv_state.layer[StmLayerNoApps].changed = STM_FALSE;
+
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/**
+ * stm_rse2_apps_start_stm
+ */
+void stm_rse2_apps_start_stm() {
+ if (g_stm_event == StmEvtNoUndo) {
+ // nop
+ }
+ else {
+ g_stm_prv_state.layer[StmLayerNoApps].state = g_stm_crr_state.layer[StmLayerNoApps].state;
+ }
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_FALSE;
+}
+
+/*
+ * @name stm_rse2_apps_start_activity_none
+ */
+void stm_rse2_apps_start_activity_none() {
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoNone;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
+
+/**
+ * stm_rse2_apps_start_activity_general
+ */
+void stm_rse2_apps_start_activity_general(){
+ g_stm_crr_state.layer[StmLayerNoApps].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoApps].changed = STM_TRUE;
+}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.h b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.h
new file mode 100755
index 0000000..91467ef
--- /dev/null
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/apps/Zrse2_apps_rse2_apps_func.h
@@ -0,0 +1,14 @@
+/************************************************************/
+/* Zrse2_apps_rse2_apps_func.h */
+/* Function and variable header file */
+/* ZIPC Designer Version 1.2.1 */
+/************************************************************/
+#ifndef ZHEADER_ZRSE2_APPS_RSE2_APPS_FUNC_H
+#define ZHEADER_ZRSE2_APPS_RSE2_APPS_FUNC_H
+
+extern void stm_rse2_apps_initialize_variable();
+extern void stm_rse2_apps_start_stm();
+extern void stm_rse2_apps_start_activity_none();
+extern void stm_rse2_apps_start_activity_general();
+
+#endif
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.c b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.c
index 4f2cd6c..d3b3177 100755
--- a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.c
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2.c
@@ -18,7 +18,7 @@ static void Zremote_rse2_remote_rse2s1Event( void );
/* Action function */
/* STM : remote_rse2 */
/* State : none( No 0 ) */
-/* Event : ara_normal( No 0 ) */
+/* Event : ara_rse2_normal( No 0 ) */
/****************************************/
static void Zremote_rse2_remote_rse2s0e0( void )
{
@@ -29,8 +29,8 @@ static void Zremote_rse2_remote_rse2s0e0( void )
/****************************************/
/* Action function */
/* STM : remote_rse2 */
-/* State : general( No 1 ) */
-/* Event : ara_normal( No 0 ) */
+/* State : remote_rse2( No 1 ) */
+/* Event : ara_rse2_normal( No 0 ) */
/****************************************/
static void Zremote_rse2_remote_rse2s1e0( void )
{
@@ -40,8 +40,8 @@ static void Zremote_rse2_remote_rse2s1e0( void )
/****************************************/
/* Action function */
/* STM : remote_rse2 */
-/* State : general( No 1 ) */
-/* Event : ctg_receiver( No 1 ) */
+/* State : remote_rse2( No 1 ) */
+/* Event : ctg_general( No 1 ) */
/****************************************/
static void Zremote_rse2_remote_rse2s1e1( void )
{
@@ -59,11 +59,11 @@ static void Zremote_rse2_remote_rse2s0Event( void )
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_rse2_normal*/
+ if( g_stm_area == StmAreaNoRse2Normal )
{
Zremote_rse2_remote_rse2s0e0();
}
@@ -89,18 +89,18 @@ static void Zremote_rse2_remote_rse2s0Event( void )
/****************************************/
/* Event appraisal function */
/* STM : remote_rse2 */
-/* State : general( No 1 ) */
+/* State : remote_rse2( No 1 ) */
/****************************************/
static void Zremote_rse2_remote_rse2s1Event( void )
{
/*evt_activate*/
if( g_stm_event == StmEvtNoActivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
- /*ara_normal*/
- if( g_stm_area == StmAreaNoNormal )
+ /*ara_rse2_normal*/
+ if( g_stm_area == StmAreaNoRse2Normal )
{
Zremote_rse2_remote_rse2s1e0();
}
@@ -119,8 +119,8 @@ static void Zremote_rse2_remote_rse2s1Event( void )
/*evt_deactivate*/
else if( g_stm_event == StmEvtNoDeactivate )
{
- /*ctg_receiver*/
- if( g_stm_category == StmCtgNoReceiver )
+ /*ctg_general*/
+ if( g_stm_category == StmCtgNoGeneral )
{
Zremote_rse2_remote_rse2s1e1();
}
diff --git a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.c b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.c
index cae3382..12d9cc3 100755
--- a/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.c
+++ b/policy_manager/stm/zipc/StateTransitionor/rse2/layer/remote_rse2/Zremote_rse2_remote_rse2_func.c
@@ -44,6 +44,6 @@ void stm_remote_rse2_start_activity_none() {
* @name stm_remote_rse2_start_activity_general
*/
void stm_remote_rse2_start_activity_general(){
- g_stm_crr_state.layer[StmLayerNoRemoteRSE2].state = StmLayoutNoGenNml;
+ g_stm_crr_state.layer[StmLayerNoRemoteRSE2].state = StmLayoutNoRmtRse2;
g_stm_crr_state.layer[StmLayerNoRemoteRSE2].changed = STM_TRUE;
}