summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nanotool: Add support for compressed mag samples am: 9301a0b25e am: 4f15b214b8android-mainline-10.0.0_r4android-10.0.0_r9android-10.0.0_r8android-10.0.0_r7android-10.0.0_r29android-10.0.0_r28android-10.0.0_r27android-10.0.0_r26android-10.0.0_r25android-10.0.0_r24android-10.0.0_r23android-10.0.0_r22android-10.0.0_r21android-10.0.0_r20android-10.0.0_r19android-10.0.0_r18android-10.0.0_r16android-10.0.0_r15android-10.0.0_r14android-10.0.0_r13android-10.0.0_r12android10-qpr1-releaseandroid10-qpr1-mainline-releaseandroid10-qpr1-d-releaseandroid10-qpr1-c-s1-releaseandroid10-qpr1-c-releaseandroid10-qpr1-b-s1-releaseandroid10-qpr1-b-releaseandroid10-mainline-media-releaseandroid10-devandroid10-c2f2-s2-releaseandroid10-c2f2-s1-releaseandroid10-c2f2-releaseAndrew LeCain2019-02-253-4/+23
|\ | | | | | | | | | | am: a2294ba6ac Change-Id: Ib002699cd5521d81d51650c7f3d0ea1362b41763
| * nanotool: Add support for compressed mag samples am: 9301a0b25eAndrew LeCain2019-02-253-4/+23
| |\ | | | | | | | | | | | | | | | am: 4f15b214b8 Change-Id: Ia75990ecfc0c72473ee145ee40dad522e9afe32d
| | * nanotool: Add support for compressed mag samplesandroid-o-mr1-iot-release-1.0.14android-o-mr1-iot-release-1.0.13Andrew LeCain2019-02-213-4/+23
| | |\ | | | | | | | | | | | | | | | | | | | | am: 9301a0b25e Change-Id: If09fa0a1f573115fdea303506586f41918c30260
| | | * nanotool: Add support for compressed mag samplesandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1android-o-mr1-iot-release-1.0.12android-o-mr1-iot-release-1.0.10oreo-mr1-iot-releaseAndrew LeCain2019-02-203-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BMI160 now outputs compressed mag samples, so add support to nanotool to handle them Test: On Pixel 1: nanotool -s mag:50 and verify compressed_mag data is received Change-Id: I7a5c98a5271f823bb2d4c2b85567af723df3f64b
* | | | [automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into ↵Xin Li2019-02-250-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stage-aosp-master am: 6c0c21a3ba -s ours am: 85db51e1d8 -s ours am skip reason: subject contains skip directive Change-Id: I3bbabef26e25368d1a828161efd2c4d32391d636
| * | | [automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterXin Li2019-02-250-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | am: 6c0c21a3ba -s ours am skip reason: subject contains skip directive Change-Id: I5da87956da5d5230f8d738ca2de06350c8b0929f
| | * | DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-masterXin Li2019-02-200-0/+0
| | |\ \ | | |/ / | |/| | | | | | | | | | Bug: 120848293 Change-Id: I84ff7179a88ca62c3bf30305a0340ec4296af211
* | | | [SensorData] -- Reorder struct to improve byte packing and savemkramerm2019-01-251-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unnecessary padding especially for large arrays (e.g., synchronizer). Can save ~7kB for the ImuCal nanoapp. Base Memory text data bss dec 26012 3108 29432 58552 New Memory text data bss dec 25788 3004 23032 51824 Change-Id: I5f1d35cdec90c834854fa3fb3be45ede38ab4426 Head: 230936402 Test: Unit Test
* | | | sensorhal: fix incorrect rate/latency retention for alt sensors am: ↵Ben Fennema2019-01-081-3/+12
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 52bd2fa354 am: 77a53f250e am: 2f5bbe8632 Change-Id: I72bebdba0693bdb459368f96f22deccb973aa1f1
| * | | sensorhal: fix incorrect rate/latency retention for alt sensors am: 52bd2fa354Ben Fennema2019-01-081-3/+12
| |\| | | | | | | | | | | | | | | | | | | | | | am: 77a53f250e Change-Id: Id04a8b57023b196fd37ee19d8f20fc0830032724
| | * | sensorhal: fix incorrect rate/latency retention for alt sensorsBen Fennema2019-01-081-3/+12
| | |\| | | | | | | | | | | | | | | | | | | | | am: 52bd2fa354 Change-Id: Ie85b23403fd2fa83fdcc483b59840e0d54dd520d
| | | * sensorhal: fix incorrect rate/latency retention for alt sensorsBen Fennema2019-01-021-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When disabling a sensor with alt versions enabled the rate and latency from the disabled sensor would be used if it was higher (rate) or lower (latency) than any of the enabled alt versions. Initialize rate and latency to values such that they will always be set by the first enabled alt sensor. (0 for rate and max value for latency) Test: enable accel at 50Hz; enable uncal accel at 200Hz; disable uncal accel; verify accel is running at 50Hz, not 200Hz Bug: 122115010 Change-Id: Iac172495235360fbd15bd76abf9b7fdef4d1f6f5 Signed-off-by: Ben Fennema <fennema@google.com>
* | | | nanohub: hostIntf: handle memory allocation failures am: 8880b72751 am: ↵Daniel Jarai2018-12-171-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6cac791c88 am: 4e96a70f33 Change-Id: I4a69874df86e2c5b82ea754f6e952b8e3eeb4e92
| * | | nanohub: hostIntf: handle memory allocation failures am: 8880b72751Daniel Jarai2018-12-171-0/+11
| |\| | | | | | | | | | | | | | | | | | | | | | am: 6cac791c88 Change-Id: I1d43c60e875ba2759736f4aadafc60b5baee1d60
| | * | nanohub: hostIntf: handle memory allocation failuresDaniel Jarai2018-12-171-0/+11
| | |\| | | | | | | | | | | | | | | | | | | | | am: 8880b72751 Change-Id: I10b46d1eeefe586bc86c003c647691456063efaa
| | | * nanohub: hostIntf: handle memory allocation failuresandroid-o-mr1-iot-release-1.0.8Daniel Jarai2018-12-141-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The memory allocations in hostIntf are quite big, and prone to failing if there isn't enough available space. Make sure to handle failures, and print an error, so we know what's happening. Change-Id: Iddf014f1fb2889a358890c2308e6c0e93b59bf4e
* | | | nanohub: stm32: i2c: always wait for the BTF event in the DmaTxDone ISR am: ↵Daniel Jarai2018-12-171-3/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ef209c863 am: aae766a0aa am: 202ee11a18 Change-Id: Ibc2c3ad62d039a960ddc7b8d97301c00069e4375
| * | | nanohub: stm32: i2c: always wait for the BTF event in the DmaTxDone ISR am: ↵Daniel Jarai2018-12-171-3/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5ef209c863 am: aae766a0aa Change-Id: I562a37c0596bb43d2d847f1b2d0e00c74224afe4
| | * | nanohub: stm32: i2c: always wait for the BTF event in the DmaTxDone ISRDaniel Jarai2018-12-171-3/+5
| | |\| | | | | | | | | | | | | | | | | | | | | am: 5ef209c863 Change-Id: Ibf5fef28d06908d227b74868f071f6c84660b70f
| | | * nanohub: stm32: i2c: always wait for the BTF event in the DmaTxDone ISRDaniel Jarai2018-12-141-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This interrupt is fired when the DMA transfer completes, ie. all bytes have been transmitted to the I2C peripheral. However, It's possible that the I2C transfer didn't finish yet, so before touching the peripheral, wait for the BTF (byte transfer finished) flag to be set. This fixes the issue where the last byte of a transfer was randomly lost, especially at higher core clock frequencies (>= 40 MHz). Change-Id: I126e43f1e9cfdc831f61d0a0a1940367440dce55
* | | | nanohub: stm32: fix build if all sleep states are disabled am: feb0086cca ↵Daniel Jarai2018-12-141-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 95064ceb1b am: b48b14c071 Change-Id: Id17afd645eaafa59141806a55cbc1c5331fb3fc6
| * | | nanohub: stm32: fix build if all sleep states are disabled am: feb0086ccaDaniel Jarai2018-12-141-1/+3
| |\| | | | | | | | | | | | | | | | | | | | | | am: 95064ceb1b Change-Id: I9ead110b8eb4eba2db58edca45ec62262cfc03c2
| | * | nanohub: stm32: fix build if all sleep states are disabledDaniel Jarai2018-12-141-1/+3
| | |\| | | | | | | | | | | | | | | | | | | | | am: feb0086cca Change-Id: I45d16cc06fe33797289ed1de297ba79f7f4fa15f
| | | * nanohub: stm32: fix build if all sleep states are disabledDaniel Jarai2018-12-141-1/+3
| | | | | | | | | | | | | | | | Change-Id: I608e4fefae8e1e91ad9453c28da8106e007f1161
* | | | nanohub: stm32: fix callback error code passed from dmaIsrTeif am: ↵Daniel Jarai2018-12-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 784f30c610 am: a2350a2e37 am: 0964143766 Change-Id: I49582cc58428e9ba27c1e25b88e1d549c618e85c
| * | | nanohub: stm32: fix callback error code passed from dmaIsrTeif am: 784f30c610Daniel Jarai2018-12-141-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | am: a2350a2e37 Change-Id: I8035ec6d33e3ce9267531b2ecaa38af5af7d5a8e
| | * | nanohub: stm32: fix callback error code passed from dmaIsrTeifDaniel Jarai2018-12-141-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | am: 784f30c610 Change-Id: I9dbdddffdbfdcef01a393fd8bbe4a5915fe74015
| | | * nanohub: stm32: fix callback error code passed from dmaIsrTeifDaniel Jarai2018-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Error codes should be negative, keeping this consistent with the rest of the firmware. Change-Id: I8aaa04d00a2e77c06eee9ff764cd2348192bcc6f
* | | | [automerger skipped] DO NOT MERGE am: c8917ff191 -s ours am: 0510c0f0ed -s ↵The Android Open Source Project2018-12-060-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ours am: 8cc4645009 -s ours Change-Id: Ia8082bde626d30158c08689dfeedb3e4a792819e
| * | | [automerger skipped] DO NOT MERGE am: c8917ff191 -s oursThe Android Open Source Project2018-12-060-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | am: 0510c0f0ed -s ours Change-Id: I1c0a8b4ba1ab69fef2a05c2de5d566afe9a4589d
| | * | [automerger skipped] DO NOT MERGEThe Android Open Source Project2018-12-060-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | am: c8917ff191 -s ours Change-Id: I887c0e64f80cfa18fecb1670eed986a9a1839bd0
| | | * DO NOT MERGEandroid-o-mr1-iot-release-1.0.7The Android Open Source Project2018-12-060-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge pie-platform-release (PPRL.181105.017, history only) into master Bug: 118454372 Change-Id: I622f5c591e963b7d45ac3f372e53f864826190e8
| | | | * Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-releasepie-platform-releasepie-cuttlefish-testingBill Yi2018-11-281-2/+5
| | | | |\ | | | | | | | | | | | | | | | | | | Change-Id: Id93b604b4cbe547deef8f1d5e809253ba658fa50
* | | | | | contexthubhal: fix result when hal doesn't send mgmt message to nanohub am: ↵Ben Fennema2018-11-301-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7bf6a0cf68 am: 7b16be1845 am: 0e757faeaf Change-Id: Ie38c1f41198f175a90b3f947d41d9d444e8dba13
| * | | | | contexthubhal: fix result when hal doesn't send mgmt message to nanohub am: ↵Ben Fennema2018-11-301-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7bf6a0cf68 am: 7b16be1845 Change-Id: I5fc04daf5a30fa2769daebb460195c50c0a0a710
| | * | | | contexthubhal: fix result when hal doesn't send mgmt message to nanohubBen Fennema2018-11-301-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 7bf6a0cf68 Change-Id: I4f36db296c4e15a9e5b6d77cd62f85442cd492c1
| | | * | | contexthubhal: fix result when hal doesn't send mgmt message to nanohubandroid-wear-8.0.0_r2Ben Fennema2018-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return an error when the hal thinks the app being started is already running or when the app being unloaded/erased is either not running or doesn't exist. Bug: 118398281 Test: pass VtsHalContexthubV1_0 Change-Id: I9c5f884e11c86ba6a608c24614e41784d5d19308 Signed-off-by: Ben Fennema <fennema@google.com>
* | | | | | Fix implicit-fallthrough warnings locally. am: bf044c805b am: e1cc59d443Chih-Hung Hsieh2018-10-261-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b5b00f8f33 Change-Id: Ibc05875146fe28399bf58df35048ed7099176113
| * | | | | Fix implicit-fallthrough warnings locally. am: bf044c805bChih-Hung Hsieh2018-10-261-3/+3
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e1cc59d443 Change-Id: I445171d3441b0778752a544fd181d9c7d5677ff2
| | * | | | Fix implicit-fallthrough warnings locally.Chih-Hung Hsieh2018-10-261-3/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: bf044c805b Change-Id: Ie736c30940b1c36e53770f0deedb1ca0a9b47cd2
| | | * | | Fix implicit-fallthrough warnings locally.android-o-mr1-iot-release-smart-display-r9android-o-mr1-iot-release-smart-display-r8android-o-mr1-iot-release-smart-display-r5android-o-mr1-iot-release-smart-display-r4android-o-mr1-iot-release-smart-display-r22android-o-mr1-iot-release-smart-display-r14android-o-mr1-iot-release-smart-clock-r6android-o-mr1-iot-release-smart-clock-r2android-o-mr1-iot-release-smart-clock-fsiandroid-o-mr1-iot-release-smart-clock-fcsandroid-n-iot-release-ihome-igv1nougat-iot-releaseChih-Hung Hsieh2018-10-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It will be a global error by default. Test: make checkbuild Bug: 112564944 Change-Id: Ia3466649cdddcc754de554edd96a674d00630733
* | | | | | Merge "nanohub:drivers:st_lsm6dsm: sync with imu cal changes" am: c6f7eac2ff ↵Ben Fennema2018-10-253-64/+90
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37c4239adc am: 3360bf93b7 Change-Id: Ibf30c4471b9fcd272e2905270604179fa1475c7d
| * | | | | Merge "nanohub:drivers:st_lsm6dsm: sync with imu cal changes" am: c6f7eac2ffBen Fennema2018-10-253-64/+90
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 37c4239adc Change-Id: Ifdebd08db55cae24eb1c15b3242aeddb2e65d3f4
| | * | | | Merge "nanohub:drivers:st_lsm6dsm: sync with imu cal changes"Ben Fennema2018-10-253-64/+90
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: c6f7eac2ff Change-Id: I85571273a84d0cf8919c1ed36daaab99502ca8f0
| | | * | | Merge "nanohub:drivers:st_lsm6dsm: sync with imu cal changes"Treehugger Robot2018-10-253-64/+90
| | | |\ \ \
| | | | * | | nanohub:drivers:st_lsm6dsm: sync with imu cal changesBen Fennema2018-10-103-64/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: builds with accel, gyro, overtemp and mag cal enabled Change-Id: I053148ab64dec1cc0359e40d678b25b2c41dc729 Signed-off-by: Ben Fennema <fennema@google.com>
* | | | | | | Convert to Android.bp am: 543168df41 am: 3bf5f54eedDan Willemsen2018-10-2418-373/+360
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9ee7623e56 Change-Id: I5bcd2656011eeaac29124168fab99f11dd00fe53
| * | | | | | Convert to Android.bp am: 543168df41Dan Willemsen2018-10-2418-373/+360
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3bf5f54eed Change-Id: I4aea48fc6c0b826c876579953319709dbe5e7252
| | * | | | | Convert to Android.bpDan Willemsen2018-10-2418-373/+360
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 543168df41 Change-Id: Ia8a9f1596aa880e5d008dc7dc71fd4a64f7e6d6b
| | | * | | | Convert to Android.bpDan Willemsen2018-10-2418-373/+360
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Converts the rest of the Host/Android rules from Android.mk to Android.bp. See build/soong/README.md for more information. Test: cd device/google/contexthub; mma Change-Id: I7e29b58010ccf6f966afe94f5a11f79692700b4c