kerneltest/e32test/power/domainpolicytest.h
changeset 245 647ab20fee2e
parent 244 a77889bee936
child 252 0a40b8675b23
equal deleted inserted replaced
244:a77889bee936 245:647ab20fee2e
     1 // Copyright (c) 2004-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DOMAIN_POLICY_TEST_H__
       
    17 #define __DOMAIN_POLICY_TEST_H__
       
    18 
       
    19 // The test domain hierarchy id 
       
    20 
       
    21 static const TDmHierarchyId	KDmHierarchyIdTest = 99;
       
    22 
       
    23 /*
       
    24 Domains defined in this hiearchy
       
    25 The hierarchy desribed here looks like this:
       
    26 		Root
       
    27 		A				B				C
       
    28 		AA	AB			BA				CA
       
    29 			ABA	ABB						CAA
       
    30 
       
    31 */
       
    32 static const TDmDomainId	KDmIdTestA		= 0x02;
       
    33 static const TDmDomainId	KDmIdTestB		= 0x03;
       
    34 static const TDmDomainId	KDmIdTestC		= 0x04;
       
    35 
       
    36 static const TDmDomainId	KDmIdTestAA		= 0x05;
       
    37 static const TDmDomainId	KDmIdTestAB		= 0x06;
       
    38 static const TDmDomainId	KDmIdTestBA		= 0x07;
       
    39 static const TDmDomainId	KDmIdTestCA		= 0x08;
       
    40 
       
    41 static const TDmDomainId	KDmIdTestABA	= 0x09;
       
    42 static const TDmDomainId	KDmIdTestABB	= 0x0A;
       
    43 static const TDmDomainId	KDmIdTestCAA	= 0x0B;
       
    44 static const TInt KTestDomains = 0x0B;	// number of domains including root
       
    45 
       
    46 
       
    47 /*
       
    48 System-wide start-up states
       
    49 
       
    50 Some of these states may be ommitted depending on the start-up mode.
       
    51 E.g. The system-starter might choose to omit EStartupNonCritical in "safe" mode
       
    52 */
       
    53 enum TStartupState
       
    54 	{
       
    55 	/** In this state, all ROM based (static) components or resources that 
       
    56 	are critical to the operation of the phone are started */
       
    57 	EStartupCriticalStatic,
       
    58 
       
    59 	/** In this state, all non-ROM based (dynamic) components or resources that 
       
    60 	are critical to the operation of the phone are started */
       
    61 	EStartupCriticalDynamic,
       
    62 
       
    63 	/** In this state, all ROM based (static) or non-ROM based (dynamic) 
       
    64 	components or resources that are not critical to the operation of the phone 
       
    65 	are started */
       
    66 	EStartupNonCritical,
       
    67 
       
    68 	/** An integer that is strictly greater thean any legal start-up state value */
       
    69 	EStartupLimit
       
    70 	};
       
    71 
       
    72 #endif
       
    73