Bitmap Toolkit Patch 1 of 1 - Replace uses of Bitmap class with ImageData
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-platform-abstraction.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 #include "test-platform-abstraction.h"
18 #include "dali-test-suite-utils.h"
19 #include <dali/integration-api/image-data.h>
20
21 namespace Dali
22 {
23
24 /**
25  * Constructor
26  */
27 TestPlatformAbstraction::TestPlatformAbstraction()
28 : mRequest(0)
29 {
30   Initialize();
31 }
32
33 /**
34  * Destructor
35  */
36 TestPlatformAbstraction::~TestPlatformAbstraction()
37 {
38 }
39
40 /**
41  * @copydoc PlatformAbstraction::GetTimeMicroseconds()
42  */
43 void TestPlatformAbstraction::GetTimeMicroseconds(unsigned int &seconds, unsigned int &microSeconds)
44 {
45   seconds = mSeconds;
46   microSeconds = mMicroSeconds;
47   mTrace.PushCall("GetTimeMicroseconds", "");
48 }
49
50 /**
51  * @copydoc PlatformAbstraction::Suspend()
52  */
53 void TestPlatformAbstraction::Suspend()
54 {
55   mTrace.PushCall("Suspend", "");
56 }
57
58 /**
59  * @copydoc PlatformAbstraction::Resume()
60  */
61 void TestPlatformAbstraction::Resume()
62 {
63   mTrace.PushCall("Resume", "");
64 }
65
66 void TestPlatformAbstraction::GetClosestImageSize( const std::string& filename,
67                                                    const ImageAttributes& attributes,
68                                                    Vector2& closestSize)
69 {
70   closestSize = mClosestSize;
71   mTrace.PushCall("GetClosestImageSize", "");
72 }
73
74 void TestPlatformAbstraction::GetClosestImageSize( Integration::ResourcePointer resourceBuffer,
75                                                    const ImageAttributes& attributes,
76                                                    Vector2& closestSize)
77 {
78   closestSize = mClosestSize;
79   mTrace.PushCall("GetClosestImageSize", "");
80 }
81
82
83 /**
84  * @copydoc PlatformAbstraction::LoadResource()
85  */
86 void TestPlatformAbstraction::LoadResource(const Integration::ResourceRequest& request)
87 {
88   mTrace.PushCall("LoadResource", "");
89   if(mRequest != NULL)
90   {
91     delete mRequest;
92     tet_infoline ("Warning: multiple resource requests not handled by Test Suite. You may see unexpected errors");
93   }
94   mRequest = new Integration::ResourceRequest(request);
95 }
96
97 Integration::ResourcePointer TestPlatformAbstraction::LoadResourceSynchronously( const Integration::ResourceType& resourceType, const std::string& resourcePath )
98 {
99   mTrace.PushCall("LoadResourceSynchronously", "");
100   return mResources.loadedResource;
101 }
102
103 /**
104  * @copydoc PlatformAbstraction::SaveResource()
105  */
106 void TestPlatformAbstraction::SaveResource(const Integration::ResourceRequest& request)
107 {
108   mTrace.PushCall("SaveResource", "");
109   if(mRequest != NULL)
110   {
111     delete mRequest;
112     tet_infoline ("Warning: multiple resource requests not handled by Test Suite. You may see unexpected errors");
113   }
114   mRequest = new Integration::ResourceRequest(request);
115 }
116
117 /**
118  * @copydoc PlatformAbstraction::CancelLoad()
119  */
120 void TestPlatformAbstraction::CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId)
121 {
122   mTrace.PushCall("CancelLoad", "");
123 }
124
125 /**
126  * @copydoc PlatformAbstraction::GetResources()
127  */
128 void TestPlatformAbstraction::GetResources(Integration::ResourceCache& cache)
129 {
130   mTrace.PushCall("GetResources", "");
131
132   if(mResources.loaded)
133   {
134     cache.LoadResponse( mResources.loadedId, mResources.loadedType, mResources.loadedResource, Integration::RESOURCE_COMPLETELY_LOADED );
135   }
136   if(mResources.loadFailed)
137   {
138     cache.LoadFailed( mResources.loadFailedId, mResources.loadFailure );
139   }
140   if(mResources.saved)
141   {
142     cache.SaveComplete( mResources.savedId, mResources.savedType );
143   }
144   if(mResources.saveFailed)
145   {
146     cache.SaveFailed( mResources.saveFailedId, mResources.saveFailure );
147   }
148 }
149
150 /**
151  * @copydoc PlatformAbstraction::IsLoading()
152  */
153 bool TestPlatformAbstraction::IsLoading()
154 {
155   mTrace.PushCall("IsLoading", "");
156   return mIsLoadingResult;
157 }
158
159 /**
160  * @copydoc PlatformAbstraction::GetDefaultFontFamily()
161  */
162 std::string TestPlatformAbstraction::GetDefaultFontFamily() const
163 {
164   mTrace.PushCall("GetDefaultFontFamily", "");
165   return mGetDefaultFontFamilyResult;
166 }
167
168 /**
169  * @copydoc PlatformAbstraction::GetDefaultFontSize()
170  */
171 const float TestPlatformAbstraction::GetDefaultFontSize() const
172 {
173   mTrace.PushCall("GetDefaultFontSize", "");
174   return mGetDefaultFontSizeResult;
175 }
176
177 const PixelSize TestPlatformAbstraction::GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, const CapsHeight& capsHeight) const
178 {
179   mTrace.PushCall("GetFontLineHeightFromCapsHeight", "");
180   // LineHeight will be bigger than CapsHeight, so return capsHeight + 1
181   return PixelSize(capsHeight + 1);
182 }
183
184 /**
185  * @copydoc PlatformAbstraction::GetGlyphData()
186  */
187
188 Integration::GlyphSet* TestPlatformAbstraction::GetGlyphData ( const Integration::TextResourceType& textRequest,
189                                                                const std::string& fontFamily,
190                                                                bool getImageData) const
191 {
192   if( getImageData )
193   {
194     mTrace.PushCall("GetGlyphData", "getImageData:true");
195   }
196   else
197   {
198     mTrace.PushCall("GetGlyphData", "getImageData:false");
199   }
200
201   // It creates fake metrics for the received characters.
202
203   Integration::GlyphSet* set = new Dali::Integration::GlyphSet();
204   Integration::ImageDataPtr bitmapData;
205
206   std::set<uint32_t> characters;
207
208   for( Integration::TextResourceType::CharacterList::const_iterator it = textRequest.mCharacterList.begin(), endIt = textRequest.mCharacterList.end(); it != endIt; ++it )
209   {
210     if( characters.find( it->character ) == characters.end() )
211     {
212       characters.insert( it->character );
213       Integration::GlyphMetrics character = {it->character, Integration::GlyphMetrics::LOW_QUALITY,  10.0f,  10.0f, 9.0f, 1.0f, 10.0f, it->xPosition, it->yPosition };
214
215       if( getImageData )
216       {
217         bitmapData = Dali::Integration::NewBitmapImageData( 64, 64, Pixel::A8 );
218         PixelBuffer* pixelBuffer = bitmapData->GetBuffer();
219         memset( pixelBuffer, it->character, 64*64 );
220       }
221
222       set->AddCharacter(bitmapData, character);
223     }
224   }
225
226   set->mLineHeight = 10.0f;
227   set->mAscender = 9.0f;
228   set->mUnitsPerEM = 2048.0f/64.0f;
229   set->SetAtlasResourceId( textRequest.mTextureAtlasId );
230   set->mFontHash = textRequest.mFontHash;
231
232   return set;
233 }
234
235 /**
236  * @copydoc PlatformAbstraction::GetCachedGlyphData()
237  */
238
239 Integration::GlyphSet* TestPlatformAbstraction::GetCachedGlyphData( const Integration::TextResourceType& textRequest,
240                                                                     const std::string& fontFamily ) const
241 {
242   mTrace.PushCall("GetCachedGlyphData", "");
243
244   // It creates fake metrics and bitmap for received numeric characters '0' through '9'.
245   Integration::GlyphSet* set = new Dali::Integration::GlyphSet();
246   Integration::ImageDataPtr bitmapData;
247
248   std::set<uint32_t> characters;
249
250   for( Integration::TextResourceType::CharacterList::const_iterator it = textRequest.mCharacterList.begin(), endIt = textRequest.mCharacterList.end(); it != endIt; ++it )
251   {
252     if( it->character >= '0' && it->character <= '9' && characters.find( it->character ) == characters.end() )
253     {
254       characters.insert( it->character );
255       Integration::GlyphMetrics character = {it->character, Integration::GlyphMetrics::HIGH_QUALITY,  10.0f,  10.0f, 9.0f, 1.0f, 10.0f, it->xPosition, it->yPosition };
256
257       bitmapData = Dali::Integration::NewBitmapImageData( 64, 64, Pixel::A8 );
258       PixelBuffer* pixelBuffer = bitmapData->GetBuffer();
259       memset( pixelBuffer, it->character, 64*64 );
260       set->AddCharacter(bitmapData, character);
261     }
262   }
263
264   set->mLineHeight = 10.0f;
265   set->mAscender = 9.0f;
266   set->mUnitsPerEM = 2048.0f/64.0f;
267   set->SetAtlasResourceId( textRequest.mTextureAtlasId );
268   set->mFontHash = textRequest.mFontHash;
269
270   return set;
271 }
272
273
274 /**
275  * @copydoc PlatformAbstraction::GetGlobalMetrics()
276  */
277 void TestPlatformAbstraction::GetGlobalMetrics( const std::string& fontFamily,
278                                                 const std::string& fontStyle,
279                                                 Integration::GlobalMetrics& globalMetrics ) const
280 {
281   globalMetrics.lineHeight = 10.0f;
282   globalMetrics.ascender = 9.0f;
283   globalMetrics.unitsPerEM = 2048.0f/64.0f;
284   globalMetrics.underlineThickness = 2.f;
285   globalMetrics.underlinePosition = 1.f;
286 }
287
288 /**
289  * @copydoc PlatformAbstraction::GetFontPath()
290  */
291 std::string TestPlatformAbstraction::GetFontPath(const std::string& family, bool bold, bool italic) const
292 {
293   mTrace.PushCall("GetFontPath", "");
294   return mGetFontPathResult;
295
296   // Do nothing with arguments
297 }
298
299 /**
300  * @copydoc PlatformAbstraction::SetDpi()
301  */
302 void TestPlatformAbstraction::SetDpi (unsigned int dpiHorizontal, unsigned int dpiVertical)
303 {
304   mTrace.PushCall("SetDpi", "");
305 }
306
307 /**
308  * @copydoc PlatformAbstraction::GetFontFamilyForChars()
309  */
310 std::string TestPlatformAbstraction::GetFontFamilyForChars(const TextArray& charsRequested) const
311 {
312   mTrace.PushCall("GetFontFamilyForChars", "");
313   return mGetDefaultFontFamilyResult;
314 }
315
316 /**
317  * @copydoc PlatformAbstraction::AllGlyphsSupported()
318  */
319 bool TestPlatformAbstraction::AllGlyphsSupported(const std::string& name, const std::string& fontStyle, const TextArray& text) const
320 {
321   mTrace.PushCall("AllGlyphsSupported", "");
322   return true;
323 }
324
325 /**
326  * @copydoc PlatformAbstraction::ValidateFontFamilyName()
327  */
328 bool TestPlatformAbstraction::ValidateFontFamilyName(const std::string& fontFamily, const std::string& fontStyle, bool& isDefaultSystemFont, std::string& closestMatch, std::string& closestStyleMatch) const
329 {
330   mTrace.PushCall("ValidateFontFamilyName", "");
331   return true;
332 }
333
334 /**
335  * @copydoc PlatformAbstraction::GetFontList()
336  */
337 std::vector<std::string> TestPlatformAbstraction::GetFontList( PlatformAbstraction::FontListMode mode ) const
338 {
339   mFontListMode = mode;
340   mTrace.PushCall("ValidateGetFontList", "");
341   std::vector<std::string> fontList;
342   return fontList;
343 }
344
345 /**
346  * @copydoc PlatformAbstraction::LoadFile()
347  */
348 bool TestPlatformAbstraction::LoadFile( const std::string& filename, std::vector< unsigned char >& buffer ) const
349 {
350   mTrace.PushCall("LoadFile", "");
351   if( mLoadFileResult.loadResult )
352   {
353     buffer = mLoadFileResult.buffer;
354   }
355
356   return mLoadFileResult.loadResult;
357 }
358
359 /**
360  * @copydoc PlatformAbstraction::SaveFile()
361  */
362 bool TestPlatformAbstraction::SaveFile(const std::string& filename, std::vector< unsigned char >& buffer) const
363 {
364   mTrace.PushCall("SaveFile", "");
365   return false;
366 }
367
368 void TestPlatformAbstraction::JoinLoaderThreads()
369 {
370   mTrace.PushCall("JoinLoaderThreads", "");
371 }
372
373 void TestPlatformAbstraction::UpdateDefaultsFromDevice()
374 {
375   mTrace.PushCall("UpdateDefaultsFromDevice", "");
376   mGetDefaultFontFamilyResult+=1.0f;
377 }
378
379 Integration::DynamicsFactory* TestPlatformAbstraction::GetDynamicsFactory()
380 {
381   mTrace.PushCall("GetDynamicsFactory", "");
382   return NULL;
383 }
384
385 bool TestPlatformAbstraction::ReadGlobalMetricsFromCache( const std::string& fontFamily,
386                                                           const std::string& fontStyle,
387                                                           Integration::GlobalMetrics& globalMetrics )
388 {
389   mTrace.PushCall("ReadGlobalMetricsFromCacheFile", "");
390   globalMetrics = mReadGlobalMetrics; // Want to copy contents...
391   return mReadGlobalMetricsResult; // Default false (will be set to true on subsequent write)
392 }
393
394 void TestPlatformAbstraction::WriteGlobalMetricsToCache( const std::string& fontFamily,
395                                                          const std::string& fontStyle,
396                                                          const Integration::GlobalMetrics& globalMetrics )
397 {
398   // Copy so next read uses written values. TODO: Could add method
399   // to turn this behaviour off for more extensive testing.
400   mReadGlobalMetrics = globalMetrics;
401   mReadGlobalMetricsResult = true;
402
403   mTrace.PushCall("WriteGlobalMetricsToCacheFile", "");
404 }
405
406 bool TestPlatformAbstraction::ReadMetricsFromCache( const std::string& fontFamily,
407                                                     const std::string& fontStyle,
408                                                     std::vector<Integration::GlyphMetrics>& glyphMetricsContainer )
409 {
410   mTrace.PushCall("ReadMetricsFromCacheFile", "");
411   glyphMetricsContainer = mReadMetrics;
412   return mReadMetricsResult; // Default false (will be set to true on subsequent write)
413 }
414
415 void TestPlatformAbstraction::WriteMetricsToCache( const std::string& fontFamily,
416                                                    const std::string& fontStyle,
417                                                    const Integration::GlyphSet& glyphSet )
418 {
419   // Copy so next read uses written values. TODO: Could add method
420   // to turn this behaviour off for more extensive testing.
421   const Integration::GlyphSet::CharacterList& charList =  glyphSet.GetCharacterList();
422   mReadMetrics.clear();
423   for(std::size_t i=0, end=charList.size(); i<end; ++i)
424   {
425     mReadMetrics.push_back(charList[i].second);
426   }
427   mReadMetricsResult = true;
428
429   mTrace.PushCall("WriteMetricsToCacheFile", "");
430 }
431
432
433 void TestPlatformAbstraction::GetFileNamesFromDirectory( const std::string& directoryName,
434                                                          std::vector<std::string>& fileNames )
435 {
436   fileNames.push_back( std::string( "u1f004.png" ) );
437   fileNames.push_back( std::string( "u1f0cf.png" ) );
438   fileNames.push_back( std::string( "u1f170.png" ) );
439   fileNames.push_back( std::string( "u1f601.png" ) );
440 }
441
442
443 Integration::ImageDataPtr TestPlatformAbstraction::GetGlyphImage( const std::string& fontFamily, const std::string& fontStyle, float fontSize, uint32_t character ) const
444 {
445   Integration::ImageDataPtr image = Dali::Integration::NewBitmapImageData( 1, 1, Pixel::RGBA8888 );
446   mTrace.PushCall("GetGlyphImage", "");
447   return image;
448 }
449
450
451 /** Call this every test */
452 void TestPlatformAbstraction::Initialize()
453 {
454   mTrace.Reset();
455   mTrace.Enable(true);
456   memset(&mResources, 0, sizeof(Resources));
457   memset(&mReadGlobalMetrics, 0, sizeof(Integration::GlobalMetrics));
458   mSeconds=0;
459   mMicroSeconds=0;
460   mIsLoadingResult=false;
461   mGetDefaultFontFamilyResult = "HelveticaNeue";
462   mGetDefaultFontSizeResult=12.0f;
463   mGetFontPathResult="helvetica-12";
464   mReadMetricsResult=false;
465   mReadGlobalMetricsResult=false;
466
467   if(mRequest)
468   {
469     delete mRequest;
470     mRequest = 0;
471   }
472 }
473
474
475 bool TestPlatformAbstraction::WasCalled(TestFuncEnum func)
476 {
477   switch(func)
478   {
479     case GetTimeMicrosecondsFunc:             return mTrace.FindMethod("GetTimeMicroseconds");
480     case SuspendFunc:                         return mTrace.FindMethod("Suspend");
481     case ResumeFunc:                          return mTrace.FindMethod("Resume");
482     case LoadResourceFunc:                    return mTrace.FindMethod("LoadResource");
483     case SaveResourceFunc:                    return mTrace.FindMethod("SaveResource");
484     case LoadFileFunc:                        return mTrace.FindMethod("LoadFile");
485     case SaveFileFunc:                        return mTrace.FindMethod("SaveFile");
486     case CancelLoadFunc:                      return mTrace.FindMethod("CancelLoad");
487     case GetResourcesFunc:                    return mTrace.FindMethod("GetResources");
488     case IsLoadingFunc:                       return mTrace.FindMethod("IsLoading");
489     case GetDefaultFontFamilyFunc:            return mTrace.FindMethod("GetDefaultFontFamily");
490     case GetDefaultFontSizeFunc:              return mTrace.FindMethod("GetDefaultFontSize");
491     case GetFontLineHeightFromCapsHeightFunc: return mTrace.FindMethod("GetFontLineHeightFromCapsHeight");
492     case GetGlyphDataFunc:                    return mTrace.FindMethod("GetGlyphData");
493     case GetCachedGlyphDataFunc:              return mTrace.FindMethod("GetCachedGlyphData");
494     case GetFontPathFunc:                     return mTrace.FindMethod("GetFontPath");
495     case SetDpiFunc:                          return mTrace.FindMethod("SetDpi");
496     case JoinLoaderThreadsFunc:               return mTrace.FindMethod("JoinLoaderThreads");
497     case GetFontFamilyForCharsFunc:           return mTrace.FindMethod("GetFontFamilyForChars");
498     case AllGlyphsSupportedFunc:              return mTrace.FindMethod("AllGlyphsSupported");
499     case ValidateFontFamilyNameFunc:          return mTrace.FindMethod("ValidateFontFamilyName");
500     case UpdateDefaultsFromDeviceFunc:        return mTrace.FindMethod("UpdateDefaultsFromDevice");
501     case GetDynamicsFactoryFunc:              return mTrace.FindMethod("GetDynamicsFactory");
502     case ValidateGetFontListFunc:             return mTrace.FindMethod("ValidateGetFontList");
503     case ReadGlobalMetricsFromCacheFileFunc:  return mTrace.FindMethod("ReadGlobalMetricsFromCacheFile");
504     case WriteGlobalMetricsToCacheFileFunc:   return mTrace.FindMethod("WriteGlobalMetricsToCacheFile");
505     case ReadMetricsFromCacheFileFunc:        return mTrace.FindMethod("ReadMetricsFromCacheFile");
506     case WriteMetricsToCacheFileFunc:         return mTrace.FindMethod("WriteMetricsToCacheFile");
507   }
508   return false;
509 }
510
511 void TestPlatformAbstraction::SetGetTimeMicrosecondsResult(size_t sec, size_t usec)
512 {
513   mSeconds = sec;
514   mMicroSeconds = usec;
515 }
516
517 void TestPlatformAbstraction::IncrementGetTimeResult(size_t milliseconds)
518 {
519   mMicroSeconds += milliseconds * 1000u;
520   unsigned int additionalSeconds = mMicroSeconds / 1000000u;
521
522   mSeconds += additionalSeconds;
523   mMicroSeconds -= additionalSeconds * 1000000u;
524 }
525
526 void TestPlatformAbstraction::SetIsLoadingResult(bool result)
527 {
528   mIsLoadingResult = result;
529 }
530
531 void TestPlatformAbstraction::SetGetDefaultFontFamilyResult(std::string result)
532 {
533   mGetDefaultFontFamilyResult = result;
534 }
535
536 void TestPlatformAbstraction::SetGetDefaultFontSizeResult(float result)
537 {
538   mGetDefaultFontSizeResult = result;
539 }
540
541 void TestPlatformAbstraction::SetGetFontPathResult(std::string& result)
542 {
543   mGetFontPathResult = result;
544 }
545
546 void TestPlatformAbstraction::ClearReadyResources()
547 {
548   memset(&mResources, 0, sizeof(Resources));
549 }
550
551 void TestPlatformAbstraction::SetResourceLoaded(Integration::ResourceId  loadedId,
552                                                 Integration::ResourceTypeId  loadedType,
553                                                 Integration::ResourcePointer loadedResource)
554 {
555   mResources.loaded = true;
556   mResources.loadedId = loadedId;
557   mResources.loadedType = loadedType;
558   mResources.loadedResource = loadedResource;
559 }
560
561 void TestPlatformAbstraction::SetResourceLoadFailed(Integration::ResourceId  id,
562                                                     Integration::ResourceFailure failure)
563 {
564   mResources.loadFailed = true;
565   mResources.loadFailedId = id;
566   mResources.loadFailure = failure;
567 }
568
569 void TestPlatformAbstraction::SetResourceSaved(Integration::ResourceId      savedId,
570                                                Integration::ResourceTypeId  savedType)
571 {
572   mResources.saved = true;
573   mResources.savedId = savedId;
574   mResources.savedType = savedType;
575 }
576
577 void TestPlatformAbstraction::SetResourceSaveFailed(Integration::ResourceId  id,
578                                                     Integration::ResourceFailure failure)
579 {
580   mResources.saveFailed = true;
581   mResources.saveFailedId = id;
582   mResources.saveFailure = failure;
583 }
584
585 Integration::ResourceRequest* TestPlatformAbstraction::GetRequest()
586 {
587   return mRequest;
588 }
589
590 void TestPlatformAbstraction::DiscardRequest()
591 {
592   delete mRequest;
593   mRequest = NULL;
594 }
595
596 void TestPlatformAbstraction::SetClosestImageSize(const Vector2& size)
597 {
598   mClosestSize = size;
599 }
600
601 void TestPlatformAbstraction::SetLoadFileResult( bool result, std::vector< unsigned char >& buffer )
602 {
603   mLoadFileResult.loadResult = result;
604   if( result )
605   {
606     mLoadFileResult.buffer = buffer;
607   }
608 }
609
610 void TestPlatformAbstraction::SetSaveFileResult( bool result )
611 {
612   mSaveFileResult = result;
613 }
614
615 Integration::PlatformAbstraction::FontListMode TestPlatformAbstraction::GetLastFontListMode( )
616 {
617   return mFontListMode;
618 }
619
620 void TestPlatformAbstraction::SetReadGlobalMetricsResult( bool success, Integration::GlobalMetrics& globalMetrics )
621 {
622   mReadGlobalMetricsResult = success;
623   mReadGlobalMetrics = globalMetrics;
624 }
625
626 void TestPlatformAbstraction::SetReadMetricsResult( bool success, std::vector<Integration::GlyphMetrics>& glyphMetricsContainer )
627 {
628   mReadMetricsResult = success;
629   mReadMetrics = glyphMetricsContainer; // copy
630 }
631
632 } // namespace Dali