summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-20nanotool: 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 LeCain
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
2019-01-02sensorhal: fix incorrect rate/latency retention for alt sensorsBen Fennema
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>
2018-12-14nanohub: hostIntf: handle memory allocation failuresandroid-o-mr1-iot-release-1.0.8Daniel Jarai
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
2018-12-14nanohub: stm32: i2c: always wait for the BTF event in the DmaTxDone ISRDaniel Jarai
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
2018-12-14nanohub: stm32: fix build if all sleep states are disabledDaniel Jarai
Change-Id: I608e4fefae8e1e91ad9453c28da8106e007f1161
2018-12-14nanohub: stm32: fix callback error code passed from dmaIsrTeifDaniel Jarai
Error codes should be negative, keeping this consistent with the rest of the firmware. Change-Id: I8aaa04d00a2e77c06eee9ff764cd2348192bcc6f
2018-12-06DO NOT MERGEandroid-o-mr1-iot-release-1.0.7The Android Open Source Project
Merge pie-platform-release (PPRL.181105.017, history only) into master Bug: 118454372 Change-Id: I622f5c591e963b7d45ac3f372e53f864826190e8
2018-11-28Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-releasepie-platform-releasepie-cuttlefish-testingBill Yi
Change-Id: Id93b604b4cbe547deef8f1d5e809253ba658fa50
2018-11-08contexthubhal: fix result when hal doesn't send mgmt message to nanohubandroid-wear-8.0.0_r2Ben Fennema
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>
2018-10-26Fix 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-r40.1Jandroid-o-mr1-iot-release-smart-display-r4android-o-mr1-iot-release-smart-display-r39android-o-mr1-iot-release-smart-display-r30android-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-o-mr1-iot-release-cube_r2android-o-mr1-iot-release-cube-fsiandroid-o-mr1-iot-release-cube-fcsandroid-n-iot-release-ihome-igv1nougat-iot-releaseChih-Hung Hsieh
It will be a global error by default. Test: make checkbuild Bug: 112564944 Change-Id: Ia3466649cdddcc754de554edd96a674d00630733
2018-10-25Merge "nanohub:drivers:st_lsm6dsm: sync with imu cal changes"Treehugger Robot
2018-10-24Convert to Android.bpDan Willemsen
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
2018-10-24Merge pie-platform-release to aosp-master - DO NOT MERGEBill Yi
Change-Id: I9728c3e123579f5b9255508f4539186b2f661c79
2018-10-19Merge pi-dr1-dev to aosp-masterBill Yi
Change-Id: I2578d09dc4e05aa53108a6a267119676596ad864
2018-10-10nanohub:drivers:st_lsm6dsm: sync with imu cal changesBen Fennema
Test: builds with accel, gyro, overtemp and mag cal enabled Change-Id: I053148ab64dec1cc0359e40d678b25b2c41dc729 Signed-off-by: Ben Fennema <fennema@google.com>
2018-08-15firmware: Handle new mag_cal.c location and dependenciespie-tempAlistair Strachan
am: 4d6104be79 Change-Id: I520f2685dc10f3fccb218f78e27a8e4f4874e677
2018-08-15firmware: Handle new mag_cal.c location and dependenciesandroid-o-mr1-iot-release-smart-display-r3android-o-mr1-iot-release-1.0.5android-o-mr1-iot-release-1.0.4oreo-mr1-1.2-iot-releasemaster-cuttlefish-testing-releaseAlistair Strachan
The mag_cal.c file was moved and the Android.mk files were updated, but the makefile fragments used for the GNU Make system were not updated. Additionally, the mag_cal.c file now depends on the kasa.c math functions and diversity_checker.c, so these files must also be included. Bug: 112656064 Test: local build test only Change-Id: Ida6515ae2c37479889cb916399b1cf5a7d6ee8c5
2018-08-13Merge stage-dr1-aosp-master into stage-aosp-masterXin Li
Bug: 112535855 Change-Id: Ie3bfafabd9db09b317ca6b3435bfdf017a646594
2018-08-07Merge Android Pie into master am: b3211319afXin Li
am: a0e810d812 Change-Id: Idf9f22ffb9503035b6177ad5c84674058ea17cae
2018-08-07Merge Android Pie into masterXin Li
am: b3211319af Change-Id: Id19da7981900a6946e5186103980094e68d40573
2018-08-06Merge Android Pie into masterandroid-o-mr1-iot-release-1.0.3Xin Li
Bug: 112104996 Change-Id: I5786617e5db720dc171326bfbf52920d6b88abf3
2018-07-19Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-masterXin Li
am: 13686a1cc5 Change-Id: Iea8a33e07c1fba03eaec396ff6b7177c29f4d208
2018-07-19Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-masterXin Li
Bug: 111615259 Change-Id: I283ff1dc40b2883d12ebbf176645bcfc5f2fe4e4
2018-07-12nanotool: accept events from InvenSense ICM406xx IMU driver am: 51c32d5b4cEiji Iwatsuki
am: 52da962a33 Change-Id: I7186f64c127f1eacd4d670bb06daccf85e529e1d
2018-07-12Protect accesses to mFlushesPending. am: 76b1839099Matthew Bouyack
am: 39041d83bf Change-Id: I486efb16339c2fda872aefc67e4bbdb781ca79ff
2018-07-12nanotool: accept events from InvenSense ICM406xx IMU drivertemp_p_mergeEiji Iwatsuki
am: 51c32d5b4c Change-Id: I53ea9b2326aa646a341357e44b3fdbf8e227fb6b
2018-07-12Protect accesses to mFlushesPending.Matthew Bouyack
am: 76b1839099 Change-Id: I68b0b884249f1142e2fe51f2dcf36468bb77005e
2018-07-12nanotool: accept events from InvenSense ICM406xx IMU driverandroid-p-preview-5android-n-iot-release-smart-display-r2Eiji Iwatsuki
Define the vendor code used by InvenSense and allows to accept events from ICM406xx IMU driver. Test: tested on reworked nexus6p Change-Id: I239386a4d548c0ac573f5395a418813980a1b46f Signed-off-by: Eiji Iwatsuki <eiwatsuki@invensense.com>
2018-06-24[OVER TEMP CAL] -- Update Valid Model CheckDavid Jacobs
am: e37bcfce97 Change-Id: I894050cbb53176b5937106bb9c56a05627aafe43
2018-06-19[OVER TEMP CAL] -- Update Valid Model Checkandroid-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-devpie-b4s4-releasepie-b4s4-devDavid Jacobs
Updates the isValidOtcLinearModel function to ensure that over-temp linear model updates are accepted for devices where gyro temperature sensitivity is nearly zero. Tip of G3: 201100998 Bug: 110109779 Test: Built and device tested. Change-Id: If461ac7f915774baf03c406ee3f7db32b4fe3190
2018-06-09Merge pi-dev-plus-aosp-without-vendor into stage-aosp-masterXin Li
am: 6118fae28c Change-Id: If96b20b07a88f3973e3a41eaa23eb65895739436
2018-06-08Merge pi-dev-plus-aosp-without-vendor into stage-aosp-masterXin Li
Bug: 79597307 Change-Id: I60215ce4299c43ebc72c72b9acbe490ff4f26f9a
2018-06-01Protect accesses to mFlushesPending.Matthew Bouyack
Previously we weren't taking 'mLock' before accessing mFlushesPending introducing a possible race condition. Bug: 79994899 Change-Id: I382e0aa5879b8804718f0c41cf648910d88dee53 Merged-In: I9753d4ffc55c81716a80aefc2e8368f9b727484c
2018-05-24Snap for 4801384 from 3c1833228fcf029ff393c7dd4d57bf9f15f3228d to pi-releaseandroid-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r34android-wear-9.0.0_r33android-wear-9.0.0_r32android-wear-9.0.0_r31android-wear-9.0.0_r30android-wear-9.0.0_r3android-wear-9.0.0_r29android-wear-9.0.0_r28android-wear-9.0.0_r27android-wear-9.0.0_r26android-wear-9.0.0_r25android-wear-9.0.0_r24android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-wear-9.0.0_r1android-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r19android-vts-9.0_r18android-vts-9.0_r17android-vts-9.0_r16android-vts-9.0_r15android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-security-9.0.0_r76android-security-9.0.0_r75android-security-9.0.0_r74android-security-9.0.0_r73android-security-9.0.0_r72android-security-9.0.0_r71android-security-9.0.0_r70android-security-9.0.0_r69android-security-9.0.0_r68android-security-9.0.0_r67android-security-9.0.0_r66android-security-9.0.0_r65android-security-9.0.0_r64android-security-9.0.0_r63android-security-9.0.0_r62android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r20android-cts-9.0_r2android-cts-9.0_r19android-cts-9.0_r18android-cts-9.0_r17android-cts-9.0_r16android-cts-9.0_r15android-cts-9.0_r14android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-cts-9.0_r1android-9.0.0_r9android-9.0.0_r8android-9.0.0_r7android-9.0.0_r61android-9.0.0_r60android-9.0.0_r6android-9.0.0_r59android-9.0.0_r58android-9.0.0_r57android-9.0.0_r56android-9.0.0_r55android-9.0.0_r54android-9.0.0_r53android-9.0.0_r52android-9.0.0_r51android-9.0.0_r50android-9.0.0_r5android-9.0.0_r49android-9.0.0_r48android-9.0.0_r3android-9.0.0_r2android-9.0.0_r18android-9.0.0_r17android-9.0.0_r10android-9.0.0_r1security-pi-releasepie-vts-releasepie-security-releasepie-s2-releasepie-release-2pie-releasepie-r2-s2-releasepie-r2-s1-releasepie-r2-releasepie-cts-releaseandroid-build-team Robot
Change-Id: I3ad57e622df2ed2bdefe4dbe38143edb12743732
2018-05-23Merge "bmi160: fix step counter flush when spi command cannot be issued ↵Ben Fennema
immediately" into pi-dev am: 3c1833228f Change-Id: Ibba1d6b0100ae54228c3110f93707cb27de6a033
2018-05-23Merge "bmi160: fix step counter flush when spi command cannot be issued ↵pie-devTreeHugger Robot
immediately" into pi-dev
2018-05-23Snap for 4799153 from 4d13c02c872ba48a361c1a0ab75a87980e20a518 to pi-releaseandroid-build-team Robot
Change-Id: Ibe7f89a4fda6c6b2df56073f793deef87942afb3
2018-05-22[IMU_Cal] Fixes Runtime Calibration Data StorageDavid Jacobs
am: 4d13c02c87 Change-Id: I6f45cdde181abc9b6a2dcb7d29663612b45e52c8
2018-05-22bmi160: fix step counter flush when spi command cannot be issued immediatelyBen Fennema
Switch the order of the two operands in the && statement to avoid short circuit evaluation from preventing stepCntFlushGetData from being called when mTask.sensors[STEPCNT].flush > 0. Bug: 80143800 Test: turn all sensors on with SensorLogger and issue a flush and verify step counter flush increments Signed-off-by: Ben Fennema <fennema@google.com> Change-Id: I7019d5b9fd9908834efd7d4a41f7c919f19c9135
2018-05-22[IMU_Cal] Fixes Runtime Calibration Data StorageDavid Jacobs
- Corrects NanoSensorCal calibration parameter storage to cal.bin/txt. - Syncs minor code improvements from Google3. Tip of G3 CL: 197510514 Bug: 79481105 Test: ./load_app.sh and verified calibrations on device. Change-Id: I8688f88a62aebdbdd92fc37e07108a627167219b
2018-05-22Snap for 4796401 from 9d6f44a64056c0a7bd8b1d3ff25d28a211af185a to pi-releaseandroid-build-team Robot
Change-Id: I1beadccbdfdce8344dd97b86016b212e8a697afc
2018-05-21[Bosch BMI160 Driver] Provides immediate accel calibration updates.David Jacobs
am: 9d6f44a640 Change-Id: I958f8b60863ffaa15dee6c8eff11a32b77503ae8
2018-05-20Snap for 4793185 from 6613bf0afa7b5d59a7f6a6f923a73447d0325f23 to pi-releaseandroid-build-team Robot
Change-Id: Ic64e1ab096f9396a5294ac7633151ec8e639c226
2018-05-19[Bosch BMI160 Driver] Provides immediate accel calibration updates.David Jacobs
Removes the logic that limited accelerometer calibration updates to the only when the sensor was off. Bug: 77295575 Test: Built firmware and tested on a device. Change-Id: Ib731fbe896522f17f605437a86a9d9df6660c609
2018-05-18sensorhal: allow accel bias updates while accel enabledBen Fennema
am: 6613bf0afa Change-Id: I1557666836dcc0a0cdfcfbf284484f1696377e25
2018-05-17sensorhal: allow accel bias updates while accel enabledBen Fennema
Set mAccelEnabledBias to mAccelBias when the first accel sample is received after calibrated accel is enabled. It is set based on the first accel sample received so that if there is a bias update after enabling but prior to outputing any accel samples, it is used instead of the old bias value. Update calibrated accel samples by adding mAccelBias and subtracting mAccelEnabledBias. As long as there is an active accel client, use mAccelEnabledBias for uncalibrated accel bias as well. Bug: 77729211 Test: verify updating accel bias doesn't cause jumps in accel values Change-Id: I7ead05a1dfef48659538543322e984174bc8dde0 Signed-off-by: Ben Fennema <fennema@google.com>
2018-05-16Snap for 4784261 from c38f7821ce07c8395913e96c03b2c13680fa05a4 to pi-releaseandroid-build-team Robot
Change-Id: I87531d4762c5427c06d8b6b935d078362549bacc
2018-05-15[IMU_Cal] Runtime sensor calibration code update.David Jacobs
am: c38f7821ce Change-Id: I68eabd44595471819cc9e6fcbea367db94d09506
2018-05-15[IMU_Cal] Runtime sensor calibration code update.David Jacobs
Removes unused functionality from the calibration base class. Tip of G3 CL: 196582845 Bug: 75333210 (refactor updates) Test: ./load_app.sh and verified calibrations on device. Change-Id: I689e60b72fbbb7b7ab59f96c7d9d18dbea83ab14
2018-05-06Snap for 4765094 from 11bdf577bea3f132955efc60ad0f49d83b4e81e8 to pi-releaseandroid-build-team Robot
Change-Id: I789642d3b3805183bf084c23f189122f2ab07d27