--- a/imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserver.cpp Tue Aug 31 15:30:59 2010 +0300
+++ b/imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserver.cpp Wed Sep 01 12:20:35 2010 +0100
@@ -37,11 +37,6 @@
#include "thumbnailmemorycardobserver.h"
#include "tmgetimei.h"
#include "thumbnailfetchedchecker.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "thumbnailserverTraces.h"
-#endif
-
_LIT8( KThumbnailMimeWildCard, "*" );
@@ -216,7 +211,6 @@
void CThumbnailServer::ConstructL()
{
TN_DEBUG1( "CThumbnailServer::ConstructL()" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_CONSTRUCTL, "CThumbnailServer::ConstructL" );
#ifdef _DEBUG
iPlaceholderCounter = 0;
@@ -279,7 +273,6 @@
CThumbnailServer::~CThumbnailServer()
{
TN_DEBUG1( "CThumbnailServer::~CThumbnailServer()" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_CTHUMBNAILSERVER, "CThumbnailServer::~CThumbnailServer" );
iShutdown = ETrue;
@@ -354,10 +347,7 @@
void CThumbnailServer::HandleSessionOpened( CMdESession& /* aSession */, TInt /*aError*/ )
#endif
{
-#ifdef _DEBUG
TN_DEBUG2( "CThumbnailServer::HandleSessionOpened error == %d", aError );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_HANDLESESSIONOPENED, "CThumbnailServer::HandleSessionOpened;aError=%d", aError );
-#endif
}
// -----------------------------------------------------------------------------
@@ -367,7 +357,6 @@
void CThumbnailServer::HandleSessionError( CMdESession& /*aSession*/, TInt aError )
{
TN_DEBUG2( "CThumbnailServer::HandleSessionError == %d", aError );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_HANDLESESSIONERROR, "CThumbnailServer::HandleSessionError;aError=%d", aError );
if (aError != KErrNone && !iShutdown && !iSessionError)
{
iSessionError = ETrue;
@@ -378,7 +367,6 @@
TCallBack(ReconnectCallBack, this));
TN_DEBUG1( "CThumbnailServer::HandleSessionError() - reconnect timer started" );
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_HANDLESESSIONERROR, "CThumbnailServer::HandleSessionError - reconnect timer started" );
}
}
}
@@ -423,11 +411,9 @@
RProcess::Rendezvous( KErrNone );
TN_DEBUG1(
"CThumbnailServer::ThreadFunctionL() -- CActiveScheduler::Start() in" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_THREADFUNCTIONL, "CThumbnailServer::ThreadFunctionL -- CActiveScheduler::Start() in" );
CActiveScheduler::Start();
TN_DEBUG1(
"CThumbnailServer::ThreadFunctionL() -- CActiveScheduler::Start() out" );
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_THREADFUNCTIONL, "CThumbnailServer::ThreadFunctionL - out" );
// Comes here if server gets shut down
delete server;
server = NULL;
@@ -444,7 +430,6 @@
{
TN_DEBUG2( "CThumbnailServer::AddSession() iSessionCount was %d",
iSessionCount );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_ADDSESSION, "CThumbnailServer::AddSession;iSessionCount=%d", iSessionCount );
iSessionCount++;
}
@@ -457,7 +442,6 @@
{
TN_DEBUG2( "CThumbnailServer::DropSession() iSessionCount was %d",
iSessionCount );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_DROPSESSION, "CThumbnailServer::DropSession;iSessionCount=%d", iSessionCount );
iSessionCount--;
if(iProcessor)
@@ -466,7 +450,6 @@
}
TN_DEBUG2( "CThumbnailServer::DropSession() aSession = 0x%08x", aSession );
- OstTrace1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_DROPSESSION, "CThumbnailServer::DropSession;aSession=%o", aSession );
// clean-up bitmap pool
THashMapIter < TInt, TThumbnailBitmapRef > bpiter( iBitmapPool );
@@ -479,13 +462,11 @@
if ( ref->iSession == aSession )
{
TN_DEBUG2( "CThumbnailServer::DropSession() - ref->iSession = 0x%08x", ref->iSession );
- OstTrace1( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_DROPSESSION, "CThumbnailServer::DropSession;ref->iSession=%o", ref->iSession );
delete ref->iBitmap;
bpiter.RemoveCurrent();
TN_DEBUG2( "CThumbnailServer::DropSession() - deleted bitmap, left=%d", iBitmapPool.Count());
- OstTrace1( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_DROPSESSION, "CThumbnailServer::DropSession;iBitmapPool.Count()=%d", iBitmapPool.Count() );
}
ref = bpiter.NextValue();
@@ -512,11 +493,9 @@
void CThumbnailServer::ShutdownNotification()
{
TN_DEBUG1( "CThumbnailServer::ShutdownNotification()");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_SHUTDOWNNOTIFICATION, "CThumbnailServer::ShutdownNotification" );
if (!iShutdown)
{
TN_DEBUG1( "CThumbnailServer::ShutdownNotification() shutdown");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_SHUTDOWNNOTIFICATION, "CThumbnailServer::ShutdownNotification - shutdown" );
CActiveScheduler::Stop();
iShutdown = ETrue;
}
@@ -534,7 +513,6 @@
if( !aBitmap )
{
TN_DEBUG1( "CThumbnailServer::AddBitmapToPoolL() - KErrArgument");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_ADDBITMAPTOPOOLL, "CThumbnailServer::AddBitmapToPoolL - KErrArgument" );
User::Leave( KErrArgument );
}
TN_DEBUG4(
@@ -543,7 +521,6 @@
TThumbnailBitmapRef* ptr = iBitmapPool.Find( aBitmap->Handle());
TN_DEBUG2( "CThumbnailServer::AddBitmapToPoolL() - req id = %d", aRequestId.iRequestId );
- OstTrace1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_ADDBITMAPTOPOOLL, "CThumbnailServer::AddBitmapToPoolL;aRequestId.iRequestId=%u", aRequestId.iRequestId );
if ( ptr )
{
@@ -562,7 +539,6 @@
#ifdef _DEBUG
TN_DEBUG2( "CThumbnailServer::BITMAP-POOL-COUNTER----------, Bitmaps = %d", iBitmapPool.Count() );
- OstTrace1( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_ADDBITMAPTOPOOLL, "CThumbnailServer::AddBitmapToPoolL;iBitmapPool.Count()=%d", iBitmapPool.Count() );
#endif
}
@@ -577,13 +553,8 @@
{
TN_DEBUG6(
"CThumbnailServer::StoreBitmapL(aPath=%S, aBitmap=0x%08x, aOriginalSize=%dx%d, aCropped=%d)", &aPath, aBitmap, aOriginalSize.iWidth, aOriginalSize.iHeight, aCropped );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_STORETHUMBNAILL, "CThumbnailServer::StoreThumbnailL;aBitmap=%o", aBitmap );
- OstTraceExt1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_STORETHUMBNAILL, "CThumbnailServer::StoreThumbnailL;aPath=%S", aPath );
- OstTraceExt3( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_STORETHUMBNAILL, "CThumbnailServer::StoreThumbnailL;aOriginalSize.iWidth=%d;aOriginalSize.iHeight=%d;aCropped=%u", aOriginalSize.iWidth, aOriginalSize.iHeight, aCropped );
-
#ifdef _DEBUG
TN_DEBUG2( "CThumbnailServer::StoreThumbnailL() - iScaledBitmap displaymode is %d", aBitmap->DisplayMode());
- OstTrace1( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_STORETHUMBNAILL, "CThumbnailServer::StoreThumbnailL;aBitmap->DisplayMode()=%u", aBitmap->DisplayMode() );
#endif
if (!aCheckExist)
@@ -599,7 +570,6 @@
else
{
TN_DEBUG1( "CThumbnailServer::StoreThumbnailL() - file doesn't exists anymore, skip store!");
- OstTrace0( TRACE_NORMAL, DUP4_CTHUMBNAILSERVER_STORETHUMBNAILL, "CThumbnailServer::StoreThumbnailL - file doesn't exists anymore, skip store!" );
}
if( iFetchedChecker )
@@ -617,7 +587,6 @@
aThumbnail, TDesC8* & aData, const TThumbnailSize aThumbnailSize, TSize &aOriginalSize )
{
TN_DEBUG3( "CThumbnailServer::FetchThumbnailL(aPath=%S aThumbnailSize=%d)", &aPath, aThumbnailSize );
- OstTraceExt2( TRACE_NORMAL, CTHUMBNAILSERVER_FETCHTHUMBNAILL, "CThumbnailServer::FetchThumbnailL;aPath=%S;aThumbnailSize=%hu", aPath, aThumbnailSize );
if( iFetchedChecker )
{
TInt err( iFetchedChecker->LastFetchResult( aPath, aThumbnailSize ) );
@@ -659,7 +628,6 @@
void CThumbnailServer::DeleteBitmapFromPool( TInt aHandle )
{
TN_DEBUG2( "CThumbnailServer::DeleteBitmapFromPool(%d)", aHandle );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_DELETEBITMAPFROMPOOL, "CThumbnailServer::DeleteBitmapFromPool;aHandle=%d", aHandle );
TThumbnailBitmapRef* ptr = iBitmapPool.Find( aHandle );
if ( ptr )
@@ -669,19 +637,16 @@
{
TN_DEBUG3(
"CThumbnailServer::DeleteBitmapFromPool(%d) -- deleting 0x%08x)", aHandle, ptr );
- OstTrace1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_DELETEBITMAPFROMPOOL, "CThumbnailServer::DeleteBitmapFromPool -- deleting;ptr=%o", ptr );
delete ptr->iBitmap;
ptr->iBitmap = NULL;
iBitmapPool.Remove( aHandle );
TN_DEBUG2( "CThumbnailServer::DeleteBitmapFromPool -- items left %d", iBitmapPool.Count() );
- OstTrace1( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_DELETEBITMAPFROMPOOL, "CThumbnailServer::DeleteBitmapFromPool -- items left;iBitmapPool.Count()=%d", iBitmapPool.Count() );
}
else
{
TN_DEBUG3(
"CThumbnailServer::DeleteBitmapFromPool(%d) -- refcount now %d",
aHandle, ptr->iRefCount );
- OstTraceExt2( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_DELETEBITMAPFROMPOOL, "CThumbnailServer::DeleteBitmapFromPool) -- refcount now;aHandle=%d;ptr->iRefCount=%d", aHandle, ptr->iRefCount );
}
}
else
@@ -689,7 +654,6 @@
//__ASSERT_DEBUG(( EFalse ), ThumbnailPanic( EThumbnailBitmapNotReleased ));
TN_DEBUG2( "CThumbnailServer::DeleteBitmapFromPool(%d) -- not found!",
aHandle );
- OstTrace1( TRACE_NORMAL, DUP4_CTHUMBNAILSERVER_DELETEBITMAPFROMPOOL, "CThumbnailServer::DeleteBitmapFromPool -- not found!;aHandle=%d", aHandle );
}
}
@@ -701,7 +665,6 @@
void CThumbnailServer::DeleteThumbnailsL( const TDesC& aPath )
{
TN_DEBUG2( "CThumbnailServer::DeleteThumbnailsL(%S)", &aPath);
- OstTraceExt1( TRACE_NORMAL, CTHUMBNAILSERVER_DELETETHUMBNAILSL, "CThumbnailServer::DeleteThumbnailsL;aPath=%S", aPath );
StoreForPathL( aPath )->DeleteThumbnailsL( aPath );
@@ -737,7 +700,6 @@
{
// cannot handle other than Oma DRM 1.x files
TN_DEBUG1( "CThumbnailStore::ResolveMimeTypeL()- only OMA DRM 1.0 supported");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_RESOLVEMIMETYPEL, "CThumbnailServer::ResolveMimeTypeL - only OMA DRM 1.0 supported" );
User::Leave(KErrNotSupported);
}
@@ -772,7 +734,6 @@
TBuf < KMaxDataTypeLength > buf; // 16-bit descriptor for debug prints
buf.Copy( aMimeType );
TN_DEBUG2( "CThumbnailServer::ResolveProviderL(%S)", &buf );
- OstTraceExt1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_RESOLVEMIMETYPEL, "CThumbnailServer::ResolveMimeTypeL;buf=%S", buf );
#endif
CThumbnailProvider* ret = NULL;
@@ -797,8 +758,6 @@
#ifdef _DEBUG
TN_DEBUG3(
"CThumbnailServer::ResolveProviderL(%S) -- using provider 0x%08x", &buf, iPluginInfoArray[i]->ImplementationUid().iUid );
- OstTraceExt1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_RESOLVEPROVIDERL, "CThumbnailServer::ResolveProviderL;buf=%S", buf );
- OstTrace1( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_RESOLVEPROVIDERL, "CThumbnailServer::ResolveProviderL;iPluginInfoArray[i]->ImplementationUid().iUid=%o", iPluginInfoArray[i]->ImplementationUid().iUid );
#endif
ret = GetProviderL( iPluginInfoArray[i]->ImplementationUid());
}
@@ -810,7 +769,6 @@
TN_DEBUG2(
"CThumbnailServer::ResolveProviderL(%S) -- provider not found",
&buf );
- OstTraceExt1( TRACE_NORMAL, CTHUMBNAILSERVER_RESOLVEPROVIDERL, "CThumbnailServer::ResolveProviderL;buf=%S", buf );
#endif
User::Leave( KErrNotSupported );
}
@@ -839,7 +797,6 @@
aImplUid );
res = CThumbnailProvider::NewL( aImplUid );
TN_DEBUG1( "CThumbnailServer::GetProviderL() -- loading complete" );
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_GETPROVIDERL, "CThumbnailServer::GetProviderL -- loading complete" );
CleanupStack::PushL( res );
iProviders.InsertL( aImplUid.iUid, res );
CleanupStack::Pop( res );
@@ -856,7 +813,6 @@
void CThumbnailServer::PreLoadProviders( )
{
TN_DEBUG1( "CThumbnailServer::PreLoadProvidersL()" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_PRELOADPROVIDERS, "CThumbnailServer::PreLoadProviders" );
TInt err(KErrNone);
for(TInt i=0; i< iPluginInfoArray.Count(); i++)
@@ -896,7 +852,6 @@
while ( ref )
{
TN_DEBUG2( "CThumbnailServer::DequeTask() - ref->iRequestId = %d", ref->iRequestId );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_DEQUETASK, "CThumbnailServer::DequeTask;ref->iRequestId=%u", ref->iRequestId );
if ( ref->iSession == aRequestId.iSession &&
ref->iRequestId == aRequestId.iRequestId )
@@ -906,7 +861,6 @@
TN_DEBUG2( "CThumbnailServer::DequeTask() - deleted bitmap, left=%d",
iBitmapPool.Count());
- OstTrace1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_DEQUETASK, "CThumbnailServer::DequeTask;iBitmapPool.Count()=%d", iBitmapPool.Count() );
}
ref = bpiter.NextValue();
@@ -978,12 +932,10 @@
CThumbnailStore* CThumbnailServer::StoreForDriveL( const TInt aDrive )
{
TN_DEBUG2( "CThumbnailServer::StoreForDriveL() drive=%d", aDrive );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL;aDrive=%d", aDrive );
if(iUnmountedDrives.Find( aDrive ) >= KErrNone)
{
TN_DEBUG1( "CThumbnailServer::StoreForDriveL() unmount in progress, skip!");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL - unmount in progress, skip!" );
User::Leave( KErrDisMounted );
}
@@ -999,7 +951,6 @@
if( iFormatting )
{
TN_DEBUG1( "CThumbnailServer::StoreForDriveL() - FORMATTING! - ABORT");
- OstTrace0( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL - FORMATTING! - ABORT" );
User::Leave( KErrNotSupported );
}
@@ -1010,13 +961,11 @@
{
// Locked
TN_DEBUG2( "CThumbnailServer::StoreForDriveL() - err %d", err);
- OstTrace1( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL;err=%d", err );
User::Leave( err);
}
else if( volumeInfo.iDrive.iMediaAtt& KMediaAttLocked )
{
TN_DEBUG1( "CThumbnailServer::StoreForDriveL() - locked");
- OstTrace0( TRACE_NORMAL, DUP4_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL - locked" );
User::Leave( KErrAccessDenied );
}
else if ( volumeInfo.iDrive.iDriveAtt& KDriveAttRom ||
@@ -1025,13 +974,11 @@
{
// We support ROM disks and remote disks in read only mode.
TN_DEBUG1( "CThumbnailServer::StoreForDriveL() - rom/remote/write protected");
- OstTrace0( TRACE_NORMAL, DUP5_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL - rom/remote/write protected" );
res = CThumbnailStore::NewL( iFs, aDrive, iImei, this, ETrue );
}
else
{
TN_DEBUG1( "CThumbnailServer::StoreForDriveL() - normal");
- OstTrace0( TRACE_NORMAL, DUP6_CTHUMBNAILSERVER_STOREFORDRIVEL, "CThumbnailServer::StoreForDriveL - normal" );
res = CThumbnailStore::NewL( iFs, aDrive, iImei, this, EFalse );
}
@@ -1059,7 +1006,6 @@
if(aPath.Length() < 3 || aPath.Length() > KMaxPath)
{
TN_DEBUG1( "CThumbnailServer::StoreForPathL() - KErrArgument");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_STOREFORPATHL, "CThumbnailServer::StoreForPathL - KErrArgument" );
User::Leave(KErrArgument);
}
TInt drive = 0;
@@ -1104,7 +1050,6 @@
if (!err)
{
TN_DEBUG2( "CThumbnailServer::OpenStoresL() StoreForDriveL %d", i);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_OPENSTORESL, "CThumbnailServer::OpenStoresL;i=%d", i );
// ignore errors
TRAP_IGNORE( StoreForDriveL( i ));
@@ -1123,7 +1068,6 @@
void CThumbnailServer::CloseStoreForDriveL( const TInt aDrive )
{
TN_DEBUG2( "CThumbnailServer::CloseStoreForDriveL drive=%d", aDrive);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_CLOSESTOREFORDRIVEL, "CThumbnailServer::CloseStoreForDriveL;aDrive=%d", aDrive );
CThumbnailStore** store = iStores.Find( aDrive );
StartUnmountTimeout( aDrive);
@@ -1190,7 +1134,6 @@
if (!err && driveInfo.iDriveAtt& KDriveAttRemovable)
{
TN_DEBUG2( "CThumbnailServer::AddOnMountObserver drive=%d", drive);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_ADDUNMOUNTOBSERVERSL, "CThumbnailServer::AddUnmountObserversL;drive=%d", drive );
CThumbnailDiskUnmountObserver* obs = CThumbnailDiskUnmountObserver::NewL( iFs, drive, this );
CleanupStack::PushL( obs );
iUnmountObservers.AppendL( obs );
@@ -1206,7 +1149,6 @@
void CThumbnailServer::MemoryCardStatusChangedL()
{
TN_DEBUG1( "CThumbnailServer::MemoryCardStatusChangedL in()" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL - in" );
TDriveList driveList;
TInt drive;
TVolumeInfo volumeInfo;
@@ -1232,14 +1174,12 @@
&& driveInfo.iDriveAtt& KDriveAttRemovable )
{
TN_DEBUG2( "CThumbnailServer::MemoryCardStatusChangedL mount drive==%d", drive);
- OstTrace1( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL;drive=%d", drive );
CThumbnailStore** resPtr = iStores.Find( drive );
if ( resPtr )
{
TN_DEBUG2( "CThumbnailServer::MemoryCardStatusChangedL() already mounted, skip %d", drive);
- OstTrace1( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL;drive=%d", drive );
continue;
}
@@ -1253,7 +1193,6 @@
!(driveStatus & DriveInfo::EDriveRemote))
{
TN_DEBUG2( "CThumbnailServer::MemoryCardStatusChangedL() update KItemsleft = %d", KErrNotReady);
- OstTrace1( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL;KErrNotReady=%d - update KItemsleft", KErrNotReady );
RProperty::Set(KTAGDPSNotification, KItemsleft, KErrNotReady );
}
@@ -1267,7 +1206,6 @@
if(!iUnmountedDrives.Count()&& iUnmount && iUnmount->IsActive())
{
TN_DEBUG1( "CThumbnailServer::MemoryCardStatusChangedL() cancel unmount timer");
- OstTrace0( TRACE_NORMAL, DUP4_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL - cancel unmount timer" );
iUnmount->Cancel();
}
}
@@ -1276,13 +1214,11 @@
else if(err && !err_drive && driveInfo.iDriveAtt& KDriveAttRemovable )
{
TN_DEBUG2( "CThumbnailServer::MemoryCardStatusChangedL() unmount drive==%d", drive);
- OstTrace1( TRACE_NORMAL, DUP5_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL - unmount drive;drive=%d", drive );
CloseStoreForDriveL( drive);
}
}
TN_DEBUG1( "CThumbnailServer::MemoryCardStatusChangedL out()" );
- OstTrace0( TRACE_NORMAL, DUP6_CTHUMBNAILSERVER_MEMORYCARDSTATUSCHANGEDL, "CThumbnailServer::MemoryCardStatusChangedL - out" );
}
@@ -1341,7 +1277,6 @@
const TInt /*aOrientation*/, const TInt64 aModified )
{
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL()");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL" );
// 1. check path change
// 2. check timestamp change
@@ -1350,25 +1285,21 @@
CThumbnailStore* store = StoreForPathL( aPath );
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - exist");
- OstTrace0( TRACE_NORMAL, DUP2_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - exist" );
TBool exists = store->CheckModifiedByPathL(aPath, aModified, modifiedChanged);
if(!exists)
{
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - exists NO");
- OstTrace0( TRACE_NORMAL, DUP3_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - exists NO" );
//not found, needs to be generated
return EFalse;
}
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified ?");
- OstTrace0( TRACE_NORMAL, DUP4_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - modified ?" );
if (modifiedChanged)
{
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified YES");
- OstTrace0( TRACE_NORMAL, DUP5_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - modified YES" );
// delete old thumbs
store->DeleteThumbnailsL(aPath, ETrue);
@@ -1383,14 +1314,12 @@
else
{
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - modified NO");
- OstTrace0( TRACE_NORMAL, DUP6_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - modified NO" );
// not modified
return ETrue;
}
TN_DEBUG1( "CThumbnailServer::UpdateThumbnailsL() - no thumbs found, create new");
- OstTrace0( TRACE_NORMAL, DUP7_CTHUMBNAILSERVER_UPDATETHUMBNAILSL, "CThumbnailServer::UpdateThumbnailsL - no thumbs found, create new" );
return EFalse;
}
@@ -1402,7 +1331,6 @@
void CThumbnailServer::RenameThumbnailsL( const TDesC& aCurrentPath, const TDesC& aNewPath )
{
TN_DEBUG2( "CThumbnailServer::RenameThumbnailsL(%S)", &aCurrentPath);
- OstTraceExt1( TRACE_NORMAL, CTHUMBNAILSERVER_RENAMETHUMBNAILSL, "CThumbnailServer::RenameThumbnailsL;aCurrentPath=%S", aCurrentPath );
StoreForPathL( aCurrentPath )->RenameThumbnailsL( aCurrentPath, aNewPath );
@@ -1480,14 +1408,10 @@
else if ( ext.CompareF( K3gpExt ) == 0 )
{
aMimeType = TDataType( KVideo3gppMime );
- return KErrNotFound;
- // 3gp can contain video or audio, should go to recognizer
}
else if ( ext.CompareF( K3gppExt ) == 0 )
{
aMimeType = TDataType( KVideo3gppMime );
- return KErrNotFound;
- // 3gp can contain video or audio, should go to recognizer
}
else if ( ext.CompareF( KAmrExt ) == 0 )
{
@@ -1691,7 +1615,6 @@
TN_DEBUG2(
"CThumbnailServer::E32Main() -- thread function out, result=%d",
result );
- OstTrace1( TRACE_NORMAL, _E32MAIN, "::E32Main;result=%d - thread function out", result );
delete cleanup;
cleanup = NULL;
}
@@ -1699,10 +1622,8 @@
{
// Signal the client that server creation failed
TN_DEBUG1( "CThumbnailServer::E32Main() -- Rendezvous() in" );
- OstTrace0( TRACE_NORMAL, DUP2__E32MAIN, "::E32Main - in" );
RProcess::Rendezvous( result );
TN_DEBUG1( "CThumbnailServer::E32Main() -- Rendezvous() out" );
- OstTrace0( TRACE_NORMAL, DUP1__E32MAIN, "::E32Main - out" );
}
__UHEAP_MARKEND;
@@ -1737,7 +1658,6 @@
if (!err && driveInfo.iDriveAtt& KDriveAttRemovable)
{
TN_DEBUG2( "CThumbnailServer::CloseRemovableDrive drive=%d", drive);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_CLOSEREMOVABLEDRIVESL, "CThumbnailServer::CloseRemovableDrivesL;drive=%d", drive );
CloseStoreForDriveL(drive);
}
}
@@ -1772,7 +1692,6 @@
if (!err && driveInfo.iDriveAtt& KDriveAttRemovable)
{
TN_DEBUG2( "CThumbnailServer::OpenRemovableDrive drive=%d", drive);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_OPENREMOVABLEDRIVESL, "CThumbnailServer::OpenRemovableDrivesL;drive=%d", drive );
StoreForDriveL(drive);
}
}
@@ -1795,7 +1714,6 @@
void CThumbnailServer::FormatNotification( TBool aFormat )
{
TN_DEBUG2( "CThumbnailServer::FormatNotification(%d)", aFormat );
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_FORMATNOTIFICATION, "CThumbnailServer::FormatNotification;aFormat=%d", aFormat );
if(aFormat)
{
@@ -1814,7 +1732,6 @@
TInt CThumbnailServer::ReconnectCallBack(TAny* aAny)
{
TN_DEBUG1( "CThumbnailServer::ReconnectCallBack() - reconnect");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_RECONNECTCALLBACK, "CThumbnailServer::ReconnectCallBack - reconnect" );
CThumbnailServer* self = static_cast<CThumbnailServer*>( aAny );
@@ -1831,7 +1748,6 @@
self->iSessionError = EFalse;
TN_DEBUG1( "CThumbAGDaemon::ReconnectCallBack() - done");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_RECONNECTCALLBACK, "CThumbnailServer::ReconnectCallBack - done" );
return KErrNone;
}
@@ -1848,7 +1764,6 @@
if ( pos == 1 )
{
TN_DEBUG1( "CThumbnailServer::IsPublicPath() NO");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_ISPUBLICPATH, "CThumbnailServer::IsPublicPath - NO" );
return EFalse;
}
@@ -1856,7 +1771,6 @@
if ( pos == 1 )
{
TN_DEBUG1( "CThumbnailServer::IsPublicPath() NO");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_ISPUBLICPATH, "CThumbnailServer::IsPublicPath - NO" );
return EFalse;
}
@@ -1870,7 +1784,6 @@
void CThumbnailServer::StartUnmountTimeout( const TInt aDrive)
{
TN_DEBUG2( "CThumbnailServer::StartUnmountTimeout(%d)", aDrive);
- OstTrace1( TRACE_NORMAL, CTHUMBNAILSERVER_STARTUNMOUNTTIMEOUT, "CThumbnailServer::StartUnmountTimeout;aDrive=%d", aDrive );
if(iUnmount )
{
@@ -1885,7 +1798,6 @@
}
TN_DEBUG1( "CThumbnailServer::StartUnmountTimeout() start unmount timer");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_STARTUNMOUNTTIMEOUT, "CThumbnailServer::StartUnmountTimeout - start unmount timer" );
iUnmount->Start( KUnmountTimerTimeout, KUnmountTimerTimeout, TCallBack(UnmountCallBack, this));
}
__ASSERT_DEBUG(( iUnmount ), ThumbnailPanic( EThumbnailNullPointer ));
@@ -1899,7 +1811,6 @@
TInt CThumbnailServer::UnmountCallBack(TAny* aAny)
{
TN_DEBUG1( "CThumbnailServer::UnmountCallBack() - unmount finished");
- OstTrace0( TRACE_NORMAL, CTHUMBNAILSERVER_UNMOUNTCALLBACK, "CThumbnailServer::UnmountCallBack - unmount finished" );
CThumbnailServer* self = static_cast<CThumbnailServer*>( aAny );
@@ -1908,7 +1819,6 @@
self->iUnmountedDrives.Reset();
TN_DEBUG1( "CThumbAGDaemon::UnmountCallBack() - done");
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILSERVER_UNMOUNTCALLBACK, "CThumbnailServer::UnmountCallBack - done" );
return KErrNone;
}