Add chage remote app
[apps/agl-service-windowmanager.git] / policy_manager / stm / zipc / StateTransitionor / rse1 / layer / apps / Zrse1_apps_rse1_apps.c
1 /************************************************************/
2 /*     Zrse1_apps_rse1_apps.c                               */
3 /*     rse1_apps State transition model source file         */
4 /*     ZIPC Designer Version 1.2.1                          */
5 /************************************************************/
6 #include "../../../ZST_include.h"
7
8 /* State management variable */
9 static uint8_t Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPSSTATENOMAX];
10
11 static void Zrse1_apps_rse1_appss0e0( void );
12 static void Zrse1_apps_rse1_appss1e0( void );
13 static void Zrse1_apps_rse1_appss1e1( void );
14 static void Zrse1_apps_rse1_appss0Event( void );
15 static void Zrse1_apps_rse1_appss1Event( void );
16
17 /****************************************/
18 /* Action function                      */
19 /*   STM : rse1_apps                    */
20 /*   State : none( No 0 )               */
21 /*   Event : ara_normal( No 0 )         */
22 /****************************************/
23 static void Zrse1_apps_rse1_appss0e0( void )
24 {
25     Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS1;
26     stm_rse1_apps_start_activity_general();
27 }
28
29 /****************************************/
30 /* Action function                      */
31 /*   STM : rse1_apps                    */
32 /*   State : general( No 1 )            */
33 /*   Event : ara_normal( No 0 )         */
34 /****************************************/
35 static void Zrse1_apps_rse1_appss1e0( void )
36 {
37     stm_rse1_apps_start_activity_general();
38 }
39
40 /****************************************/
41 /* Action function                      */
42 /*   STM : rse1_apps                    */
43 /*   State : general( No 1 )            */
44 /*   Event : ctg_receiver( No 1 )       */
45 /****************************************/
46 static void Zrse1_apps_rse1_appss1e1( void )
47 {
48     Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0;
49     stm_rse1_apps_start_activity_none();
50 }
51
52 /****************************************/
53 /* Event appraisal function             */
54 /*   STM : rse1_apps                    */
55 /*   State : none( No 0 )               */
56 /****************************************/
57 static void Zrse1_apps_rse1_appss0Event( void )
58 {
59     /*evt_activate*/
60     if( g_stm_event == StmEvtNoActivate )
61     {
62         /*ctg_receiver*/
63         if( g_stm_category == StmCtgNoReceiver )
64         {
65             /*ara_normal*/
66             if( g_stm_area == StmAreaNoNormal )
67             {
68                 Zrse1_apps_rse1_appss0e0();
69             }
70             else
71             {
72                 /*Else and default design have not done.*/
73                 /*Please confirm the STM and design else and default.*/
74             }
75         }
76         else
77         {
78             /*Else and default design have not done.*/
79             /*Please confirm the STM and design else and default.*/
80         }
81     }
82     else
83     {
84         /*Else and default design have not done.*/
85         /*Please confirm the STM and design else and default.*/
86     }
87 }
88
89 /****************************************/
90 /* Event appraisal function             */
91 /*   STM : rse1_apps                    */
92 /*   State : general( No 1 )            */
93 /****************************************/
94 static void Zrse1_apps_rse1_appss1Event( void )
95 {
96     /*evt_activate*/
97     if( g_stm_event == StmEvtNoActivate )
98     {
99         /*ctg_receiver*/
100         if( g_stm_category == StmCtgNoReceiver )
101         {
102             /*ara_normal*/
103             if( g_stm_area == StmAreaNoNormal )
104             {
105                 Zrse1_apps_rse1_appss1e0();
106             }
107             else
108             {
109                 /*Else and default design have not done.*/
110                 /*Please confirm the STM and design else and default.*/
111             }
112         }
113         else
114         {
115             /*Else and default design have not done.*/
116             /*Please confirm the STM and design else and default.*/
117         }
118     }
119     /*evt_deactivate*/
120     else if( g_stm_event == StmEvtNoDeactivate )
121     {
122         /*ctg_receiver*/
123         if( g_stm_category == StmCtgNoReceiver )
124         {
125             Zrse1_apps_rse1_appss1e1();
126         }
127         else
128         {
129             /*Else and default design have not done.*/
130             /*Please confirm the STM and design else and default.*/
131         }
132     }
133     else
134     {
135         /*Else and default design have not done.*/
136         /*Please confirm the STM and design else and default.*/
137     }
138 }
139
140 /****************************************/
141 /* Event call function                  */
142 /*   STM : rse1_apps                    */
143 /****************************************/
144 void stm_rse1_apps_event_call( void )
145 {
146     stm_rse1_apps_start_stm();
147     switch( Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] )
148     {
149     case ZRSE1_APPS_RSE1_APPSS0:
150         Zrse1_apps_rse1_appss0Event();
151         break;
152     case ZRSE1_APPS_RSE1_APPSS1:
153         Zrse1_apps_rse1_appss1Event();
154         break;
155     default:
156         /*Not accessible to this else (default).*/
157         break;
158     }
159 }
160
161 /****************************************/
162 /* Initial function                     */
163 /*   STM : rse1_apps                    */
164 /****************************************/
165 void stm_rse1_apps_initialize( void )
166 {
167     Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSS0;
168     stm_rse1_apps_start_activity_none();
169 }
170
171 /****************************************/
172 /* Terminate function                   */
173 /*   STM : rse1_apps                    */
174 /****************************************/
175 void Zrse1_apps_rse1_appsTerminate( void )
176 {
177     Zrse1_apps_rse1_appsState[ZRSE1_APPS_RSE1_APPS] = ( uint8_t )ZRSE1_APPS_RSE1_APPSTERMINATE;
178 }
179