summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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 ↵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-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-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-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
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
2018-05-03Merge "nanohub: fix chre syscalls for 1.2 and 1.1 on 1.0 nanohub" into pi-devBen Fennema
2018-05-03Snap for 4759746 from 6af27deb9446258f96e127f6ca8e47e27a61a814 to pi-releaseandroid-build-team Robot
Change-Id: Ieae2e5b681ffe5c09d9d57a43a3e83eaf27507fe
2018-05-02Merge "[IMU_Cal] Runtime sensor calibration code update." into pi-devDavid Jacobs
2018-05-02nanohub: fix chre syscalls for 1.2 and 1.1 on 1.0 nanohubBen Fennema
Bug: 78887346 Test: Run pi CHQTS on oc-mr1 Change-Id: I01de28f13c581c72458c9935449f4b80a25733cc Signed-off-by: Ben Fennema <fennema@google.com>
2018-05-02[IMU_Cal] Runtime sensor calibration code update.David Jacobs
This code updates all of the refactored changes developed and tested in Google3. This update includes setting calibration accuracy level. Tip of G3 CL: 195047378 Bug: 75333210 (refactor updates) Bug: 75335561 (calibration accuracy) Test: ./load_app.sh and verified calibrations on device. Change-Id: I48bd61b6610a7cc7ce9a88bfdde51552c509d763
2018-05-02[Bosch BMI160 Driver] Runtime sensor calibration updates.David Jacobs
Adds accel calibration debug printouts for logging. Updates gyro get/set bias function arguments. Uses parameter structures to initialize the runtime algorithms. Diversity checker is used by default. Build flag checks are removed. Bug: 75333210 Test: Built firmware and tested on a device. Change-Id: I70a84fa82e053cf7c4ee8418650e7dd5f8e13f37
2018-04-29Snap for 4751833 from b4766557d14eef22527ca54417a158a2cccb7648 to pi-releaseandroid-build-team Robot
Change-Id: I24790319b8d5049e9bb5e9c8d71c258fe422c274
2018-04-26[M/S][Barometer]Fix IIR register in BMP28x drivermasonwang
Bug: 77659366 Test: 1. install Barometer Graph.apk from app store. Test: 2. Turn on barometer, observe the output to see it stable Test: 3. Turn off barometer, either take device to a place with a significantly different pressure (e.g. move up/down multiple floors in a tall building, or use pressure chamber, etc) Test: 4. Turn on barometer, the good behavior is for the first readings to be accurate to the new pressure and the graph to therefore be relatively flat. Change-Id: I13533ee2186e9d244a431bc1f145658f7781b12a
2018-04-22Snap for 4736748 from 227914e6d74b7d2ae1738dfd372e54944c64f84f to pi-releaseandroid-build-team Robot
Change-Id: I92b4eb2db62d2b657c0ec4739870ef813bcc17ec
2018-04-19contexthubhal: update to handle chre messaging interfaceBen Fennema
use new chre messaging interface start apps that were loaded via hal on reset cache apps loaded via the hal when receiving an app, if the app is already present on nanohub verify if the app is the same and just start the present app if it is. (compare new app to one on disk and compare stored crc to crc of app on nanohub) Handle upload error due to out of space by doing a commanded erase and then re-uploading the app Add debug commands to load/unload/enable/disable apps via lshal debug Bug: 69980445 Test: run CHQTS Change-Id: Ief60123353b503c44c5b19570c50492b380c2c04 Signed-off-by: Ben Fennema <fennema@google.com>
2018-04-18Snap for 4728508 from e4c235d4bba0d3b0c4fe597a02a48975958ba7a7 to pi-releaseandroid-build-team Robot
Change-Id: I09c897b2e7764b1ae4f379249ee58c0d0f3fdfd0
2018-04-17nanohub: new contexthub interface using chre messagingBen Fennema
range check messages do not auto erase flash when writing an nanoapp that doesn't fit enable crc calculation/checking for nanoapps do not auto start chre 1.1+ nanoapps Bug: 69980445 Test: check out new commands and make sure they work Change-Id: I98af1f3d5c848be19a1d3687d1d51a58145ff956 Signed-off-by: Ben Fennema <fennema@google.com>
2018-04-12Snap for 4716599 from 1b3adf02ce3c7d184c77a764b6b56741ede784ea to pi-releaseandroid-build-team Robot
Change-Id: I23b9438a24c9b7f5a974cd2bf39e5c4b3391e171
2018-04-09Removes unused code from calibration directory.David Jacobs
Bug: 77578070 Test: Built imu_cal nanoapp using ./load_app.sh Change-Id: I58c690c4de27a83b37023600c051be357a8daa5d
2018-04-03Snap for 4696032 from 00fe2c40d28a717bf6658ed6118fbc0c13018c13 to pi-releaseandroid-build-team Robot
Change-Id: I0457428201a055485eca2f1eb17eeadfc4efc639
2018-03-30[Bosch BMI160 Driver] Runtime sensor calibration updates.David Jacobs
Adds accel calibration debug printouts for logging. Updates gyro get/set bias function arguments. Uses parameter structures to initialize the runtime algorithms. Bug: 75333210 Test: Built firmware and tested on a device. Change-Id: I2d0e1e2247927430e34ae86ea1ca470d726d2d93
2018-03-29[IMU_Cal] Runtime sensor calibration code update.David Jacobs
This code transfers all of the refactored changes developed and tested in Google3. Tip of G3 CL: 191014272 Bug: 75333210 Test: ./load_app.sh and verified calibrations on device. Change-Id: Ieb414468296ce620ecf7fe275595c561c33779c1
2018-02-08Snap for 4593582 from 967c195931c64b4ea2678078bb52464f4fa88ab6 to pi-releaseandroid-build-team Robot
Change-Id: I1ec4d96461dc8c1ef038a1eff6d949585bda68f4
2018-02-08nanohub: fix chre v1.2 gnss function name changeBen Fennema
Test: build nanoapp Change-Id: Iffcef43f00410652f8fc9affd536ef20fa2ccdec Signed-off-by: Ben Fennema <fennema@google.com>
2018-02-08Fix nullptr dereference.Steven Moreland
This is causing an error in vts_ibase_test. Bug: N/A Test: vts_ibase_test on marlin [ PASSED ] 6 tests. Change-Id: I5cfac8e3643ff5855c6d5ef69b64ba2786bc7d59
2018-01-31Snap for 4577102 from 2b89fd3e5d3b2d113ccbd7159428949093cca1f8 to pi-releaseandroid-build-team Robot
Change-Id: I735655e9b70291c3c1782b567caf30b101a40073
2018-01-25Make contexthub build with the VNDK.Steven Moreland
When the vndk is enabled (BOARD_VNDK_VERSION=current), vendor libraries must only link against vendor variants in the build system. This also means that they receive restricted sets of headers and that automatic global headers are restricted. A static library moved to being vendor is a build time only change for libhubutilscommon. Test: mma with BOARD_VNDK_VERSION=current Bug: 69526027 Change-Id: I99573506afb3f91b846302be78a2bdcdb838d12c
2018-01-10Snap for 4535700 from f378cb36e45cbfd402a26982a284dbd2933d5ef8 to pi-releaseandroid-build-team Robot
Change-Id: I956168686270e297ae43480a4f722498ddc7bd33
2018-01-09contexthubhal: add nanohub contexthub impl and serviceBen Fennema
For now, maintain legacy context_hub.default.so support. Bug: 70933028 Test: verify messages still successfully passed back to contexthub service Change-Id: I9a36b4f6d581243b9de3a5e6d742d17c1aa49f88 Signed-off-by: Ben Fennema <fennema@google.com>
2018-01-08nanohub: properly handling messaging for v1.2 chre nanoappsBen Fennema
Change version check to be >= 1.1 instead of == 1.1 Test: build Change-Id: If4506c8301419f6aaac66ed98d14143f1e12876a Signed-off-by: Ben Fennema <fennema@google.com>
2018-01-07Snap for 4531101 from 63ae289dd0f8e176db72b5d9b6bcd13a085f7ddf to pi-releaseandroid-build-team Robot
Change-Id: I7ddafbd08022a87e7dc593a5d77e2a1546b81a36
2018-01-05Re-add libutils_headers as it is still a dependency.Martijn Coenen
Test: fixes build. Change-Id: I00af4d54c8e64bcf43547a58f2537aaecbf3d752
2018-01-03nanohub: add endpoint supportBen Fennema
Pass endpoint from nanohub to the hal. (hal currently has no way to pass the endpoint any further) Bug: 70933028 Test: verify messages still successfully passed back to contexthub service Change-Id: I8731de32c9d77a0d67d8ee8440e35a4c9853a97c Signed-off-by: Ben Fennema <fennema@google.com>
2017-12-24Snap for 4517567 from 9d8f09b9e27e23157c9ad0dd6a28052073bd0a4f to pi-releaseandroid-build-team Robot
Change-Id: I9238b40ab9c087d0bdf96d2d228061c1d47471f1
2017-12-21nanohub: i2c: detect and clock through stuck low sda am: 44b122a273 am: ↵Ben Fennema
aad7f8db68 am: d6104b39af Change-Id: I8f98984ece95247ade6bfa37e2ca67f5c791f15e
2017-12-21nanohub: i2c: detect and clock through stuck low sda am: 44b122a273Ben Fennema
am: aad7f8db68 Change-Id: If81bc9be8fb01dc47e193878e60d49e119beef95
2017-12-21nanohub: i2c: detect and clock through stuck low sdaBen Fennema
am: 44b122a273 Change-Id: Id30b55747c2881a2cdcb30e2cab83e3c251e9237
2017-12-20nanohub: i2c: detect and clock through stuck low sdaandroid-wear-8.0.0_r1android-p-preview-1android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-lg-thinq-wk7o-mr1-iot-preview-8o-mr1-iot-preview-7Ben Fennema
If the chip is reset in the middle of an i2c read, the slave will still be waiting for additional pulses of sdc. This prevents all chips on the stuck i2c bus from being detected until a power cycle. Detect that sda is stuck low and attempt to clock through the issue. Bug: 65966547 Test: run accel at a high rate over i2c and reset the stm32. Confirm all chips on i2c are detected after reset. Change-Id: I3a7ec24556a693b5506ba65f4eefa6e9f36e5818 Signed-off-by: Ben Fennema <fennema@google.com>
2017-12-20Snap for 4511918 from 5b6af28e86478b2afdb9040bcb80852bf23c4d82 to pi-releaseandroid-build-team Robot
Change-Id: I5bd4af044850ccaafc21385c38a99eeb2bb4e882
2017-12-19nanohub: fix build, add v1.2 stubsBen Fennema
Bug: 70716840 Test: build Change-Id: Id28865376b9f9d7cdbc796d2bd62ab4308e5c84d Signed-off-by: Ben Fennema <fennema@google.com>
2017-12-11Snap for 4496165 from 7dd84c412ff36a96bbaabfaf6a8d192fd413b4ff to pi-releaseandroid-build-team Robot
Change-Id: Ia063aabf1f877c4de5df170221788a56fc61916b
2017-12-07nanohub: add back chre directory to firmware FLAGS am: 3564225503 am: 93715c4bf5Ben Fennema
am: d70ba6fe31 -s ours Change-Id: Icc6f732578a0e723a33b62c6d07c504226981b3f
2017-12-07nanohub: fix chre 1.0 compat message format am: 1653fbb460 am: f0311abe39Ben Fennema
am: 5011e5b7fb -s ours Change-Id: I37e007b6bf52fcf7d4aa21da8f8ff461f1623cc9