Age | Commit message (Collapse) | Author |
|
In Emerald, robby project's sensor code has been moved to
/vendor/intel/robby/sensors
Change-Id: Iff11b2f079ba47003637c9a3024f997da34b5b02
|
|
Change-Id: I340fb240f4109cddfda70cd17a07d06fef0b8209
|
|
Remove reference to stlport
Bug: 23034764
Change-Id: I9b5cb0dfa2ec7bdc6676d39855fdb9dfecfb9e3a
|
|
|
|
|
|
Recognize M (version 6)
Fix LOG% macros to work with version >= L
Fix missing includes
BUG: 23034764
Change-Id: I069fe0c4efd720386f97dff656c4b90a1ec12ce4
|
|
Fix missing includes
BUG: 23034764
Change-Id: I80779060fc84befaf51a21857546e87f3e04c747
|
|
Poll with timeout = -1 for flush complete event and timeout = 1000
for regular sensor event
flush requests are tracked with vector. This requires to include stlport.
As stlport olverloads pow(), all calls to this function are also modified
to avoid ambiguous calls.
Change-Id: I4f8bd97289dbc3e18b5fb0911aa84bde4f401ad8
Signed-off-by: Like Yan <like.yan@intel.com>
|
|
Generating a flush_complete event right after receiving
a flush_request from the sensor services breaks the flow
as the client stops acquiring data.
Solution is to store the timestamp of the flush request
and issue the flush_complete event when the timestamp
of the sensor data matches
Change-Id: Idb273db3e69e6e2593c00298d3d458fc7c965830
Signed-off-by: Fei Li <feix.f.li@intel.com>
Signed-off-by: Guillaume Ranquet <guillaumex.ranquet@intel.com>
|
|
When the HAL writes to the pipe, each sensor sample is 104 bytes.
Adjust the pipe size to handle the worst case, where the full FIFO is
written to the pipe in one chunk.
Change-Id: If04b7246083e199832d31d8d58a37b7a1d3cf220
Signed-off-by: Guillaume Ranquet <guillaumex.ranquet@intel.com>
|
|
Change-Id: Ic3ead5d7b985c643a5da67e4105a76f589e71b22
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-966
Signed-off-by: Fei Li <feix.f.li@intel.com>
|
|
The iio length is just for allow buffer to store data,
2.5's raw data at least. the store_length is just the
real raw data length you want to batch in the buffer.
We must ensure length is large or equal to store_length.
Change-Id: I79b26daa9e95d853e649c3e2f6eb470bf636a5cc
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-962
Signed-off-by: Fei Li <feix.f.li@intel.com>
|
|
This reverts commit c4306755911e922ee72de7e8f159368538f0d94f.
Change-Id: I2efae19490b5cb7e0669ebda75a6f84e29a35230
|
|
fix sensor events timestamp out of expected range during CTS verifier test.
Change-Id: I271505dfb480374949d57b997d08d618dde0bcc2
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-914
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
|
|
As a workaround fixing the issue that lsm6ds3 sensor chip measured angle
less than real rotated angle.
Change-Id: I3625511628c7dc1359c7d14dcf619637c8b807b6
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-925
Signed-off-by: Fei Li <feix.f.li@intel.com>
|
|
CLOCK_BOOTTIME includes suspend time, so it would allow aplications
to get correct time difference between two events even when system
resumes from suspend state.
Change-Id: I6986506105aaa4220ccca49738d089b630648317
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-893
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com/422142
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Yan, Like <like.yan@intel.com>
Tested-by: Yan, Like <like.yan@intel.com>
Reviewed-by: Akue, LoicX <loicx.akue@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
fix the bug for all HW/SW sensors
Change-Id: Idc9809f55a3f3fe3171beb8b2bb55962a08d7b6b
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-882
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/421790
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
Change-Id: Iaf8d71531b9622ead2aa47fbb33db909a8d0e082
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-884
Signed-off-by: Like Yan <like.yan@intel.com>
Reviewed-on: https://android.intel.com/421747
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Tested-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
Change-Id: Ie29ff4edf0adad6b49f5fe1ae057e723128585ac
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-880
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com/421534
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
debug logs should be removed for production build.
Change-Id: Id885d00612a9efdca7ad8a8d26288efbeebf0da2
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-799
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com/415578
Reviewed-by: Korpershoek, MattijsX <mattijsx.korpershoek@intel.com>
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Pujol, Benjamin <benjamin.pujol@intel.com>
Reviewed-by: Akue, LoicX <loicx.akue@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
The bug results in less sensor events reported than requested.
Change-Id: I61b4e22100d227d1c1e073da5e665dec4cf19943
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-592
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/414386
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Tested-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Hadjimegrian, MathieuX <mathieux.hadjimegrian@intel.com>
Tested-by: Hadjimegrian, MathieuX <mathieux.hadjimegrian@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
|
|
set_delay and batch function is no necessary for tilt, removed to avoid
unexpected change.
Change-Id: If0efc779ac9f17c7ff0fc240b9aba6c5fd67fa0a
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-746
Signed-off-by: Like Yan <like.yan@intel.com>
Reviewed-on: https://android.intel.com/412303
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Hadjimegrian, MathieuX <mathieux.hadjimegrian@intel.com>
Tested-by: Hadjimegrian, MathieuX <mathieux.hadjimegrian@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
|
|
JIRA: MARVIN-522
Change-Id: I8ea95dfd8c2fff3ed4df5c59d808d45fccb238d0
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/394732
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
JIRA: MARVIN-486
We should enable the device first, then enable the interrupt
or state machine; otherwise, the state machine may not work.
Change-Id: I0bf3952231bf7f0d645dd1c1f51dfae6ae5be23d
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/398222
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
|
|
JIRA: MARVIN-315
Reverse Accelerometer (x and z axis) and Gyroscope (z axis) matrix to fix it.
Change-Id: I5da569afbc5ac2607c8c96caa5f339e7b01db0fc
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/389877
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
Tested-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
|
|
JIRA: MARVIN-99
Change-Id: Idc737ca92faaa1074262b1fa418f3f04d9e6e561
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/380493
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
Reviewed-by: Pujol, Benjamin <benjamin.pujol@intel.com>
|
|
JIRA: MARVIN-239
Fix bug in flush function for sensors:
1. for One-Shot sensor, return -EINVAL;
2. for sensors not using FIFO, return flush complete event;
3. for sensors using FIFO, flush data in FIFO.
Change-Id: I3e35a9be39150d2ca2be0166b516a722df8fefda
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/376695
Reviewed-by: Pujol, Benjamin <benjamin.pujol@intel.com>
|
|
tilt, als & accelero/gyro are common for robby devices.
Change-Id: I256befd1f7d9ad8755a1ba5334c3f629597d05bf
Signed-off-by: Saadi Maalem <saadi.maalem@intel.com>
|
|
JIRA: MARVIN-79
Load sensors calibration data at boot, and set the corresponding offset of IIO channels
to calibrate raw data of sensors
Change-Id: Iaf5842fd46edd8445a0a2ba03e765fa82a4f0519
Signed-off-by: Fei Li <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com/379867
Reviewed-by: jenkins_ndg <jenkins_ndg@intel.com>
Reviewed-by: Marcenac, GuillaumeX <guillaumex.marcenac@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Maalem, Saadi <saadi.maalem@intel.com>
Reviewed-by: Yan, Like <like.yan@intel.com>
Tested-by: Yan, Like <like.yan@intel.com>
|
|
Updated sensor type definition for tilt since it is changed on Diamond.
Change-Id: I806616b54df5b40ae1265f7a84da920c9edf00dc
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-662
Signed-off-by: Li,Fei <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com:443/366781
|
|
Add ambient light sensor HAL flush function need by android wear,
add flush event data to event data queue for polling.
Change-Id: Iaa6b8c818f07242dc09bf281445b2e1f4d0231f4
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-627
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com:443/363333
|
|
Add tilt sensor HAL flush function need by android wear,
add flush event data to event data queue for polling.
Change-Id: Iadc189327992a66601882b6718cc8abf414467f8
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-627
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com:443/363780
|
|
Add ambient light sensor HAL for tsl258x sensor base input subsys.
Change-Id: I16999c6d54ddb9889d2769a0a372029f4abe2fd1
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-551
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com:443/356619
|
|
Modify ST lsm6ds3 HAL-IIO v3.0.0 code's config to adapt marvin need
Change-Id: I2d97a25553d2a3b6e3503e32debbe065ed0a65bf
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-175
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Signed-off-by: Li,Fei <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com:443/346319
|
|
Add original SensorHAL_IIO_v3.1.0 for lsm6ds3 sensor
Change-Id: Iebd049a36696f9b1f09049cc8672ed260c12cdf7
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-175
Signed-off-by: Baixing Tan <baixingx.tan@intel.com>
Reviewed-on: https://android.intel.com:443/346267
|
|
Add ST lis3dsh tilt sensor HAL code base on input subsystem
Change-Id: Ic231b8e0acec604ca16346ca711332a9282b480e
Tracked-On: https://jira01.devtools.intel.com/browse/MARVIN-172
Signed-off-by: Li,Fei <feix.f.li@intel.com>
Reviewed-on: https://android.intel.com:443/317600
|
|
Change-Id: I2f2df89e74917a9ab1cdb8e256954d1e1bdc4a5b
Signed-off-by: Victor Tasayco Loarte <victorx.tasayco.loarte@intel.com>
|
|
|