0
|
1 |
// Copyright (c) 2006-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 |
// e32test\power\d_lddpowerseqtest.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#if !defined(__DLDDPOWERSEQTEST_H__)
|
|
19 |
#define __DLDDPOWERSEQTEST_H__
|
|
20 |
|
|
21 |
#include <e32cmn.h>
|
|
22 |
#ifndef __KERNEL_MODE__
|
|
23 |
#include <e32std.h>
|
|
24 |
#endif
|
|
25 |
|
|
26 |
_LIT(KLddName,"D_LDDPOWERSEQTEST.LDD");
|
|
27 |
|
|
28 |
class RLddTest1 : public RBusLogicalChannel
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
enum TControl
|
|
32 |
{
|
|
33 |
ESET_SLEEPTIME = 0
|
|
34 |
};
|
|
35 |
enum TRequest
|
|
36 |
{
|
|
37 |
EPOWERDOWN_POWER1 = 1,
|
|
38 |
EPOWERDOWN_POWER2 = 2,
|
|
39 |
EPOWERUP_POWER1 = 3,
|
280
|
40 |
EPOWERUP_POWER2 = 4,
|
|
41 |
EPOWER_ACTDEAD_POWER2 = 5,
|
|
42 |
EPOWER_ESETPOWERDOWNTIMEOUT = 6
|
0
|
43 |
};
|
|
44 |
|
|
45 |
public:
|
|
46 |
inline TInt Open();
|
|
47 |
inline void Test_power1down(TRequestStatus &aStatus, TUint &time);
|
|
48 |
inline void Test_power2down(TRequestStatus &aStatus, TUint &time);
|
|
49 |
inline void Test_power1up(TRequestStatus &aStatus, TUint &time);
|
|
50 |
inline void Test_power2up(TRequestStatus &aStatus, TUint &time);
|
|
51 |
inline TInt Test_setSleepTime(TUint sleepTime);
|
280
|
52 |
inline void Test_power2ActDead();
|
|
53 |
inline void Test_setPowerDownTimeout(TUint aTimeout);
|
0
|
54 |
static inline TInt Unload();
|
|
55 |
};
|
|
56 |
|
280
|
57 |
#ifdef __KERNEL_MODE__
|
|
58 |
class DTestPowerManager : public DPowerModel
|
|
59 |
{
|
|
60 |
public:
|
|
61 |
TAny* iDummy;
|
|
62 |
TAny* iDummy2;
|
|
63 |
TAny* iDummy3;
|
|
64 |
|
|
65 |
// the offset of iPslShutdownTimeoutMs should be exactly same as
|
|
66 |
// of offset in DPowerManager
|
|
67 |
TUint iPslShutdownTimeoutMs; // default = 0
|
|
68 |
|
|
69 |
};
|
|
70 |
#endif // __KERNEL_MODE__
|
|
71 |
|
0
|
72 |
#include "d_lddpowerseqtest.inl"
|
|
73 |
|
|
74 |
#endif //__DLDDPOWERSEQTEST_H__
|