Add chage remote app
[apps/agl-service-windowmanager.git] / policy_manager / stm / zipc / StateTransitionor / AppsLayer / ZAPL_AppsLayer.c
index ac1fb16..e1710b1 100755 (executable)
@@ -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();
 }
@@ -314,6 +350,28 @@ static void ZAPL_RestrictionModeOffs7e7( void )
     stm_apl_start_activity_system();
 }
 
+/****************************************/
+/* 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            */
@@ -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,16 @@ 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.*/
@@ -1767,33 +2057,13 @@ static void ZAPL_RestrictionModeOffs7Event( void )
 
 /****************************************/
 /* Event appraisal function             */
-/*   STM : AppsLayer                    */
-/*   State : restriction_mode_on( No 1 )*/
+/*   STM : RestrictionModeOff           */
+/*   State : launcher_normal( No 8 )    */
 /****************************************/
-static void ZAPL_AppsLayers1Event( void )
+static void ZAPL_RestrictionModeOffs8Event( void )
 {
     /*stt_restriction_mode_off*/
     if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
-    {
-        stm_apl_event_restriction_mode_off();
-        ZAPL_AppsLayers1e0();
-    }
-    else
-    {
-        /*Else and default design have not done.*/
-        /*Please confirm the STM and design else and default.*/
-    }
-}
-
-/****************************************/
-/* Event appraisal function             */
-/*   STM : RestrictionModeOn            */
-/*   State : map( No 0 )                */
-/****************************************/
-static void ZAPL_RestrictionModeOns0Event( void )
-{
-    /*stt_restriction_mode_on*/
-    if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
     {
         /*evt_activate*/
         if( g_stm_event == StmEvtNoActivate )
@@ -1801,10 +2071,15 @@ static void ZAPL_RestrictionModeOns0Event( void )
             /*ctg_map*/
             if( g_stm_category == StmCtgNoMap )
             {
+                /*ara_normal*/
+                if( g_stm_area == StmAreaNoNormal )
+                {
+                    ZAPL_RestrictionModeOffs0e0();
+                }
                 /*ara_fullscreen*/
-                if( g_stm_area == StmAreaNoFullscreen )
+                else if( g_stm_area == StmAreaNoFullscreen )
                 {
-                    ZAPL_RestrictionModeOns0e1();
+                    ZAPL_RestrictionModeOffs0e2();
                 }
                 else
                 {
@@ -1812,19 +2087,432 @@ static void ZAPL_RestrictionModeOns0Event( void )
                     /*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_undo*/
-        else if( g_stm_event == StmEvtNoUndo )
-        {
-            /*stt_prv_layer_apps_map_nml*/
-            if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
+            /*ctg_splitable*/
+            else if( g_stm_category == StmCtgNoSplitable )
             {
-                ZAPL_RestrictionModeOns0e2();
+                /*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.*/
+                /*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 : AppsLayer                    */
+/*   State : restriction_mode_on( No 1 )*/
+/****************************************/
+static void ZAPL_AppsLayers1Event( void )
+{
+    /*stt_restriction_mode_off*/
+    if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOff )
+    {
+        stm_apl_event_restriction_mode_off();
+        ZAPL_AppsLayers1e0();
+    }
+    else
+    {
+        /*Else and default design have not done.*/
+        /*Please confirm the STM and design else and default.*/
+    }
+}
+
+/****************************************/
+/* Event appraisal function             */
+/*   STM : RestrictionModeOn            */
+/*   State : map( No 0 )                */
+/****************************************/
+static void ZAPL_RestrictionModeOns0Event( void )
+{
+    /*stt_restriction_mode_on*/
+    if( g_stm_crr_state.car_element[StmCarElementNoRestrictionMode].state == StmRestrictionModeSttNoOn )
+    {
+        /*evt_activate*/
+        if( g_stm_event == StmEvtNoActivate )
+        {
+            /*ctg_map*/
+            if( g_stm_category == StmCtgNoMap )
+            {
+                /*ara_fullscreen*/
+                if( g_stm_area == StmAreaNoFullscreen )
+                {
+                    ZAPL_RestrictionModeOns0e1();
+                }
+                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_undo*/
+        else if( g_stm_event == StmEvtNoUndo )
+        {
+            /*stt_prv_layer_apps_map_nml*/
+            if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapNml )
+            {
+                ZAPL_RestrictionModeOns0e2();
             }
             /*stt_prv_layer_apps_map_fll*/
             else if( g_stm_prv_state.layer[StmLayerNoApps].state == StmLayoutNoMapFll )
@@ -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;