Commit 37259c312ac648e3835a9e1acf60b4518cab38a8
1 parent
a89e9f22
Introduced DALi Tests for Benchmarks & other simple tests
Change-Id: Ie9cd3109234396757220e5fe0268a7712bf86b31
Showing
15 changed files
with
220 additions
and
12 deletions
build/tizen/.gitignore
build/tizen/CMakeLists.txt
build/tizen/tests-reel/CMakeLists.txt
0 → 100644
| 1 | +SET(TESTS_REEL_SRC_DIR ${ROOT_SRC_DIR}/tests-reel) | |
| 2 | + | |
| 3 | +AUX_SOURCE_DIRECTORY(${TESTS_REEL_SRC_DIR} TESTS_REEL_SRCS) | |
| 4 | + | |
| 5 | +SET(TESTS_REEL_SRCS | |
| 6 | + ${TESTS_REEL_SRCS} | |
| 7 | + "${ROOT_SRC_DIR}/shared/resources-location.cpp" | |
| 8 | + "${ROOT_SRC_DIR}/shared/dali-table-view.cpp" | |
| 9 | +) | |
| 10 | + | |
| 11 | +ADD_EXECUTABLE(dali-tests ${TESTS_REEL_SRCS}) | |
| 12 | +TARGET_LINK_LIBRARIES(dali-tests ${REQUIRED_PKGS_LDFLAGS} -pie) | |
| 13 | + | |
| 14 | +INSTALL(TARGETS dali-tests DESTINATION ${BINDIR}) | |
| 15 | + | ... | ... |
com.samsung.dali-demo.xml
| ... | ... | @@ -13,6 +13,10 @@ |
| 13 | 13 | <icon>/usr/share/icons/dali-examples.png</icon> |
| 14 | 14 | <label>DALi Examples</label> |
| 15 | 15 | </ui-application> |
| 16 | + <ui-application appid="dali-tests" exec="/usr/apps/com.samsung.dali-demo/bin/dali-tests" nodisplay="false" multiple="false" type="c++app" taskmanage="true"> | |
| 17 | + <icon>/usr/share/icons/dali-tests.png</icon> | |
| 18 | + <label>DALi Tests</label> | |
| 19 | + </ui-application> | |
| 16 | 20 | <ui-application appid="hello-world.example" exec="/usr/apps/com.samsung.dali-demo/bin/hello-world.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true"> |
| 17 | 21 | <label>Hello World</label> |
| 18 | 22 | </ui-application> |
| ... | ... | @@ -248,13 +252,22 @@ |
| 248 | 252 | <label>Card Active App</label> |
| 249 | 253 | </ui-application> |
| 250 | 254 | <ui-application appid="image-policies.example" exec="/usr/apps/com.samsung.dali-demo/bin/image-policies.example" nodisplay="true" multiple="false" taskmanage="true" type="c++app"> |
| 251 | - <label>Image Policies</label> | |
| 252 | - </ui-application> | |
| 255 | + <label>Image Policies</label> | |
| 256 | + </ui-application> | |
| 253 | 257 | <ui-application appid="layouting.example" exec="/usr/apps/com.samsung.dali-demo/bin/layouting.example" nodisplay="true" multiple="false" taskmanage="true" type="c++app"> |
| 254 | - <label>Layouting</label> | |
| 255 | - </ui-application> | |
| 258 | + <label>Layouting</label> | |
| 259 | + </ui-application> | |
| 260 | + <ui-application appid="compressed-texture-formats.example" exec="/usr/apps/com.samsung.dali-demo/bin/compressed-texture-formats.example" nodisplay="true" multiple="false" taskmanage="true" type="c++app"> | |
| 261 | + <label>Compressed Texture Formats</label> | |
| 262 | + </ui-application> | |
| 263 | + <ui-application appid="point-mesh.example" exec="/usr/apps/com.samsung.dali-demo/bin/point-mesh.example" nodisplay="true" multiple="false" taskmanage="true" type="c++app"> | |
| 264 | + <label>Point Mesh</label> | |
| 265 | + </ui-application> | |
| 266 | + <ui-application appid="simple-layout.example" exec="/usr/apps/com.samsung.dali-demo/bin/simple-layout.example" nodisplay="true" multiple="false" taskmanage="true" type="c++app"> | |
| 267 | + <label>Simple Layout</label> | |
| 268 | + </ui-application> | |
| 256 | 269 | |
| 257 | - <privileges> | |
| 270 | + <privileges> | |
| 258 | 271 | <privilege>http://tizen.org/privilege/mediastorage</privilege> |
| 259 | 272 | <privilege>http://tizen.org/privilege/externalstorage</privilege> |
| 260 | 273 | <privilege>http://tizen.org/privilege/externalstorage.appdata</privilege> | ... | ... |
examples-reel/dali-examples-reel.cpp
| ... | ... | @@ -48,6 +48,7 @@ int DALI_EXPORT_API main(int argc, char **argv) |
| 48 | 48 | demo.AddExample(Example("flex-container.example", DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND)); |
| 49 | 49 | demo.AddExample(Example("focus-integration.example", DALI_DEMO_STR_TITLE_FOCUS_INTEGRATION)); |
| 50 | 50 | demo.AddExample(Example("gradients.example", DALI_DEMO_STR_TITLE_COLOR_GRADIENT)); |
| 51 | + demo.AddExample(Example("hello-world.example", DALI_DEMO_STR_TITLE_HELLO_WORLD)); | |
| 51 | 52 | demo.AddExample(Example("image-policies.example", DALI_DEMO_STR_TITLE_IMAGE_POLICIES)); |
| 52 | 53 | demo.AddExample(Example("image-scaling-and-filtering.example", DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING)); |
| 53 | 54 | demo.AddExample(Example("image-scaling-irregular-grid.example", DALI_DEMO_STR_TITLE_IMAGE_SCALING)); |
| ... | ... | @@ -66,7 +67,6 @@ int DALI_EXPORT_API main(int argc, char **argv) |
| 66 | 67 | demo.AddExample(Example("pivot.example", DALI_DEMO_STR_TITLE_PIVOT)); |
| 67 | 68 | demo.AddExample(Example("primitive-shapes.example", DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES)); |
| 68 | 69 | demo.AddExample(Example("progress-bar.example", DALI_DEMO_STR_TITLE_PROGRESS_BAR)); |
| 69 | - demo.AddExample(Example("property-notification.example", DALI_DEMO_STR_TITLE_PROPERTY_NOTIFICATION)); | |
| 70 | 70 | demo.AddExample(Example("rendering-basic-light.example", DALI_DEMO_STR_TITLE_BASIC_LIGHT)); |
| 71 | 71 | demo.AddExample(Example("rendering-line.example", DALI_DEMO_STR_TITLE_RENDERING_DRAW_LINE)); |
| 72 | 72 | demo.AddExample(Example("rendering-triangle.example", DALI_DEMO_STR_TITLE_RENDERING_DRAW_TRIANGLE)); |
| ... | ... | @@ -82,8 +82,6 @@ int DALI_EXPORT_API main(int argc, char **argv) |
| 82 | 82 | demo.AddExample(Example("text-label.example", DALI_DEMO_STR_TITLE_TEXT_LABEL)); |
| 83 | 83 | demo.AddExample(Example("text-label-multi-language.example", DALI_DEMO_STR_TITLE_TEXT_LABEL_MULTI_LANGUAGE)); |
| 84 | 84 | demo.AddExample(Example("text-label-emojis.example", DALI_DEMO_STR_TITLE_EMOJI_TEXT)); |
| 85 | - demo.AddExample(Example("text-memory-profiling.example", DALI_DEMO_STR_TITLE_TEXT_MEMORY_PROFILING)); | |
| 86 | - demo.AddExample(Example("text-overlap.example", DALI_DEMO_STR_TITLE_TEXT_OVERLAP)); | |
| 87 | 85 | demo.AddExample(Example("text-scrolling.example", DALI_DEMO_STR_TITLE_TEXT_SCROLLING)); |
| 88 | 86 | demo.AddExample(Example("remote-image-loading.example", DALI_DEMO_STR_TITLE_REMOTE_IMAGE)); |
| 89 | 87 | demo.AddExample(Example("textured-mesh.example", DALI_DEMO_STR_TITLE_TEXTURED_MESH)); | ... | ... |
examples/benchmark/benchmark.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2018 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -244,6 +244,9 @@ public: |
| 244 | 244 | // Respond to a click anywhere on the stage |
| 245 | 245 | stage.GetRootLayer().TouchSignal().Connect( this, &Benchmark::OnTouch ); |
| 246 | 246 | |
| 247 | + // Respond to key events | |
| 248 | + stage.KeyEventSignal().Connect( this, &Benchmark::OnKeyEvent ); | |
| 249 | + | |
| 247 | 250 | if( gUseMesh ) |
| 248 | 251 | { |
| 249 | 252 | CreateMeshActors(); |
| ... | ... | @@ -448,6 +451,17 @@ public: |
| 448 | 451 | mHide.FinishedSignal().Connect( this, &Benchmark::OnAnimationEnd ); |
| 449 | 452 | } |
| 450 | 453 | |
| 454 | + void OnKeyEvent( const KeyEvent& event ) | |
| 455 | + { | |
| 456 | + if( event.state == KeyEvent::Down ) | |
| 457 | + { | |
| 458 | + if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) | |
| 459 | + { | |
| 460 | + mApplication.Quit(); | |
| 461 | + } | |
| 462 | + } | |
| 463 | + } | |
| 464 | + | |
| 451 | 465 | private: |
| 452 | 466 | Application& mApplication; |
| 453 | 467 | ... | ... |
examples/hello-world/hello-world-example.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2018 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -52,6 +52,9 @@ public: |
| 52 | 52 | |
| 53 | 53 | // Respond to a click anywhere on the stage |
| 54 | 54 | stage.GetRootLayer().TouchSignal().Connect( this, &HelloWorldController::OnTouch ); |
| 55 | + | |
| 56 | + // Respond to key events | |
| 57 | + stage.KeyEventSignal().Connect( this, &HelloWorldController::OnKeyEvent ); | |
| 55 | 58 | } |
| 56 | 59 | |
| 57 | 60 | bool OnTouch( Actor actor, const TouchData& touch ) |
| ... | ... | @@ -61,6 +64,17 @@ public: |
| 61 | 64 | return true; |
| 62 | 65 | } |
| 63 | 66 | |
| 67 | + void OnKeyEvent( const KeyEvent& event ) | |
| 68 | + { | |
| 69 | + if( event.state == KeyEvent::Down ) | |
| 70 | + { | |
| 71 | + if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) | |
| 72 | + { | |
| 73 | + mApplication.Quit(); | |
| 74 | + } | |
| 75 | + } | |
| 76 | + } | |
| 77 | + | |
| 64 | 78 | private: |
| 65 | 79 | Application& mApplication; |
| 66 | 80 | }; | ... | ... |
examples/homescreen-benchmark/homescreen-benchmark.cpp
| 1 | 1 | /* |
| 2 | - * Copyright (c) 2017 Samsung Electronics Co., Ltd. | |
| 2 | + * Copyright (c) 2018 Samsung Electronics Co., Ltd. | |
| 3 | 3 | * |
| 4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | 5 | * you may not use this file except in compliance with the License. |
| ... | ... | @@ -184,6 +184,9 @@ public: |
| 184 | 184 | |
| 185 | 185 | // Respond to a click anywhere on the stage. |
| 186 | 186 | stage.GetRootLayer().TouchSignal().Connect( this, &HomescreenBenchmark::OnTouch ); |
| 187 | + | |
| 188 | + // Respond to key events | |
| 189 | + stage.KeyEventSignal().Connect( this, &HomescreenBenchmark::OnKeyEvent ); | |
| 187 | 190 | } |
| 188 | 191 | |
| 189 | 192 | bool OnTouch( Actor actor, const TouchData& touch ) |
| ... | ... | @@ -442,6 +445,17 @@ public: |
| 442 | 445 | } |
| 443 | 446 | } |
| 444 | 447 | |
| 448 | + void OnKeyEvent( const KeyEvent& event ) | |
| 449 | + { | |
| 450 | + if( event.state == KeyEvent::Down ) | |
| 451 | + { | |
| 452 | + if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) | |
| 453 | + { | |
| 454 | + mApplication.Quit(); | |
| 455 | + } | |
| 456 | + } | |
| 457 | + } | |
| 458 | + | |
| 445 | 459 | private: |
| 446 | 460 | |
| 447 | 461 | Application& mApplication; | ... | ... |
examples/perf-scroll/perf-scroll.cpp
| ... | ... | @@ -242,6 +242,9 @@ public: |
| 242 | 242 | // Respond to a click anywhere on the stage |
| 243 | 243 | stage.GetRootLayer().TouchSignal().Connect( this, &PerfScroll::OnTouch ); |
| 244 | 244 | |
| 245 | + // Respond to key events | |
| 246 | + stage.KeyEventSignal().Connect( this, &PerfScroll::OnKeyEvent ); | |
| 247 | + | |
| 245 | 248 | mParent = Actor::New(); |
| 246 | 249 | mParent.SetAnchorPoint( AnchorPoint::TOP_LEFT ); |
| 247 | 250 | stage.Add(mParent); |
| ... | ... | @@ -440,6 +443,17 @@ public: |
| 440 | 443 | mHide.FinishedSignal().Connect( this, &PerfScroll::OnAnimationEnd ); |
| 441 | 444 | } |
| 442 | 445 | |
| 446 | + void OnKeyEvent( const KeyEvent& event ) | |
| 447 | + { | |
| 448 | + if( event.state == KeyEvent::Down ) | |
| 449 | + { | |
| 450 | + if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) | |
| 451 | + { | |
| 452 | + mApplication.Quit(); | |
| 453 | + } | |
| 454 | + } | |
| 455 | + } | |
| 456 | + | |
| 443 | 457 | private: |
| 444 | 458 | Application& mApplication; |
| 445 | 459 | ... | ... |
packaging/com.samsung.dali-demo.spec
| ... | ... | @@ -97,6 +97,7 @@ cp -f %{_builddir}/%{name}-%{version}/%{name}.xml %{buildroot}%{dali_xml_file_di |
| 97 | 97 | mkdir -p %{buildroot}%{dali_icon_dir} |
| 98 | 98 | mv %{buildroot}/%{dali_app_res_dir}/images/%{name}.png %{buildroot}%{dali_icon_dir} |
| 99 | 99 | mv %{buildroot}/%{dali_app_res_dir}/images/dali-examples.png %{buildroot}%{dali_icon_dir} |
| 100 | +mv %{buildroot}/%{dali_app_res_dir}/images/dali-tests.png %{buildroot}%{dali_icon_dir} | |
| 100 | 101 | |
| 101 | 102 | %if 0%{?enable_dali_smack_rules} && !%{with wayland} |
| 102 | 103 | mkdir -p %{buildroot}%{smack_rule_dir} |
| ... | ... | @@ -131,6 +132,7 @@ exit 0 |
| 131 | 132 | %defattr(-,root,root,-) |
| 132 | 133 | %{dali_app_exe_dir}/dali-demo |
| 133 | 134 | %{dali_app_exe_dir}/dali-examples |
| 135 | +%{dali_app_exe_dir}/dali-tests | |
| 134 | 136 | %{dali_app_exe_dir}/*.example |
| 135 | 137 | %{dali_app_exe_dir}/dali-builder |
| 136 | 138 | %{dali_app_res_dir}/images/* | ... | ... |
resources/images/dali-tests.png
0 → 100644
14.8 KB
resources/po/en_GB.po
| ... | ... | @@ -10,6 +10,9 @@ msgstr "CPU Alpha Blending" |
| 10 | 10 | msgid "DALI_DEMO_STR_TITLE_BASIC_LIGHT" |
| 11 | 11 | msgstr "Basic Light" |
| 12 | 12 | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_BENCHMARK" | |
| 14 | +msgstr "ImageView Benchmark" | |
| 15 | + | |
| 13 | 16 | msgid "DALI_DEMO_STR_TITLE_BEZIER_CURVE" |
| 14 | 17 | msgstr "Bezier Curve" |
| 15 | 18 | |
| ... | ... | @@ -28,6 +31,9 @@ msgstr "Call Active" |
| 28 | 31 | msgid "DALI_DEMO_STR_TITLE_CARD_ACTIVE" |
| 29 | 32 | msgstr "Card Active" |
| 30 | 33 | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS" | |
| 35 | +msgstr "Compressed Texture Formats" | |
| 36 | + | |
| 31 | 37 | msgid "DALI_DEMO_STR_TITLE_CLIPPING" |
| 32 | 38 | msgstr "Clipping" |
| 33 | 39 | |
| ... | ... | @@ -55,6 +61,12 @@ msgstr "Emoji Text" |
| 55 | 61 | msgid "DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND" |
| 56 | 62 | msgstr "Flexbox Playground" |
| 57 | 63 | |
| 64 | +msgid "DALI_DEMO_STR_TITLE_HELLO_WORLD" | |
| 65 | +msgstr "Hello World" | |
| 66 | + | |
| 67 | +msgid "DALI_DEMO_STR_TITLE_HOMESCREEN" | |
| 68 | +msgstr "Homescreen Benchmark" | |
| 69 | + | |
| 58 | 70 | msgid "DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING" |
| 59 | 71 | msgstr "Image Fitting and Sampling" |
| 60 | 72 | |
| ... | ... | @@ -109,6 +121,12 @@ msgstr "Native Image Source" |
| 109 | 121 | msgid "DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE" |
| 110 | 122 | msgstr "Negotiate Size" |
| 111 | 123 | |
| 124 | +msgid "DALI_DEMO_STR_TITLE_PERF_SCROLL" | |
| 125 | +msgstr "Scrolling Performance" | |
| 126 | + | |
| 127 | +msgid "DALI_DEMO_STR_TITLE_POINT_MESH" | |
| 128 | +msgstr "Point Mesh" | |
| 129 | + | |
| 112 | 130 | msgid "DALI_DEMO_STR_TITLE_POPUP" |
| 113 | 131 | msgstr "Popup" |
| 114 | 132 | |
| ... | ... | @@ -133,6 +151,9 @@ msgstr "Refraction" |
| 133 | 151 | msgid "DALI_DEMO_STR_TITLE_RENDERER_STENCIL" |
| 134 | 152 | msgstr "Renderer Stencil" |
| 135 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT" | |
| 155 | +msgstr "Simple Layout" | |
| 156 | + | |
| 136 | 157 | msgid "DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL" |
| 137 | 158 | msgstr "Simple Visuals Control" |
| 138 | 159 | |
| ... | ... | @@ -157,6 +178,9 @@ msgstr "Text Editor" |
| 157 | 178 | msgid "DALI_DEMO_STR_TITLE_TEXT_FIELD" |
| 158 | 179 | msgstr "Text Field" |
| 159 | 180 | |
| 181 | +msgid "DALI_DEMO_STR_TITLE_TEXT_FONTS" | |
| 182 | +msgstr "Text Fonts" | |
| 183 | + | |
| 160 | 184 | msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" |
| 161 | 185 | msgstr "Text Label" |
| 162 | 186 | ... | ... |
resources/po/en_US.po
| ... | ... | @@ -10,6 +10,9 @@ msgstr "CPU Alpha Blending" |
| 10 | 10 | msgid "DALI_DEMO_STR_TITLE_BASIC_LIGHT" |
| 11 | 11 | msgstr "Basic Light" |
| 12 | 12 | |
| 13 | +msgid "DALI_DEMO_STR_TITLE_BENCHMARK" | |
| 14 | +msgstr "ImageView Benchmark" | |
| 15 | + | |
| 13 | 16 | msgid "DALI_DEMO_STR_TITLE_BEZIER_CURVE" |
| 14 | 17 | msgstr "Bezier Curve" |
| 15 | 18 | |
| ... | ... | @@ -28,6 +31,9 @@ msgstr "Call Active" |
| 28 | 31 | msgid "DALI_DEMO_STR_TITLE_CARD_ACTIVE" |
| 29 | 32 | msgstr "Card Active" |
| 30 | 33 | |
| 34 | +msgid "DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS" | |
| 35 | +msgstr "Compressed Texture Formats" | |
| 36 | + | |
| 31 | 37 | msgid "DALI_DEMO_STR_TITLE_CLIPPING" |
| 32 | 38 | msgstr "Clipping" |
| 33 | 39 | |
| ... | ... | @@ -55,6 +61,12 @@ msgstr "Emoji Text" |
| 55 | 61 | msgid "DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND" |
| 56 | 62 | msgstr "Flexbox Playground" |
| 57 | 63 | |
| 64 | +msgid "DALI_DEMO_STR_TITLE_HELLO_WORLD" | |
| 65 | +msgstr "Hello World" | |
| 66 | + | |
| 67 | +msgid "DALI_DEMO_STR_TITLE_HOMESCREEN" | |
| 68 | +msgstr "Homescreen Benchmark" | |
| 69 | + | |
| 58 | 70 | msgid "DALI_DEMO_STR_TITLE_IMAGE_POLICIES" |
| 59 | 71 | msgstr "Image Policies" |
| 60 | 72 | |
| ... | ... | @@ -112,6 +124,12 @@ msgstr "Native Image Source" |
| 112 | 124 | msgid "DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE" |
| 113 | 125 | msgstr "Negotiate Size" |
| 114 | 126 | |
| 127 | +msgid "DALI_DEMO_STR_TITLE_PERF_SCROLL" | |
| 128 | +msgstr "Scrolling Performance" | |
| 129 | + | |
| 130 | +msgid "DALI_DEMO_STR_TITLE_POINT_MESH" | |
| 131 | +msgstr "Point Mesh" | |
| 132 | + | |
| 115 | 133 | msgid "DALI_DEMO_STR_TITLE_POPUP" |
| 116 | 134 | msgstr "Popup" |
| 117 | 135 | |
| ... | ... | @@ -136,6 +154,9 @@ msgstr "Refraction" |
| 136 | 154 | msgid "DALI_DEMO_STR_TITLE_RENDERER_STENCIL" |
| 137 | 155 | msgstr "Renderer Stencil" |
| 138 | 156 | |
| 157 | +msgid "DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT" | |
| 158 | +msgstr "Simple Layout" | |
| 159 | + | |
| 139 | 160 | msgid "DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL" |
| 140 | 161 | msgstr "Simple Visuals Control" |
| 141 | 162 | |
| ... | ... | @@ -160,6 +181,9 @@ msgstr "Text Editor" |
| 160 | 181 | msgid "DALI_DEMO_STR_TITLE_TEXT_FIELD" |
| 161 | 182 | msgstr "Text Field" |
| 162 | 183 | |
| 184 | +msgid "DALI_DEMO_STR_TITLE_TEXT_FONTS" | |
| 185 | +msgstr "Text Fonts" | |
| 186 | + | |
| 163 | 187 | msgid "DALI_DEMO_STR_TITLE_TEXT_LABEL" |
| 164 | 188 | msgstr "Text Label" |
| 165 | 189 | ... | ... |
shared/dali-demo-strings.h
| ... | ... | @@ -36,6 +36,7 @@ extern "C" |
| 36 | 36 | #define DALI_DEMO_STR_TITLE_ANIMATED_SHAPES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_ANIMATED_SHAPES") |
| 37 | 37 | #define DALI_DEMO_STR_TITLE_ALPHA_BLENDING_CPU dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_ALPHA_BLENDING_CPU") |
| 38 | 38 | #define DALI_DEMO_STR_TITLE_BASIC_LIGHT dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BASIC_LIGHT") |
| 39 | +#define DALI_DEMO_STR_TITLE_BENCHMARK dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BENCHMARK") | |
| 39 | 40 | #define DALI_DEMO_STR_TITLE_BEZIER_CURVE dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BEZIER_CURVE") |
| 40 | 41 | #define DALI_DEMO_STR_TITLE_BLOCKS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BLOCKS") |
| 41 | 42 | #define DALI_DEMO_STR_TITLE_BUBBLES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_BUBBLES") |
| ... | ... | @@ -45,6 +46,7 @@ extern "C" |
| 45 | 46 | #define DALI_DEMO_STR_TITLE_CLIPPING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CLIPPING") |
| 46 | 47 | #define DALI_DEMO_STR_TITLE_CLIPPING_DRAW_ORDER dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CLIPPING_DRAW_ORDER") |
| 47 | 48 | #define DALI_DEMO_STR_TITLE_COLOR_GRADIENT dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_COLOR_GRADIENT") |
| 49 | +#define DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS") | |
| 48 | 50 | #define DALI_DEMO_STR_TITLE_CONTACT_CARDS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CONTACT_CARDS") |
| 49 | 51 | #define DALI_DEMO_STR_TITLE_CUBE_TRANSITION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_CUBE_TRANSITION") |
| 50 | 52 | #define DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION") |
| ... | ... | @@ -53,6 +55,8 @@ extern "C" |
| 53 | 55 | #define DALI_DEMO_STR_TITLE_FPP_GAME dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FPP_GAME") |
| 54 | 56 | #define DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND") |
| 55 | 57 | #define DALI_DEMO_STR_TITLE_FOCUS_INTEGRATION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FOCUS_INTEGRATION") |
| 58 | +#define DALI_DEMO_STR_TITLE_HELLO_WORLD dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_HELLO_WORLD") | |
| 59 | +#define DALI_DEMO_STR_TITLE_HOMESCREEN dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_HOMESCREEN") | |
| 56 | 60 | #define DALI_DEMO_STR_TITLE_IMAGE_POLICIES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_POLICIES") |
| 57 | 61 | #define DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING") |
| 58 | 62 | #define DALI_DEMO_STR_TITLE_IMAGE_SCALING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_SCALING") |
| ... | ... | @@ -73,6 +77,8 @@ extern "C" |
| 73 | 77 | #define DALI_DEMO_STR_TITLE_NATIVE_IMAGE_SOURCE dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_NATIVE_IMAGE_SOURCE") |
| 74 | 78 | #define DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE") |
| 75 | 79 | #define DALI_DEMO_STR_TITLE_PBR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PBR") |
| 80 | +#define DALI_DEMO_STR_TITLE_PERF_SCROLL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PERF_SCROLL") | |
| 81 | +#define DALI_DEMO_STR_TITLE_POINT_MESH dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_POINT_MESH") | |
| 76 | 82 | #define DALI_DEMO_STR_TITLE_POPUP dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_POPUP") |
| 77 | 83 | #define DALI_DEMO_STR_TITLE_PIVOT dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PIVOT") |
| 78 | 84 | #define DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES") |
| ... | ... | @@ -87,7 +93,8 @@ extern "C" |
| 87 | 93 | #define DALI_DEMO_STR_TITLE_RENDERING_RADIAL_PROGRESS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_RENDERING_RADIAL_PROGRESS") |
| 88 | 94 | #define DALI_DEMO_STR_TITLE_RENDERING_RAY_MARCHING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_RENDERING_RAY_MARCHING") |
| 89 | 95 | #define DALI_DEMO_STR_TITLE_RENDERER_STENCIL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_RENDERER_STENCIL") |
| 90 | -#define DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SIMPLE_VISUALS") | |
| 96 | +#define DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT") | |
| 97 | +#define DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL") | |
| 91 | 98 | #define DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI") |
| 92 | 99 | #define DALI_DEMO_STR_TITLE_SCROLL_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SCROLL_VIEW") |
| 93 | 100 | #define DALI_DEMO_STR_TITLE_SKYBOX dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SKYBOX") |
| ... | ... | @@ -96,6 +103,7 @@ extern "C" |
| 96 | 103 | #define DALI_DEMO_STR_TITLE_TEXTURED_MESH dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXTURED_MESH") |
| 97 | 104 | #define DALI_DEMO_STR_TITLE_TEXT_EDITOR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_EDITOR") |
| 98 | 105 | #define DALI_DEMO_STR_TITLE_TEXT_FIELD dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_FIELD") |
| 106 | +#define DALI_DEMO_STR_TITLE_TEXT_FONTS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_FONTS") | |
| 99 | 107 | #define DALI_DEMO_STR_TITLE_TEXT_LABEL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_LABEL") |
| 100 | 108 | #define DALI_DEMO_STR_TITLE_TEXT_MEMORY_PROFILING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_MEMORY_PROFILING") |
| 101 | 109 | #define DALI_DEMO_STR_TITLE_TEXT_OVERLAP dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_OVERLAP") |
| ... | ... | @@ -111,6 +119,7 @@ extern "C" |
| 111 | 119 | #define DALI_DEMO_STR_TITLE_ANIMATED_SHAPES "Animated Shapes" |
| 112 | 120 | #define DALI_DEMO_STR_TITLE_ALPHA_BLENDING_CPU "CPU Alpha Blending" |
| 113 | 121 | #define DALI_DEMO_STR_TITLE_BASIC_LIGHT "Basic Light" |
| 122 | +#define DALI_DEMO_STR_TITLE_BENCHMARK "ImageView Benchmark" | |
| 114 | 123 | #define DALI_DEMO_STR_TITLE_BEZIER_CURVE "Alpha Function Bezier Curve" |
| 115 | 124 | #define DALI_DEMO_STR_TITLE_BLOCKS "Blocks" |
| 116 | 125 | #define DALI_DEMO_STR_TITLE_BUBBLES "Bubbles" |
| ... | ... | @@ -120,6 +129,7 @@ extern "C" |
| 120 | 129 | #define DALI_DEMO_STR_TITLE_CLIPPING "Clipping" |
| 121 | 130 | #define DALI_DEMO_STR_TITLE_CLIPPING_DRAW_ORDER "Clipping Draw Order" |
| 122 | 131 | #define DALI_DEMO_STR_TITLE_COLOR_GRADIENT "Color Gradient" |
| 132 | +#define DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS "Compressed Texture Formats" | |
| 123 | 133 | #define DALI_DEMO_STR_TITLE_CONTACT_CARDS "Contact Cards" |
| 124 | 134 | #define DALI_DEMO_STR_TITLE_CUBE_TRANSITION "Cube Effect" |
| 125 | 135 | #define DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION "Dissolve Effect" |
| ... | ... | @@ -128,6 +138,8 @@ extern "C" |
| 128 | 138 | #define DALI_DEMO_STR_TITLE_FPP_GAME "First Person Game" |
| 129 | 139 | #define DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND "Flexbox Playground" |
| 130 | 140 | #define DALI_DEMO_STR_TITLE_FOCUS_INTEGRATION "Focus Integration" |
| 141 | +#define DALI_DEMO_STR_TITLE_HELLO_WORLD "Hello World" | |
| 142 | +#define DALI_DEMO_STR_TITLE_HOMESCREEN "Homescreen Benchmark" | |
| 131 | 143 | #define DALI_DEMO_STR_TITLE_IMAGE_POLICIES "Image Policies" |
| 132 | 144 | #define DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING "Image Fitting and Sampling" |
| 133 | 145 | #define DALI_DEMO_STR_TITLE_IMAGE_SCALING "Image Scaling Grid" |
| ... | ... | @@ -148,6 +160,8 @@ extern "C" |
| 148 | 160 | #define DALI_DEMO_STR_TITLE_NATIVE_IMAGE_SOURCE "Native Image Source" |
| 149 | 161 | #define DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE "Negotiate Size" |
| 150 | 162 | #define DALI_DEMO_STR_TITLE_PBR "PBR" |
| 163 | +#define DALI_DEMO_STR_TITLE_PERF_SCROLL "Scrolling Performance" | |
| 164 | +#define DALI_DEMO_STR_TITLE_POINT_MESH "Point Mesh" | |
| 151 | 165 | #define DALI_DEMO_STR_TITLE_POPUP "Popup" |
| 152 | 166 | #define DALI_DEMO_STR_TITLE_PIVOT "Pivot" |
| 153 | 167 | #define DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES "Primitive Shapes" |
| ... | ... | @@ -162,6 +176,7 @@ extern "C" |
| 162 | 176 | #define DALI_DEMO_STR_TITLE_RENDERING_RAY_MARCHING "Ray Marching" |
| 163 | 177 | #define DALI_DEMO_STR_TITLE_RENDERING_RADIAL_PROGRESS "Radial Progress" |
| 164 | 178 | #define DALI_DEMO_STR_TITLE_RENDERER_STENCIL "Renderer Stencils" |
| 179 | +#define DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT "Simple Layout" | |
| 165 | 180 | #define DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL "Simple Visuals Control" |
| 166 | 181 | #define DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI "Script Based UI" |
| 167 | 182 | #define DALI_DEMO_STR_TITLE_SCROLL_VIEW "Scroll View" |
| ... | ... | @@ -171,6 +186,7 @@ extern "C" |
| 171 | 186 | #define DALI_DEMO_STR_TITLE_TEXTURED_MESH "Mesh Texture" |
| 172 | 187 | #define DALI_DEMO_STR_TITLE_TEXT_EDITOR "Text Editor" |
| 173 | 188 | #define DALI_DEMO_STR_TITLE_TEXT_FIELD "Text Field" |
| 189 | +#define DALI_DEMO_STR_TITLE_TEXT_FONTS "Text Fonts" | |
| 174 | 190 | #define DALI_DEMO_STR_TITLE_TEXT_LABEL "Text Label" |
| 175 | 191 | #define DALI_DEMO_STR_TITLE_TEXT_MEMORY_PROFILING "Text Memory Profiling" |
| 176 | 192 | #define DALI_DEMO_STR_TITLE_TEXT_OVERLAP "Text Overlap" | ... | ... |
tests-reel/dali-tests-reel.cpp
0 → 100644
| 1 | +/* | |
| 2 | + * Copyright (c) 2018 Samsung Electronics Co., Ltd. | |
| 3 | + * | |
| 4 | + * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0 | |
| 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 | + | |
| 18 | +// EXTERNAL INCLUDES | |
| 19 | +#include <dali/dali.h> | |
| 20 | + | |
| 21 | +// INTERNAL INCLUDES | |
| 22 | +#include "shared/dali-table-view.h" | |
| 23 | +#include "shared/dali-demo-strings.h" | |
| 24 | + | |
| 25 | +using namespace Dali; | |
| 26 | + | |
| 27 | +int DALI_EXPORT_API main(int argc, char **argv) | |
| 28 | +{ | |
| 29 | + // Configure gettext for internalization | |
| 30 | + bindtextdomain(DALI_DEMO_DOMAIN_LOCAL, DEMO_LOCALE_DIR); | |
| 31 | + textdomain(DALI_DEMO_DOMAIN_LOCAL); | |
| 32 | + setlocale(LC_ALL, DEMO_LANG); | |
| 33 | + | |
| 34 | + Application app = Application::New(&argc, &argv, DEMO_THEME_PATH); | |
| 35 | + | |
| 36 | + // Create the demo launcher | |
| 37 | + DaliTableView demo(app); | |
| 38 | + | |
| 39 | + demo.AddExample(Example("benchmark.example", DALI_DEMO_STR_TITLE_BENCHMARK)); | |
| 40 | + demo.AddExample(Example("compressed-texture-formats.example", DALI_DEMO_STR_TITLE_COMPRESSED_TEXTURE_FORMATS)); | |
| 41 | + demo.AddExample(Example("homescreen-benchmark.example", DALI_DEMO_STR_TITLE_HOMESCREEN)); | |
| 42 | + demo.AddExample(Example("perf-scroll.example", DALI_DEMO_STR_TITLE_PERF_SCROLL)); | |
| 43 | + demo.AddExample(Example("point-mesh.example", DALI_DEMO_STR_TITLE_POINT_MESH)); | |
| 44 | + demo.AddExample(Example("property-notification.example", DALI_DEMO_STR_TITLE_PROPERTY_NOTIFICATION)); | |
| 45 | + demo.AddExample(Example("simple-layout.example", DALI_DEMO_STR_TITLE_SIMPLE_LAYOUT)); | |
| 46 | + demo.AddExample(Example("simple-visuals-control.example", DALI_DEMO_STR_TITLE_SIMPLE_VISUALS_CONTROL)); | |
| 47 | + demo.AddExample(Example("text-fonts.example", DALI_DEMO_STR_TITLE_TEXT_FONTS)); | |
| 48 | + demo.AddExample(Example("text-memory-profiling.example", DALI_DEMO_STR_TITLE_TEXT_MEMORY_PROFILING)); | |
| 49 | + demo.AddExample(Example("text-overlap.example", DALI_DEMO_STR_TITLE_TEXT_OVERLAP)); | |
| 50 | + demo.AddExample(Example("visual-transitions.example", DALI_DEMO_STR_TITLE_VISUAL_TRANSITIONS)); | |
| 51 | + | |
| 52 | + demo.SortAlphabetically( true ); | |
| 53 | + | |
| 54 | + // Start the event loop | |
| 55 | + app.MainLoop(); | |
| 56 | + | |
| 57 | + return 0; | |
| 58 | +} | ... | ... |