| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
it's all done with QFile now
Change-Id: I0f8147bcedc1514ed7685fb6f8b42f7fbe65a4aa
Reviewed-by: L Potter <lorn.potter@gmail.com>
|
|
|
|
|
| |
Change-Id: Ib569e9436cef4ba32721f8f8db97e9eaf43959dd
Reviewed-by: L Potter <lorn.potter@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Change-Id: Iecae90f4c315668d7ac16923ccdfcacf6153d0e8
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some users reported a division by zero problem when connecting to the
backend, I suspect this is the reason for it. The sensor service seems
to report either the min or the max delay as zero.
Change-Id: I8b7e8f7c3243d7016c0c4472713c4c116471015d
Reviewed-by: Tobias Koenig
Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
| |
Change-Id: Ia7a284fc407a28a3cfae14358a8286864ad0c25a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, we simply assumed to be active. Now, we read the state
from the navigator PPS file instead.
Also move reading of the orientation into its own function for
consistency.
Change-Id: Icc1789bd942e8fa5a9d5451de4c2ab9f3ffb54e4
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The patch adding QSensor::Feature support was developed before buffering
was implemented on Blackberry, so update this to reflect the current
situation.
Also fix compile warning about missing Reserved value.
Change-Id: I085afeefc6c2dc7f520c9ef93d90a93f3e8a03e7
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
The remapping code was moved to BbSensorBackend.
Change-Id: I6ede875594a2aaa3745b7deb4aa0ed64c2d9b855
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the Blackberry backend, we can't depend on QtGui and especially
not on the Blackberry QPA plugin, as Cascades uses
QCoreApplication, not QGuiApplication.
All QtGui functions are replaced with a new GuiHelper class, that
internally uses BPS.
Change-Id: Ia508e8b397050676c68612340d33cdbf57041076
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
| |
BbProximityReading extended QProximityReading with a distance and a
reflectance property. Reflectance is already available in the IR
proximity sensor, while distance isn't supported on any device.
Change-Id: I413d3e35b0ccae29592dc11c287c3af6d5133ecc
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
|
|
|
| |
This fixes the direction flipping over when holding the device
upside-down.
Change-Id: I57bac63208d475d4091b47593b9768613eea30b0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I12b14975bae9bf834f82e0f04d72baa9b506cbef
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
| |
Most of this code comes from QtMobility n900 sensors backend.
Change-Id: Iacbf9363ac8fc4b8b737dc857766f02655374db7
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
The API provided by QSensor does not fit nicely for what the OS
service API provides. Instead of adding yet another buffer-related
property to QSensor, I added documentation to QSensor describing
the differences in behaviour.
Change-Id: I2d81d9c62ce7e8b50c27631a28aa7fbcaca70373
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
| |
The rotation property is redundant, as it can be deduced from the
orientation. Furthermore, for FaceUp and FaceDown orientations, the
rotation is always 0, further confusing the issue.
Change-Id: I4348cd56fe713358d388a09829224159eab8b6b8
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
|
|
|
|
|
|
|
|
| |
Change-Id: Iae2c29ac040d32623ec49976cf4df0a7a492d28b
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
Change-Id: I119c5864599e206795522be485c4c218f983cfb9
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
|
|
|
|
|
|
|
| |
Change-Id: I8a5e6995e735cd7d80e24c9462f144b75a177d5a
Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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>
|
|
|
|
|
| |
Change-Id: I35eb858cad41167ac6bbbf17e48571965f34f8ca
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a backend specific property named "automaticAxisRemapping" to force
the sensor to modify its coordinate system based on the device native
orientation.
So usable from C++ using 'setProperty("automaticAxisRemapping", true)'
or from QML using 'property var automaticAxisRemapping: true'.
Note it requires QPlatformScreen::nativeOrientation() private API to
find out the device native orientation.
Change-Id: If4c5622fd42c74a55fe6d36966d7f589e612c117
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: If4c04a6e3f9a936f55233c621d184bc0e4d99e1b
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
| |
This does not happen very often but it's good to report it when it does.
Change-Id: Iaec494f3aa449dbfcda1522ecde4da9311fa27c9
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
|
|
|
|
|
|
|
|
|
|
| |
Consolidate all of the Q_GLOBAL_STATIC data into 1 class so we have one
lifetime to manage. Provide a static instance() method for use outside
of the .cpp file and check for this returning 0.
Change-Id: I243e2c5497e1c018ab7713bd9ef43ac22a658ff7
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
|
|
|
|
|
| |
Change-Id: I4311cffddc1653ecf62129bb392350acc6e60276
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: I4f15a1b959a35ec572d13c95430b0058b75b2061
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: Ic6aa24ca44b6cb61c1592bd8536a092d7ec0fc90
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
| |
twist will better work with varying twist speeds.
Change-Id: Iacb87ff8ad337d0b393497f49cf75d73eacdc4e6
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
| |
false positive was tapping fingers on screen would produce a whip
:
Change-Id: Ibff1323f27e899cd63bdbaddcf0e77915a993b21
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
instead of using hard coded values which may be different depending on
devicecalibration.
Change-Id: I1e0a41a7dd45b115daa9f4f873621ffbba673e21
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
timers need to be stopped when gesture is stopped, else it
may interfere in the next test, where the same instance of timer is
used.
As well, reset some values.
Change-Id: Ib69bbaab88d55bef1c3c5614cae1bdec378aa89b
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: Ife482d8acb5a533f61e009bf65ec37215a7af595
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
| |
slam and other gestures need to be performed the way the test data
shows.
slam is effected the most as now the gesture needs no hold at end to be
recognized, in accordance with data collected.
Change-Id: Iedfcf8e42def0b1dfe1c4d289a416ca64d8846e1
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Looking at the sensor plugins, it seems we need to load(qt_module)
and load(qt_plugin) instead of the other things these were doing.
Also, QT = core sensors because these plugins have no dependency on
QtGui so we don't want to link that in.
Change-Id: Id0560b0da39e6d2a7ed8619545189446324f69c0
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
|
|
|
|
|
|
| |
Change-Id: Ia3c49b6d991439eba06537938198ed682f23065d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
| |
Change-Id: I3b58ead1b24391ead4577777387dce44245e28a0
Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
| |
Change-Id: I04e1c1eb7702626f4ce5e19b301f8774e604b930
Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Each sensor now installs itself as an event filter of the application
object waiting to (de)activation events. When an ApplicationDeactivate
event arrives sensors are paused, they get resumed on
ApplicationActivate.
This behavior is inhibited by the alwaysOn property.
Change-Id: I559239f279d9412d8836efad08e6688019504b16
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
| |
code from the plugin has been moved into the manager so that every other
plugin can be triggered by the emluator.
Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure the DCMD_SENSOR_BKGRND command is sent to the sensor when we
call start(). Also ensure we send again the command when the property
is updated.
Change-Id: Ia37a96ba4dfc6fc1bdecf54ad2b730412939b32a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
| |
set the datarate for accel sensor to be known.
Change-Id: I83f8771b178591adb518146473819602f7f48b23
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
| |
sensor.h is a temporary copy until this file is available
in the Blackberry NDK.
Change-Id: I6a47ee4c8ccc0cc3603ea2df3c9fd61259e8ffac
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
| |
Change-Id: I8e8d316fb1bf0a6793a1f418af841c9ee85ac264
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
|
|
|
|
|
| |
Change-Id: Id8b161f0de1a96a9a92a7fcbc11c9fd9c9fefe00
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
|
|
|
|
|
|
|
|
| |
Rather than having to remove plugins after build/install they can
be removed from the build by setting SENSORS_PLUGINS when building.
Change-Id: I9d0cf247043b683e32311e0a6fe69ef37e43455d
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
|