aboutsummaryrefslogtreecommitdiff
path: root/apps/sensor_world
AgeCommit message (Collapse)Author
2018-03-07Adds a standalone build for SensorWorldAndrew Rossignol
- Resolves warnings when compiling google_cm4_nanohub Bug: 74344985 Test: make google_cm4_nanohub for SensorWorld Change-Id: I6518e4ca69b93955c0c086b36d4ec4ad69314739
2017-12-01Adds support for QC SEE temperature sensorsMeng-hsuan Chung
These include accel/gyro/mag temperture sensors. Bug: 68046206 Test: ./load_chre.sh and run SensorWorld Change-Id: I6194c420fc7d22bd419612fb7ffc22e4f027e251
2017-11-30Fix SensorWorld implicit sign conversion errorMeng-hsuan Chung
Test: ./run_sim.sh Change-Id: Ife35e6d31ef1b02e487dd07a52f1a524b2340ad4
2017-11-28Adds support for QC SEE on-change sensorsMeng-hsuan Chung
These include light and prox sensors. Bug: 68046206 Test: ./load_chre.sh and run SensorWorld Change-Id: I7d87e2102d909b1b827887dac9caa41cd2d5ad13
2017-11-27Adds support for QC SEE continuous sensorsMeng-hsuan Chung
These include uncal accel, unacl gyro, uncal mag and pressure sensors. Accel/gyro/mag and temperature sensors will be added later. Bug: 68046206 Test: ./load_chre.sh and run SensorWorld Change-Id: I738b8290b19ef998339c64923de1a06632b6bb73
2017-11-21Enable -Wformat for nanoappsBrian Duddie
Add printf format declaration to chreLog when the nanoapp logging utility header file is included, so format string errors will be caught at compile time. Test: ./run_sim.sh, ./load_chre.sh, make nanoapps Change-Id: Id6cc0585f5b15ff0d92ed87c5df71fb214ae22c1
2017-06-27Modify logging to aid batching testingMeng-hsuan Chung
Bug: 62206095 Test: run SensorWorld to observe expected logging Change-Id: Ia067b656077420e46dcb805ef78e0bcbca857a1a
2017-06-11Make one-shot sensor requests with meaningful intervalMeng-hsuan Chung
Bug: 38419769 Test: use SensorWorld to enable InstantMotion and StationaryDetect and make sure they get triggered. Change-Id: I971b581c4ce9ab231f04fa08e89f7caf4d40c636
2017-05-31Adds timestamp test to SensorWorldMeng-hsuan Chung
Use UncalGyro to test batching and Prox for non-batching data. Change-Id: I47bb5714e0fcdf6a61e8d2fc5896a28717202bdb
2017-05-22Implements sampling status updateMeng-hsuan Chung
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
2017-05-02Removes obsolete ignored events from sample appsAndrew Rossignol
Test: run_sim.sh Change-Id: Ic558a25ec2138a45e90e5d276cf33eefcfefbdea
2017-04-11Reduce logspam from start/stop eventsBrian Duddie
Update sample apps to ignore nanoapp started/stopped events if they don't use them. Test: run simulator Change-Id: Icba38c137ef8687e23a7d4c20ebf9802f246bfe2
2017-04-07Merge "Implements the chreGetSensorSamplingStatus CHRE API"TreeHugger Robot
2017-04-06Implements the chreGetSensorSamplingStatus CHRE APIMeng-hsuan Chung
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
2017-04-05Enables -Wconversion for the simulator and fixes some warningsAndrew Rossignol
Test: Run the sim, tests and load_chre.sh. Change-Id: Iee7d7513b91a92e7daea108346ab5881e3f55a14
2017-03-27Correct nanoappEnd entry point namingBrian Duddie
Was previously referred to as nanoappStop, which does not match the CHRE API definition. Test: compile for linux and slpi Change-Id: I0586a702624f0159e79876608c5955ed974912f1
2017-03-27Rework Nanoapp modelBrian Duddie
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
2017-03-20Reorganize HostProtocol, add hub info queryBrian Duddie
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
2017-03-17Implements static nanoapp loadingAndrew Rossignol
- 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
2017-03-16Adds getSensorNameForEventTypeAndrew Rossignol
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
2017-03-16Adds a nanoapp logging header fileAndrew Rossignol
- 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
2017-03-14Adds support for InstantMotion and StationaryDetectMeng-hsuan Chung
Also modifies sensor world nanoapp to exercise them. Change-Id: Id4b70aa919074aa21da92c5658b73e2d66b85bb6
2017-03-13Deliver Prox data using chreSensorByteDataMeng-hsuan Chung
Change-Id: Ib38e12dbd53f9d7268179b12541b549415fa1c95
2017-03-10Implements the chreGetSensorInfo CHRE APIMeng-hsuan Chung
Also modifies SensorWorld nanoapp to exercise the API. Change-Id: If71643bbc98edc5fb8a753aa546aa31ee4c27f48
2017-03-03Removes Bazel support in favor of MakefilesAndrew Rossignol
- 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
2017-03-03Update sensor_world to exercise all supported sensorsMeng-hsuan Chung
Change-Id: I9f8b30a16a81057fe0ce11c8393df3b2d6b32a0a
2017-03-03Adds some additional test code to the Sensor World appAndrew Rossignol
Change-Id: Ie3de257ad2dc133d6b5108937f01c7a0030a2cc2
2017-03-03Adds a SensorWorld app to exercise sensor functionalityAndrew Rossignol
- Currently requests all CHRE sensor types and logs the result. Change-Id: I730da0b9b389e75a79c9f42a86bf98fbdeba102f