First public contribution.
1 // Copyright (c) 1996-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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
27 #include "../tlib/testbase.h"
30 #include "TGraphicsHarness.h"
32 _LIT(KSemaphoreName,"KeyProcSem");
35 class CVisibleGroup: public CBase
38 CVisibleGroup(TInt aScreenNo);
41 void SetMode(TInt aMode);
45 CWsScreenDevice* iScr;
51 class ClientToKill : public CTClient
63 class CTKey : public CTWsGraphicsBase
66 enum {EFuncCtrlShift=EModifierFunc|EModifierCtrl|EModifierShift};
68 CTKey(CTestStep* aStep);
73 void KeyOfOrientation();
74 void CycleDisplaySize();
76 void BackLightKeysL();
77 void BrightnessKeysL();
78 void ScreenSizeModeKeysL();
80 virtual void RunTestCaseL(TInt aCurTestCase);
82 void SendKey(TInt aScanCode);
83 void SendUpDown(TInt aScanCode);
84 void SendCtrlAltShift(TInt aScanCode);
85 void SendCtrlAltShift(TRawEvent::TType aType);
86 void SetHotKey(THotKey aType, TUint aKeyCode);
87 void LogWindowGroupIds();
88 void TestContrastL(TBool aChange);
89 void TestDefaultContrastL(TBool aChange);
90 void TestBackLightL(TBool aChange);
91 void TestDefaultBackLightL(TBool aChange);
92 void TestBrightnessL(TBool aChange);
93 void TestDefaultBrightnessL(TBool aChange);
94 void TestScreenSizeModeL(TInt aKeys,TBool aChange);
95 void TestDefaultScreenSizeModeL(TInt aKeys,TBool aChange);
100 CVisibleGroup* iVisibleGroup;
103 class CTKeyStep : public CTGraphicsStep
108 //from CTGraphicsStep
109 virtual CTGraphicsBase* CreateTestL();
112 _LIT(KTKeyStep,"TKey");