os/graphics/fbs/fontandbitmapserver/tfbs/TRalc.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/fbs/fontandbitmapserver/tfbs/TRalc.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,511 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#include "FbsRalc.h"
    1.20 +#include "UTILS.H"
    1.21 +#include "TRalc.h"
    1.22 +#include "fbsmessage.h"
    1.23 +#include "fbsdefs.h"
    1.24 +
    1.25 +_LIT(KMbmFileEikon, "z:\\System\\Data\\tfbs_file4.mbm");
    1.26 +_LIT(KMbmFileTechview, "z:\\System\\Data\\tfbs_file5.mbm");
    1.27 +_LIT(KMbmFileTechviewU,"Z:\\SYSTEM\\DATA\\TFBS_FILE5.MBM");
    1.28 +_LIT(KMbmFileLafcurs, "z:\\System\\Data\\tfbs_file2.mbm");
    1.29 +_LIT(KMbmFileShell, "z:\\System\\Data\\tfbs_file1.mbm");
    1.30 +_LIT(KMbmFileShel, "z:\\System\\Data\\tfbs_file_.mbm");
    1.31 +_LIT(KMbmFileTimew, "z:\\System\\Data\\tfbs_file3.mbm");
    1.32 +
    1.33 +_LIT(KMbmFileLafcursLong, "z:\\siuhsiughighifhgidfhguifhguidhfguifhghlarglaghghghghghkrjghszkjg\\System\\Data\\tfbs_file2.mbm");
    1.34 +_LIT(KMbmFileShellLong, "z:\\siuhsiughighifhgidfhguifhguidhfguifhghlarglaghghghghghkrjghszkjg\\System\\Data\\tfbs_file1.mbm");
    1.35 +
    1.36 +// ============================================================================
    1.37 +
    1.38 +CTRalc::CTRalc(CTestStep* aStep):
    1.39 +	CTGraphicsBase(aStep),
    1.40 +	iHandle(0),
    1.41 +	iFbs(NULL),
    1.42 +	iResourceCount(0),
    1.43 +	iAllocs(0)
    1.44 +	{
    1.45 +	}
    1.46 +
    1.47 +CTRalc::~CTRalc()
    1.48 +	{
    1.49 +	if(iShutdownFbs)
    1.50 +		RFbsSession::GetSession()->SendCommand(EFbsMessShutdown);
    1.51 +	RFbsSession::Disconnect();
    1.52 +	}
    1.53 +
    1.54 +void CTRalc::ConstructL()
    1.55 +	{
    1.56 +	if(RFbsSession::Connect()==KErrNone)
    1.57 +		{
    1.58 +		iShutdownFbs = EFalse;
    1.59 +		}
    1.60 +	else
    1.61 +		{
    1.62 +		FbsStartup();
    1.63 +		RFbsSession::Connect();
    1.64 +		iShutdownFbs = ETrue;
    1.65 +		}
    1.66 +
    1.67 +	iFbs = RFbsSession::GetSession();
    1.68 +
    1.69 +	TRAPD(err,ExpandCleanupStackL());
    1.70 +	if (err != KErrNone)
    1.71 +		User::Panic(_L("CleanupStack expansion failed"),err);
    1.72 +
    1.73 +	INFO_PRINTF1(_L("FBS Client RALC testing"));
    1.74 +	}
    1.75 +
    1.76 +void CTRalc::ExpandCleanupStackL()
    1.77 +	{
    1.78 +	TInt count=0;
    1.79 +	for(;count<10;count++)
    1.80 +		CleanupStack::PushL((TUint32*)0x1);
    1.81 +	CleanupStack::Pop(count);
    1.82 +	}
    1.83 +
    1.84 +/**
    1.85 +	@SYMTestCaseID
    1.86 +	GRAPHICS-FBSERV-0604
    1.87 +
    1.88 +	@SYMTestCaseDesc
    1.89 +	Tests the creation of CFbsRalCacheEl objects.
    1.90 +
    1.91 +	@SYMTestActions
    1.92 +	1. Test the API on a default built element object.
    1.93 +	2. Test a New'd element object followed by delete.
    1.94 +	3. Test a New'd element object followed by destroy & free.
    1.95 +	4. Test matching of an element object.	
    1.96 +	
    1.97 +	@SYMTestExpectedResults
    1.98 +	Test should pass
    1.99 +*/
   1.100 +void CTRalc::TestRALCEntryClass()
   1.101 +	{
   1.102 +	INFO_PRINTF1(_L("Test of CFbsRalCacheEl API"));
   1.103 +
   1.104 +	// Test the API on a defaultly built element object
   1.105 +		{
   1.106 +		CFbsRalCacheEl elOne;
   1.107 +		TEST(elOne.iAddress == 0);
   1.108 +		TEST(elOne.iFilename == 0);
   1.109 +	
   1.110 +		// Test matching method
   1.111 +		TBool r1 = EFalse;
   1.112 +		r1 = elOne.MatchKey (KMbmFileEikon);
   1.113 +		TEST(r1 == EFalse);
   1.114 +
   1.115 +		// Test destruction
   1.116 +		}
   1.117 +
   1.118 +	// Test a New'd element object followed by delete
   1.119 +		{
   1.120 +		CFbsRalCacheEl *elTwo = 0;
   1.121 +		elTwo = CFbsRalCacheEl::New(KMbmFileTimew, (TAny*)0x58001000);
   1.122 +		TEST(elTwo != 0);
   1.123 +		TEST(elTwo->iFilename->CompareF(KMbmFileTimew) == 0);
   1.124 +		TEST(elTwo->iAddress == (TAny*)0x58001000);
   1.125 +
   1.126 +		delete elTwo;
   1.127 +		}
   1.128 +	
   1.129 +	// Test a New'd element object followed by destroy & free
   1.130 +		{
   1.131 +		CFbsRalCacheEl *elThree = 0;
   1.132 +		elThree = CFbsRalCacheEl::New(KMbmFileLafcursLong,  (TAny*)0x58002000);
   1.133 +		TEST(elThree != 0);
   1.134 +		TEST(elThree->iFilename->CompareF(KMbmFileLafcursLong) == 0);
   1.135 +		TEST(elThree->iAddress == (TAny*)0x58002000);
   1.136 +
   1.137 +		elThree->~CFbsRalCacheEl();
   1.138 +		TEST(elThree->iFilename == 0);
   1.139 +		CFbsRalCacheEl::FreeOnly(elThree);
   1.140 +		TEST(elThree == 0);
   1.141 +		}
   1.142 +
   1.143 +	// Test matching of an element object
   1.144 +		{
   1.145 +		CFbsRalCacheEl *elFour = 0;
   1.146 +		elFour = CFbsRalCacheEl::New(KMbmFileTechview,  (TAny*)0x58003000);
   1.147 +		TEST(elFour != 0);
   1.148 +
   1.149 +		TBool r2 = EFalse;
   1.150 +		r2 = elFour->MatchKey (KMbmFileEikon);
   1.151 +		TEST(r2 == EFalse);
   1.152 +
   1.153 +		r2 = elFour->MatchKey (KMbmFileTechview);
   1.154 +		TEST(r2);
   1.155 +
   1.156 +		r2 = elFour->MatchKey(KMbmFileTechviewU);
   1.157 +		TEST(r2);
   1.158 +
   1.159 +		delete elFour;
   1.160 +		}
   1.161 +	}
   1.162 +
   1.163 +/**
   1.164 +	@SYMTestCaseID
   1.165 +	GRAPHICS-FBSERV-0605
   1.166 +
   1.167 +	@SYMTestCaseDesc
   1.168 +	Tests the RALC Cache class.
   1.169 +
   1.170 +	@SYMTestActions
   1.171 +	Connect to the file server. Creates a CFbsRalCache
   1.172 +	object on the heap. Deletes the object.
   1.173 +	Test the lookup facility of the cache with overflow.
   1.174 +	
   1.175 +	@SYMTestExpectedResults
   1.176 +	Test should pass
   1.177 +*/
   1.178 +void CTRalc::TestRALCCacheClass()
   1.179 +	{
   1.180 +	RFs fileServer;
   1.181 +	TInt ret;
   1.182 +
   1.183 +	ret = fileServer.Connect();
   1.184 +	TEST(ret==KErrNone);
   1.185 +
   1.186 +	INFO_PRINTF1(_L("Test of CFbsRalCache API"));
   1.187 +
   1.188 +	// Test the construction/destruction API
   1.189 +		{
   1.190 +		CFbsRalCache* cache1 = CFbsRalCache::New(0, fileServer);
   1.191 +		TEST(cache1 == 0);
   1.192 +
   1.193 +		cache1 = CFbsRalCache::New(5, fileServer);
   1.194 +		TEST(cache1 != 0);
   1.195 +		TEST(cache1->Count() == 0);
   1.196 +		TEST(cache1->Length() == 5);
   1.197 +
   1.198 +		delete cache1;
   1.199 +		}
   1.200 +
   1.201 +	// Test the lookup facility of the cache with overflow
   1.202 +		{
   1.203 +		CFbsRalCache* cache2 = CFbsRalCache::New(2, fileServer);
   1.204 +
   1.205 +		TAny* p1;
   1.206 +		p1 = cache2->Lookup(KMbmFileLafcurs);
   1.207 +		TEST(p1 != 0);
   1.208 +		TEST(cache2->Count() == 1);
   1.209 +
   1.210 +		p1 = cache2->Lookup(KMbmFileShel);
   1.211 +		TEST(p1 == 0);
   1.212 +		TEST(cache2->Count() == 1);
   1.213 +
   1.214 +		p1 = cache2->Lookup(KMbmFileShell);
   1.215 +		TEST(p1 != 0);
   1.216 +		TEST(cache2->Count() == 2);
   1.217 +
   1.218 +		p1 = cache2->Lookup(KMbmFileEikon);
   1.219 +		TEST(p1 != 0);
   1.220 +		TEST(cache2->Count() == 2);
   1.221 +
   1.222 +		delete cache2;
   1.223 +		}
   1.224 +
   1.225 +	fileServer.Close();
   1.226 +	}
   1.227 +
   1.228 +/**
   1.229 +	@SYMTestCaseID
   1.230 +	GRAPHICS-FBSERV-0606
   1.231 +
   1.232 +	@SYMTestCaseDesc
   1.233 +	Tests Out Of Memory conditions for the CFbsRalCache class.
   1.234 +
   1.235 +	@SYMTestActions
   1.236 +	Connects to the file server. Sets a macro
   1.237 +	that makes heap allocation fail after a certain
   1.238 +	number of heap allocations. Creates a CFbsRalCache
   1.239 +	object on the heap. Deletes the object. Closes the file
   1.240 +	server handle.
   1.241 +	
   1.242 +	@SYMTestExpectedResults
   1.243 +	Test should pass
   1.244 +*/
   1.245 +void CTRalc::TestOOMCondition()
   1.246 +	{
   1.247 +	RFs fileServer;
   1.248 +	TInt ret;
   1.249 +	ret = fileServer.Connect();
   1.250 +	TEST(ret==KErrNone);
   1.251 +
   1.252 +	INFO_PRINTF1(_L("Test of CFbsRalCache and OOM"));
   1.253 +
   1.254 +	for (TInt count = 1; ; count++)
   1.255 +        {
   1.256 +        __UHEAP_SETFAIL(RHeap::EDeterministic,count);
   1.257 +        __UHEAP_MARK;
   1.258 +
   1.259 +		CFbsRalCache* cache = 0;
   1.260 +		cache = CFbsRalCache::New(4, fileServer);
   1.261 +
   1.262 +		if (cache == 0)
   1.263 +            {
   1.264 +            __UHEAP_MARKEND;
   1.265 +            }
   1.266 +        else 
   1.267 +            {
   1.268 +            delete cache;
   1.269 +            __UHEAP_MARKEND;
   1.270 +        	__UHEAP_SETFAIL(RHeap::ENone,count);
   1.271 +            break;
   1.272 +            }
   1.273 +        }
   1.274 +	
   1.275 +	fileServer.Close();
   1.276 +	}
   1.277 +
   1.278 +/**
   1.279 +	@SYMTestCaseID
   1.280 +	GRAPHICS-FBSERV-0607
   1.281 +
   1.282 +	@SYMTestCaseDesc
   1.283 +	Intended to measure performance of bitmap loading.
   1.284 +
   1.285 +	@SYMTestActions
   1.286 +	Creates to CFbsBitmap objects on the stack and
   1.287 +	loads a bitmap file in to objects in a loop.
   1.288 +	Test case is not complete.
   1.289 +	
   1.290 +	@SYMTestExpectedResults
   1.291 +	No test result is given in the function.
   1.292 +*/
   1.293 +void CTRalc::MeasurePerformanceWith2()
   1.294 +	{
   1.295 +	TInt loopI;
   1.296 +	CFbsBitmap bitmap1;
   1.297 +	CFbsBitmap bitmap2;
   1.298 +
   1.299 +	INFO_PRINTF1(_L("Performance Test with 2 Lookups"));
   1.300 +
   1.301 +	for (loopI=0; loopI<2700; loopI++)
   1.302 +		bitmap1.Load(KMbmFileLafcurs, 0, EFalse);	
   1.303 +
   1.304 +	for (loopI=0; loopI<600; loopI++)
   1.305 +		bitmap2.Load(KMbmFileShell, 0, EFalse);	
   1.306 +
   1.307 +/*	RDebug::ProfileEnd(10);
   1.308 +	TProfile profile;
   1.309 +    RDebug::ProfileResult(&profile,10,1);
   1.310 +	RDebug::Print(_L("Performance test end %d.%d s\n"),profile.iTime/1000000,(profile.iTime/1000)%1000); */
   1.311 +	}
   1.312 +
   1.313 +/**
   1.314 +	@SYMTestCaseID
   1.315 +	GRAPHICS-FBSERV-0609
   1.316 +
   1.317 +	@SYMTestCaseDesc
   1.318 +	Intended to measure performance of bitmap loading.
   1.319 +
   1.320 +	@SYMTestActions
   1.321 +	Creates to CFbsBitmap objects on the stack and
   1.322 +	loads a bitmap file in to objects in a loop.
   1.323 +	Test case is not complete.
   1.324 +	
   1.325 +	@SYMTestExpectedResults
   1.326 +	No test result is given in the function.
   1.327 +*/
   1.328 +void CTRalc::MeasurePerformanceWith2Long()
   1.329 +	{
   1.330 +	TInt loopI;
   1.331 +	CFbsBitmap bitmap1;
   1.332 +	CFbsBitmap bitmap2;
   1.333 +
   1.334 +	INFO_PRINTF1(_L("Performance Test with 2 LONG Lookups"));
   1.335 +//	RDebug::ProfileReset(10, 1);
   1.336 +//	RDebug::ProfileStart(10);
   1.337 +
   1.338 +	for (loopI=0; loopI<2700; loopI++)
   1.339 +		(void)bitmap1.Load(KMbmFileLafcursLong, 0, EFalse);	
   1.340 +
   1.341 +	for (loopI=0; loopI<600; loopI++)
   1.342 +		(void)bitmap2.Load(KMbmFileShellLong, 0, EFalse);	
   1.343 +
   1.344 +/*	RDebug::ProfileEnd(10);
   1.345 +	TProfile profile;
   1.346 +    RDebug::ProfileResult(&profile,10,1);
   1.347 +	RDebug::Print(_L("Performance test end %d.%d s\n"),profile.iTime/1000000,(profile.iTime/1000)%1000); */
   1.348 +	}
   1.349 +	
   1.350 +/**
   1.351 +	@SYMTestCaseID
   1.352 +	GRAPHICS-FBSERV-0608
   1.353 +
   1.354 +	@SYMTestCaseDesc
   1.355 +	Intended to measure performance of bitmap loading.
   1.356 +
   1.357 +	@SYMTestActions
   1.358 +	Creates five CFbsBitmap objects on the stack and
   1.359 +	loads different bitmap files in to the objects in a loop.
   1.360 +	
   1.361 +	@SYMTestExpectedResults
   1.362 +	No test result is given in the function.
   1.363 +*/
   1.364 +void CTRalc::MeasurePerformanceWith5()
   1.365 +	{
   1.366 +	TInt loopI;
   1.367 +	CFbsBitmap bitmap1;
   1.368 +	CFbsBitmap bitmap2;
   1.369 +	CFbsBitmap bitmap3;
   1.370 +	CFbsBitmap bitmap4;
   1.371 +	CFbsBitmap bitmap5;
   1.372 +
   1.373 +	INFO_PRINTF1(_L("Performance Test with 5 Lookups"));
   1.374 +//	RDebug::ProfileReset(10, 1);
   1.375 +//	RDebug::ProfileStart(10);
   1.376 +
   1.377 +	for (loopI=0; loopI<500; loopI++)
   1.378 +		bitmap1.Load(KMbmFileEikon, 0, EFalse);
   1.379 +
   1.380 +	for (loopI=0; loopI<200; loopI++)
   1.381 +		bitmap2.Load(KMbmFileTechview, 0, EFalse);	
   1.382 +
   1.383 +	for (loopI=0; loopI<2700; loopI++)
   1.384 +		bitmap3.Load(KMbmFileLafcurs, 0, EFalse);	
   1.385 +
   1.386 +	for (loopI=0; loopI<600; loopI++)
   1.387 +		bitmap4.Load(KMbmFileShell, 0, EFalse);	
   1.388 +
   1.389 +	for (loopI=0; loopI<1100; loopI++)
   1.390 +		bitmap5.Load(KMbmFileTimew, 0, EFalse);	
   1.391 +
   1.392 +/*	RDebug::ProfileEnd(10);
   1.393 +	TProfile profile;
   1.394 +    RDebug::ProfileResult(&profile,10,1);
   1.395 +	RDebug::Print(_L("Performance test end %d.%d s\n"),profile.iTime/1000000,(profile.iTime/1000)%1000); */
   1.396 +	}
   1.397 +
   1.398 +/**
   1.399 +	@SYMTestCaseID
   1.400 +	GRAPHICS-FBSERV-0610
   1.401 +
   1.402 +	@SYMTestCaseDesc
   1.403 +	Intended to measure performance of bitmap loading.
   1.404 +
   1.405 +	@SYMTestActions
   1.406 +	Creates five CFbsBitmap objects on the stack and
   1.407 +	loads different bitmap files in to the objects in a loop.
   1.408 +	
   1.409 +	@SYMTestExpectedResults
   1.410 +	No test result is given in the function.
   1.411 +*/
   1.412 +void CTRalc::MeasurePerformanceWith23Mix()
   1.413 +	{
   1.414 +	TInt loopI;
   1.415 +	CFbsBitmap bitmap1;
   1.416 +	CFbsBitmap bitmap2;
   1.417 +	CFbsBitmap bitmap3;
   1.418 +	CFbsBitmap bitmap4;
   1.419 +	CFbsBitmap bitmap5;
   1.420 +
   1.421 +	INFO_PRINTF1(_L("Performance Test with 2/3 Mix of Lookups"));
   1.422 +//	RDebug::ProfileReset(10, 1);
   1.423 +//	RDebug::ProfileStart(10);
   1.424 +
   1.425 +	for (loopI=0; loopI<500; loopI++)
   1.426 +		bitmap1.Load(KMbmFileEikon, 0, EFalse);
   1.427 +
   1.428 +	for (loopI=0; loopI<200; loopI++)
   1.429 +		bitmap2.Load(KMbmFileTechview, 0, EFalse);	
   1.430 +
   1.431 +	for (loopI=0; loopI<2700; loopI++)
   1.432 +		bitmap3.Load(KMbmFileLafcursLong, 0, EFalse);	
   1.433 +
   1.434 +	for (loopI=0; loopI<600; loopI++)
   1.435 +		bitmap4.Load(KMbmFileShellLong, 0, EFalse);	
   1.436 +
   1.437 +	for (loopI=0; loopI<1100; loopI++)
   1.438 +		bitmap5.Load(KMbmFileTimew, 0, EFalse);	
   1.439 +
   1.440 +/*	RDebug::ProfileEnd(10);
   1.441 +	TProfile profile;
   1.442 +    RDebug::ProfileResult(&profile,10,1);
   1.443 +	RDebug::Print(_L("Performance test end %d.%d s\n"),profile.iTime/1000000,(profile.iTime/1000)%1000);*/
   1.444 +	}
   1.445 +
   1.446 +void CTRalc::RunTestCaseL(TInt aCurTestCase)
   1.447 +	{
   1.448 +	TUint32* romAddress = NULL;
   1.449 +	if(!CFbsBitmap::IsFileInRom(KMbmFileEikon, romAddress)) //check any rom bitmap
   1.450 +		{
   1.451 +		INFO_PRINTF2(_L("Skipping CFbsRalCache tests since file \"%S\" is reported to not be a ROM bitmap."),
   1.452 +				&KMbmFileEikon);
   1.453 +		INFO_PRINTF1(_L("This should only occur on non-XIP ROMs, e.g. NAND ROMs, where ROM bitmaps aren't supported."));
   1.454 +		TestComplete();
   1.455 +		}
   1.456 +	else
   1.457 +		{
   1.458 +		((CTRalcStep*)iStep)->SetTestStepID(KUnknownSYMTestCaseIDName);
   1.459 +		switch(aCurTestCase)
   1.460 +			{
   1.461 +		case 1:
   1.462 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0604"));
   1.463 +			TestRALCEntryClass();
   1.464 +			break;
   1.465 +		case 2:
   1.466 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0605"));
   1.467 +			TestRALCCacheClass();
   1.468 +			break;
   1.469 +		case 3:
   1.470 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0606"));
   1.471 +			TestOOMCondition();
   1.472 +			break;
   1.473 +		case 4:
   1.474 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0607"));
   1.475 +			MeasurePerformanceWith2();
   1.476 +			break;
   1.477 +		case 5:
   1.478 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0608"));
   1.479 +			MeasurePerformanceWith5();
   1.480 +			break;
   1.481 +		case 6:
   1.482 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0609"));
   1.483 +			MeasurePerformanceWith2Long();
   1.484 +			break;
   1.485 +		case 7:
   1.486 +			((CTRalcStep*)iStep)->SetTestStepID(_L("GRAPHICS-FBSERV-0610"));
   1.487 +			MeasurePerformanceWith23Mix();
   1.488 +			break;
   1.489 +		case 8:
   1.490 +			((CTRalcStep*)iStep)->SetTestStepID(KNotATestSYMTestCaseIDName);
   1.491 +			((CTRalcStep*)iStep)->CloseTMSGraphicsStep();
   1.492 +			TestComplete();
   1.493 +			break;
   1.494 +			}
   1.495 +		((CTRalcStep*)iStep)->RecordTestResultL();
   1.496 +		}
   1.497 +	}
   1.498 +
   1.499 +//--------------
   1.500 +__CONSTRUCT_STEP__(Ralc)
   1.501 +
   1.502 +void CTRalcStep::TestSetupL()
   1.503 +	{
   1.504 +	// Leaking thread handles
   1.505 +	iThread.HandleCount(iStartProcessHandleCount, iStartThreadHandleCount);
   1.506 +	}
   1.507 +	
   1.508 +void CTRalcStep::TestClose()
   1.509 +	{
   1.510 +	// Check for open handles
   1.511 +	iThread.HandleCount(iEndProcessHandleCount, iEndThreadHandleCount);
   1.512 +	if(iStartThreadHandleCount != iEndThreadHandleCount)
   1.513 +		{__DEBUGGER()}							// Oops leaked some handles
   1.514 +	}