author | Jyri Kokkonen <jyri.kokkonen@nokia.com> |
Wed, 08 Sep 2010 14:23:06 +0100 | |
changeset 44 | 3667bae5fb65 |
child 46 | 292fa3105576 |
permissions | -rw-r--r-- |
44
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
1 |
/* |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
8 |
* |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
11 |
* |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
13 |
* |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
14 |
* Description: Implementation class of Thumbnail Manager. |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
15 |
* |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
17 |
// Created by TraceCompiler 2.3.0 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
18 |
// DO NOT EDIT, CHANGES WILL BE LOST |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
19 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
20 |
#ifndef __THUMBNAILMANAGERIMPLTRACES_H__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
21 |
#define __THUMBNAILMANAGERIMPLTRACES_H__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
22 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
23 |
#define KOstTraceComponentID 0x102830aa |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
24 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
25 |
#define CTHUMBNAILMANAGERIMPL_CTHUMBNAILMANAGERIMPL 0x860007 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
26 |
#define DUP1_CTHUMBNAILMANAGERIMPL_CTHUMBNAILMANAGERIMPL 0x860008 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
27 |
#define DUP2_CTHUMBNAILMANAGERIMPL_CTHUMBNAILMANAGERIMPL 0x860009 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
28 |
#define DUP3_CTHUMBNAILMANAGERIMPL_CTHUMBNAILMANAGERIMPL 0x86000a |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
29 |
#define DUP4_CTHUMBNAILMANAGERIMPL_CTHUMBNAILMANAGERIMPL 0x86000b |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
30 |
#define CTHUMBNAILMANAGERIMPL_CONSTRUCTL 0x86000c |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
31 |
#define DUP1_CTHUMBNAILMANAGERIMPL_CONSTRUCTL 0x86000d |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
32 |
#define DUP2_CTHUMBNAILMANAGERIMPL_CONSTRUCTL 0x86000e |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
33 |
#define DUP3_CTHUMBNAILMANAGERIMPL_CONSTRUCTL 0x86000f |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
34 |
#define DUP4_CTHUMBNAILMANAGERIMPL_CONSTRUCTL 0x860010 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
35 |
#define CTHUMBNAILMANAGERIMPL_GETTHUMBNAILL 0x860011 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
36 |
#define DUP1_CTHUMBNAILMANAGERIMPL_GETTHUMBNAILL 0x860012 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
37 |
#define DUP2_CTHUMBNAILMANAGERIMPL_GETTHUMBNAILL 0x860013 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
38 |
#define DUP3_CTHUMBNAILMANAGERIMPL_GETTHUMBNAILL 0x860014 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
39 |
#define CTHUMBNAILMANAGERIMPL_IMPORTTHUMBNAILL 0x860015 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
40 |
#define CTHUMBNAILMANAGERIMPL_SETTHUMBNAILL 0x860016 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
41 |
#define CTHUMBNAILMANAGERIMPL_CREATETHUMBNAILS 0x860017 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
42 |
#define DUP1_CTHUMBNAILMANAGERIMPL_CREATETHUMBNAILS 0x860018 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
43 |
#define CTHUMBNAILMANAGERIMPL_DELETETHUMBNAILS 0x860019 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
44 |
#define DUP1_CTHUMBNAILMANAGERIMPL_DELETETHUMBNAILS 0x86001a |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
45 |
#define CTHUMBNAILMANAGERIMPL_CANCELREQUEST 0x86001b |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
46 |
#define CTHUMBNAILMANAGERIMPL_CHANGEPRIORITY 0x86001c |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
47 |
#define CTHUMBNAILMANAGERIMPL_UPDATETHUMBNAILSL 0x86001d |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
48 |
#define CTHUMBNAILMANAGERIMPL_RENAMETHUMBNAILSL 0x86001e |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
49 |
#define CTHUMBNAILMANAGERIMPL_VALIDATEPRIORITY 0x86001f |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
50 |
#define DUP1_CTHUMBNAILMANAGERIMPL_VALIDATEPRIORITY 0x860020 |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
51 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
52 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
53 |
#ifndef __KERNEL_MODE__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
54 |
#ifndef __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT_TINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
55 |
#define __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT_TINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
56 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
57 |
inline TBool OstTraceGen3( TUint32 aTraceID, const TDesC16& aParam1, TInt aParam2, TInt aParam3 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
58 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
59 |
TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
60 |
if ( retval ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
61 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
62 |
TInt length = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
63 |
// Check that parameter lenght is not too long |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
64 |
TInt length1 = aParam1.Size(); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
65 |
if ((length + length1 + sizeof ( TUint32 )) > KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
66 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
67 |
length1 = KOstMaxDataLength - (length + sizeof ( TUint32 )); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
68 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
69 |
TInt lengthAligned1 = ( length1 + 3 ) & ~3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
70 |
if (lengthAligned1 > 0) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
71 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
72 |
length = length + sizeof ( TUint32 ) + lengthAligned1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
73 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
74 |
TUint8 data[ KOstMaxDataLength ]; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
75 |
TUint8* ptr = data; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
76 |
// Set length to zero and calculate it againg |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
77 |
// when adding parameters |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
78 |
length = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
79 |
if (length1 > 0) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
80 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
81 |
// Number of elements is written before data |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
82 |
// In case of Unicode string, number of elements is half of length |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
83 |
*( ( TUint32* )ptr ) = length1 / (aParam1.Size() / aParam1.Length()); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
84 |
ptr += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
85 |
memcpy( ptr, aParam1.Ptr(), length1 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
86 |
ptr += length1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
87 |
// Fillers are written to get 32-bit alignment |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
88 |
while ( length1++ < lengthAligned1 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
89 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
90 |
*ptr++ = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
91 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
92 |
length += sizeof ( TUint32 ) + lengthAligned1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
93 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
94 |
else if (length + sizeof ( TUint32 ) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
95 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
96 |
*( ( TUint32* )ptr ) = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
97 |
ptr += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
98 |
length += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
99 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
100 |
// Check that there are enough space to next parameter |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
101 |
if ((length + sizeof ( TInt )) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
102 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
103 |
*( ( TInt* )ptr ) = aParam2; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
104 |
ptr += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
105 |
length += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
106 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
107 |
// Check that there are enough space to next parameter |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
108 |
if ((length + sizeof ( TInt )) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
109 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
110 |
*( ( TInt* )ptr ) = aParam3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
111 |
ptr += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
112 |
length += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
113 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
114 |
ptr -= length; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
115 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, length ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
116 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
117 |
return retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
118 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
119 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
120 |
#endif // __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT_TINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
121 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
122 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
123 |
#ifndef __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT32_TINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
124 |
#define __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT32_TINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
125 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
126 |
inline TBool OstTraceGen3( TUint32 aTraceID, const TDesC16& aParam1, TInt32 aParam2, TInt32 aParam3 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
127 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
128 |
TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
129 |
if ( retval ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
130 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
131 |
TInt length = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
132 |
// Check that parameter lenght is not too long |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
133 |
TInt length1 = aParam1.Size(); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
134 |
if ((length + length1 + sizeof ( TUint32 )) > KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
135 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
136 |
length1 = KOstMaxDataLength - (length + sizeof ( TUint32 )); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
137 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
138 |
TInt lengthAligned1 = ( length1 + 3 ) & ~3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
139 |
if (lengthAligned1 > 0) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
140 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
141 |
length = length + sizeof ( TUint32 ) + lengthAligned1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
142 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
143 |
TUint8 data[ KOstMaxDataLength ]; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
144 |
TUint8* ptr = data; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
145 |
// Set length to zero and calculate it againg |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
146 |
// when adding parameters |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
147 |
length = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
148 |
if (length1 > 0) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
149 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
150 |
// Number of elements is written before data |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
151 |
// In case of Unicode string, number of elements is half of length |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
152 |
*( ( TUint32* )ptr ) = length1 / (aParam1.Size() / aParam1.Length()); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
153 |
ptr += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
154 |
memcpy( ptr, aParam1.Ptr(), length1 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
155 |
ptr += length1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
156 |
// Fillers are written to get 32-bit alignment |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
157 |
while ( length1++ < lengthAligned1 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
158 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
159 |
*ptr++ = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
160 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
161 |
length += sizeof ( TUint32 ) + lengthAligned1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
162 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
163 |
else if (length + sizeof ( TUint32 ) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
164 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
165 |
*( ( TUint32* )ptr ) = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
166 |
ptr += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
167 |
length += sizeof ( TUint32 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
168 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
169 |
// Check that there are enough space to next parameter |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
170 |
if ((length + sizeof ( TInt )) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
171 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
172 |
*( ( TInt* )ptr ) = aParam2; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
173 |
ptr += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
174 |
length += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
175 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
176 |
// Check that there are enough space to next parameter |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
177 |
if ((length + sizeof ( TInt )) <= KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
178 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
179 |
*( ( TInt* )ptr ) = aParam3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
180 |
ptr += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
181 |
length += sizeof ( TInt ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
182 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
183 |
ptr -= length; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
184 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, length ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
185 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
186 |
return retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
187 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
188 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
189 |
#endif // __OSTTRACEGEN3_TUINT32_CONST_TDESC16REF_TINT32_TINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
190 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
191 |
#endif |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
192 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
193 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
194 |
#ifndef __OSTTRACEGEN3_TUINT32_TUINT_TUINT_TUINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
195 |
#define __OSTTRACEGEN3_TUINT32_TUINT_TUINT_TUINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
196 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
197 |
inline TBool OstTraceGen3( TUint32 aTraceID, TUint aParam1, TUint aParam2, TUint aParam3 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
198 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
199 |
TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
200 |
if ( retval ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
201 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
202 |
TUint8 data[ 12 ]; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
203 |
TUint8* ptr = data; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
204 |
*( ( TUint* )ptr ) = aParam1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
205 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
206 |
*( ( TUint* )ptr ) = aParam2; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
207 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
208 |
*( ( TUint* )ptr ) = aParam3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
209 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
210 |
ptr -= 12; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
211 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 12 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
212 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
213 |
return retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
214 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
215 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
216 |
#endif // __OSTTRACEGEN3_TUINT32_TUINT_TUINT_TUINT__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
217 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
218 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
219 |
#ifndef __OSTTRACEGEN3_TUINT32_TUINT32_TUINT32_TUINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
220 |
#define __OSTTRACEGEN3_TUINT32_TUINT32_TUINT32_TUINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
221 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
222 |
inline TBool OstTraceGen3( TUint32 aTraceID, TUint32 aParam1, TUint32 aParam2, TUint32 aParam3 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
223 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
224 |
TBool retval = BTraceFiltered8( EXTRACT_GROUP_ID(aTraceID), EOstTraceActivationQuery, KOstTraceComponentID, aTraceID ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
225 |
if ( retval ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
226 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
227 |
TUint8 data[ 12 ]; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
228 |
TUint8* ptr = data; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
229 |
*( ( TUint* )ptr ) = aParam1; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
230 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
231 |
*( ( TUint* )ptr ) = aParam2; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
232 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
233 |
*( ( TUint* )ptr ) = aParam3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
234 |
ptr += sizeof ( TUint ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
235 |
ptr -= 12; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
236 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, 12 ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
237 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
238 |
return retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
239 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
240 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
241 |
#endif // __OSTTRACEGEN3_TUINT32_TUINT32_TUINT32_TUINT32__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
242 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
243 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
244 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
245 |
#ifndef __KERNEL_MODE__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
246 |
#ifndef __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
247 |
#define __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
248 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
249 |
inline TBool OstTraceGen1( TUint32 aTraceID, const TDesC16& aParam1 ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
250 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
251 |
TBool retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
252 |
TInt size = aParam1.Size(); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
253 |
// BTrace assumes that parameter size is atleast 4 bytes |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
254 |
if (size % 4 == 0) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
255 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
256 |
TUint8* ptr = ( TUint8* )aParam1.Ptr(); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
257 |
// Data is written directly and length is determined from trace message length |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
258 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
259 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
260 |
else |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
261 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
262 |
TUint8 data[ KOstMaxDataLength ]; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
263 |
TUint8* ptr = data; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
264 |
if (size > KOstMaxDataLength) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
265 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
266 |
size = KOstMaxDataLength; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
267 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
268 |
TInt sizeAligned = ( size + 3 ) & ~3; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
269 |
memcpy( ptr, aParam1.Ptr(), size ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
270 |
ptr += size; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
271 |
// Fillers are written to get 32-bit alignment |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
272 |
while ( size++ < sizeAligned ) |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
273 |
{ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
274 |
*ptr++ = 0; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
275 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
276 |
ptr -= sizeAligned; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
277 |
size = sizeAligned; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
278 |
// Data is written directly and length is determined from trace message length |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
279 |
retval = OstSendNBytes( EXTRACT_GROUP_ID(aTraceID), EOstTrace, KOstTraceComponentID, aTraceID, ptr, size ); |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
280 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
281 |
return retval; |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
282 |
} |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
283 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
284 |
#endif // __OSTTRACEGEN1_TUINT32_CONST_TDESC16REF__ |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
285 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
286 |
#endif |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
287 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
288 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
289 |
#endif |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
290 |
|
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
291 |
// End of file |
3667bae5fb65
Add missing "traces" directories to thumbnailmanager, to fix Bug 3676
Jyri Kokkonen <jyri.kokkonen@nokia.com>
parents:
diff
changeset
|
292 |