Add chage remote app
[apps/agl-service-windowmanager.git] / policy_manager / stm / zipc / StateTransitionor / hud / layer / near_apps / Zhud_near_apps_hud_near_apps.c
1 /************************************************************/
2 /*     Zhud_near_apps_hud_near_apps.c                       */
3 /*     hud_near_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 Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPSSTATENOMAX];
10
11 static void Zhud_near_apps_hud_near_appss0e0( void );
12 static void Zhud_near_apps_hud_near_appss1e0( void );
13 static void Zhud_near_apps_hud_near_appss1e1( void );
14 static void Zhud_near_apps_hud_near_appss0Event( void );
15 static void Zhud_near_apps_hud_near_appss1Event( void );
16
17 /****************************************/
18 /* Action function                      */
19 /*   STM : hud_near_apps                */
20 /*   State : none( No 0 )               */
21 /*   Event : ara_upper_left( No 0 )     */
22 /****************************************/
23 static void Zhud_near_apps_hud_near_appss0e0( void )
24 {
25     Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS1;
26     stm_hud_near_apps_start_activity_upper_left();
27 }
28
29 /****************************************/
30 /* Action function                      */
31 /*   STM : hud_near_apps                */
32 /*   State : upper_left( No 1 )         */
33 /*   Event : ara_upper_left( No 0 )     */
34 /****************************************/
35 static void Zhud_near_apps_hud_near_appss1e0( void )
36 {
37     stm_hud_near_apps_start_activity_upper_left();
38 }
39
40 /****************************************/
41 /* Action function                      */
42 /*   STM : hud_near_apps                */
43 /*   State : upper_left( No 1 )         */
44 /*   Event : ctg_receiver2( No 1 )      */
45 /****************************************/
46 static void Zhud_near_apps_hud_near_appss1e1( void )
47 {
48     Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
49     stm_hud_near_apps_start_activity_none();
50 }
51
52 /****************************************/
53 /* Event appraisal function             */
54 /*   STM : hud_near_apps                */
55 /*   State : none( No 0 )               */
56 /****************************************/
57 static void Zhud_near_apps_hud_near_appss0Event( void )
58 {
59     /*evt_activate*/
60     if( g_stm_event == StmEvtNoActivate )
61     {
62         /*ctg_receiver2*/
63         if( g_stm_category == StmCtgNoReceiver2 )
64         {
65             /*ara_upper_left*/
66             if( g_stm_area == StmAreaNoUpperLeft )
67             {
68                 Zhud_near_apps_hud_near_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 : hud_near_apps                */
92 /*   State : upper_left( No 1 )         */
93 /****************************************/
94 static void Zhud_near_apps_hud_near_appss1Event( void )
95 {
96     /*evt_activate*/
97     if( g_stm_event == StmEvtNoActivate )
98     {
99         /*ctg_receiver2*/
100         if( g_stm_category == StmCtgNoReceiver2 )
101         {
102             /*ara_upper_left*/
103             if( g_stm_area == StmAreaNoUpperLeft )
104             {
105                 Zhud_near_apps_hud_near_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_receiver2*/
123         if( g_stm_category == StmCtgNoReceiver2 )
124         {
125             Zhud_near_apps_hud_near_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 : hud_near_apps                */
143 /****************************************/
144 void stm_hud_near_apps_event_call( void )
145 {
146     stm_hud_near_apps_start_stm();
147     switch( Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] )
148     {
149     case ZHUD_NEAR_APPS_HUD_NEAR_APPSS0:
150         Zhud_near_apps_hud_near_appss0Event();
151         break;
152     case ZHUD_NEAR_APPS_HUD_NEAR_APPSS1:
153         Zhud_near_apps_hud_near_appss1Event();
154         break;
155     default:
156         /*Not accessible to this else (default).*/
157         break;
158     }
159 }
160
161 /****************************************/
162 /* Initial function                     */
163 /*   STM : hud_near_apps                */
164 /****************************************/
165 void stm_hud_near_apps_initialize( void )
166 {
167     Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSS0;
168     stm_hud_near_apps_start_activity_none();
169 }
170
171 /****************************************/
172 /* Terminate function                   */
173 /*   STM : hud_near_apps                */
174 /****************************************/
175 void Zhud_near_apps_hud_near_appsTerminate( void )
176 {
177     Zhud_near_apps_hud_near_appsState[ZHUD_NEAR_APPS_HUD_NEAR_APPS] = ( uint8_t )ZHUD_NEAR_APPS_HUD_NEAR_APPSTERMINATE;
178 }
179