commit d3d604edff1407831bef8643e74831861a7140a2 Author: Jani Launonen Date: Fri Feb 5 16:49:41 2021 +0200 Tests: Fix stale pointer Fixed stale pointer case, where the underlying QByteArray might have reallocated an array where we had a pointer pointing to. Added few comments for later times, why the header pointer is set again. Change-Id: If1d795bb41bbf8fb81346e1b12b1e3c620925710 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 6915db4ff691503634cdd70022d8f937538113c2 Author: Teemu Holappa Date: Fri Feb 5 15:27:05 2021 +0200 Fix memory corruption issue in testQSafeFontVerifyTag Change-Id: I267c24a211d18dc880f1ba2cd39e206cae8c4910 Reviewed-by: Asmo Saarela M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 70314aff8ca5d3a1f0b3621e9fecf8c8273a8898 Author: Teemu Holappa Date: Thu Feb 4 14:19:04 2021 +0200 Fix animation parsing The animation and transitions parsing was restricted to a root and safe items only. It's changed so that all the subnodes are gone through instead. Task-number: QSR-1085 Change-Id: I9c90108f03e455654b154b82a727fdcc66b9c20d Reviewed-by: Asmo Saarela M tests/auto/integrationtest/referenceimages/twoStatesReference_frame0.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame1.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame10.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame11.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame2.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame3.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame4.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame5.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame6.png M tests/auto/integrationtest/referenceimages/twoStatesReference_frame7.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame8.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame9.png M tests/auto/integrationtest/testdata.qrc M tests/auto/integrationtest/testsources/TwoTransitions.qml M tests/auto/integrationtest/tst_integration.cpp commit 45866274229b23e385e7525c39e793f861f513c0 Author: Teemu Holappa Date: Wed Jan 27 11:12:45 2021 +0200 Set visibility to 'on' by default Task-number: QSR-1057 Change-Id: I5702ee04fa04ba5dff871649556c354fce26bc3b Reviewed-by: Asmo Saarela M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame0.png M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 4825cef5dcda6ad42b6e7ecd98cd091c7b747898 Author: Jani Launonen Date: Mon Jan 25 15:26:50 2021 +0200 Test: void cast unused QStrings There are few unused QStrings returned from generateData() function in tst_qsafelayoutgenerator.cpp. Those were void casted so that Cland-Tidy and Clazy are happy now. Change-Id: I80bc6a6814e2a8f594846eeed6a4e645ce68ef2e Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 56954c4a8e73d84abcc0c1c95b675b9e7458080d Author: Jani Launonen Date: Mon Jan 25 15:21:14 2021 +0200 Tool, tests: Add compression ration test Added a test into tst_qsafelayoutgenerator.cpp which generates 64x64 icon worth of random data, that is most difficult to compress by RLE32 algorithm as the likely to have runs of same 32-bit word sequently is very low. The test checks that the compressed data does not exceed the size of the input data, i.e. fulfills the requirement 3.3.d, the algorithm RLE32 must not increase the data size. The compressed data size can be equal in size to the input as there is no requirement that the RLE32 successfully compressed any arbitrary data. Task-number: QSR-1050 Change-Id: Ida3c92b399b1dc17723a97f457495492be1b3de6 Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 3ff34cd9a4218729486111aeb7ef3eef9023091f Author: Jani Launonen Date: Wed Jan 20 15:29:37 2021 +0200 Runtime, tests: Fix benchmark printing Framebuffer format was not printed and by changing the order the parameters are printed, it is now somewhat easier to read. Task-number: QSR-812 Change-Id: I8794dcf24d989c88af18fae7822441743a0a46a4 Reviewed-by: Teemu Holappa M tests/auto/benchmark/tst_benchmark.cpp commit 43e45285315f19edc56ef11b5c9d077b91e9340d Author: Jani Launonen Date: Mon Jan 18 12:02:33 2021 +0200 Runtime, tests: Improve benchmarks to cover more cases drawBitmap() is now run for combination of alphas, colors, framebuffer formats for uncompressed and compressed file. Task-number: QSR-812 Change-Id: I29b434d57f4a3e775f2f24e84af88ef5745d3832 Reviewed-by: Teemu Holappa D tests/auto/benchmark/testData/iso_grs_7000_4_0011_64x64_000000.srb.compressed D tests/auto/benchmark/testData/iso_grs_7000_4_0011_64x64_000000.srb.decompressed A tests/auto/benchmark/testData/iso_grs_7000_4_1555_60x60_face20.srb A tests/auto/benchmark/testData/iso_grs_7000_4_1555_60x60_face20.srb.uncompressed M tests/auto/benchmark/tst_benchmark.cpp commit 88e20c4425f28af1b97abdd47dc23e824f682194 Author: Teemu Holappa Date: Mon Jan 18 21:34:43 2021 +0200 Fix layout tool exception cases Fixed case where the item width or height is set to 0 in state definition. Fixed case where duration for the transition is not set. Fixed case where both x and width are set so that item goes out of the window boundary. Fixed case where both y and height are set so that item goes out of the window boundary. Fixed case where the only width or height is set. Change-Id: I33c51790d8b7d6cf89eb9f35059fa66c8f045eea Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 103b99c07ee2bd4659dc2be212e9f6f59cfcb77f Author: Tarja Sundqvist Date: Mon Jan 18 11:27:07 2021 +0200 Update license headers Task-number: QSR-1022 Change-Id: I356c1b8eadd1fcf784aeabbae7a8508133dbb7fa Reviewed-by: Asmo Saarela M tests/auto/benchmark/tst_benchmark.cpp M tests/auto/common/testcoverageobject.cpp M tests/auto/common/testcoverageobject.h M tests/auto/common/testwindow.cpp M tests/auto/common/testwindow.h M tests/auto/eventhandler/INTEGRITY.h M tests/auto/eventhandler/data/MainForm.ui.qml M tests/auto/eventhandler/tst_eventhandler.cpp M tests/auto/integrationtest/testsources/OpacityTest.qml M tests/auto/integrationtest/testsources/ScaleTest.qml M tests/auto/integrationtest/testsources/TextTest.qml M tests/auto/integrationtest/testsources/TimelineTest.qml M tests/auto/integrationtest/testsources/TwoTransitions.qml M tests/auto/integrationtest/tst_integration.cpp M tests/auto/messageplugin/tst_messageplugin.cpp M tests/auto/qpf2crash/tst_qpf2crash.cpp M tests/auto/safelayout/iso-icons/BitmapFormatsTest.qml M tests/auto/safelayout/iso-icons/RelativePosition.qml M tests/auto/safelayout/iso-icons/ScaleTest.qml M tests/auto/safelayout/iso-icons/TimelineTest.qml M tests/auto/safelayout/iso-icons/TransitionsTest1.qml M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/safercc/tst_rcc.cpp M tests/auto/saferenderer/define_test_case.py M tests/auto/saferenderer/qpf2.cpp M tests/auto/saferenderer/qpf2.h M tests/auto/saferenderer/testdata/qml/MainForm.ui.qml M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b27ecbe1fd9067717ad4189d6af5b1f44c126176 Author: Teemu Holappa Date: Mon Jan 11 11:46:30 2021 +0200 Fix coverage measurements Change-Id: I8d5a7a058071b9b3738d0c26c52e7d3210a8106b Reviewed-by: Asmo Saarela M tests/auto/codecoverage.pri commit fb934d46671f159cc63b89b53f0b79cbf526342e Author: Teemu Holappa Date: Wed Dec 30 15:48:24 2020 +0200 Fix layout reading constraints The maximum item count was actually restricted to a half in case the items contains the state as well. Change-Id: I13f0c0ff7701a0e2f084c1b4b63b821247c165c8 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 2346f66ffefe91916dc05a953e23432c6726f841 Author: Jani Launonen Date: Thu Jan 7 16:48:19 2021 +0200 Tests: Create benchmark test for QSafeRenderer::drawBitmap() Made a benchmark test for measuring QSafeRenderer::drawBitmap() performance with compressed and uncompressed icon in different framebuffer formats. Task-number: QSR-812 Change-Id: Ibeb100fe61895d814e387ef36286f13f97908306 Reviewed-by: Asmo Saarela Reviewed-by: Teemu Holappa M tests/auto/auto.pro A tests/auto/benchmark/benchmark.pro A tests/auto/benchmark/testData/iso_grs_7000_4_0011_64x64_000000.srb.compressed A tests/auto/benchmark/testData/iso_grs_7000_4_0011_64x64_000000.srb.decompressed A tests/auto/benchmark/tst_benchmark.cpp commit 2e3e2c7090036fd8af8a1dba9c967f5aa848fe4c Author: Jani Launonen Date: Mon Dec 7 18:25:02 2020 +0200 Runtime, Tests: Fix QSafeFile coverage and found issue m_fileDescriptor was unnecessarily set to -1 in readData() function and thus would leave file not closed in destructor, which checked whether the m_fileDescriptor was already -1. Added test case(s) for QSafeFile testing to improve coverage even if somewhat redundant. Just for completeness sake. Fixed few Clang-Tidy & Clazy reported issues and reviewed some. Change-Id: I64abeba7349099efd27cee895634308f2268e236 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 2480f598de2979374a3f40424a4a13c076be2961 Author: Teemu Holappa Date: Tue Dec 29 14:33:28 2020 +0200 Fix compiler error in tests in the big endian environment Change-Id: Ibf1712e99cefa75666bce85b33cc75a4a0787f90 Reviewed-by: Asmo Saarela M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 4a82b953dffa6098100797654bd815ece1cb890c Author: Teemu Holappa Date: Tue Dec 22 11:56:08 2020 +0200 Add error messages for the exception cases in tooling Added error output if the SafeText is scaled in the state change. Task-number: QSR-989 Change-Id: I6e2252976bfbc67d67c24fffd65df97d731b2bf1 Reviewed-by: Samuli Piippo M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit e73dfc7730b0328eede6662b1bf8bf393636037b Author: Teemu Holappa Date: Thu Dec 17 13:49:22 2020 +0200 Fix the transition handling The layout tool ignores the target property in the Transition element. The runtime resets the m_inTransition flag if there are several states to be handled. Added integration test case for the case. Task-number: QSR-980 Change-Id: Ice7b83b615759750ce0987787620fd6a962b3650 Reviewed-by: Jani Launonen M tests/auto/integrationtest/integrationtest.pro A tests/auto/integrationtest/referenceimages/twoStatesReference_frame0.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame1.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame2.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame3.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame4.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame5.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame6.png A tests/auto/integrationtest/referenceimages/twoStatesReference_frame7.png M tests/auto/integrationtest/testdata.qrc A tests/auto/integrationtest/testsources/TwoTransitions.qml A tests/auto/integrationtest/testsources/iso_grs_7000_4_0083.dat A tests/auto/integrationtest/testsources/iso_grs_7000_4_0238.dat M tests/auto/integrationtest/tst_integration.cpp commit f09dba27fc19cdc372b72b685d31418aecb7c6d9 Author: Teemu Holappa Date: Thu Dec 17 22:07:21 2020 +0200 Fix the boundary calculations in layout tool Task-number: QSR-954 Change-Id: Ic25934b113ca2ff79eff4cc65f56012e19d698a7 Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 8eee871df9b30151689f9c2305b5dc6ca9255d11 Author: Teemu Holappa Date: Mon Dec 7 13:08:46 2020 +0200 Fix complexity the index Removed the complex switch case structures from the QSafeEvent. Added exception for the unknown event to the state manager. Added test case. Change-Id: I672735cd3bcb1d9260e79f5b24b34d2b1a24a1be Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit bb6575a54f6c7512003351a6c43b922573fd9bf2 Author: Teemu Holappa Date: Wed Dec 9 13:02:37 2020 +0200 Add new surface format ARGB32 Change-Id: I2784bc8cca6be0980e09786d5a5d06593a90fd83 Reviewed-by: Jani Launonen M tests/auto/common/testwindow.h M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 88848478ea61a507ea130892995a46dd34ada5cd Author: Teemu Holappa Date: Fri Dec 11 15:21:28 2020 +0200 Add possibility to set the window position In certain use cases there are no needed to allocate full screen buffer for the safety data. For those cases the layout position should be possible to change. The layout file and QSR runtime supports to set the layout position. The parser failed to calculate positions if the layout positions does not equal to 0. Now the root element position is parsed and stored to the layout file. The child element positions are not mapped against the global position but related to the root element origin. Added API to set the layout position to the adaptation class. Changed the adaptation classes to set the window position accordinly. Task-number: QSR-954 Change-Id: I641f3ebb1d1b9d724ffd6b2302a1ce2295296a1f Reviewed-by: Jani Launonen M tests/auto/integrationtest/testsources/TextTest.qml M tests/auto/integrationtest/tst_integration.cpp M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 800453f2f9fbe7497719f6728e5eac4675e76c23 Author: Teemu Holappa Date: Wed Dec 16 20:22:10 2020 +0200 Fix text position calculations in QSafeTextLayout Casting from the signed in to the unsigned was done without checking. Updated test case to unit tests to cover the case. Task-number: QSR-978 Change-Id: Ib40df4a5c22be59ccedee00197715923d268a857 Reviewed-by: Jani Launonen M tests/auto/saferenderer/testdata.qrc M tests/auto/saferenderer/testdata/drawtextreference.png A tests/auto/saferenderer/testdata/lato_32_50.qpf2 M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 595af8f83601b7d7e7e92b50c02069740857a2fa Author: Teemu Holappa Date: Wed Dec 9 09:13:40 2020 +0200 Remove unnecessary cstdalign includes from tst_integration Change-Id: I4685a77335a1a03d384aacb6b0011f92ae9f1d44 Reviewed-by: Jani Launonen M tests/auto/integrationtest/tst_integration.cpp commit e897cd8b767b5d71602401d02b105dc734b00472 Author: Teemu Holappa Date: Mon Dec 7 13:54:59 2020 +0200 Fix QSafeBitmap reader exception documentation Removed unused exception IndexOutOfBounds. Added missing documentation about the QSafeBitmapReader class. Change-Id: I81af786f85d57d39af5b3d93d7ea628bbb7537c5 Reviewed-by: Tarja Sundqvist M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 990c78dd2097413ef144795cf2323885e3153255 Author: Teemu Holappa Date: Mon Dec 7 12:42:43 2020 +0200 Improve QSafeTextLayout code coverage Added test cases, removed dead code. Change-Id: Iddb9e10d3da2f6649b66b4aa020bc1c5dfb37baa Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b8cc43e856f3f0b662157d9298adc0637aac83c6 Author: Teemu Holappa Date: Fri Dec 4 09:47:14 2020 +0200 Improve code coverage Added tests to improve the QSafeLayout class code coverage. Added coco validation comments. Change-Id: I321dcdef29fbe182873c190ed89c781a3b32a816 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit f33efd620f5924e344197d94fb69c0fd2338949e Author: Teemu Holappa Date: Fri Dec 4 08:09:02 2020 +0200 Fix the API break in feature files Changed the qtsaferenderer.prf to load the both feature files instead of showing the error message to prevent errors when the migrating from the 1.1 to 1.2. Added SAFE_RESOURCES to the OTHER_FILES to make it visible in Qt Creator. Change-Id: I9c8414c9340e3fc2200c1ad5b5c61632f98dbeba Reviewed-by: Samuli Piippo M tests/auto/integrationtest/integrationtest.pro commit ec154ae44984f299026b3bfa8ebc4e99dfa1fe0d Author: Jani Launonen Date: Thu Dec 3 14:45:10 2020 +0200 Tests: Fix few endian and variable size issues Fixed testQSafeTextLayout(), where there were few writes in wrong size, but endian issue made the test pass in little-endian machine none-the-less. Also a fix for tagWriter to use explicitly right variable size was added. Task-number: QSR-888 Change-Id: I49678f462bf27383303480fad7cd9bc762378c47 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/qpf2.h M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 8bb993c7ed0de9f88c281ccddec83c68b2d00f05 Author: Teemu Holappa Date: Thu Dec 3 12:51:44 2020 +0200 Disable messageplugin tests in static build Change-Id: I614286a4d7e6a378e8d7298e719a222b0c7f0a2f Reviewed-by: Jani Launonen M tests/auto/auto.pro commit 9575f7c63c987b395f259f171f094b5c8ff50571 Author: Teemu Holappa Date: Fri Nov 27 16:14:57 2020 +0200 Fix features files usage It was not possible to generate the safelayout files and use the qsafercctool in the same project because the qtsafercc tool didn't had the depedency to the layout file generation which makes the build to fail. Changed integration tests to use the safercctool to test the safercc integration. Change-Id: I315fb3145139aaf6b5f001d7e7a3ab88a556f40f Reviewed-by: Samuli Piippo M tests/auto/integrationtest/integrationtest.pro M tests/auto/integrationtest/testdata.qrc M tests/auto/integrationtest/tst_integration.cpp commit 70ad124c3fb05b5d9d047f49bd1ddaf6850fd934 Author: Jani Launonen Date: Wed Dec 2 16:10:47 2020 +0200 Testing: Fix valgrind found issues Running valgind on tst_qsaferenderer unit tests revealed few problematic cases, where pointer were used after the memory it pointed had moved because of QByteArray.resize() to elsewhere. Fixed. Task-number: QSR-888 Change-Id: I64fcb5573a72918af74aeced82b022cbec254eba Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 83afa618ea891aed5acff24b7232ccddd15942c6 Author: Teemu Holappa Date: Wed Dec 2 13:35:59 2020 +0200 Fix space character handling in QSafeFont Space character causes unnecessary exception in QSafeFont class. Changed integration test case to use dynamic text instead of static. Change-Id: I9c71a9bbb99202a44d2da7a6ee72ee49e2d39648 Reviewed-by: Jani Launonen M tests/auto/integrationtest/testsources/TextTest.qml commit c142f2436133d202b075847181f51ded75ca2164 Author: Jani Launonen Date: Tue Dec 1 14:00:57 2020 +0200 Runtime, tests: Fix endianness issues Fixed endianness issues in runtime, where converted 16-bit RGB565 pixel was returned without converting from little-endianness to native, so the repeated pixels were in wrong byte order in big- endian system, such as MIPS64. Also test cases hade few places, where the framebuffer rendered in RGB565_LE format was read back without using qFromLittleEndian() function. Fixed. Task-number: QSR-903 Change-Id: I84acd9002e8744369fe9f18b12e2a26570229c4d Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 492b93105410a0ba7caff75f6a80982ba856ba3f Author: Jani Launonen Date: Tue Nov 24 15:21:29 2020 +0200 Runtime, tests: Fix alpha position in RGBA8888_LE Fixed alpha channel position in RGBA8888_LE case, which was wrong in the tests and in the convertAndBlit() function. Task-number: QSR-903 Change-Id: If5d9e99f8212b9774ab70d794363e26afe670c6a Reviewed-by: Jani Launonen Reviewed-by: Teemu Holappa M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 6bef12675686ceb91ebc4b22143c047496c9be8a Author: Teemu Holappa Date: Wed Nov 25 16:49:15 2020 +0200 Fix the max amount of states exception The max amount of states was compared to wrong constraint. It is allowed to have as many states in the system as there are possible items. Change-Id: Ifdb95e8600512b1dce4fa94975867019cdb94dd4 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b9e4e97fb26e6020d459621e0a018d064b9c69f3 Author: Teemu Holappa Date: Tue Nov 24 17:24:37 2020 +0200 Fix compile error in macOS Runtime tests fails because cstdalign is not available. Change-Id: Ifc04d5e2a16f649fcde5a4748fb3c20190eb5c85 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 0cd72bdbfb626ee1acbc337daad65ab466f13b89 Author: Teemu Holappa Date: Fri Nov 20 09:33:33 2020 +0200 Fix compiler error in the tests in QNX Change-Id: Ib517c54b645fb6fb895a63e29a9c2365a44db8ea Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 62b840d833b5eb6486f76fb60edf689621ba94a7 Author: Teemu Holappa Date: Wed Nov 18 16:39:09 2020 +0200 Remove SafeRenderer namespace usage from the tst_messagePlugin If Qt is build without namespace MSVC compiler gets confused with the integer types. Change-Id: Ia8214d5eb98338df28c6c6092287dc431801fff9 Reviewed-by: Jani Launonen M tests/auto/messageplugin/tst_messageplugin.cpp commit 65949e8ff41f252848fa42cb6f84f6a149d992e4 Author: Teemu Holappa Date: Wed Nov 18 13:52:20 2020 +0200 Fix compiler error in MSVC 2015 part 2 Change-Id: I420ba184dd2789b220b815b9ba2eeb5bbc9f35b7 Reviewed-by: Jani Launonen M tests/auto/messageplugin/tst_messageplugin.cpp commit 497fb99c30e5227ca7f82c0453dd706c9659d01f Author: Teemu Holappa Date: Wed Nov 18 10:51:17 2020 +0200 Fix compiler error in MSVC 2015 Change-Id: I10c8d0f8f0ee432319c92d0f17d56635b8ee0565 Reviewed-by: Jani Launonen M tests/auto/messageplugin/tst_messageplugin.cpp commit e29be9d7ed56403eef7c74545e85bc7bda05d81c Author: Teemu Holappa Date: Tue Nov 17 15:04:50 2020 +0200 Fix compiler warnings in tst_saferenderer Change-Id: Ic62c8dcaab8778a2173d17ae731a5fa70a7f1613 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit a6a0ac3559ca06fed0f2a77199efce3aa6a468b7 Author: Tarja Sundqvist Date: Mon Nov 16 17:15:35 2020 +0200 Doc: Update the max num of animations per item Currently the number of properties is 5 instead of 4. This affects the max number of animations per item. Task-number: QSR-892 Task-number: QSR-893 Change-Id: Ia182fae8d4674463a878cf954d8ec8cab1347c26 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 46585b514a285a533c19e6cd7775aab22791c65a Author: Teemu Holappa Date: Fri Nov 13 11:14:21 2020 +0200 Fix change text test case There were used pound-character which does not fit to the char type. Change-Id: I92db8822d8442c68d270b1f94c11c15ceea15f77 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 5963b842f8789513ec226d3d221872dd920febb3 Author: Teemu Holappa Date: Fri Nov 13 09:06:14 2020 +0200 Fix QSafeEvent byte order to big endian Change-Id: Ieb54224d20a6f65652ca194bb35efd1695ca2650 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit bfd807a3bb972ff43e9921a206d2240efbc64113 Author: Teemu Holappa Date: Thu Nov 12 20:18:16 2020 +0200 Fix MISRA issue 14-5-1 A non-member generic function shall only be declared in a namespace that is not an associated namespace. Removed the enum definitions from the SafeRendererGenerics namespace. Change-Id: Id8c7b2278a7d0c82e5f9753a8bd2ca45999729fa Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit c6f64930066366f709fc17b713639ae79600fade Author: Teemu Holappa Date: Thu Nov 12 18:12:39 2020 +0200 Refactor setText functionality Added new function to setText to the QSafeLayout to avoid the returning of the non-const reference to the layout data. Removed the unused drawText function from the QSafeRenderer. The text must be changed through the StateManager event API. Change-Id: Id3d8853bd686ffb1b5121854ead63d685c8ae3eb Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 539ca8b5120d081369b80d66c2388ffe3467aaf3 Author: Jani Launonen Date: Wed Nov 11 12:42:43 2020 +0200 Runtime: MISRA fixes Some functions needed to be renamed for hiding another function of the same name. Task-number: QSR-713 Change-Id: Id95bd3a22ca617ee434a25357ccef1874fc02623 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 372f594f4ce3569d1301377972a92052b6ccb0d0 Author: Teemu Holappa Date: Fri Nov 6 09:53:31 2020 +0200 Make unit tests great again Added test cases to cover the corner cases which are difficult to test using the data driven approach. Change-Id: I481e6d7eb8b1fe2efab08eeae9d25e6c5ded7e46 Reviewed-by: Jani Launonen A tests/auto/saferenderer/testdata/setcolorreference2.png M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 42e9a56921ae05b0b43fec31be7c766e47d87d86 Author: Teemu Holappa Date: Wed Jul 8 16:52:29 2020 +0300 Add support for color transitions in TimeLine animation Change-Id: Ib7f98dadb26b4c2657244b4776f12c7ab83659b1 Reviewed-by: Jani Launonen M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame1.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame2.png M tests/auto/integrationtest/testsources/TimelineTest.qml M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 27a94b97b696507611f55afb71a70a2453d8f302 Author: Jani Launonen Date: Fri Oct 23 14:44:08 2020 +0300 Runtime: Fix Polyspace found defects and MISRA C++ 2008 issues Some more defects and MISRA C++ 2008 issues found by Polyspace fixed. Removed quite a few explicit, but empty destructors by Polyspace's advice. Changed quint64 types to size_t for better portability. Task-number: QSR-713 Change-Id: If4f58b6bef401fcaba4ac871cede31ed7dd52663 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b87fe29bd3e160de6e36513555c086600b011c7c Author: Teemu Holappa Date: Wed Oct 7 18:24:18 2020 +0300 Create the separate configuration file for the safercc tool It is necessary to have an own configuration for the safercc tool for running the tests in the cross-compiling environments. Renamed the qtsaferenderer configuration to the qtsafelayouttool which it actually is. Change-Id: I9fd1f97ab6bb70bfa0764664ea9d51d54b5b8dbd Reviewed-by: Samuli Piippo M tests/auto/integrationtest/integrationtest.pro M tests/auto/safercc/safercc.pro M tests/auto/saferenderer/saferenderer.pro commit 77d1e1a99f1761c48d34238a780b8184b167d86f Author: Teemu Holappa Date: Mon Oct 12 13:12:29 2020 +0300 Add integration test case for testing the static text Change-Id: If87044acd09c10811796219dee5f72e816bbee9f Reviewed-by: Jani Launonen A tests/auto/integrationtest/BLACKLIST M tests/auto/integrationtest/integrationtest.pro A tests/auto/integrationtest/referenceimages/statictextReference.png A tests/auto/integrationtest/testsources/TextTest.qml A tests/auto/integrationtest/testsources/fonts/testfont.ttf M tests/auto/integrationtest/tst_integration.cpp commit a03ca2a0edc8faebc6b06b8bb9ddabd4ea44eafa Author: Teemu Holappa Date: Wed Oct 14 13:11:26 2020 +0300 Fix Timeline animation support Fixed bugs found in functional tests. Change-Id: Ie4949e0227fbe63f51b7b42ea304398b88d1a95b Reviewed-by: Jani Launonen M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame1.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame2.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame3.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame4.png M tests/auto/integrationtest/testsources/TimelineTest.qml A tests/auto/integrationtest/testsources/seat-belt.png M tests/auto/integrationtest/tst_integration.cpp commit a8f3a718d93fb02c02f5122011d6668742793ee8 Author: Jani Launonen Date: Tue Oct 13 12:26:47 2020 +0300 Tools, tools tests: Add support for 64+ sequences in RLE32 Added support for longer than 64k repeating pixel patterns by emitting multiple escapeMark + repeat count words back-to-back in case one repeat count overflows. Added test case to qtlayoutgenerator tool. Task-number: QSR-785 Change-Id: Ie13b431a989388cb78254922dbed887cde6eb573 Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit efb8b30f0cbb1371e0eb08565ced73baae3e60d7 Author: Teemu Holappa Date: Tue Oct 6 14:26:55 2020 +0300 Refactor advance and restart animation functionality It is not allowed to return non-const reference to the member data. Instead of returning a non-const reference, a const reference is returned from QSafeStateTransition Added advance and restartAnimation functions to the QSafeLayout class. Change-Id: Ie0d37338a82f45b1d5a064dd0c4943f0231f4e1f Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit d883e916d9e2197d4f75be02b79cbc4c3449a38f Author: Teemu Holappa Date: Mon Sep 28 13:46:40 2020 +0300 Create test case to test the maximum size of a animation data file Change-Id: I5d6e9912e5996799f5b154fdfb47a4ab6e6cf46d Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 236d9189aaccd8d0c119026dad3cc79e43ff14f4 Author: Teemu Holappa Date: Thu Oct 1 09:38:16 2020 +0300 Fix position calculation in States class It was not taken into account that x and y values are relative to the parent position. Change-Id: I241223479ac6d8c4ce117265275121df4d3127a0 Reviewed-by: Jani Launonen A tests/auto/safelayout/iso-icons/RelativePosition.qml M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 074380d375575bc3d20c9aee431d46fdf5020778 Author: Teemu Holappa Date: Sun Sep 27 13:28:01 2020 +0300 Fix bitmap change when the bitmap goes out of boundary Added test case for the sprite animation. Fixed also setPositionForItem as the calculation is off by one. Change-Id: Idbf86b2cad35e35ac02ee6925d176d1d398da5d3 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit fabde4c4982dfa1d90da8234e1976b7db2096d1f Author: Jani Launonen Date: Wed Sep 30 15:02:46 2020 +0300 Runtime, testing: Remove support for V1 bitmaps Removed support for V1 bitmaps, converted needed test bitmaps to V3 format and updated CRCs. Task-number: QSR-799 Change-Id: Ib2a019c593ce98e9d273abb8029eadbd41cad46d Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata.qrc D tests/auto/saferenderer/testdata/0height_bitmap.srb D tests/auto/saferenderer/testdata/0width_bitmap.srb M tests/auto/saferenderer/testdata/33_bitmaps.srl M tests/auto/saferenderer/testdata/invalid_bitmap.srb M tests/auto/saferenderer/testdata/invalid_bitmap.srl M tests/auto/saferenderer/testdata/invalid_size_image.dat M tests/auto/saferenderer/testdata/iso_grs_7000_4_0005_64x64_ff55ff.srb M tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb M tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.decompressed M tests/auto/saferenderer/testdata/iso_grs_7000_4_0249_127x59_0000ff.srb.decompressed M tests/auto/saferenderer/testdata/layout.dat M tests/auto/saferenderer/testdata/main.srl M tests/auto/saferenderer/testdata/ok_image.dat M tests/auto/saferenderer/testdata/quitebigfile.dat M tests/auto/saferenderer/testdata/rect.dat M tests/auto/saferenderer/testdata/too_big_bitmap.srb M tests/auto/saferenderer/testdata/toobig_image.dat M tests/auto/saferenderer/testdata/twice_bitmap.srl M tests/auto/saferenderer/testdata/two_bitmaps.srl M tests/auto/saferenderer/testdata/valid_bitmap.srb M tests/auto/saferenderer/testdata/valid_bitmap0.srb M tests/auto/saferenderer/testdata/valid_bitmap1.srb M tests/auto/saferenderer/testdata/valid_bitmap10.srb M tests/auto/saferenderer/testdata/valid_bitmap11.srb M tests/auto/saferenderer/testdata/valid_bitmap12.srb M tests/auto/saferenderer/testdata/valid_bitmap13.srb M tests/auto/saferenderer/testdata/valid_bitmap14.srb M tests/auto/saferenderer/testdata/valid_bitmap15.srb M tests/auto/saferenderer/testdata/valid_bitmap16.srb M tests/auto/saferenderer/testdata/valid_bitmap17.srb M tests/auto/saferenderer/testdata/valid_bitmap18.srb M tests/auto/saferenderer/testdata/valid_bitmap19.srb M tests/auto/saferenderer/testdata/valid_bitmap2.srb M tests/auto/saferenderer/testdata/valid_bitmap20.srb M tests/auto/saferenderer/testdata/valid_bitmap21.srb M tests/auto/saferenderer/testdata/valid_bitmap22.srb M tests/auto/saferenderer/testdata/valid_bitmap23.srb M tests/auto/saferenderer/testdata/valid_bitmap24.srb M tests/auto/saferenderer/testdata/valid_bitmap25.srb M tests/auto/saferenderer/testdata/valid_bitmap26.srb M tests/auto/saferenderer/testdata/valid_bitmap27.srb M tests/auto/saferenderer/testdata/valid_bitmap28.srb M tests/auto/saferenderer/testdata/valid_bitmap29.srb M tests/auto/saferenderer/testdata/valid_bitmap3.srb M tests/auto/saferenderer/testdata/valid_bitmap30.srb M tests/auto/saferenderer/testdata/valid_bitmap31.srb M tests/auto/saferenderer/testdata/valid_bitmap32.srb M tests/auto/saferenderer/testdata/valid_bitmap4.srb M tests/auto/saferenderer/testdata/valid_bitmap5.srb M tests/auto/saferenderer/testdata/valid_bitmap6.srb M tests/auto/saferenderer/testdata/valid_bitmap7.srb M tests/auto/saferenderer/testdata/valid_bitmap8.srb M tests/auto/saferenderer/testdata/valid_bitmap9.srb M tests/auto/saferenderer/testdata/valid_empty.srb M tests/auto/saferenderer/tst_qsaferenderer.cpp commit a802f8f4cfed12e26e3f90343d5b8740f5c57c01 Author: Teemu Holappa Date: Tue Sep 29 10:25:55 2020 +0300 Fix compile error with MSVC 2015 Fixed the correct version number (1920 = MSVC 2016) Change-Id: Ie3a8935814bde82ab29b869a3119377521ce725b Reviewed-by: Jani Launonen M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit bc4ede890a352d19b6367ffbeae41ff04b7fc73e Author: Teemu Holappa Date: Fri Sep 25 13:33:05 2020 +0300 Fix test case compile error in MSVC Change-Id: I522f73a8a3442bb10191d499aa29d1f2d248e519 Reviewed-by: Jani Launonen M tests/auto/messageplugin/tst_messageplugin.cpp commit 2ff37f06b131f9ff26365276e438a53ba1e3b4fb Author: Teemu Holappa Date: Tue Sep 22 14:05:33 2020 +0300 Fix compiler errors with MSVC 2015 Change-Id: I6c94eff83fd38f29949c9df86821bce0b6d7a359 Reviewed-by: Jani Launonen M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit fc3ccfba7fa6576d6de3a99d79bfa53df8efe133 Author: Teemu Holappa Date: Tue Sep 22 13:35:14 2020 +0300 Enable QPF2 test builds only on Linux host Change-Id: Ib13c1567d81c6fc86e066c4df7a57bde99809185 Reviewed-by: Jani Launonen M tests/auto/auto.pro commit 818a19071278e206ae5412b22f501240e6e37ca9 Author: Teemu Holappa Date: Mon Sep 21 21:02:42 2020 +0300 Disable eventhandler tests Tests are flaky and need to be redesigned according the adaptation API refactoring. Task-number: QSR-806 Change-Id: I59151a5cd1096bf1b0a597ba76b2ae938a3f4d27 Reviewed-by: Jani Launonen M tests/auto/auto.pro commit 41941a2678833cd71233af9c1a5de6eb7ac96ed1 Author: Teemu Holappa Date: Wed Sep 16 16:04:51 2020 +0300 Skip integration tests in cross-commpile environments In COIN we don't have qsr tooling in QEMU environment because tooling compilation is disabled in cross-compile environments. Change-Id: If28aca8ae571cd102fb9254a5c16fbe6c8832471 Reviewed-by: Jani Launonen M tests/auto/auto.pro commit d8ab80c6fddb80c3ae5c2bfa2ea6128298435200 Author: Teemu Holappa Date: Wed Jul 8 13:26:36 2020 +0300 Add support for changing color using QtQuick State Color transitions are not handled currently, but color change is supported without transition. Task-number: QSR-306 Change-Id: I31a7def8e52f951e17fca72ce6c2516b64ec63c9 Reviewed-by: Jani Launonen M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame1.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame2.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame3.png M tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame4.png M tests/auto/integrationtest/testsources/TimelineTest.qml M tests/auto/saferenderer/testdata/first.sts M tests/auto/saferenderer/testdata/ic.battery_40x40.srb M tests/auto/saferenderer/testdata/ic.battery_41x41.srb M tests/auto/saferenderer/testdata/ic.battery_42x42.srb M tests/auto/saferenderer/testdata/ic.battery_43x43.srb M tests/auto/saferenderer/testdata/ic.battery_44x44.srb M tests/auto/saferenderer/testdata/ic.battery_45x45.srb M tests/auto/saferenderer/testdata/ic.battery_46x46.srb M tests/auto/saferenderer/testdata/ic.battery_47x47.srb M tests/auto/saferenderer/testdata/ic.battery_48x48.srb M tests/auto/saferenderer/testdata/ic.battery_49x49.srb M tests/auto/saferenderer/testdata/ic.battery_50x50.srb M tests/auto/saferenderer/testdata/ic.battery_51x51.srb M tests/auto/saferenderer/testdata/ic.battery_52x52.srb M tests/auto/saferenderer/testdata/ic.battery_53x53.srb M tests/auto/saferenderer/testdata/ic.battery_54x54.srb M tests/auto/saferenderer/testdata/ic.battery_55x55.srb M tests/auto/saferenderer/testdata/ic.battery_56x56.srb M tests/auto/saferenderer/testdata/ic.battery_57x57.srb M tests/auto/saferenderer/testdata/ic.battery_58x58.srb M tests/auto/saferenderer/testdata/ic.battery_60x60.srb M tests/auto/saferenderer/testdata/ic.battery_61x61.srb M tests/auto/saferenderer/testdata/ic.battery_62x62.srb M tests/auto/saferenderer/testdata/ic.battery_63x63.srb M tests/auto/saferenderer/testdata/ic.battery_64x64.srb M tests/auto/saferenderer/testdata/ic.battery_65x65.srb M tests/auto/saferenderer/testdata/ic.battery_66x66.srb M tests/auto/saferenderer/testdata/ic.battery_67x67.srb M tests/auto/saferenderer/testdata/ic.battery_68x68.srb M tests/auto/saferenderer/testdata/ic.battery_69x69.srb M tests/auto/saferenderer/testdata/ic.battery_70x70.srb M tests/auto/saferenderer/testdata/ic.battery_71x71.srb M tests/auto/saferenderer/testdata/ic.battery_72x72.srb M tests/auto/saferenderer/testdata/ic.battery_73x73.srb M tests/auto/saferenderer/testdata/ic.battery_74x74.srb M tests/auto/saferenderer/testdata/ic.battery_75x75.srb M tests/auto/saferenderer/testdata/ic.battery_76x76.srb M tests/auto/saferenderer/testdata/ic.battery_77x77.srb M tests/auto/saferenderer/testdata/ic.battery_78x78.srb M tests/auto/saferenderer/testdata/ic.battery_79x79.srb M tests/auto/saferenderer/testdata/ic.battery_80x80.srb M tests/auto/saferenderer/testdata/image.sts M tests/auto/saferenderer/testdata/second.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 5b93aa3ed3bbd40d545f684d0694de304896b24e Author: Teemu Holappa Date: Tue Jul 7 14:46:48 2020 +0300 Add possibility to change the animation frame rate Added possibility to change the set the animation frame by safelayout tool command line argument. Added new qmake property SAFE_TARGET_FPS. Change-Id: I4b6a3ec80d34a73b44e0cf239079e73f85ebd405 Reviewed-by: Jani Launonen M tests/auto/integrationtest/integrationtest.pro commit 7997c2c9685da8b880795b52fba3cb151a08c59b Author: Jani Launonen Date: Fri Sep 4 12:36:55 2020 +0300 Tools, tools tests: Fix escaping bug Fixed escaping bug by not allowing selected escapeMark exist in the input stream in the first place. This required some new tests. Also error reporting was improved by more describing enum EStatus instead of just boolean true/false. This in turn required the test cases to be modified. Diagnostic messages to Designer Studio were added for new status values and refactored common code from both QSafeTextGenerator and QSafeCompressedImageGenerator to QSafeContentGenerator to duplicate less code to call compression routine. Task-number: QSR-645 Change-Id: I3a0887834f15b3ec82571500dbb93bdbb5e1dda5 Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 42663a7f6e11149e56108508fb4b4855faae904e Author: Jani Launonen Date: Fri Sep 4 12:51:01 2020 +0300 Tool tests: Minor cleanups Minor cleanups for tool tests. Change-Id: I9e056b9ace72a09eadf01a69a8f0ff265c70388c Reviewed-by: Kari Hormi M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit c161123757c715ba69ce66a2d5416263b98ada7e Author: Teemu Holappa Date: Tue Jun 23 16:44:26 2020 +0300 Add support for opacity and scale property changes for TimeLine animation Existing implementation for the Timeline animation did not support that several properties can be changed in the same animation sequence. Task-number: QSR-727 Change-Id: I2b836ee55af6d36a938afddc13b49820940f2d15 Reviewed-by: Jani Launonen M tests/auto/integrationtest/integrationtest.pro A tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame0.png A tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame1.png A tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame2.png A tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame3.png A tests/auto/integrationtest/referenceimages/timelineAnimationReference_frame4.png A tests/auto/integrationtest/testsources/TimelineTest.qml M tests/auto/integrationtest/tst_integration.cpp M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/saferenderer/testdata/first.sts M tests/auto/saferenderer/testdata/ic.battery_40x40.srb M tests/auto/saferenderer/testdata/ic.battery_41x41.srb M tests/auto/saferenderer/testdata/ic.battery_42x42.srb M tests/auto/saferenderer/testdata/ic.battery_43x43.srb M tests/auto/saferenderer/testdata/ic.battery_44x44.srb M tests/auto/saferenderer/testdata/ic.battery_45x45.srb M tests/auto/saferenderer/testdata/ic.battery_46x46.srb M tests/auto/saferenderer/testdata/ic.battery_47x47.srb M tests/auto/saferenderer/testdata/ic.battery_48x48.srb M tests/auto/saferenderer/testdata/ic.battery_49x49.srb M tests/auto/saferenderer/testdata/ic.battery_50x50.srb M tests/auto/saferenderer/testdata/ic.battery_51x51.srb M tests/auto/saferenderer/testdata/ic.battery_52x52.srb M tests/auto/saferenderer/testdata/ic.battery_53x53.srb M tests/auto/saferenderer/testdata/ic.battery_54x54.srb M tests/auto/saferenderer/testdata/ic.battery_55x55.srb M tests/auto/saferenderer/testdata/ic.battery_56x56.srb M tests/auto/saferenderer/testdata/ic.battery_57x57.srb M tests/auto/saferenderer/testdata/ic.battery_58x58.srb M tests/auto/saferenderer/testdata/ic.battery_60x60.srb M tests/auto/saferenderer/testdata/ic.battery_61x61.srb M tests/auto/saferenderer/testdata/ic.battery_62x62.srb M tests/auto/saferenderer/testdata/ic.battery_63x63.srb M tests/auto/saferenderer/testdata/ic.battery_64x64.srb M tests/auto/saferenderer/testdata/ic.battery_65x65.srb M tests/auto/saferenderer/testdata/ic.battery_66x66.srb M tests/auto/saferenderer/testdata/ic.battery_67x67.srb M tests/auto/saferenderer/testdata/ic.battery_68x68.srb M tests/auto/saferenderer/testdata/ic.battery_69x69.srb M tests/auto/saferenderer/testdata/ic.battery_70x70.srb M tests/auto/saferenderer/testdata/ic.battery_71x71.srb M tests/auto/saferenderer/testdata/ic.battery_72x72.srb M tests/auto/saferenderer/testdata/ic.battery_73x73.srb M tests/auto/saferenderer/testdata/ic.battery_74x74.srb M tests/auto/saferenderer/testdata/ic.battery_75x75.srb M tests/auto/saferenderer/testdata/ic.battery_76x76.srb M tests/auto/saferenderer/testdata/ic.battery_77x77.srb M tests/auto/saferenderer/testdata/ic.battery_78x78.srb M tests/auto/saferenderer/testdata/ic.battery_79x79.srb M tests/auto/saferenderer/testdata/ic.battery_80x80.srb M tests/auto/saferenderer/testdata/image.sts M tests/auto/saferenderer/testdata/second.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit e488c06f85e1338bd908bab376ad23967b4ebe90 Author: Jani Launonen Date: Mon Aug 17 13:09:58 2020 +0300 Tools: remove redundant QSafeImageGenerator As static text, images and pictures are all compressed, the old QSafeImageGenerator class is no longer needed. It is removed. Change-Id: I344b2f287a49d15ce440f47b9538242768a33d39 Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 56610cd94e134a35defb0618a79718eb4f919a74 Author: Teemu Holappa Date: Mon Jun 15 09:40:34 2020 +0300 Refactor readUInt function into the one class The same method for bytearray reading was declared in several classes. Create a new class QSafeByteArray which holds the data array and provides methods for reading integer values from the data. Task-number: QSR-659 Change-Id: I1ede1f91e64cdad88962632d5b28c46d38f1bace Reviewed-by: Jani Launonen M tests/auto/saferenderer/qpf2.h M tests/auto/saferenderer/tst_qsaferenderer.cpp commit f900b0315fbb789ec4b57706b47707f4a4d4d34f Author: Teemu Holappa Date: Wed Jul 15 22:57:45 2020 +0300 Move adaptation code to the separate module from the examples Simplifies the code strucuture and the example code. Makes life easier to create a new safe renderer application. Change-Id: Ie2bee78eafd97035061976c34273130ac249d8ae Reviewed-by: Jani Launonen M tests/auto/eventhandler/eventhandler.pro commit 24cafb419f3dac6564c673b6ed659581db11f8a6 Author: Jani Launonen Date: Mon Jun 15 16:42:32 2020 +0300 Test, Runtime: Fix rendering with global alpha Fixed rendering with global alpha from opacity animation and added a test case to integration testing for visual opacity test. Opacity test needed fuzzy comparison of pixels as different platforms might have one bit differences in pixels in corner cases. Task-number: QSR-306 Change-Id: I06fbdb6db0ea1428443209f55ad463ebc3469540 Reviewed-by: Teemu Holappa M tests/auto/integrationtest/integrationtest.pro A tests/auto/integrationtest/referenceimages/opacityAnimationReference_frame0.png A tests/auto/integrationtest/referenceimages/opacityAnimationReference_frame1.png A tests/auto/integrationtest/referenceimages/opacityAnimationReference_frame2.png A tests/auto/integrationtest/referenceimages/opacityAnimationReference_frame3.png A tests/auto/integrationtest/referenceimages/opacityAnimationReference_frame4.png A tests/auto/integrationtest/testsources/OpacityTest.qml A tests/auto/integrationtest/testsources/iso_grs_7000_4_0249.dat M tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 77b8208c55f1876db45a147ce7f2163d2ac8d7ae Author: Tarja Sundqvist Date: Fri Jul 10 16:23:29 2020 +0300 Doc: Remove unnecessary endlist command from unit test documentation Unused endlist command caused a warning in the documentation build. Change-Id: I68b4957698a435c45b777f60ce3d9802ca6236be Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 3dd722cf65ad07ea4fd445fcc91861f14a66cdab Author: Teemu Holappa Date: Fri Jun 5 14:17:27 2020 +0300 Fix problem with text layout name generator Changed the layout generator so that layout files and related data assets are generated to an own folder so that duplicate item names does not conflict. Task-number: QSR-666 Change-Id: I2f30cf5b6e15175e961a73586a136ee032728f16 Reviewed-by: Jani Launonen M tests/auto/integrationtest/tst_integration.cpp commit 8f0b706609dfe2e189d54f1543484eab24230703 Author: Teemu Holappa Date: Wed May 13 15:41:28 2020 +0300 Cleanup the ugly memcpy casts from the QSafeLayout Change-Id: I1780106baebbb62193dd01c66d137935d1bfa80b Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 98dee3cf9ccc8ba45223acbe76c3f38ca3793e84 Author: Teemu Holappa Date: Mon May 11 18:11:18 2020 +0300 Replace LayoutDataBuffer struct with byteArray Removed LayoutDataBuffer struct and moved text layout reading to the own classes similar as the other layout items (bitmap, states). Change-Id: I90c0fd26a845e54656c95a8a0f659fa6ebd4a0e9 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit ad4d37b156f0064f6db39296daa260c946b9a74e Author: Jani Launonen Date: Thu Jun 4 12:55:12 2020 +0300 Runtime, examples, tests: Change setTextColor() to setColor() Changed events and internal API so that setTextColor() is renamed to setColor and similarly the events. tst_qsaferenderer now checks for thrown exception if a color is set to an unknown object. test.py changed to reflect this fact. Task-number: QSR-668 Change-Id: I79d9cb8c4045db763c4631f52c72cef286f45043 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit ba7ea141a65873c0bde733f1d32404702e389841 Author: Teemu Holappa Date: Thu May 7 10:46:40 2020 +0300 Improve code coverage of the StateManager class Added some exception cases which weren't tested. Change-Id: Ib4fb0b446fe61325b98d2cf98ccd1d2f61389123 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 18bab7652cb72c2e68c087fdf252f2df744cee75 Author: Teemu Holappa Date: Wed May 6 15:09:11 2020 +0300 Add test case for the sprite animation Added test case which verifies the layout tool with the runtime. Change-Id: I8c47a57f7c0f325f81532ab860e386ae96a65f32 Reviewed-by: Jani Launonen M tests/auto/auto.pro A tests/auto/common/testcoverageobject.cpp A tests/auto/common/testcoverageobject.h A tests/auto/common/testwindow.cpp A tests/auto/common/testwindow.h M tests/auto/eventhandler/eventhandler.pro A tests/auto/integrationtest/integrationtest.pro A tests/auto/integrationtest/referenceimages/scaleAnimationReference_frame0.png A tests/auto/integrationtest/referenceimages/scaleAnimationReference_frame1.png A tests/auto/integrationtest/referenceimages/scaleAnimationReference_frame2.png A tests/auto/integrationtest/referenceimages/scaleAnimationReference_frame3.png A tests/auto/integrationtest/testdata.qrc A tests/auto/integrationtest/testsources/ScaleTest.qml A tests/auto/integrationtest/testsources/iso_grs_7000_4_2423.dat A tests/auto/integrationtest/tst_integration.cpp M tests/auto/saferenderer/saferenderer.pro D tests/auto/saferenderer/testcoverageobject.cpp D tests/auto/saferenderer/testcoverageobject.h D tests/auto/saferenderer/testwindow.cpp D tests/auto/saferenderer/testwindow.h commit 7c24efeb3f39cd29c52d0463ce0dbca70a547f8b Author: Jani Launonen Date: Fri May 29 10:48:51 2020 +0300 Runtime & Testing: Fix pixel colorization Both runtime and testing had problems concerning colorization implementation, like test not setting parameters correctly and doDrawCompressedBitmap didn't check the isImmutable flag from the bitmap, corrupted test bitmap. Task-number: QSR-306 Change-Id: Ie1ba16369b409f5f281831909a66fd82a0706008 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata/iso_grs_7000_4_0249_127x59_0000ff.srb.decompressed M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 540d80a761587a6e8258c6aa86272eadc56d61b5 Author: Teemu Holappa Date: Fri May 8 15:26:11 2020 +0300 Fix naming conventions to satisfy the MISRA tool Task-number: QSR-659 Change-Id: I5abec85e3fcb00a9a4911a1b4c19516bc4cd9af5 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 9f2a791c902eb262b8b9511c7f1992b8a8e7a87f Author: Jani Launonen Date: Tue May 12 12:10:56 2020 +0300 Runtime & tests: Add check for one dimensional bitmaps Check added against 0 width or height bitmaps to QSafeBitmapReader so that such malformed bitmaps are caught during load time. An SizeError exception is thrown if either dimension is 0. Task-number: QSR-660 Change-Id: I39a0aeaa31eeb0a3e500e03c2a0d45f028e821f7 Reviewed-by: Kari Hormi Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata.qrc A tests/auto/saferenderer/testdata/0height_bitmap.srb A tests/auto/saferenderer/testdata/0height_v3bitmap.srb A tests/auto/saferenderer/testdata/0width_bitmap.srb A tests/auto/saferenderer/testdata/0width_v3bitmap.srb M tests/auto/saferenderer/testdata/quitebigfile.dat M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 11843e0c905ec52125efd5845a86bc6299548466 Author: Teemu Holappa Date: Thu May 7 11:40:30 2020 +0300 Create unit tests for the StateManager::StateMap class Change-Id: Ief7793e057a9bb7ffd56ee880c1b9b130e45b009 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 73d7706d73515e869848638bb6541ada2bbee995 Author: Tuomas Heimonen Date: Thu May 14 17:43:37 2020 +0300 Tests: Fix compatibility to forward Qt 5.15 and backward to Qt 5.9 Change-Id: Idff196872f3288c2067c338beb023a3867ae562f Reviewed-by: Jani Launonen M tests/auto/messageplugin/tst_messageplugin.cpp M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/safercc/tst_rcc.cpp M tests/auto/saferenderer/qpf2.cpp M tests/auto/saferenderer/tst_qsaferenderer.cpp commit cf926d576cbfd0d9044745176d2bb3b2471e4d12 Author: Tuomas Heimonen Date: Wed Apr 8 11:42:58 2020 +0300 Tests: Fix to code coverage Add codecoverage.rpi to OTHER_FILES Change-Id: I6536f5726e13c2884e329aa01cf1a1367ef33fd6 Reviewed-by: Jani Launonen M tests/auto/auto.pro M tests/auto/codecoverage.pri commit 7e80607adbc84684f1bae384d750fca3b6db8d02 Author: Jani Launonen Date: Fri May 8 12:14:56 2020 +0300 Runtime: Check bitmap crc in QSafeLayoutResourceReader For completenes sake, now QSafeLayoutResourceReader checks bitmap CRC for corruption similarly as in QSafeLayoutFileReader does. It could be argued that if resources are corrupted then binary, which it is included in is corrupted too and should be detected by the program loader. Still it is better to be safe than sorry. Task-number: QSR-622 Change-Id: I5701397189b3b3271ec2ca94bbc8e1244dc62cb7 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata.qrc M tests/auto/saferenderer/testdata/33_bitmaps.srl A tests/auto/saferenderer/testdata/corrupt_bitmap.srb A tests/auto/saferenderer/testdata/corrupt_bitmap.srl M tests/auto/saferenderer/testdata/invalid_bitmap.srl M tests/auto/saferenderer/testdata/twice_bitmap.srl M tests/auto/saferenderer/testdata/two_bitmaps.srl M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b95f4497e76084f9e8f907142ed55785154ff9bf Author: Jani Launonen Date: Fri May 8 15:36:16 2020 +0300 Runtime tests: Fix blitFunctions() test global alpha Layout's alpha was not set for the tests and its default value of 0xff happened to be the same as equally forgotten parameter to reference blit algorithm. Thus no other alpha values except 0xff were in fact tested, but test coverage report showed the problem. Task-number: QSR-306 Change-Id: I7515a01dd65e46aca4cdf904f4d8dbfbfa27b795 Reviewed-by: Kari Hormi Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 6a46a7c92407f465e648edd19d041edfcab36807 Author: Jani Launonen Date: Wed Apr 29 12:54:23 2020 +0300 Runtime: Add reference blit comparison test Added reference blit algorithm with coloring and global alpha. All surface formats are tested against reference algorithm with lots of color and alpha values, some which are selected in random. Task-number: QSR-306 Change-Id: I24d8c2960662e8c1d92d4a27f3d3f28eaba872cd Reviewed-by: Jani Launonen A tests/auto/saferenderer/testdata/iso_grs_7000_4_0249_127x59_0000ff.srb.compressed A tests/auto/saferenderer/testdata/iso_grs_7000_4_0249_127x59_0000ff.srb.decompressed M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 1a6bef3cd9136de52074984642e0a1461eac7905 Author: Teemu Holappa Date: Mon May 4 08:27:17 2020 +0300 Add test case for QSafeStateResourceReader Removed exception which cannot be reached in QSafeStateResourceReader. QSafeResource class throws FailureToOpen if the data is NULL. Change-Id: I714c1e361a292692ca95982d82168dd2fdd325c2 Reviewed-by: Jani Launonen M tests/auto/saferenderer/testdata.qrc A tests/auto/saferenderer/testdata/ic.battery_40x40.srb A tests/auto/saferenderer/testdata/ic.battery_41x41.srb A tests/auto/saferenderer/testdata/ic.battery_42x42.srb A tests/auto/saferenderer/testdata/ic.battery_43x43.srb A tests/auto/saferenderer/testdata/ic.battery_44x44.srb A tests/auto/saferenderer/testdata/ic.battery_45x45.srb A tests/auto/saferenderer/testdata/ic.battery_46x46.srb A tests/auto/saferenderer/testdata/ic.battery_47x47.srb A tests/auto/saferenderer/testdata/ic.battery_48x48.srb A tests/auto/saferenderer/testdata/ic.battery_49x49.srb A tests/auto/saferenderer/testdata/ic.battery_50x50.srb A tests/auto/saferenderer/testdata/ic.battery_51x51.srb A tests/auto/saferenderer/testdata/ic.battery_52x52.srb A tests/auto/saferenderer/testdata/ic.battery_53x53.srb A tests/auto/saferenderer/testdata/ic.battery_54x54.srb A tests/auto/saferenderer/testdata/ic.battery_55x55.srb A tests/auto/saferenderer/testdata/ic.battery_56x56.srb A tests/auto/saferenderer/testdata/ic.battery_57x57.srb A tests/auto/saferenderer/testdata/ic.battery_58x58.srb A tests/auto/saferenderer/testdata/ic.battery_60x60.srb A tests/auto/saferenderer/testdata/ic.battery_61x61.srb A tests/auto/saferenderer/testdata/ic.battery_62x62.srb A tests/auto/saferenderer/testdata/ic.battery_63x63.srb A tests/auto/saferenderer/testdata/ic.battery_64x64.srb A tests/auto/saferenderer/testdata/ic.battery_65x65.srb A tests/auto/saferenderer/testdata/ic.battery_66x66.srb A tests/auto/saferenderer/testdata/ic.battery_67x67.srb A tests/auto/saferenderer/testdata/ic.battery_68x68.srb A tests/auto/saferenderer/testdata/ic.battery_69x69.srb A tests/auto/saferenderer/testdata/ic.battery_70x70.srb A tests/auto/saferenderer/testdata/ic.battery_71x71.srb A tests/auto/saferenderer/testdata/ic.battery_72x72.srb A tests/auto/saferenderer/testdata/ic.battery_73x73.srb A tests/auto/saferenderer/testdata/ic.battery_74x74.srb A tests/auto/saferenderer/testdata/ic.battery_75x75.srb A tests/auto/saferenderer/testdata/ic.battery_76x76.srb A tests/auto/saferenderer/testdata/ic.battery_77x77.srb A tests/auto/saferenderer/testdata/ic.battery_78x78.srb A tests/auto/saferenderer/testdata/ic.battery_79x79.srb A tests/auto/saferenderer/testdata/ic.battery_80x80.srb A tests/auto/saferenderer/testdata/image.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 053ef3d38ca4cdfec15ba4e76480801d58d31ff2 Author: Jani Launonen Date: Thu Apr 30 14:34:52 2020 +0300 Runtime tests: add alignment to testwindow Added alignment to test window just in case. Task-number: QSR-306 Change-Id: I6f7b71ae8db4665f819690c8093d2c43b6570a59 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testwindow.h commit f3457a602476e1845a9e7ab47a1baee57bd85866 Author: Jani Launonen Date: Thu Apr 9 09:44:52 2020 +0300 Tooling: Add test for bitmap file formats Now checking bitmap files' headers for correct information from generated files. Task-number: QSR-306 Change-Id: I6fe3cfbe1ce76fcf3f60a08177615bb5a2289603 Reviewed-by: Teemu Holappa A tests/auto/safelayout/iso-icons/BitmapFormatsTest.qml A tests/auto/safelayout/iso-icons/iso_grs_7000_4_0011_64x64_000000.ppm M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit e551c5c506208ecb100847c8c8b2f01ac144d41a Author: Teemu Holappa Date: Wed Apr 29 14:18:53 2020 +0300 Fix define_test_case.py title Change-Id: I94be2a23b0fcbe1fa0de99eac911b12e0a698d12 Reviewed-by: Jani Launonen M tests/auto/saferenderer/define_test_case.py commit a3afe68f03c81a3d50893a467d91a6e7c204431a Author: Teemu Holappa Date: Fri Jan 31 12:10:08 2020 +0200 Add support for scaling animation Change-Id: I49a74d698b9ad5edff1b96f066e259a23a02cdf0 Reviewed-by: Jani Launonen A tests/auto/safelayout/iso-icons/ScaleTest.qml M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/saferenderer/testdata/first.sts M tests/auto/saferenderer/testdata/second.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b6da70208761f8351b9159e0891e36d4b7ee16cc Author: Teemu Holappa Date: Thu Apr 2 11:08:58 2020 +0300 Add an exception for when the requested resource is not available Task-number: QSR-328 Change-Id: Ie749c00f1aa11f78783026d34b502517b79419bc Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit d4e47e671f4c21c901ca3cda7025331490ed2137 Author: Jani Launonen Date: Wed Mar 25 17:43:20 2020 +0200 Runtime: support loading V3 bitmaps The V3 bitmaps with new immutability flag and color field can now be loaded. The flag is not yet acted upon, but the infrastructure is now in place to start implement the runtime coloring for QSafePictures. Task-number: QSR-306 Change-Id: I137e69056c4d1dcffd02539bbe9990efbaf32626 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.compressed M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 251f757433f75a71d6dc9d87eaaa72c5e1c8b9f1 Author: Jani Launonen Date: Fri Mar 13 16:32:57 2020 +0200 Change image format from ARGB32 to ARGB32_Premultiplied To ensure that SafePictures, SafeImages and SafeText are rendered correctly on embedded graphical backends (i.e. DRM and QNX Screen) the format was changed to premultiplied format so that the alpha and RGB values are already in correct proportion. Task-number: QSR-634 Change-Id: I36fd9bcea02008db1c6e85fdb5b0f1ce547e394d Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata/drawtextreference.png M tests/auto/saferenderer/testdata/multipleFontText_ref.png M tests/auto/saferenderer/testdata/setcolorreference.png M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 10b915a9be0467d6d4f14d830aab9543ca764d04 Author: Teemu Holappa Date: Tue Mar 3 12:33:51 2020 +0200 Add support for Timeline animation Change-Id: Idc3468932fa842be583ef60d272921b6ceb6fb15 Reviewed-by: Jani Launonen A tests/auto/safelayout/iso-icons/TimelineTest.qml M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit b18ddf2af748ad51eb5b74feeb82eae7f09441b6 Author: Teemu Holappa Date: Wed Mar 11 15:57:30 2020 +0200 Remove unnecessary strcpy from unit test cases Change-Id: I9d91d700c2c217d4c2d4daab6d4096d0c00e8b83 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit c9a37cd5e2db61a5e68578f3fe59aaedb17a4983 Author: Teemu Holappa Date: Wed Mar 11 09:22:57 2020 +0200 Add unit test case for the opacity animation Added test case and fixed findings in advance animations function. Change-Id: Ia9413c28d0c7c79a5b3bfbc7e22531c203d742cb Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 240c9ddfcdfbeafd983e88ce812245f52d9de8de Author: Teemu Holappa Date: Fri Feb 14 15:15:25 2020 +0200 Add QSafeFileInfo class Change-Id: If7589d74cc92e2b0f978649b3638dc656595713e Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit aba6db911f6b8a4fe7cdd582ba5dece06dd81f05 Author: Teemu Holappa Date: Fri Feb 14 13:29:54 2020 +0200 Add the QSafeString class Change-Id: I072f48661596e569e4de82ca1e83d58397354e14 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit a2957b5076e950ce15daeb49b4c7983a834383aa Author: Jani Launonen Date: Wed Feb 12 14:24:31 2020 +0200 Make RCC data array 32 byte aligned The bitmaps in resources are read directly during blitting and so for performance reasong should be aligned to at least 4 bytes. MISRA C++ 2008 is based on ISO C++ 2003 standard and does not support alignas() directive, but is nonetheless generated by the RCC now in safe mode. The safe mode is activated by a switch '--safety' and it disables compression. The resulting _data_ is aligned externally to 32 byte boundary and internally the different files are padded so that all subdata starts on 4 byte boundary. RCC version number is now unsigned int with --safety switch as there's no reason for negative version number and it is suffixed with 'U' as other unsigned integers in data. The namespace used with --safety is QSafeRenderer. Task-number: QSR-570 Change-Id: I580bf768de8f6979af0f0e7619b5de5f09bd3df8 Reviewed-by: Teemu Holappa M tests/auto/eventhandler/eventhandler.pro M tests/auto/safercc/data/images/images.expected M tests/auto/saferenderer/saferenderer.pro commit 94a7788ef1108e32b17605c917045eb10fc448dd Author: Tuomas Heimonen Date: Tue Feb 25 13:26:28 2020 +0200 tests: Blacklist function runEventHandler in eventhadler unit test Change-Id: Ib30db0c87095a465261119388806e23b60ec3de5 Reviewed-by: Jani Launonen A tests/auto/eventhandler/BLACKLIST commit 1829ed98e09f8722047f0d5f5aa7ab86ae50843f Author: Teemu Holappa Date: Wed Feb 12 15:18:23 2020 +0200 Add support for opacity animation Change-Id: I5fc803675c5b558cff471107f4535037d5bdd701 Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/saferenderer/testdata/first.sts M tests/auto/saferenderer/testdata/second.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit f97102f0b85bc3429ba4d89913b2344880f7df85 Author: Tuomas Heimonen Date: Mon Feb 17 11:49:51 2020 +0200 License header update Bumb copyright year to 2020 Update licensing URL Task-number: QSR-618 Change-Id: I7b23adfb6aa02862c83a31d6c6a0e293acc1bff9 Reviewed-by: Jani Launonen M tests/auto/eventhandler/INTEGRITY.h M tests/auto/eventhandler/data/MainForm.ui.qml M tests/auto/eventhandler/tst_eventhandler.cpp M tests/auto/messageplugin/tst_messageplugin.cpp M tests/auto/qpf2crash/tst_qpf2crash.cpp M tests/auto/safelayout/iso-icons/TransitionsTest1.qml M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/safercc/tst_rcc.cpp M tests/auto/saferenderer/define_test_case.py M tests/auto/saferenderer/qpf2.cpp M tests/auto/saferenderer/qpf2.h M tests/auto/saferenderer/testcoverageobject.cpp M tests/auto/saferenderer/testcoverageobject.h M tests/auto/saferenderer/testdata/qml/MainForm.ui.qml M tests/auto/saferenderer/testwindow.cpp M tests/auto/saferenderer/testwindow.h M tests/auto/saferenderer/tst_qsaferenderer.cpp commit df824e5465b29cb0916c9a6f7c6316860c8eae96 Author: Teemu Holappa Date: Tue Jan 14 19:52:51 2020 +0200 Create tool for editing unit test case definitions Created a simple editor using pyQt to edit test case definitions. Change-Id: I680142bf6e5d2d9062fc476c4fe5996c6e7dc51c Reviewed-by: Jani Launonen A tests/auto/saferenderer/define_test_case.py commit 2a518c4edab843cff7045916dd31474116d51b26 Author: Teemu Holappa Date: Wed Feb 12 15:14:19 2020 +0200 Remove duplicate enum definition Change-Id: I5d7788669d915f0e1b23b3b13051ebb29f542bc6 Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 71f630e9d296e4d106a78126e9ee67211a40003c Author: Teemu Holappa Date: Wed Feb 12 13:08:40 2020 +0200 Add missing set count in state loader Change-Id: I4715f107be25344c0723ceb0b4e196d9c8794928 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 21f0c274c9b496771f2b075e4e9eabe9fc2ace5b Author: Jani Launonen Date: Wed Feb 5 16:09:30 2020 +0200 Replace calls to putPixel() with *blit* functions Replaced calls to putPixel() in clear(), doClearBitmap() and doDrawBitmap() with convertAndBlit() and blitConvertedRepeatedly() functions for performance reasons. This removed unaligned accesses and some overheads when converting similar pixel multiple times. convertAndBlit() now expects input pixel to be in native endianness (i.e. read by qFromBigEndian()) and it returns a pixel in native endianness that is accepted in blitConvertedRepeatedly(). Test data for testSafeRendererDoDrawCompressedBitmap() changed too to a more representative example. Task-number: QSR-535 Change-Id: I22cb3532e28fde83f97bc3ce31377216bc986ed4 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.compressed M tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.decompressed M tests/auto/saferenderer/tst_qsaferenderer.cpp commit b94ddfd9faf67b9d05cfc2a4450734323dd4e713 Author: Teemu Holappa Date: Mon Dec 9 15:47:11 2019 +0200 Fix valgrind warnings in QSafeTextLayout Change-Id: I17760524899e8e1b7d34099b7267225c0663d5ca Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 7c9f2d3aa0ab234b242f767c71e4f8ecc22a50aa Author: Teemu Holappa Date: Thu Dec 12 16:52:14 2019 +0200 Improve test coverage in stateloader class Change-Id: I9e663ea3058f89a388f5929960a264cbf245211b Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit c8ee91397ed10b7533d69b7b01d1ab7752f6b97c Author: Tuomas Heimonen Date: Tue Feb 4 11:00:35 2020 +0200 tests: Fix safercc autotest to have correct path for binary in Windows Change-Id: Iacc51f899eb8cd89822fad712f359e6a0f5ab8c5 Reviewed-by: Jani Launonen M tests/auto/safercc/safercc.pro commit d9b97958e5fa3ae6ea160be7f5925bd17a80290a Author: Jani Launonen Date: Thu Jan 30 13:45:23 2020 +0200 Rename RGB565 surface format to RGB565_LE As with RGBA8888_LE format, now RGB565 have been renamed to RGB565_LE to reflect the byte order in framebuffer's physical memory. Task-number: QSR-612 Change-Id: Iacd7f9f13ef48aa06c023eea23626c7da4e84671 Reviewed-by: Teemu Holappa M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 72f06b1a9fd5032573261aaf6340b83a6fdc6187 Author: Jani Launonen Date: Mon Jan 13 17:31:30 2020 +0200 Fix endianness in compression tool To generate bitmaps correctly the input to compressor had to be changed to little endian and this resulted in changes in qsafecompressorimagegenerator.cpp's checks and unit tests. Task-number: QSR-574 Change-Id: Ic0cd858f06e0417464c9210593600d71933cc3b2 Reviewed-by: Teemu Holappa M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit 15e225144993596bf57ca09df8f567497b22f0db Author: Tuomas Heimonen Date: Fri Nov 22 12:10:02 2019 +0200 safercc: Update namespace to 'Saferenderer' Task-number: QSR-589 Change-Id: Ibd179dcf895fd267ed6b9e620ec5cb3ad7634785 Reviewed-by: Teemu Holappa M tests/auto/eventhandler/eventhandler.pro M tests/auto/safercc/data/images/images.expected M tests/auto/saferenderer/saferenderer.pro commit ce26aa8782f2b90054e4b0e966b4b04eecd0fade Author: Tuomas Heimonen Date: Tue Jan 7 14:00:27 2020 +0200 Coco: Set threshold values Change-Id: Id14447bdd74bad3e9719260791b92646ea67ab25 Reviewed-by: Teemu Holappa M tests/auto/codecoverage.pri commit 4b86897fc5e9877c44c456a5f72060a12e0f9b53 Author: Teemu Holappa Date: Mon Aug 5 11:43:17 2019 +0300 Add QML transition and animation support to the layout tool Change-Id: I38515e4251d0adf9e412a290b1be3fd2414e3d01 Reviewed-by: Jani Launonen A tests/auto/safelayout/iso-icons/TransitionsTest1.qml M tests/auto/safelayout/safelayout.pro M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp M tests/auto/saferenderer/testdata.qrc A tests/auto/saferenderer/testdata/first.sts A tests/auto/saferenderer/testdata/second.sts M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 36038929ed64773e3ac594cde7e6408b7ea4e38c Author: Tuomas Heimonen Date: Tue Dec 31 10:45:41 2019 +0200 Tests: In safercc auto test replace qtsafercctool binary finding Try to find qtsafercctool binary from '/bin>', '<[QT_HOST_BINS]>', or '/Tools/QSR-/bin' Change-Id: Ife7073b47d6b53ea69ed97c1e0d5fa4305642942 Reviewed-by: Teemu Holappa M tests/auto/safercc/safercc.pro M tests/auto/safercc/tst_rcc.cpp commit 9546f17b7a538dc82dcec548072fb7c107c105aa Author: Jani Launonen Date: Mon Nov 4 14:00:08 2019 +0200 Add support generating compressed bitmaps from qsafelayouttool QSafeLayoutTool now generates RLE32 compressed bitmaps. Unit tests for simple cases are included. Resource files in tst_eventhandler are not build anew because resource filea are not yet compatible with compressed bitmaps' requirement of 32-bit alignment. Task-number: QSR-524 Change-Id: Ica49ddc8cffc1712142a7931f01293cf9aea07d0 Reviewed-by: Teemu Holappa M tests/auto/eventhandler/eventhandler.pro M tests/auto/safelayout/safelayout.pro M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit fa0ee4d5cfc468807a3fbde57c95e4929dec7e8f Author: Jani Launonen Date: Mon Nov 4 12:04:13 2019 +0200 Add support for compressed bitmap files with tests Added support to load a compressed bitmap files with new file format and decode it while rendering it to a framebuffer. QSafeBitmap.h has new fields and methods to set and get escapeMark and a flag indicating whether the bitmap is compressed. QSafeBitmapBuffer now returns 32-bit word aligned pointers to speed up decoding during runtime. QSafeBitmapReader.h now has some common definitions related to a new file format supporting compressed bitmaps. A new source file, QSafeBitmapReader.cpp has now common bitmap header validation and reading routines refactored from both QSafeBitmapFileReader and QSafeBitmapResourceReader classes. It now detects a new file format supporting compressed bitmaps, namely extended header tag and escapeMark field. QSafeBitmapReader now has common exceptions for both File and Resource readers, which is reflected in test cases. Test cases could be redundant after this, but that is not all that bad. QSafeRenderer now has logic to select compressed or non-compressed bitmap during runtime and selecting doDrawComrpessedBitmap() or doDrawBitmap() respectively. Also some additional check for alignment is done during construction Task-number: QSR-524 Change-Id: Ic0c81209742ed9a6d22a66d8c02d43b295a54998 Reviewed-by: Teemu Holappa A tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.compressed A tests/auto/saferenderer/testdata/iso_grs_7000_4_0011_64x64_000000.srb.decompressed M tests/auto/saferenderer/testwindow.h M tests/auto/saferenderer/tst_qsaferenderer.cpp commit adc19f251206a7bf2bcf27b94e5494d05cdc4e2c Author: Tuomas Heimonen Date: Mon Dec 16 09:52:25 2019 +0200 Remove unnecessary setCount method Change-Id: I35be7bb217f229bb4e83a1dd14b992ddec316fb2 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 7479d217fd6ba60772e5ea4c8b37ff3dedebbf91 Author: Teemu Holappa Date: Wed Nov 13 11:30:10 2019 +0200 Add support for the XYAnimation Change-Id: I6c2a657f13a58ec8df6d8c922891a7ab8c4047ca Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit decbd15f6804e9701b07fcb925176e5eda0936f7 Author: Tuomas Heimonen Date: Tue Nov 19 12:49:07 2019 +0200 Decrease QSR version to 1.2 Task-number: QSR-569 Change-Id: Ieb75c39a23063508f49eac3e14b074e5a3a57b33 Reviewed-by: Teemu Holappa M tests/auto/eventhandler/data/MainForm.ui.qml M tests/auto/saferenderer/testdata/qml/MainForm.ui.qml commit 313801e5baa84655cbf2f951ad9ba16a3f43e900 Author: Teemu Holappa Date: Tue Nov 12 10:23:06 2019 +0200 Fix compiler warnings in tst_QSafeRenderer Change-Id: I342c1c4196e08740a10eeaa8f1f2aa29356723ac Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 34ebecacdc63cb1622f32ae26427e4ed9e521107 Author: Teemu Holappa Date: Tue Nov 12 13:06:47 2019 +0200 Add common header for sharing datatypes between runtime and tooling Change-Id: I63d84e7fe4efaeec796e1706f471773b29ae3fc2 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 273f2a5b33e801bd6dccc99132d03a7e9df9dfb8 Author: Teemu Holappa Date: Tue Nov 12 15:25:43 2019 +0200 Fix crc checking of the text layout file Task-number: QSR-586 Change-Id: I8879f81b3c48effddbd6f71dfd17105d82b1eb1e Reviewed-by: Jani Launonen M tests/auto/saferenderer/testdata.qrc M tests/auto/saferenderer/testdata/TextFieldTest.srl A tests/auto/saferenderer/testdata/TextFieldTestWrongCRC.srl M tests/auto/saferenderer/tst_qsaferenderer.cpp commit 0c6b71398161b9ba2f4cd1576c2468a5f05582e0 Author: Tuomas Heimonen Date: Thu Nov 14 12:39:36 2019 +0200 qtsafercctool: Change to use rcc fork fork base is qtbase SHA1: f0b93f7a4b4281c5470280eb36b7c0ef5948a921 v5.12.6 sources path tools/qtsafercctool copied from qtbase/src/tools/rcc test path tests/auto/safercc copied from qtbase/tests/auto/tools/rcc file tools/qtsafercctool/rcc.pro renamed to tools/qtsafercctool/qtsafercctool.pro in tools/qtsafercctool/qtsafercctool.pro changed 'QMAKE_TARGET_DESCRIPTION = "Qt Saferenderer Resource Compiler"' file tests/auto/safercc/rcc.pro renamed to tests/auto/safercc/safercc.pro in tests/auto/safercc/tst_rcc.cpp:72 test binary name 'rcc' changed to 'qtsafercctool' Task-number: QSR-573 Change-Id: I867d6861b039a2ba6241e4af7fcae31ffee15ff6 Reviewed-by: Teemu Holappa M tests/auto/auto.pro A tests/auto/safercc/data/binary/aliasdir/aliasdir.txt A tests/auto/safercc/data/binary/aliasdir/compressme.txt A tests/auto/safercc/data/binary/aliases.expected A tests/auto/safercc/data/binary/aliases.qrc A tests/auto/safercc/data/binary/allfeatures.de.expected A tests/auto/safercc/data/binary/allfeatures.de_CH.expected A tests/auto/safercc/data/binary/allfeatures.expected A tests/auto/safercc/data/binary/allfeatures.ko.expected A tests/auto/safercc/data/binary/allfeatures.locale A tests/auto/safercc/data/binary/allfeatures.qrc A tests/auto/safercc/data/binary/blahblah.txt A tests/auto/safercc/data/binary/currentdir.txt A tests/auto/safercc/data/binary/currentdir2.txt A tests/auto/safercc/data/binary/locale.de.expected A tests/auto/safercc/data/binary/locale.de_CH.expected A tests/auto/safercc/data/binary/locale.expected A tests/auto/safercc/data/binary/locale.it.expected A tests/auto/safercc/data/binary/locale.locale A tests/auto/safercc/data/binary/locale.qrc A tests/auto/safercc/data/binary/multiple.expected A tests/auto/safercc/data/binary/multiple.qrc A tests/auto/safercc/data/binary/otherdir/otherdir.txt A tests/auto/safercc/data/binary/prefixes.expected A tests/auto/safercc/data/binary/prefixes.qrc A tests/auto/safercc/data/binary/search_file.txt A tests/auto/safercc/data/binary/searchpath1/search_file.txt A tests/auto/safercc/data/binary/searchpath2/search_file.txt A tests/auto/safercc/data/binary/simple.expected A tests/auto/safercc/data/binary/simple.qrc A tests/auto/safercc/data/binary/subdir/subdir.txt A tests/auto/safercc/data/binary/test/german.txt A tests/auto/safercc/data/binary/test/test/test1.txt A tests/auto/safercc/data/binary/test/test/test2.txt A tests/auto/safercc/data/binary/test/testdir.txt A tests/auto/safercc/data/binary/test/testdir2.txt A tests/auto/safercc/data/images/images.bin.expected A tests/auto/safercc/data/images/images.expected A tests/auto/safercc/data/images/images.qrc A tests/auto/safercc/data/images/images/circle.png A tests/auto/safercc/data/images/images/square.png A tests/auto/safercc/data/images/images/subdir/triangle.png A tests/auto/safercc/data/parentdir.txt A tests/auto/safercc/safercc.pro A tests/auto/safercc/tst_rcc.cpp commit a6942c23a390f4f623f453d3f64e65f938b1e5cc Author: Tuomas Heimonen Date: Fri Nov 1 14:30:35 2019 +0200 tests: Simplify qpf2crash Change-Id: I315476eb8f963868d6dab4d71d4affd00755970a Reviewed-by: Jani Launonen M tests/auto/qpf2crash/qpf2crash.pro M tests/auto/qpf2crash/tst_qpf2crash.cpp commit a4246ff055ebed215bfbe905b83508c384289d57 Merge: 5352c09 6e3acb4 Author: Tuomas Heimonen Date: Wed Oct 16 12:32:12 2019 +0300 Merge branch '1.1' Task-number: QSR-503 Change-Id: I2dcd3084e709d604827ba65954fd318d3ecd1d32 commit 5112858f8f1cc38ba1a330bb97ec34579e581a1e Merge: 19e924b 76e19ec Author: Teemu Holappa Date: Fri Sep 13 14:40:45 2019 +0300 Merge branch '1.1' into master Change-Id: I10cd88e79bd48785d446a377b8021ea8ca19b32c commit e31a035f69bbc7280fc6e01e0c1031ac569b84a7 Author: Teemu Holappa Date: Fri Sep 27 17:52:38 2019 +0300 Add test case for the bug QSR-468 Change-Id: I618ecc9b49f0d98bca53ca340505f2cd2f68db2a Reviewed-by: Jani Launonen M tests/auto/safelayout/tst_qsafelayoutgenerator.cpp commit acbcb687802afda7588ed58567058759c43555cb Author: Teemu Holappa Date: Tue Sep 17 17:20:36 2019 +0300 Add support for MSVC compiler Change-Id: Id4c2683d42d8ae22b0b65a315d36ac781bae1d85 Reviewed-by: Jani Launonen M tests/auto/saferenderer/tst_qsaferenderer.cpp