Age | Commit message (Collapse) | Author |
|
- Resolves warnings when compiling google_cm4_nanohub
Bug: 74344985
Test: make google_cm4_nanohub for SensorWorld
Change-Id: I6518e4ca69b93955c0c086b36d4ec4ad69314739
|
|
These include accel/gyro/mag temperture sensors.
Bug: 68046206
Test: ./load_chre.sh and run SensorWorld
Change-Id: I6194c420fc7d22bd419612fb7ffc22e4f027e251
|
|
Test: ./run_sim.sh
Change-Id: Ife35e6d31ef1b02e487dd07a52f1a524b2340ad4
|
|
These include light and prox sensors.
Bug: 68046206
Test: ./load_chre.sh and run SensorWorld
Change-Id: I7d87e2102d909b1b827887dac9caa41cd2d5ad13
|
|
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
|
|
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
|
|
Bug: 62206095
Test: run SensorWorld to observe expected logging
Change-Id: Ia067b656077420e46dcb805ef78e0bcbca857a1a
|
|
Bug: 38419769
Test: use SensorWorld to enable InstantMotion and StationaryDetect
and make sure they get triggered.
Change-Id: I971b581c4ce9ab231f04fa08e89f7caf4d40c636
|
|
Use UncalGyro to test batching and Prox for non-batching data.
Change-Id: I47bb5714e0fcdf6a61e8d2fc5896a28717202bdb
|
|
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
|
|
Test: run_sim.sh
Change-Id: Ic558a25ec2138a45e90e5d276cf33eefcfefbdea
|
|
Update sample apps to ignore nanoapp started/stopped events if they
don't use them.
Test: run simulator
Change-Id: Icba38c137ef8687e23a7d4c20ebf9802f246bfe2
|
|
|
|
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
|
|
Test: Run the sim, tests and load_chre.sh.
Change-Id: Iee7d7513b91a92e7daea108346ab5881e3f55a14
|
|
Was previously referred to as nanoappStop, which does not match the CHRE
API definition.
Test: compile for linux and slpi
Change-Id: I0586a702624f0159e79876608c5955ed974912f1
|
|
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
|
|
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
|
|
- 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
|
|
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
|
|
- 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
|
|
Also modifies sensor world nanoapp to exercise them.
Change-Id: Id4b70aa919074aa21da92c5658b73e2d66b85bb6
|
|
Change-Id: Ib38e12dbd53f9d7268179b12541b549415fa1c95
|
|
Also modifies SensorWorld nanoapp to exercise the API.
Change-Id: If71643bbc98edc5fb8a753aa546aa31ee4c27f48
|
|
- 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
|
|
Change-Id: I9f8b30a16a81057fe0ce11c8393df3b2d6b32a0a
|
|
Change-Id: Ie3de257ad2dc133d6b5108937f01c7a0030a2cc2
|
|
- Currently requests all CHRE sensor types and logs the result.
Change-Id: I730da0b9b389e75a79c9f42a86bf98fbdeba102f
|