summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add QPressureSensorThomas McGuire2013-01-232-0/+8
| | | | | | | | | | This adds a new QPressureSensor plus the assorted reading and filter classes, as well as a QML API. The Blackberry backend is ported to use the new reading class. Change-Id: Ifc86a2ae955a9337a67fd9a86ceabab908917cb3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* QAccelerometer: Add AccelerationMode propertyThomas McGuire2013-01-231-0/+2
| | | | | | | | | | | Add a new property to be able to toggle effects of gravity on or off. Implement the Blackberry backend side of this as well. QTBUG-25842 Change-Id: I15c4cae72373f48b0153b83c6aa3d27b66538c87 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-293-3/+3
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-283-3/+3
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* remove the need to use QTimer and use timestamps instead.Lorn Potter2012-11-143-1/+425
| | | | | Change-Id: I6327357de9f84df3db86d714747210fe62547818 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* adjust to qt_plugin.prf and qml_plugin.prf changesOswald Buddenhagen2012-11-021-6/+3
| | | | | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. this contains a nasty hack for examples, as we don't want users to use the internal prf files. Change-Id: I9e854e7ff6183e19801998ff7157a279b97b2be4 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-114-117/+258
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-097-818/+7
| | | | | | | | | | | The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add SensorGesture QtMobility.sensors 1.3Lincoln Ramsay2012-10-081-0/+2
| | | | | | | This has been imported from QtSensors 5.0 without changes. Change-Id: Ie6a919f9b806bf19287a693fb7cdb563f8697e13 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add TiltSensor to QtMobility.sensors 1.3Lincoln Ramsay2012-10-034-75/+13
| | | | | | | | | | | This has been adapted from the TiltSensor type in QtSensors 5.0 import but the code there has been split into multiple pieces. There's a C++ class, a generic backend and a QML interface. Change-Id: Ic09465a5f76250a02a13938abe4789958137376f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtMobility.sensors has a new implementationLincoln Ramsay2012-09-264-2/+83
| | | | | | | | | This implementation fixes the limitations the original code had and separates the QtSensors C++ API from the QML API so that changes to one don't need to affect the other. Change-Id: I519463f3c7cfbad3bce5c291ce166b8793d5ed4a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2449-1179/+1179
| | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I85014238e262cb59d8d92b0d708851e82e5633da Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Pass through invalid data rates to the backend instead of ignoring themThomas McGuire2012-08-281-8/+5
| | | | | | | | | This gives the backend the chance to do something sensible with it, at the expense of the data rate not being reported correctly in those cases. Change-Id: Iadf72b4448145f2454bc9422dde094ad799cb17a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix compilationLars Knoll2012-08-071-1/+1
| | | | | | | This test needs core-private to compile Change-Id: I9e0d574a9c9ab6d6ede354b60c6a74b3b488d4ea Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-029-0/+9
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: Ie47ddce66e9738b43826e6472811ae76a88472d2 Reviewed-by: Alex <alex.blasche@nokia.com>
* Add QSensor::isFeatureSupported()Thomas McGuire2012-07-233-0/+27
| | | | | | | | | | | | Now it is possible to check if a backend supports a specific feature. During reviews of features like acceleration mode or duplicate skipping, the issue was raised how to check if these features are actually supported. The same is true for existing features like QMagnetometer::returnGeoValues. Change-Id: I47115d6c487bbcbb668a9021cdc7085e6780a67c Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Test that the package configs for QtSensors work.Stephen Kelly2012-07-205-0/+90
| | | | | Change-Id: I0e633a4ff854beb2c2087ab231b413b1916c3372 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Introduce QRotationReading::setFromEuler() in favor of set{X/Y/Z}()Thomas McGuire2012-07-181-3/+1
| | | | | | | | | | | | | In preparation of adding new representations to the reading (QTBUG-25840), the setX(), setY() and setZ() setters were removed, as these don't set the representation atomically, and don't provide a single point where a conversion to matrix or quaternion can occur. These setters were only supposed to be used by the backends, and all backends are ported in this commit. Change-Id: Ib652520578d293687fc8515d226f1f61aa2f2def Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-261-2/+0
| | | | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL - pointless include and depend paths Change-Id: I2c5062c238c6948f99d72f7c5544095cd30c988d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* enable the dtap sensor tests, as I cannot reproduce 25374 on mac.Lorn Potter2012-06-221-3/+2
| | | | | Change-Id: I75d0cbd1bd9ed5bfe7de3ef4aab09606a4f57869 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make twist work better when the phone is tilted.Lorn Potter2012-06-132-0/+286
| | | | | Change-Id: If4c04a6e3f9a936f55233c621d184bc0e4d99e1b Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix another bad use of static plugins.Lincoln Ramsay2012-06-132-12/+3
| | | | | Change-Id: I88bbe0ffe7768576df92a1d8e45097f7c35c5702 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Use static plugins properlyLars Knoll2012-06-127-27/+7
| | | | | | | | The test case was trying to use static plugins in a rather hacky way. Change it over to use the standard way. Change-Id: I828e64b841b58b763018e2688553c0453abd304b Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Temporarily disable the test to get qt5.git through CILars Knoll2012-06-121-1/+1
| | | | | Change-Id: I98e74749fea8e7130dfd4df1213f435ebb0bbd31 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* setDataRates clobbers user-set data rateLincoln Ramsay2012-06-041-0/+22
| | | | | | | | | | | | | | | | | | | | | | Under normal conditions, dataRate is set/checked like so. QSensor::setDataRate records the data rate. It can't be evaluated because we have no backend. Upon getting a backend, we are notified of the available data rates. Re-evaluate the previously-set dataRate after connecting to a backend. The problem is that connectToBackend did not save the dataRate value until after setDataRates was called and setDataRates was clobbering the dataRate property. Two fixes will be made. connectToBackend will save the dataRate before creating the backend and setDataRates will stop clobbering dataRate. Also, setDataRates is now banned from being called outside of the constructor because otherwise an available data rate may disappear during use. Add a test case to verify that a previously-set data rate is not clobbered. Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* updated tests to new format and minor correctionsDaron Andrew Edie2012-05-311-68/+86
| | | | | Change-Id: I3a93a5351f918b38bc56bf50596bfebdea3f1287 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* fix false positive sensor gesture recognition when slam is too close to headLorn Potter2012-05-242-0/+230
| | | | | Change-Id: Ic6aa24ca44b6cb61c1592bd8536a092d7ec0fc90 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix false positive whip gesture.Lorn Potter2012-05-243-291/+826
| | | | | | | | false positive was tapping fingers on screen would produce a whip : Change-Id: Ibff1323f27e899cd63bdbaddcf0e77915a993b21 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make hover gesture work betterLorn Potter2012-05-242-0/+258
| | | | | | | | | make hover work when the ir prox is calibrated. Also make sure that a hand moving up after doing a cover does not trigger a hover signal. Change-Id: I8925c4d7dd53302b9d9950989e37ad991216f621 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make twist dependent upon an orientation change.Lorn Potter2012-05-181-33/+150
| | | | | | | | | This fixes getting a twist gesture by just moving the device left or right. and update one test data that did not have needed orientation change when the gesture was performed. Change-Id: I4fd9148d3f9c3d093530d08c2f6834f0972c659e Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add sensor gesture auto testsLorn Potter2012-05-1432-2/+6472
| | | | | | | | use mock sensor plugin to feed captured data through sensorgestures. Change-Id: I5d040f2b7d5786b79bf295c98777ada425acbe8a Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* QtSensors: Fix compilation after merging of the api_changes branch.Friedemann Kleint2012-04-181-0/+2
| | | | | Change-Id: I6d9f674eac15ad5f22de0e5631396c2c9eb1f19f Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Better/consistent progress messagesLincoln Ramsay2012-03-202-99/+101
| | | | | Change-Id: Ia71df7c244578818421e301924b52de1f33f1691 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* The variable is QT_SENSORS_LOAD_PLUGINSLincoln Ramsay2012-03-201-1/+1
| | | | | Change-Id: Ib9c52aff575cab9ef409e265e90e3c28aa517107 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use an environment variable to suppress loading of plugins.Lincoln Ramsay2012-03-192-15/+2
| | | | | | | | This removes the last use of the sensors_unit_test_hook function so it can be removed. Change-Id: I9f0b27fc69bfe74a151826714e3a1c0e207a7e0c Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Don't use the platform sensors for this unit test.Lincoln Ramsay2012-03-192-12/+13
| | | | | | | Turn off plugin loading and supply test backends. Change-Id: Ib8cf96d26f4e42b3cc48728eae53511430eb3a5a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use the new plugin mechanism for Sensors and SensorGesturesLincoln Ramsay2012-03-167-11/+11
| | | | | | | | | | | | | | Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead, Q_PLUGIN_METADATA is used. Meta-data is provided through a .json file that is embedded into the plugin by moc. For now, this meta-data is not actually used because both sensors and gestures use a dynamic registration mechanism. Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove REGISTER_STATIC_PLUGINLincoln Ramsay2012-03-162-16/+0
| | | | | | | | This API was never particularly reliable. It is somewhat incompatible with the new-style Qt plugins. Change-Id: Iaaa0e6282404ce5477abcc8b905b14b1fb58644c Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove REGISTER_STATIC_PLUGIN_V2Lincoln Ramsay2012-03-163-2/+31
| | | | | | | | | | | | | | | This was never officially part of the public API. Remove it from public headers so that it is not accidentally used. This macro cannot be used with the new Qt plugins. There are 2 unit tests that use this mechanism and for this reason, loading of static, legacy plugins will continue but they will use internal logic to achieve this rather than a macro defined in a public header. Change-Id: I3fadcc1ca5c22ea0fc3660584ddba28271d18a89 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove QSettings usageWolfgang Beck2012-03-161-21/+4
| | | | | Change-Id: Ifec28d4de4af4c5a114c66faaababaaeb57ad357 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add some testing for sensorgestureplugins, however feeble.Lorn Potter2012-03-144-5/+259
| | | | | Change-Id: I4758f401cbf577b2ac7ba772f4897e6334f22900 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Rename declarative symbols.Lincoln Ramsay2012-03-085-30/+30
| | | | | | | Use the script rename-qtdeclarative-symbols.sh. Change-Id: Ib1a62731a6c95590978a488c4afbd804f14fb958 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* updated gesture testsDaron Andrew Edie2012-02-241-21/+44
| | | | | Change-Id: I9390ac600dcc2bb7a0b583a1350bcb538574b868 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Revert "Disable unit tests that rely on plugin loading."Lincoln Ramsay2012-02-231-4/+4
| | | | | | | | | | The underlying problem has been identified and fixed. It turns out QFactoryLoader had a logic error. This reverts commit fbc2e2ca805b97bdbef4a3b6b6a276215ba668df. Change-Id: I419f0cd72b65d55b81a2f8896d5b77328bc9e5cb Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Disable unit tests that rely on plugin loading.Lincoln Ramsay2012-02-171-4/+4
| | | | | | | | | Plugin loading seems to be broken. We need to get a compile fix through but it won't go while the unit tests are failing. Just turn them off for now and they can go on when plugin loading has been fixed. Change-Id: I9cde13540ca82515d119b11316afe66b62b7f968 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* removed some tests due to test app availablity problemsDaron Andrew Edie2012-02-081-108/+2
| | | | | Change-Id: I1426afa510cf3339668934e81fa7e4475f22ebc8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3043-45/+45
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I1ecfbf66a49bb91dd995d92c871ca36148adc645 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* added QML System Test - Slow down IR Proxy polling when closeDaron Andrew Edie2012-01-291-3/+28
| | | | | | Change-Id: I9e2c2cfe6a597f72286c307be55aadbe8ef99c71 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2343-43/+43
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ie8628548cde5d3b251f319cbb6f33e6c08852d9e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* comment out auto and added default sensor rate testsDaron Andrew Edie2012-01-191-12/+94
| | | | | | Change-Id: Id2b2713902ece7264e9b17de341d8e4da85d9eb5 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>