History log of /system/chre/apps/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d04a937b1bf7a949dfb00650b2640a9ed0c8aca 14-Sep-2017 Arthur Ishiguro <arthuri@google.com> Move CHQTS source/build files to system/chre

Bug: 65589937
Test: Build CHQTS nanoapps from vendor/xts with the new path
using build_gts_nanoapps.sh. Verify compile works with SLPI/nanohub.

Change-Id: I0292f26f99f39c1aaa31d96233e0eec22c8e7277
hqts/README.md
hqts/build/busy_startup/Makefile
hqts/build/busy_startup/header
hqts/build/do_nothing/Makefile
hqts/build/do_nothing/header
hqts/build/fail_startup/Makefile
hqts/build/fail_startup/header
hqts/build/general_test/Makefile
hqts/build/general_test/header
hqts/build/general_test2/Makefile
hqts/build/general_test2/header
hqts/build/general_test_sources.mk
hqts/build/shared_make.mk
hqts/src/busy_startup/busy_startup.cc
hqts/src/do_nothing/do_nothing.cc
hqts/src/fail_startup/fail_startup.cc
hqts/src/general_test/app.cc
hqts/src/general_test/basic_sensor_test_base.cc
hqts/src/general_test/basic_sensor_test_base.h
hqts/src/general_test/basic_sensor_tests.cc
hqts/src/general_test/basic_sensor_tests.h
hqts/src/general_test/cell_info_base.cc
hqts/src/general_test/cell_info_base.h
hqts/src/general_test/cell_info_cdma.cc
hqts/src/general_test/cell_info_cdma.h
hqts/src/general_test/cell_info_gsm.cc
hqts/src/general_test/cell_info_gsm.h
hqts/src/general_test/cell_info_lte.cc
hqts/src/general_test/cell_info_lte.h
hqts/src/general_test/cell_info_tdscdma.cc
hqts/src/general_test/cell_info_tdscdma.h
hqts/src/general_test/cell_info_wcdma.cc
hqts/src/general_test/cell_info_wcdma.h
hqts/src/general_test/estimated_host_time_test.cc
hqts/src/general_test/estimated_host_time_test.h
hqts/src/general_test/event_between_apps_test.cc
hqts/src/general_test/event_between_apps_test.h
hqts/src/general_test/get_time_test.cc
hqts/src/general_test/get_time_test.h
hqts/src/general_test/gnss_capabilities_test.cc
hqts/src/general_test/gnss_capabilities_test.h
hqts/src/general_test/heap_alloc_stress_test.cc
hqts/src/general_test/heap_alloc_stress_test.h
hqts/src/general_test/heap_exhaustion_stability_test.cc
hqts/src/general_test/heap_exhaustion_stability_test.h
hqts/src/general_test/hello_world_test.cc
hqts/src/general_test/hello_world_test.h
hqts/src/general_test/logging_sanity_test.cc
hqts/src/general_test/logging_sanity_test.h
hqts/src/general_test/nanoapp_info.cc
hqts/src/general_test/nanoapp_info.h
hqts/src/general_test/nanoapp_info_by_app_id_test.cc
hqts/src/general_test/nanoapp_info_by_app_id_test.h
hqts/src/general_test/nanoapp_info_by_instance_id_test.cc
hqts/src/general_test/nanoapp_info_by_instance_id_test.h
hqts/src/general_test/nanoapp_info_events_test_observer.cc
hqts/src/general_test/nanoapp_info_events_test_observer.h
hqts/src/general_test/nanoapp_info_events_test_performer.cc
hqts/src/general_test/nanoapp_info_events_test_performer.h
hqts/src/general_test/running_info.cc
hqts/src/general_test/running_info.h
hqts/src/general_test/send_event_stress_test.cc
hqts/src/general_test/send_event_stress_test.h
hqts/src/general_test/send_event_test.cc
hqts/src/general_test/send_event_test.h
hqts/src/general_test/send_message_to_host_test.cc
hqts/src/general_test/send_message_to_host_test.h
hqts/src/general_test/sensor_info_test.cc
hqts/src/general_test/sensor_info_test.h
hqts/src/general_test/simple_heap_alloc_test.cc
hqts/src/general_test/simple_heap_alloc_test.h
hqts/src/general_test/test.cc
hqts/src/general_test/test.h
hqts/src/general_test/test_names.h
hqts/src/general_test/timer_cancel_test.cc
hqts/src/general_test/timer_cancel_test.h
hqts/src/general_test/timer_set_test.cc
hqts/src/general_test/timer_set_test.h
hqts/src/general_test/timer_stress_test.cc
hqts/src/general_test/timer_stress_test.h
hqts/src/general_test/version_sanity_test.cc
hqts/src/general_test/version_sanity_test.h
hqts/src/general_test/wifi_capabilities_test.cc
hqts/src/general_test/wifi_capabilities_test.h
hqts/src/general_test/wwan_capabilities_test.cc
hqts/src/general_test/wwan_capabilities_test.h
hqts/src/general_test/wwan_cell_info_test.cc
hqts/src/general_test/wwan_cell_info_test.h
hqts/src/shared/Android.mk
hqts/src/shared/abort.cc
hqts/src/shared/abort.h
hqts/src/shared/array_length.h
hqts/src/shared/dumb_allocator.cc
hqts/src/shared/dumb_allocator.h
hqts/src/shared/dumb_allocator_test.cc
hqts/src/shared/nano_endian.cc
hqts/src/shared/nano_endian.h
hqts/src/shared/nano_endian_be_test.cc
hqts/src/shared/nano_endian_le_test.cc
hqts/src/shared/nano_endian_test.cc
hqts/src/shared/nano_string.cc
hqts/src/shared/nano_string.h
hqts/src/shared/nano_string_test.cc
hqts/src/shared/send_message.cc
hqts/src/shared/send_message.h
785fb98f3ea53d934507c270a95eeb11085515aa 01-Sep-2017 David Jacobs <davejacobs@google.com> Merge "[IMU_Cal] IMU Temperature ODR, 2Hz" into oc-mr1-dev
a741a12ccdc3ae57f372bc21bf1624c92654144e 01-Sep-2017 David Jacobs <davejacobs@google.com> Merge "[IMU_Cal] Gyro Calibration Tuning" into oc-mr1-dev
807ad714e27a6b699e94eb8ba427d2878d0d8d46 23-Aug-2017 David Jacobs <davejacobs@google.com> [IMU_Cal] Gyro Calibration Tuning

Provides some parameter adjustments for the GyroCal and
OTC-Gyro runtime calibration algorithms.

Bug: 64755461
Tests: Built and verified on hardware. CTS passed on Walleye EVT2.
Change-Id: I1a551498579a33250beb665237b7ce205679a4cc
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
e94212d8de8406f087d6d54b4cdef3997d59ee16 25-Aug-2017 David Jacobs <davejacobs@google.com> [IMU_Cal] IMU Temperature ODR, 2Hz

Increases IMU temperature sample rate from 1Hz to 2Hz, and
removes obsolete debug flag: DGYRO_CAL_DBG_TUNE_ENABLED.

Bug: 63775409
Tests: Built and verified on hardware. CTS passed on Walleye EVT2.
Change-Id: Ifb9bb55965114761705e4bc22dc8b14d4e693dbd
mu_cal/imu_cal.cc
mu_cal/imu_cal.mk
ce08958758777c4d0ac78f37d43576c5130cb3e2 30-Aug-2017 Andrew Rossignol <aarossig@google.com> Places the LOG_TAG early in WifiOffload

- Allows it to be picked up by containers.
- Resolves the bug relating to logging with the nanoapp util log header.

Bug: 65119819
Bug: 62868460
Test: ./run_sim.sh --nanoapp wifi_offload.so
Change-Id: Ia97130a305ad3766b4b1f5bee274787f6bc20fca
ifi_offload/include/chre/apps/wifi_offload/scan_result.h
ifi_offload/include/chre/apps/wifi_offload/wifi_offload.h
6f73ef68c7886afbb9c10272b11daac0ca25c295 30-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update GnssWorld to check async result timeout" into oc-mr1-dev
3884ae8a863be35992abc3c172a29f84ba8a4b83 29-Aug-2017 Meng-hsuan Chung <menghsuan@google.com> Update GnssWorld to check async result timeout

Bug: 64564651
Test: verify that async result timeout of current location driver is
flagged by the GnssWorld nanoapp.
Change-Id: I410ad02a515c99fe12834c1d6520b4684ba06f7e
nss_world/gnss_world.cc
a959a9338feadd2e4819c6cc7d785dbbf10899ce 17-Aug-2017 Mehdi Alizadeh <mett@google.com> Replaces chre_client with chre_flatbuffers and removes chre_types.h

wifi_offload_types uses chre_flatbuffers library instead of chre_client
for flatbuffers api. Also removes duplicated definitions in
chre_types.h since they are being exported in chre_api now.

Bug: 32842314
Test: run_sim.sh and run_tests.sh and verify offload HAL builds
Change-Id: I9aed257ed13b4129269e03c460c730d2cadfd984
Merged-In: I9aed257ed13b4129269e03c460c730d2cadfd984
ifi_offload/Android.bp
ifi_offload/include/chre/apps/wifi_offload/chre_types.h
ifi_offload/include/chre/apps/wifi_offload/wifi_offload.h
d2c8b6d1ab226e146ff86baf208ade3a59f82028 16-Aug-2017 Mehdi Alizadeh <mett@google.com> Moves wifi nanoapp's type defs to system/chre

Bug: 32842314
Test: run_sim.sh and run_tests.sh and verify builds
Change-Id: I668f63608c024793d5a568f868ebc149504ff4de
Merged-In: I668f63608c024793d5a568f868ebc149504ff4de
ifi_offload/Android.bp
ifi_offload/README.md
ifi_offload/channel_histogram.cc
ifi_offload/chre_scan_params_safe.cc
ifi_offload/flatbuffers_serialization.cc
ifi_offload/include/chre/apps/wifi_offload/channel_histogram.h
ifi_offload/include/chre/apps/wifi_offload/chre_scan_params_safe.h
ifi_offload/include/chre/apps/wifi_offload/chre_types.h
ifi_offload/include/chre/apps/wifi_offload/error_codes.h
ifi_offload/include/chre/apps/wifi_offload/flatbuffers_serialization.h
ifi_offload/include/chre/apps/wifi_offload/flatbuffers_types.fbs
ifi_offload/include/chre/apps/wifi_offload/flatbuffers_types_generated.h
ifi_offload/include/chre/apps/wifi_offload/generate_code.sh
ifi_offload/include/chre/apps/wifi_offload/host_message_types.h
ifi_offload/include/chre/apps/wifi_offload/preferred_network.h
ifi_offload/include/chre/apps/wifi_offload/rpc_log_record.h
ifi_offload/include/chre/apps/wifi_offload/scan_config.h
ifi_offload/include/chre/apps/wifi_offload/scan_filter.h
ifi_offload/include/chre/apps/wifi_offload/scan_params.h
ifi_offload/include/chre/apps/wifi_offload/scan_record.h
ifi_offload/include/chre/apps/wifi_offload/scan_result.h
ifi_offload/include/chre/apps/wifi_offload/scan_result_message.h
ifi_offload/include/chre/apps/wifi_offload/scan_stats.h
ifi_offload/include/chre/apps/wifi_offload/ssid.h
ifi_offload/include/chre/apps/wifi_offload/utility.h
ifi_offload/include/chre/apps/wifi_offload/vector_serialization.h
ifi_offload/include/chre/apps/wifi_offload/wifi_offload.h
ifi_offload/preferred_network.cc
ifi_offload/rpc_log_record.cc
ifi_offload/scan_config.cc
ifi_offload/scan_filter.cc
ifi_offload/scan_params.cc
ifi_offload/scan_record.cc
ifi_offload/scan_result.cc
ifi_offload/scan_result_message.cc
ifi_offload/scan_stats.cc
ifi_offload/ssid.cc
ifi_offload/test/channelhistogram_test.cc
ifi_offload/test/chrescanparamssafe_test.cc
ifi_offload/test/flatbuffersserialization_test.cc
ifi_offload/test/include/random_generator.h
ifi_offload/test/include/utility.h
ifi_offload/test/offloadtypes_test.cc
ifi_offload/test/random_generator.cc
ifi_offload/test/randomgenerator_test.cc
ifi_offload/test/scanresult_test.cc
ifi_offload/test/utility.cc
ifi_offload/test/wifioffloadutility_test.cc
ifi_offload/utility.cc
ifi_offload/wifi_offload.mk
56697ebadb7ce83a6d2b6ee6bd0d84c4987f63e0 25-Jul-2017 David Jacobs <davejacobs@google.com> [NanoSensorCal] Improved Tuning (GyroCal/OTC-Gyro)

Updates parameter tuning for gyro and over-temperature compensated
(OTC) offset runtime algorithms. These modifications help meet drift
performance specs for gyro devices having the highest anticipated
temperature sensitivities.

Changes include:
- Accel/Mag/Gyro stillness thresholds.
- Gyro stillness mean variation limit.
- OTC jump tolerance setting.
- Min offset change limit.

Bug: 63366088
Test: Firmware built and tested on hardware.
Validation: Tuning verified using simulations with EVT/DVT device
Sensorlogger data.

Change-Id: Iae515f5567a114217c5e513fb1e0f78f1c2dbc43
mu_cal/nano_calibration.cc
8294943c6eef5eade142ac80adea1a5e3293c954 24-Jul-2017 Brian Duddie <bduddie@google.com> [IMU_CAL] Don't dynamically change gyro latency

Toggling the latency request for gyro based on whether the sensor is
enabled or not does not have functional benefit (i.e. the latency
request while the sensor is disabled has no effect). Leaving it in the
"high-performance" state adds additional robustness against a possible
feedback loop between changing gyro sampling status due to other
clients' requests and IMU cal updating it own request.

Bug: 63844556
Test: use extra logging to confirm that IMU cal makes the expected
requests
Change-Id: I1332244c98edca4d75db753c790cdbe1127891d1
mu_cal/imu_cal.cc
70db33077b20dd6e741e93947a0e00063e3a2133 21-Jul-2017 Brian Duddie <bduddie@google.com> [IMU_CAL] Keep temp in passive mode, fix race

As a workaround for an issue with passive sensors in CHRE, revert the
change where IMU cal would disable the temperature sensor when gyro is
disabled. This exposed a sequence of events where CHRE would disable its
passive accel registration even when it's active for other clients.
Keeping the temperature sensor in passive mode (instead of toggling it
off/on) avoids this problem, and adjusting the latency to a long window
while in stand-by mode retains nearly all of the power benefits of the
previous implementation.

Avoid a potential race condition between receiving an event with
updated gyro sampling status and reading the current state by using the
state from the sampling status change event rather than querying.

Bug: 63844556
Bug: 63908396
Test: confirm that IMU cal receives samples for all expected sensors
when sensortest is used to register accel+gyro at the same time
Change-Id: Iffdea60a94d52e2fcf0c2bfae69c6699cb015e73
mu_cal/imu_cal.cc
2fedf2254a79d3b635b71a23f63ceb3e3eeab864 20-Jul-2017 David Jacobs <davejacobs@google.com> [IMU_CAL] Increase Min Sensor Latency to 0.5 Seconds

Sets sensor latencies for accel/mag/gyro to 0.5 seconds when
the gyro sensor is ON (otherwise set to 1 second). Shorter latencies
help the runtime gyro calbration algorithm track changes in offset
necessary to meet drift specs. Also added gyro sensor ON state tracking
with checking to avoid re-processing sample rate change messages.

Bug: 63366088
Test: Firmware built and tested on hardware.
Change-Id: I10380c80c8d9764f19f05eff27a2363c0896c6b8
mu_cal/imu_cal.cc
17c5d235c0bca9add8347eacdfe32be3569d0353 17-Jul-2017 David Jacobs <davejacobs@google.com> [NanoSensorCal] Limits Gyro Calibration Update Notifications

Adds a rate limit check to reduce the number gyro debug messages
printed to the log.

Bug: 63678393
Test: Firmware built and tested on hardware.
Change-Id: I572323bfd2c66d4bc8d7224eb921928c153d1bca
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
453367540f935d4c910e855fcc4f92f90d194a94 13-Jul-2017 David Jacobs <davejacobs@google.com> [IMU_CAL] Dynamic Sensor Latency for Gyro Calibration

Improves power efficiency during periods where the gyro is turned
off by dynamically adjusting the accel/mag/gyro sensor latencies
from 250msec to 1 second. Unsubscribes to temperature when gyro
is not active.

Bug: 63628789
Test: Firmware built and tested on hardware.
Change-Id: I856da540056d2a96caff28e972c99ddd1c427aca
mu_cal/imu_cal.cc
093d0ac13cf5df0edfb72f752eefd207ae8b2811 07-Jul-2017 David Jacobs <davejacobs@google.com> Improves Gyro Calibration Response Time

Reduces the runtime gyro calibration response time from
3 seconds to 1.5 seconds to help meet an integrated gyro
error rate spec of 1 deg/min.

Bug: 63366088
Test: Firmware built and tested on hardware.
Change-Id: I63104820ac181d0abdaf2afb23043d074d2e7eb9
mu_cal/imu_cal.cc
mu_cal/imu_cal.mk
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
634aa6c121b1f15363ba15a84bc0f04ce1d1c0bf 07-Jul-2017 David Jacobs <davejacobs@google.com> Merge "Runtime Calibration Log-Level Debug Messages (IMU_Cal)" into oc-dr1-dev
5c277aeaf5008b93f2e9d06ce843e511f2ba4164 24-Jun-2017 David Jacobs <davejacobs@google.com> Runtime Calibration Log-Level Debug Messages (IMU_Cal)

- Adds log-level dependent messaging to provide information,
warnings, debug data, and error indication for ASH API failures.
- Refactors:
- Fixes order of messages: 1.Recall, 2. Updates.
- Adds LoadAshOtcGyroCal().

Bug: 62642790
Test: Firmware built and tested on hardware.
Change-Id: I4a2b3fc421f2f22ce4f8fac2c05f14c43d107a7a
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
0c064ae46b56433bfcd5072a388423aec86430f7 06-Jul-2017 Andrew Rossignol <aarossig@google.com> Logs the reference time of a chreWifiScanEvent

Bug: 62725664
Test: ./load_chre.sh with WifiWorld enabled
Change-Id: I7f242f4c9f6a58ec90577eebb3f80ba7987f78c3
ifi_world/wifi_world.cc
04766b8b672730f55ab9678697bfeb732912207e 01-Jul-2017 Andrew Rossignol <aarossig@google.com> Resolves an issue with multiple in-flight wifi requests in WifiWorld

WifiWorld uses a fixed-interval timer to send wifi requests every 10
seconds. There is no guarantee that it completes within 10 seconds.
Rather than using a cyclic timer to start the wifi scan every 10
seconds, a one-shot timer is used to start a wifi scan 10 seconds after
completing one (success or fail).

Bug: 62659408
Test: ./run_sim.sh and ./load_chre.sh
Change-Id: I5f52ef6ec39cbaf4ffb372e885c5de9abf0304fc
ifi_world/wifi_world.cc
6a847ca4ff1894ef5ee29191e895bcdf2769aa64 16-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Rework ASH cal params save/load

Moved direct storage access facility into the SLPI firmware.

Bug: 38425697
Test: 1) Enable gyro and observe logging showing cache gets udpated.
2) Put device in and out of suspend and observe logging showing cached
data have been pushed to the persistent storage area.
3) Leave AP and gyro on. After 5 min, observe logging showing cached
data have been pushed to the persistent storage area.
4) Restart SLPI and observe saved cal params are pushed and taken.
5) Restart sensors.qcom and observed that saves cal params are pushed
and ignored.
6) Restart chre and verify there's no logging showing saves cal params
are pushed.
Change-Id: I4f5bdb88be90b987604c793efac6a35f3f23a342
sh_world/ash_world.cc
mu_cal/nano_calibration.cc
91b47dcec11223b668e48ed180113bb1a25f3e6e 19-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Modify logging to aid batching testing

Bug: 62206095
Test: run SensorWorld to observe expected logging
Change-Id: Ia067b656077420e46dcb805ef78e0bcbca857a1a
ensor_world/sensor_world.cc
2bc7fe768fa25378a24862a53db219f2de78bb86 24-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Merge "Runtime Calibration Debug Messages (IMU_Cal)" into oc-dr1-dev
5aad5e97db96390d18fbdbd8e74893905bfb71a8 23-Jun-2017 David Jacobs <davejacobs@google.com> Merge "Runtime Calibration Factory Cal (IMU_Cal)" into oc-dr1-dev
3b20c82f8ecfa3c332daf05ca38a5c0124f0d49a 23-Jun-2017 David Jacobs <davejacobs@google.com> Merge "Runtime Gyro Calibration Updates (IMU_Cal)" into oc-dr1-dev
63b732c9cf7f3e513d7e0bf8efe457f9defe52cd 22-Jun-2017 David Jacobs <davejacobs@google.com> Runtime Calibration Factory Cal (IMU_Cal)

- Enables runtime calibration storage using ASH.
1) Factory cal data has been verified.
2) Saving runtime cal updates will not override
the factory cal data with the new ASH implementation.

Bug: 62917529
Test: Firmware built and tested on hardware.
Change-Id: I1318f653ce00849665ad6daa4912c4f130913f55
mu_cal/nano_calibration.cc
a2b6eba2c1dd19a3bb90d1c3564f0155a2e937bf 23-Jun-2017 David Jacobs <davejacobs@google.com> Runtime Gyro Calibration Updates (IMU_Cal)

- Speeds up the gyro calibration interval (3 seconds).
- Coordinates limits on temperature model parameters
with factory calibration pass/fail limits.
- Increases mag noise variance thresholds to Pixel 2016 levels.

Bug: 62827431
Test: Firmware built and tested on hardware.
Change-Id: I8c82f9f69a69c52f63d8955648fa24eaabb41d4e
mu_cal/nano_calibration.cc
987ebed107a53cbf37320b847fa37fb85d4df33f 18-Jun-2017 David Jacobs <davejacobs@google.com> Runtime Calibration Debug Messages (IMU_Cal)

- Enables limited debug messaging (calibration updates).

Bugs: 62642790
Test: Firmware built and tested on hardware.
Change-Id: I8d490d37444fcaeb11adacf41da5bb7aedea0583
mu_cal/imu_cal.mk
mu_cal/nano_calibration.cc
0618f6127b052423dee1948c5f44af7e77ca6034 20-Jun-2017 Andrew Rossignol <aarossig@google.com> Adds a Makefile for TimerWorld

Bug: 62831507
Test: Compile only for now.
Change-Id: I050ce24280f331afa80650ae05ad6158db16f973
imer_world/Makefile
70ba5d5359b9fdb0578cc247f6faacb295534339 17-Jun-2017 Andrew Rossignol <aarossig@google.com> Switch to chreWifiRequestScanAsync in WifiWorld

- Allows easier debugging and parameter changes.

Bug: 37679560
Test: run_sim.sh
Change-Id: I45576ea9f8612eac25a28ebd2d1b95a55fd7aef9
ifi_world/wifi_world.cc
b4e9f105f994e59fe93e47fb78e2092f98dfb7e4 15-Jun-2017 Martin Kraemer <mkramerm@google.com> Change gyro setting

Parameters were too tight not enough triggers during video capture.
Using the BMI160 tuning parameters.

Settings are:
7.5e-5f, // gyroscope variance threshold [rad/sec]^2
1e-5f, // gyroscope confidence delta [rad/sec]^2
8e-3f, // accelerometer variance threshold [m/sec^2]^2
1.6e-3f, // accelerometer confidence delta [m/sec^2]^2

Bug: 62507917
Test: NA

Change-Id: I54b21ba23de643a9e63097d2651e4ba9d8e0c2e9
mu_cal/nano_calibration.cc
8642826f503b92b9fc6c8db8bb6c085f1e5585d3 13-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make one-shot sensor requests with meaningful interval" into oc-dr1-dev
26a76b2c0f8ed1c34833dedfc4915aa9602f545a 09-Jun-2017 Brian Duddie <bduddie@google.com> Increase max message to host size, minor cleanup

On SLPI, the host allocates a 4KB buffer to use when receiving messages
from CHRE. Increase the maximum message size we accept from nanoapps
from 2048 to 4000 bytes to allow nanoapps to use a larger portion of
this buffer. The remaining 96 bytes are reserved for current and future
overhead.

Also, avoid reallocation of the buffer used to construct the FlatBuffer
for nanoapp messages to the host by increasing the fixed buffer
reservation.

Drop log message on path from host to nanoapp in the daemon from debug
to verbose level, which matches the similar verbose log in the reverse
path.

Bug: 37640330
Test: run MessageWorld on-device + chre_test_client
Change-Id: I9dfccf7b00d3d09b3be7f529271432b10c2da044
essage_world/message_world.cc
8fb8be9b9efbd8e7efdb0d6ed83f0dbe01743d24 09-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Make one-shot sensor requests with meaningful interval

Bug: 38419769
Test: use SensorWorld to enable InstantMotion and StationaryDetect
and make sure they get triggered.

Change-Id: I971b581c4ce9ab231f04fa08e89f7caf4d40c636
ensor_world/sensor_world.cc
3e72c615f0f33f3c7d90de16275c0cae24f23ba3 28-Apr-2017 Martin Kraemer <mkramerm@google.com> Sphere fit was removed from the KASA bias fit

Sphere fit is currently disabled by commenting out the
flag DSPHERE_FIT_ENABLED in imu_cal.mk.

This allows to run both algorithms at the same time
and to be optimized independently. Furthermore the sphere
fit parameters are now stored as well.

Bug: 62413555
Test: The code compiles and was tested on devices. Functionality
was confirmed via several figure 8 triggers and performance was
confirmed by checking offset estimates against true offset measured in
zero gauss chamber. All test pass.
Change-Id: I9c235390dc978a8f171da0ed1567e0b906d6f71a
mu_cal/imu_cal.mk
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
9904d2cfc979ff5f2e8c02e362ada21b5f7c6f61 05-Jun-2017 Andrew Rossignol <aarossig@google.com> Adds a simulator CHRE variant

- Removes ImuCal and AshWorld from default build
- Adds a version string for the sim :)

Test: run_sim.sh, load_chre.sh, run_tests.sh
Change-Id: I3cadb7d2c0fcaaa1631dd3c4ee22be5e4dc6666f
pps.mk
56b8de20a8b881c5536f4d87a79ec505afde4fc3 02-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replaces getCurrentEventLoop with inEventLoopThread"
3ee57b1879956d6ad694aae042d659ec6f98cb90 02-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adds AshWorld nanoapp to test ASH API"
9526b7b52ed3e6cb198c649f582877acb27f1c56 30-May-2017 Andrew Rossignol <aarossig@google.com> Replaces getCurrentEventLoop with inEventLoopThread

- Allows removing some global state for the event loop object.
- Further continues the removal of support for multiple event loops.

Test: run_sim.sh run_tests.sh load_chre.sh
Change-Id: Ic527c0b660c96b7c448c25c230a7dfd1fec21383
nload_tester/unload_tester.cc
7e0b18cd2fd2f6f994b57659873113d0f140c124 26-May-2017 Meng-hsuan Chung <menghsuan@google.com> Adds AshWorld nanoapp to test ASH API

Test: compile and run
Change-Id: If79918222211743319b18d9b00674d039f07c16c
pps.mk
sh_world/ash_world.cc
sh_world/ash_world.mk
nclude/chre/apps/apps.h
20d10ce8e47c1a1050e7edcb907fa43113a0aac2 27-May-2017 Meng-hsuan Chung <menghsuan@google.com> Adds timestamp test to SensorWorld

Use UncalGyro to test batching and Prox for non-batching data.

Change-Id: I47bb5714e0fcdf6a61e8d2fc5896a28717202bdb
ensor_world/sensor_world.cc
63bd6ff5a1a2d95278defecf1e0232f1b789d9fd 30-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Removes support for multiple event loops"
e3f74b1f5862c5a358af563c6c2b9dc09484a3cf 24-May-2017 David Jacobs <davejacobs@google.com> Runtime Calibration Algorithm Updates (IMU_Cal)

Provides code improvements and updated algorithm tuning.

Bug: 30958130
Test: Firmware built and tested on hardware.
Change-Id: Ie8ed3b329ad6f956cc8b85b29c8225cf94871ddb
mu_cal/imu_cal.mk
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
50d7d95f1d8cae0e9c6202086b9bd432adff7bf1 23-May-2017 Andrew Rossignol <aarossig@google.com> Removes support for multiple event loops

- This feature is not needed and was not implemented entirely.
- This leaves many TODOs.
- Most CHRE systems are single-threaded.
- Multi-threaded support can be handled in a better way and held under
conditional compilation to reduce code size.

Test: run_sim.sh, load_chre.sh
Change-Id: I33fa68bc24ee423c6a3a190e5ba75bfcf7074ed3
nload_tester/unload_tester.cc
643c0ec7fe5c7304fb0296fcecf73f87488adc24 25-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[ImuCal] handle CHRE_EVENT_SENSOR_SAMPLING_CHANGE"
e5e294dbc50b46e6ee7eb23932ae4632d0ef50f5 24-May-2017 Meng-hsuan Chung <menghsuan@google.com> [ImuCal] handle CHRE_EVENT_SENSOR_SAMPLING_CHANGE

Test: load and make sure there's no unhandled event

Change-Id: I3b7baf8bec6c72f3f9ff706f893fe2e8af128373
mu_cal/imu_cal.cc
9c9599c0f18f4f8ee62980a265b48feb55c867bf 24-May-2017 Andrew Rossignol <aarossig@google.com> Adds support for logging WCDMA cell info

Test: load_chre.sh, log results
Change-Id: I0d329114fa13ad83ed581a35a6e79bd2c437a79c
wan_world/wwan_world.cc
086cfd7ee1ae8ae9bb49aa27b43bdf7f84be9a9a 23-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implements sampling status update"
6797f377898193cbf15b71eba313bd783e552836 12-May-2017 Meng-hsuan Chung <menghsuan@google.com> Implements sampling status update

Upon sampling status change,
- update sampling status
- post the CHRE event

Also modifies SensorWorld to receive this event.

Test: compile and test on device.

Change-Id: If98330d509eddbedd8071a6fd5d402868179f083
ensor_world/sensor_world.cc
ee0b9db187bc054287fbc32cc841b12682d549be 20-May-2017 Brian Duddie <bduddie@google.com> Set patch version automatically

If not specified explicitly, default the CHRE implementation patch
version to the number of hours since 2017-01-01.

Test: ./run_sim.sh, check hello world output
Change-Id: I2e518d6fbde4d1269dffcbabea391959c90405f3
ello_world/hello_world.cc
f53ddfb0683e210f9cf803d968c2d8c5d3b00a55 17-May-2017 Andrew Rossignol <aarossig@google.com> Reorganizes static nanoapp loading

- Avoids the use of functions marked with the constructor attribute to
allow the garbage collector to strip them out if unreferenced.
- Moves the concept of static nanoapp loading to core/ since the logic
is the same across all platforms.
- The platform-specific portion of static nanoapp loading is still
handled by the CHRE_STATIC_NANOAPP_INIT macro.

Test: run_sim.sh load_chre.sh
Change-Id: If79b40203fb1125208cb1c7c4a3239b4065f449e
nclude/chre/apps/apps.h
8b457748b19024832193492cb6415e465d08a7b1 03-May-2017 David Jacobs <davejacobs@google.com> Imu Cal Nanoapp: Increases Accel/Gyro sampling rate to 100Hz.
Also sets magnetometer to 50Hz, and temperature to 1Hz. Increased
the GyroCal stillness mean stability threshold to 60mDPS.

Test: Built and verified on phone.

Bug: b/37872477
Change-Id: If3cfd967862b75f5ff29b5b58cb46cbcaf7a93a1
mu_cal/imu_cal.cc
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
bc573e2ce214e0a8982ebfc34b39a12fdfd61904 02-May-2017 Andrew Rossignol <aarossig@google.com> Logs the result count for scan events in WifiWorld

Test: Run on device
Change-Id: Ic968b066c0d20d5b0edf20400e7a8f0a2c27cb77
ifi_world/wifi_world.cc
53db7c705274e84efbe929c6ce16c6617cb3308e 02-May-2017 Andrew Rossignol <aarossig@google.com> Removes obsolete ignored events from sample apps

Test: run_sim.sh
Change-Id: Ic558a25ec2138a45e90e5d276cf33eefcfefbdea
nss_world/gnss_world.cc
ensor_world/sensor_world.cc
imer_world/timer_world.cc
ifi_world/wifi_world.cc
wan_world/wwan_world.cc
6248f7a215a1625b71154bb723565f23fb1f26e6 02-May-2017 Andrew Rossignol <aarossig@google.com> Implements the chreConfigureNanoappInfoEvents API

Test: run_sim.sh
Change-Id: I83ecf42bb8b16d6b74a21d980cbc8828c1126b16
ello_world/hello_world.cc
nload_tester/unload_tester.cc
19415606c59ea7f22ca858a8e86ce81c4372ad3d 21-Apr-2017 David Jacobs <davejacobs@google.com> NanoApp, Runtime Calibration: Passive Sensor Mode

This CL changes the runtime IMU calibration algorithms to use
subscribed sensors in passive mode.

Tests:
- Firmware built/tested on hardware.

Bug: 30958130
Change-Id: Iad677603a8f6757323f96ad6773a95eefd35dc56
mu_cal/imu_cal.cc
e6ce3a42674fcf93df5c187f97152176a8900df7 06-Apr-2017 David Jacobs <davejacobs@google.com> NanoApp, Runtime Calibration: Adds ASH API Storage/Recovery

Tests:
- Firmware built/tested on hardware.

Bug: 30958130

Change-Id: I2b9255f16982f634aa3f586ee1328c204a2a00a0
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
af7ab61c024a7729c50a72a0b7837cbd309065be 06-Apr-2017 David Jacobs <davejacobs@google.com> NanoApp, Runtime Calibration

This CL ports the runtime IMU calibration algorithms to the new
CHRE framework.

Tests:
- Firmware built/tested on hardware.

Bug: 30958130

Change-Id: I0e6fc2d8258f90994149c7d68a360a17913feece
mu_cal/imu_cal.cc
mu_cal/imu_cal.mk
mu_cal/nano_calibration.cc
mu_cal/nano_calibration.h
e5d8b38a4814e88b04bcad8e8e9835c375e725bd 11-Apr-2017 Brian Duddie <bduddie@google.com> Reduce logspam from start/stop events

Update sample apps to ignore nanoapp started/stopped events if they
don't use them.

Test: run simulator
Change-Id: Icba38c137ef8687e23a7d4c20ebf9802f246bfe2
nss_world/gnss_world.cc
ello_world/hello_world.cc
mu_cal/imu_cal.cc
essage_world/message_world.cc
ensor_world/sensor_world.cc
imer_world/timer_world.cc
nload_tester/unload_tester.cc
ifi_world/wifi_world.cc
wan_world/wwan_world.cc
f6dd8800732ba8c24448e4cd4fa3a135a218b509 10-Apr-2017 Andrew Rossignol <aarossig@google.com> Adds location logging to GnssWorld

Test: Run sim and on device near window
Change-Id: I23dffd2f97d441f676cc36101eec2076e6a880e1
nss_world/gnss_world.cc
62f187d9d736346275492e916f6001576b68bb00 07-Apr-2017 Brian Duddie <bduddie@google.com> Implement chreGetNanoappInfoBy{AppId,InstanceId}

Adds support for the CHRE API function to query information about
another nanoapp running in the system.

Test: run simulator with unload tester
Change-Id: I2eca96d8a6b2be6e231819b6957dcf626114b83d
nload_tester/unload_tester.cc
54da290293a99d51ecad398e5483f76e65486aeb 07-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implements the chreGetSensorSamplingStatus CHRE API"
59e4cbe02c3dbfd3375dd39ac2691065c813353b 04-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the chreGetSensorSamplingStatus CHRE API

Currently, it only returns the latest CHRE request.
Added a TODO to return the platform's sampling status.
Also updated SensorWorld to exercise this API.

Change-Id: I5a034925d5e905f4b0509eb8fda947f6deb7a1da
ensor_world/sensor_world.cc
b2466e41846b76b11b09788e1c1ff49632237a90 07-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ib6dbe26b,Ia08c04d9

* changes:
Add support for unloading nanoapps
Add test nanoapp that spams events and messages
7c311cb87caba54c11894d72a1a75f0cab365ce9 07-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Iee7d7513,Ieb54531e

* changes:
Enables -Wconversion for the simulator and fixes some warnings
Releases the WifiScanRequest async result on event posting failure
99f01ac9bd6e351538cb8922ef15d9e838e7339a 06-Apr-2017 Brian Duddie <bduddie@google.com> Add support for unloading nanoapps

Add the capability for clients on the host to dynamically request the
unloading of a nanoapp. This initial implementation takes measures to
avoid potentially referencing the memory in the nanoapp after it is
unloaded, by flushing events and messages, but does not clean up after
the nanoapp if it leaves a sensor request open, or a timer running, or
doesn't free all of its dynamic memory, etc. As part of ensuring this
safety, CHRE will now prevent a nanoapp that is being unloaded from
sending events or messages just prior to invoking the nanoappEnd
callback.

Add an unload tester nanoapp that unloads the spammer test nanoapp after
a short delay, to help verify that event and message cleanup is handled
appropriately.

Test: run unload tester nanoapp in simulator and on SLPI, use
chre_test_client on SLPI to unload AR
Change-Id: Ib6dbe26b6414e417401412375390ceef5663d4d9
pps.mk
nclude/chre/apps/apps.h
nload_tester/unload_tester.cc
nload_tester/unload_tester.mk
3d2336c8674fff457469e0749ab64f220eaa38ff 06-Apr-2017 Brian Duddie <bduddie@google.com> Add test nanoapp that spams events and messages

To be used in app unload testing, etc.

Test: run simulator
Change-Id: Ia08c04d94abe2923d04a85b63c24f8b904496a45
pps.mk
nclude/chre/apps/apps.h
pammer/spammer.cc
pammer/spammer.mk
imer_world/timer_world.cc
7e3b2f719dfcff6fc0a394bafe6506981a2a2e17 05-Apr-2017 Andrew Rossignol <aarossig@google.com> Enables -Wconversion for the simulator and fixes some warnings

Test: Run the sim, tests and load_chre.sh.
Change-Id: Iee7d7513b91a92e7daea108346ab5881e3f55a14
mu_cal/imu_cal.cc
ensor_world/sensor_world.cc
303b8dc498a608773ceb293942f95e25ac1055f3 05-Apr-2017 Brian Duddie <bduddie@google.com> Update MessageWorld with event sending test

Test: compile (test failing; fix to come in follow-up)
Change-Id: Iff6cc8bb82cae76a4552efc6a68190d0a051bcea
essage_world/message_world.cc
27d4adedb8c7d1f4b41388efb04a30a9038f33e1 03-Apr-2017 Andrew Rossignol <aarossig@google.com> Adds support for starting a location session to GnssWorld

Test: Compile + run on device
Change-Id: Ice34b204bd1ee0c4335e49afba8bd9d237da4466
nss_world/gnss_world.cc
463f8eef80b7e33bf795f35657b5a61cd0607407 03-Apr-2017 Andrew Rossignol <aarossig@google.com> Improves logging robustness of WifiWorld

Test: Compile and run sim
Change-Id: I119da7e64e253f51e476a2a32dc5e0436921baa6
ifi_world/wifi_world.cc
96f33751ce98a3e64d90373a3a42f88458b3aef0 30-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds support for posting cell info to nanoapps who requested it

Test: Run on device, see cell info being logged
Change-Id: If53b008a52d4e6ce08322899b0dfe98189247a09
wan_world/wwan_world.cc
c95f382172ad4082e70cf2561223fa0056b62e5a 29-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds periodic cell info requests to WwanWorld

Test: Run on device
Change-Id: I28c4581d1c3f79eb300a4f09b24821015ab853f9
wan_world/wwan_world.cc
081cf58c30107f77283b11f286bb976cc4ce35e3 27-Mar-2017 Brian Duddie <bduddie@google.com> Simplify hello world example, fix build for external

Test: compile hello world for qcom_hexagonv60_nanohub and
google_hexagonv62_slpi

Change-Id: I1e2cf37eabb09c82795751b69ba4189ef3f43872
ello_world/Makefile
ello_world/hello_world.cc
2b9d71a9f6a9e8cc0e787957d022154231f29962 24-Mar-2017 Brian Duddie <bduddie@google.com> Correct nanoappEnd entry point naming

Was previously referred to as nanoappStop, which does not match the CHRE
API definition.

Test: compile for linux and slpi
Change-Id: I0586a702624f0159e79876608c5955ed974912f1
nss_world/gnss_world.cc
ello_world/hello_world.cc
mu_cal/imu_cal.cc
essage_world/message_world.cc
ensor_world/sensor_world.cc
imer_world/timer_world.cc
ifi_world/wifi_world.cc
wan_world/wwan_world.cc
9d5b500a223ef73560f0dce38f50b809bde5dd0d 23-Mar-2017 Brian Duddie <bduddie@google.com> Rework Nanoapp model

Unify Nanoapp into a single monolithic object that directly exposes the
common interfaces implemented in core and platform. As a result of this,
PlatformNanoapp will no longer exist as a separate entity from Nanoapp.
In preparation for dynamic app support, refactor static nanoapp loading
to construct a UniquePtr<Nanoapp> and transfer ownership to the
EventLoop when starting a nanoapp.

This commit includes the first look at the nanoapp support library which
will be used for external nanoapps implemented as dynamic shared
objects.

Test: run chre_test_client with MessageWorld, and run the Linux simulator
Change-Id: Ic17f2c48c3156d1e5bb255b1c6a188908123d5df
nss_world/gnss_world.cc
ello_world/hello_world.cc
mu_cal/imu_cal.cc
nclude/chre/apps/apps.h
essage_world/message_world.cc
ensor_world/sensor_world.cc
imer_world/timer_world.cc
ifi_world/wifi_world.cc
wan_world/wwan_world.cc
1ac1f606166ed611241d3605df45fcbbeceb022d 21-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds on-demand wifi scans to WiFiWorld

Test: Run on device with WifiWorld enabled
Change-Id: Ie623c0451a97713f063a3034902e3832b1c325d4
ifi_world/wifi_world.cc
de21e14b333cc8f52db1e759b537c4c1a8e81dd3 21-Mar-2017 Andrew Rossignol <aarossig@google.com> Updates parseChreWifiBand to always return a string

Test: Run on device
Change-Id: Ic65a9907c02d81ce1f10a41dcd9a6323c55725b2
ifi_world/wifi_world.cc
0e2f02c628480c36e32c05656e66e108413a5a42 21-Mar-2017 Andrew Rossignol <aarossig@google.com> Extends the logging of WiFi scan events in WiFiWorld

Test: Compile + load on device and view scan results
Change-Id: Ib10c02ec770aaf2b6c65eb968b20660ec2755792
ifi_world/wifi_world.cc
7621b3267fd2ff1068d7aa7d75441d68646226ab 19-Mar-2017 Brian Duddie <bduddie@google.com> Reorganize HostProtocol, add hub info query

Split HostProtocol into three classes: one for the host, one for CHRE,
and one that's shared. Since the protocol is not fully symmetric (e.g.
messages to/from nanoapps are the same in both directions, but only one
side will ever request hub info, and only CHRE will ever construct the
response), this avoids pulling in unneeded code.

Also, add support for querying hub information from CHRE to be used in
the HAL, and rework the HostLink pending outbound message queue to be
more generic.

Test: run chre_test_client
Change-Id: Id88485b8c5a085eb886d4059840ac640c0383c88
mu_cal/imu_cal.cc
ensor_world/sensor_world.cc
da6eaabf8572a16acaebd516dd96ce0063d71e91 18-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds initial WiFi scan event logging to WifiWorld

Test: Compile + run on device
Change-Id: I6e4cd05064c93eb26223b1e69f57b07b8922cedd
ifi_world/wifi_world.cc
e969b9be8eca27ffc875167879ab0ec093b3e313 16-Mar-2017 Andrew Rossignol <aarossig@google.com> Implements static nanoapp loading

- Removes the list of nanoapps from the platform init code
- Introduces a new weakly linked nanoapp list on a per-platform basis
- Adds a LoadStaticNanoapps method

Test: Compile + run simulator and device.
Change-Id: Ib4927655977a088650b3954437de3f594ee6529d
pps.mk
nss_world/gnss_world.cc
nss_world/include/chre/apps/gnss_world/gnss_world.h
ello_world/hello_world.cc
ello_world/include/chre/apps/hello_world/hello_world.h
mu_cal/imu_cal.cc
mu_cal/include/chre/apps/imu_cal/imu_cal.h
nclude/chre/apps/apps.h
essage_world/include/chre/apps/message_world/message_world.h
essage_world/message_world.cc
ensor_world/include/chre/apps/sensor_world/sensor_world.h
ensor_world/sensor_world.cc
imer_world/include/chre/apps/timer_world/timer_world.h
imer_world/timer_world.cc
ifi_world/include/chre/apps/wifi_world/wifi_world.h
ifi_world/wifi_world.cc
wan_world/include/chre/apps/wwan_world/wwan_world.h
wan_world/wwan_world.cc
746ea0ecb99d3f758da17292db549b29720c4442 16-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds getSensorNameForEventType

This is duplicated in two nanoapps and seems useful for logging so let's
stop the copy-pasta and make it available for everyone :)

Test: Run the simulator
Change-Id: I215f8622647bcd2890189687f47ace40c06e47e5
mu_cal/imu_cal.cc
ensor_world/sensor_world.cc
a16406ba1a734f21f36a4b0f64b23b062644b6e2 16-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds a nanoapp logging header file

- Updates nanoapps to use this new logging macro
- Updates chre.h to be a system-style include
- Makes using chreLog shorter
- Allows disabling logs below a certain level
- Moves some common log level logic to a new file to be shared

Test: Compile and run the simulator
Change-Id: I81ce7218132f9325b58e2a6792a3bfb6573c30ed
nss_world/gnss_world.cc
ello_world/hello_world.cc
mu_cal/imu_cal.cc
essage_world/message_world.cc
ensor_world/sensor_world.cc
imer_world/timer_world.cc
ifi_world/wifi_world.cc
wan_world/wwan_world.cc
8140b334bcb89b0653d5402285821e7c75871b74 15-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds a WwanWorld sample nanoapp

Test: Compile only test for now, device testing coming
Change-Id: I1387e8c564f3eaf9ce81544f2331a57684a7ac61
wan_world/Makefile
wan_world/include/chre/apps/wwan_world/wwan_world.h
wan_world/wwan_world.cc
wan_world/wwan_world.mk
e529163f445c81d2cf6b8d7dadc70a1785ae1829 14-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Merge "Adds support for InstantMotion and StationaryDetect"
9d6e35118ed3e4c61cc8b3d6a270406eff4a0a41 14-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose socket interface to CHRE daemon"
69fb1d72e0aba8aeb7b7e8adf6acddff6f2b079d 14-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Adds support for InstantMotion and StationaryDetect

Also modifies sensor world nanoapp to exercise them.

Change-Id: Id4b70aa919074aa21da92c5658b73e2d66b85bb6
ensor_world/sensor_world.cc
e47c28ffe449ca6b91ad0604be2bf164cdd490a3 13-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds a GnssWorld sample nanoapp

Test: Compile test only for now, device testing coming
Change-Id: Ic3f4591da1b9a2bbbbdeac24cb926f829e5dfd57
nss_world/Makefile
nss_world/gnss_world.cc
nss_world/gnss_world.mk
nss_world/include/chre/apps/gnss_world/gnss_world.h
3d0e53bc6419ee6110ca75ab30f369856fe5b28d 10-Mar-2017 Brian Duddie <bduddie@google.com> Expose socket interface to CHRE daemon

Run a Unix domain socket server in the CHRE daemon so clients such as
the context hub HAL implementation can connect and communicate with
CHRE. Add a test client binary to help with initial testing in
conjunction with the message world app.

Test: run CHRE with message world app loaded, and use chre_test_client
Change-Id: I444f883a468e1c0fa8d96fbeee670540fa6844e7
essage_world/message_world.cc
790655134005840d2195c6532c10a5e1db9b4827 13-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Deliver Prox data using chreSensorByteData"
90db64e2ff34e67d967abf755c9dc2dd9a715079 11-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Deliver Prox data using chreSensorByteData

Change-Id: Ib38e12dbd53f9d7268179b12541b549415fa1c95
ensor_world/sensor_world.cc
aa499877f69da5b99776f5b58ee5ecee824ddbc8 11-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Adds an IMU Cal nanoapp

Change-Id: I47f32a6ebd5214d74b883e5d9b8f254c7862e69b
mu_cal/imu_cal.cc
mu_cal/imu_cal.mk
mu_cal/include/chre/apps/imu_cal/imu_cal.h
1587af4ff0a6574d626c6e2d392173d151a23720 10-Mar-2017 Andrew Rossignol <aarossig@google.com> Extends the WifiWorld sample nanoapp

- Adds support for requesting scan monitoring if supported.
- Logs the async result of enabling scan monitoring.
- Logging Wifi scans is left as a TODO as event dispatching is not yet
enabled.

Test: Compile and run the simulator, on-device testing is next
Change-Id: I000a9fb2856dbf557d2c862bee5320a331dab552
ifi_world/wifi_world.cc
48fda6e1eedf6ba80ae7596fc7676f8318a1e88e 07-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the chreGetSensorInfo CHRE API

Also modifies SensorWorld nanoapp to exercise the API.

Change-Id: If71643bbc98edc5fb8a753aa546aa31ee4c27f48
ensor_world/sensor_world.cc
09f699fd649d1a1db49dc7317549729cea4356af 07-Mar-2017 Andrew Rossignol <aarossig@google.com> Adds WifiWorld sample CHRE nanoapp

- The goal is to exercise basic wifi functionality and log results for
manual inspection.
- Currently logs the platform capabilities.

Test: Run the nanoapp, see the logs
Change-Id: I5eec1ac2bb4997457e3ca4bbe62ab894bd4c50dd
essage_world/message_world.cc
ifi_world/Makefile
ifi_world/include/chre/apps/wifi_world/wifi_world.h
ifi_world/wifi_world.cc
ifi_world/wifi_world.mk
3807f5eba9d96cd143dfcedfef4974c5c77aa414 03-Mar-2017 Brian Duddie <bduddie@google.com> Add Message World test nanoapp

Adds a sample nanoapp that can be used as a quick sanity check of
functionality covering exchanging messages with the host.

Change-Id: If02fb05e39353aaf5bc43ab63d5d0e6ce3c25ca9
essage_world/Makefile
essage_world/include/chre/apps/message_world/message_world.h
essage_world/message_world.cc
essage_world/message_world.mk
1eb3f30c23516c609b2fd4e4bf9afc75c4665597 01-Mar-2017 Andrew Rossignol <aarossig@google.com> Removes Bazel support in favor of Makefiles

- Bazel was great, but with the requirement to support a diverse
set of CPU architectures, it makes sense to use one unified build
system consisting of Makefiles.
- Removes all BUILD files, helper scripts and gitignores.

Change-Id: I7273ea806bc4e456979264575f8597ba84ffb6de
ello_world/BUILD
ensor_world/BUILD
imer_world/BUILD
b62cbfebed5b3472f2d1af3e2a373cb4938ce50e 23-Feb-2017 Meng-hsuan Chung <menghsuan@google.com> Update sensor_world to exercise all supported sensors

Change-Id: I9f8b30a16a81057fe0ce11c8393df3b2d6b32a0a
ensor_world/sensor_world.cc
cb0ca9cfdfa880d56d8ce90422a761e61b677cbc 10-Feb-2017 Andrew Rossignol <aarossig@google.com> Adds support for Nanoapp builds

- Multiarch is now supported (currently Hexagon v60 and v62, Cortex-M4)
- All includes are relative to CHRE_PREFIX, out of tree builds work
- Produces vanilla shared objects and static archives
- Reorganized some costants and configurations to make more sense.

Change-Id: Ifd5a617b2e3e1a25c701da69bf3959101f6b63f0
ello_world/Makefile
ccad9b0cdb448dba6b197c770fe3c1a7e0798be9 27-Jan-2017 Andrew Rossignol <aarossig@google.com> Adds some additional test code to the Sensor World app

Change-Id: Ie3de257ad2dc133d6b5108937f01c7a0030a2cc2
ensor_world/sensor_world.cc
99bf73a4557d1ac3b57b7768a2e5131c7e832f92 18-Jan-2017 Andrew Rossignol <aarossig@google.com> Adds a SensorWorld app to exercise sensor functionality

- Currently requests all CHRE sensor types and logs the result.

Change-Id: I730da0b9b389e75a79c9f42a86bf98fbdeba102f
ensor_world/BUILD
ensor_world/include/chre/apps/sensor_world/sensor_world.h
ensor_world/sensor_world.cc
ensor_world/sensor_world.mk
7003d69544bddc032edee3d54dab10a839e8e9d4 22-Dec-2016 Andrew Rossignol <aarossig@google.com> Adds mk files for apps and adds more source files to the build

Change-Id: Id82612db606f71a4dc9938f3ac40a50fac6b600b
ello_world/hello_world.mk
imer_world/timer_world.mk
6851c47f6eecf75c66f7df0b1331b0e392201e14 13-Dec-2016 Andrew Rossignol <aarossig@google.com> Implements chreTimerCancel using the TimerPool

Change-Id: I05255da65b1ba737baebcff174ea77792ae2eba3
imer_world/timer_world.cc
725bef45ca127971b3ea798cd1f4e4b2c0d8fe9d 10-Dec-2016 Andrew Rossignol <aarossig@google.com> Implements portions of the SystemTimer.

- Supports requesting a timer and delivering events.
- TimerHandle generation logic.
- Multiplexes multiple requests into one underlying timer.
- Adds a TimerWorld sample app to test cyclic and one-shot timers.

Change-Id: Id992790b49618f94ab2a7ce76098394e5cc161d4
imer_world/BUILD
imer_world/include/chre/apps/timer_world/timer_world.h
imer_world/timer_world.cc
e64f180233e64c40b56993cfea3696c5b4b16395 04-Nov-2016 Brian Duddie <bduddie@google.com> Initial import of CHRE source from external repo

Starting at commit 46a52e0 from contexthub-base.

Change-Id: I373f3a99b74757daae465b78a3d19bfce4770364
ello_world/BUILD
ello_world/hello_world.cc
ello_world/include/chre/apps/hello_world/hello_world.h