uiacceltk/hitchcock/tsrc/alfperfapp/inc/alfperfapp.hrh
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Command definitions for alfperfapp application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFPERFAPP_HRH
       
    20 #define ALFPERFAPP_HRH
       
    21 
       
    22 // UID of alfperfapp. This must be in synch with MMP file UID.
       
    23 #define KAlfPerfAppUidValue 0x20016B8D
       
    24 #define KAlfPerfAppDaemonUidValue 0x20016BB7
       
    25 
       
    26 enum TAlfPerfAppMenuCommands
       
    27     {
       
    28     EAlfPerfAppCmdRunAll = 0x5000,
       
    29     EAlfPerfAppCmdRunAllContinuously = 0x5001,
       
    30     EAlfPerfAppCmdClearFiles = 0x5002,
       
    31         
       
    32     // This starts range of command ids reserved for
       
    33     // test cases. Range ends to 0xABAFFFF.
       
    34     EAlfPerfAppCmdTestCase = 0xABA0000
       
    35     };
       
    36 
       
    37 enum TAlfPerfAppTestCases
       
    38     {
       
    39     //
       
    40     // Framework testing related commands
       
    41     //
       
    42     ElfPerfAppNoCase = 0x5000,
       
    43     EAlfPerfAppFrameworkMin = 0x5100,
       
    44     EAlfPerfAppFrameworkEmpty,
       
    45     EAlfPerfAppFrameworkCreateFail,
       
    46     EAlfPerfAppFrameworkSetupFailSynch,
       
    47     EAlfPerfAppFrameworkExecuteFailSynch,
       
    48     EAlfPerfAppFrameworkSetupFailAsynch,
       
    49     EAlfPerfAppFrameworkExecuteFailAsynch,
       
    50     EAlfPerfAppFrameworkMax,
       
    51     
       
    52     //
       
    53     // Image related commands
       
    54     //
       
    55     EAlfPerfAppImageMin = 0x5200,
       
    56     EAlfPerfAppImageBasicMoveScale,
       
    57     EAlfPerfAppImageBasicMoveScaleNvgCS,
       
    58     EAlfPerfAppImageBasicMoveScaleNvgTLV,
       
    59     EAlfPerfAppImageManyImages,
       
    60     EAlfPerfAppImageManyGifImages,
       
    61     EAlfPerfAppImageManyPngImages,
       
    62     EAlfPerfAppImageManySvgImages,
       
    63     EAlfPerfAppImageManyNvgCSImages,
       
    64     EAlfPerfAppImageManyNvgTLVImages,
       
    65     EAlfPerfAppImageManyImagesWithPointerEvent,
       
    66     EAlfPerfAppImageManyImagesWithAutoSize,
       
    67     EAlfPerfAppImageAnimateFull,
       
    68     EAlfPerfAppImageAnimate1of2,
       
    69     EAlfPerfAppImageAnimate1of4,
       
    70     EAlfPerfAppImageAnimate1of8,
       
    71     EAlfPerfAppImageMax,
       
    72     
       
    73     //
       
    74     // Layout related commands
       
    75     //
       
    76     EAlfPerfAppLayoutMin = 0x5300,
       
    77     EAlfPerfAppLayoutGrid,
       
    78     EAlfPerfAppLayoutDeck,
       
    79     EAlfPerfAppLayoutAnchor,
       
    80     EAlfPerfAppLayoutCurvePath,
       
    81     EAlfPerfAppLayoutFlow, 
       
    82     EAlfPerfAppLayoutViewport,
       
    83     EAlfPerfAppLayoutMax,
       
    84 
       
    85     //
       
    86     // Text related commands
       
    87     //
       
    88     EAlfPerfAppTextMin = 0x5400,
       
    89     EAlfPerfAppTextBasicMoveScale,
       
    90     EAlfPerfAppTextManyTexts,
       
    91     EAlfPerfAppTextManyTextsWithPointerEvent,
       
    92     EAlfPerfAppTextManyTextsWithAutoSize,
       
    93     EAlfPerfAppTextInactiveVisuals,
       
    94     EAlfPerfAppTextMax,
       
    95 
       
    96     //
       
    97     // Cover test related commands
       
    98     //
       
    99     EAlfPerfAppCoverMin = 0x5500,
       
   100     EAlfPerfAppCover,
       
   101     EAlfPerfAppCoverLandscape,
       
   102     EAlfPerfAppCoverRotate,
       
   103     EAlfPerfAppCoverClipZoomLargeImage,
       
   104     EAlfPerfAppCoverClipZoomBigImage,
       
   105     EAlfPerfAppCoverClipZoomVga,
       
   106     EAlfPerfAppCoverClipZoomAutoSize,
       
   107     EAlfPerfAppCoverMax,
       
   108 
       
   109     //
       
   110     // App Suite test related commands
       
   111     //
       
   112     EAlfPerfAppSuiteMin = 0x5600,
       
   113     EAlfPerfAppSuiteCaseScrollContinuousPortrait,
       
   114     EAlfPerfAppSuiteCaseScrollIncrementalPortrait,
       
   115     EAlfPerfAppSuiteCaseScrollContinuousLandscape,
       
   116     EAlfPerfAppSuiteCaseScrollIncrementalLandscape,
       
   117     EAlfPerfAppSuiteMax,
       
   118     
       
   119     //
       
   120     // Gallery related commands
       
   121     //
       
   122     EAlfPerfAppGalleryMin = 0x5700,
       
   123     EAlfPerfAppGallery,
       
   124     EAlfPerfAppGalleryLandscape,
       
   125     EAlfPerfAppGalleryMax,
       
   126     
       
   127     //
       
   128     // Avkon related commands
       
   129     //
       
   130     EAlfPerfAppAvkonMin = 0x5800,
       
   131     EAlfPerfAppAvkonBasicWinGc,
       
   132     EAlfPerfAppAvkonMax
       
   133    };
       
   134 
       
   135 #define KAlfPerfAppMenuPaneResourceId 0xBAB0000
       
   136 
       
   137 /**
       
   138  * This defines flags that can be used in ALFPERFAPP_TESTSUITE's flags field.
       
   139  */
       
   140 enum TAlfPerfAppTestSuiteFlags
       
   141     {
       
   142     /**
       
   143      * Excludes this suite from being executed when top level run all option 
       
   144      * is selected.
       
   145      */
       
   146     EAlfPerfAppTestSuiteFlagExcludeFromRunAll = 0x1
       
   147     };
       
   148 
       
   149 enum TAlfPerfAppTestCaseFlags
       
   150     {
       
   151     /*
       
   152      * Marks that this case requires InActive-flag from uiaccelerator.
       
   153      * These cases will be omitted if ALFPERFAPP_ENABLE_INACTIVE_FLAG_CASES is not defined.
       
   154      */ 
       
   155     EAlfPerfAppTestCaseFlagRequiresInActiveFlag = 0x1
       
   156     };
       
   157 
       
   158 /**
       
   159  * Ipc commands for daemon.
       
   160  */
       
   161 enum TAlfPerfAppDaemonIpc
       
   162     {
       
   163     EAlfPerfAppIpcGetMeasurements = 0xA0000,
       
   164     EAlfPerfAppIpcEnableActivityPoll
       
   165     };
       
   166 
       
   167 
       
   168 
       
   169 #endif // ALFPERFAPP_HRH