localisation/apparchitecture/tef/tssaac/tssaac_emulator.rss
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Modified default resource file to test apparc functionality
       
    15 // during critical startup
       
    16 // WARNING: Any changes made to this resource file must be
       
    17 // checked against the sysstart apparc test cases listed
       
    18 // T_TestStartApp2L       
       
    19 // T_TestStartApp3L       
       
    20 // T_TestStartApp4L	  
       
    21 // T_TestStartApp5L       
       
    22 // T_TestStartApp6L       
       
    23 // T_TestStartApp7L       
       
    24 // T_TestInsertDataTypeL  
       
    25 // T_TestAppForDataTypeL  
       
    26 // T_TestDeleteDataTypeL  
       
    27 // T_TestServiceDiscovery 
       
    28 // T_TestGetAppInfo       
       
    29 // T_TestGetAllApps       
       
    30 // T_TestCreateDoc 
       
    31 // 
       
    32 //
       
    33 
       
    34 #include "startup.rh"
       
    35 
       
    36 /////////////////////////////////////////////
       
    37 // ENTRY POINT
       
    38 /////////////////////////////////////////////
       
    39 
       
    40 // THIS MUST BE THE FIRST RESOURCE. The system relies on
       
    41 // this having a resource ID of 1
       
    42 
       
    43 RESOURCE STARTUP_ENTRY_POINT r_entry_point
       
    44 	{
       
    45 	entry_point = r_startup_state_critical_static; 
       
    46 	}
       
    47 /////////////////////////////////////////////
       
    48 
       
    49 
       
    50 
       
    51 /////////////////////////////////////////////
       
    52 // CRITICAL-STATIC startup state
       
    53 /////////////////////////////////////////////
       
    54 RESOURCE STATE_INFO r_startup_state_critical_static
       
    55 	{
       
    56 	id = EStartupStateCriticalStatic;
       
    57 	name = "Critical Static";
       
    58 	command_list = r_critical_static_commands;
       
    59 	next = r_startup_state_critical_dynamic;
       
    60 	}
       
    61 
       
    62 RESOURCE COMMAND_ARRAY r_critical_static_commands
       
    63 	{
       
    64 	commands =
       
    65 		{
       
    66 		START_PROCESS_INFO
       
    67 			{
       
    68 			path = "Z:\\sys\\bin\\SysAgt2Svr.exe";
       
    69 			start_method = EWaitForStart;
       
    70 			no_of_retries_on_failure = 2;
       
    71 			},
       
    72 		START_PROCESS_INFO
       
    73 			{
       
    74 			path = "Z:\\sys\\bin\\fbserv.exe";
       
    75 			start_method = EWaitForStart;
       
    76 			no_of_retries_on_failure = 1;
       
    77 			},
       
    78 		START_PROCESS_INFO
       
    79 			{
       
    80 			path = "Z:\\sys\\bin\\wserv.exe";
       
    81 			args = "-NoShell";
       
    82 			start_method = EWaitForStart;
       
    83 			},
       
    84 			 
       
    85 		SPLASH_SCREEN
       
    86 			{
       
    87 			path = "Z:\\sys\\bin\\splash.exe";
       
    88 			},
       
    89 		START_PROCESS_INFO
       
    90 			{
       
    91 			path = "Z:\\sys\\bin\\eiksrvs.exe";
       
    92 			args = "-OnlyStartDependentServers";
       
    93 			start_method = EWaitForStart;
       
    94 			},
       
    95 		START_PROCESS_INFO
       
    96 			{
       
    97 			path = "Z:\\sys\\bin\\sisregistryserver.exe";
       
    98 			start_method = EWaitForStart;
       
    99 			},
       
   100 		START_PROCESS_INFO
       
   101 			{
       
   102 			path = "Z:\\sys\\bin\\tzserver.exe";
       
   103 			start_method = EWaitForStart;
       
   104 			},
       
   105 		START_PROCESS_INFO
       
   106 			{
       
   107 			path = "Z:\\sys\\bin\\tssaac.exe";
       
   108 			}
       
   109 		};
       
   110 	}
       
   111 
       
   112 /////////////////////////////////////////////
       
   113 // CRITICAL-DYNAMIC startup state
       
   114 /////////////////////////////////////////////
       
   115 RESOURCE STATE_INFO r_startup_state_critical_dynamic
       
   116 	{
       
   117 	id = EStartupStateCriticalDynamic;
       
   118 	name = "Critical Dynamic";
       
   119 	command_list = r_critical_dynamic_commands;
       
   120 	next = r_startup_state_networking_critical;
       
   121 	}
       
   122 
       
   123 RESOURCE COMMAND_ARRAY r_critical_dynamic_commands
       
   124 	{
       
   125 	commands =
       
   126 		{
       
   127 		START_PROCESS_INFO
       
   128 			{
       
   129 			path = "Z:\\sys\\bin\\apsexe.exe";
       
   130 			start_method = EWaitForStart;  // this is the only method allowable for apsexe.exe
       
   131 			},
       
   132 		START_APP_INFO
       
   133 			{
       
   134 			path = "Z:\\sys\\bin\\shell.exe";	// Requires apparc to be properly started
       
   135 			viewless = 1;	 
       
   136 			start_method = EDeferredWaitForStart; 
       
   137 			},
       
   138 		MULTIPLE_WAIT  
       
   139 			{
       
   140 			timeout = 10000;
       
   141 			fail_on_error = EPanicOnCommandFailure;
       
   142 			},
       
   143 		SPLASH_SCREEN
       
   144 			{
       
   145 			kill = 1;
       
   146 			} 		
       
   147 		};
       
   148 	}
       
   149 
       
   150 /////////////////////////////////////////////
       
   151 // Networking-CRITICAL startup state
       
   152 /////////////////////////////////////////////
       
   153 RESOURCE STATE_INFO  r_startup_state_networking_critical
       
   154 	{
       
   155 	id = EStartupStateNetworkingCritical;   
       
   156 	name = "Networking-Critical";
       
   157 	command_list =  r_networking_critical_commands;
       
   158 	next = r_startup_state_non_critical;
       
   159 	}
       
   160 
       
   161 RESOURCE COMMAND_ARRAY r_networking_critical_commands
       
   162 	{
       
   163 	commands =
       
   164 		{
       
   165 		START_PROCESS_INFO
       
   166 			{
       
   167 			path = "Z:\\sys\\bin\\c32start.exe";
       
   168   			start_method = EWaitForStart;
       
   169   			},
       
   170 		START_PROCESS_INFO
       
   171 			{
       
   172 			path = "Z:\\sys\\bin\\msexe.exe";
       
   173 			start_method = EWaitForStart;
       
   174 			},
       
   175 		START_PROCESS_INFO
       
   176 			{
       
   177 			path = "Z:\\sys\\bin\\watcher.exe";
       
   178 			start_method = EWaitForStart;
       
   179 			}
       
   180 		};
       
   181 	}
       
   182 
       
   183 /////////////////////////////////////////////
       
   184 // NON-CRITICAL startup state
       
   185 /////////////////////////////////////////////
       
   186 RESOURCE STATE_INFO r_startup_state_non_critical
       
   187 	{
       
   188 	id = EStartupStateNonCritical;
       
   189 	name = "Non-critical";
       
   190 	command_list = r_non_critical_commands;
       
   191 	next = 0;	// No more state transitions
       
   192 	}
       
   193 
       
   194 RESOURCE COMMAND_ARRAY r_non_critical_commands
       
   195 	{
       
   196 	commands =
       
   197 		{
       
   198 		START_PROCESS_INFO
       
   199 			{
       
   200 			path = "Z:\\sys\\bin\\SystemAMS.exe";
       
   201 			args = "-boot";
       
   202 			fail_on_error = EIgnoreCommandFailure;
       
   203 			},
       
   204 		START_PROCESS_INFO
       
   205 			{
       
   206 			path = "Z:\\sys\\bin\\swidaemon.exe";
       
   207 			start_method = EWaitForStart;
       
   208 			},
       
   209 		START_PROCESS_INFO
       
   210 			{
       
   211 			path = "Z:\\sys\\bin\\cntsrv.exe";
       
   212 			args = "-nontransient";
       
   213 			fail_on_error = 0;
       
   214 			},
       
   215 		START_PROCESS_INFO
       
   216 			{
       
   217 			path = "Z:\\sys\\bin\\agsvexe.exe";
       
   218 			args = "-nontransient";
       
   219 			fail_on_error = 0;
       
   220 			},
       
   221 		START_PROCESS_INFO
       
   222 			{
       
   223 			path = "Z:\\sys\\bin\\fotaagent.exe";
       
   224 			fail_on_error = EIgnoreCommandFailure;
       
   225 			}
       
   226 		};
       
   227 	}