History log of /system/chre/chre_api/include/chre_api/chre/event.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d3d498a0812af84c7ea52a4639a1f1d88b402b6f 09-Nov-2017 Brian Duddie <bduddie@google.com> CHRE API v1.2: Add host wake/sleep notifications

Introduce two new APIs supporting notifications when the AP wakes up and
goes to sleep, and a way to query the current state of the AP.

Test: compile test only
Change-Id: Iff46a499cbc46420c02e8a4a73383a7158114c63
/system/chre/chre_api/include/chre_api/chre/event.h
53eb7c785f49ff3e11edcf290faa610ba66454fa 24-Aug-2017 Andrew Rossignol <aarossig@google.com> Adds audio support to the CHRE API

Bug: 63942658
Test: ./run_tests.sh, inital compilation test of the API
Change-Id: Ia937fc8f8b350c18c77d3bd31dd616a9357473c1
/system/chre/chre_api/include/chre_api/chre/event.h
e64ce59f7643eaef068802618eb22c6f228cd3a1 03-May-2017 Brian Duddie <bduddie@google.com> Increase size of internal event range in CHRE API

Extend the range of event IDs reserved for implementation-specific usage
from 0x7E00-0x7FFF (511 events) to 0x7000-0x7FFF (4095 events). This
allows for more flexibility in custom extensions, etc., while still
leaving ~28k event IDs for CHRE to use in the future.

Test: compile simulator
Change-Id: I37de79e59b3757f40a4b73a19bb094559da9ad3a
/system/chre/chre_api/include/chre_api/chre/event.h
ba1b2376a7b321a4df543de9a0d22264a381400a 26-Apr-2017 Brian Duddie <bduddie@google.com> Add chreConfigureNanoappInfoEvents() to CHRE API

Make CHRE_EVENT_NANOAPP_STARTED and CHRE_EVENT_NANOAPP_STOPPED disabled
by default - these were the only broadcast events that were enabled by
default (and there was no way to disable them). Add
chreConfigureNanoappInfoEvents(bool) to allow nanoapps to opt-in to
these events (ostensibly in their nanoappStart() callback), or disable
them at any time.

Test: compile simulator
Change-Id: I3446771f9e61d67bef765b8da57955416251fbb5
/system/chre/chre_api/include/chre_api/chre/event.h
0709d2df687c193d8ac229bdceed53c399886c69 07-Apr-2017 Brian Duddie <bduddie@google.com> Leave reservedMessageType as a deprecated alias

Preserve the reservedMessageType name used in CHRE API v1.0 as an alias
to the field that has now been renamed to messageType. This allows code
that references it to compile and function normally against both v1.0
and v1.1 API definitions.

This alias is deprecated and will be removed in a future update.

Test: build CHRE
Change-Id: I2e18ab9359bb2b7c55c0b3090c88d0d852493d1d
/system/chre/chre_api/include/chre_api/chre/event.h
2bb82b7b3a5aa69ee1230a5b58949fc3fe9364fe 04-Mar-2017 Brian Duddie <bduddie@google.com> CHRE API: Add lookup of app info from instance ID

Add chreGetNanoappInfoByInstanceId, which allows a nanoapp to query for
identifying information about a nanoapp that has sent it an event. Also,
rename the existing chreGetNanoappInfo() to chreGetNanoappInfoByAppId()
to avoid potential confusion with the instance ID-based lookup.

Test: compile test only
Change-Id: I2c64b989f863b35031705ab18fc2d8f378c8040c
/system/chre/chre_api/include/chre_api/chre/event.h
55c49c07c439e2448c1df72d451cf23d59634b38 02-Mar-2017 Brian Duddie <bduddie@google.com> CHRE API: Add hostEndpoint concept, remove obsolete note

Introduces chreSendMessageToHostEndpoint(), which takes an additional
parameter to specify the entity on the host that should receive the
message, and changes the type of the messageSize parameter from
uint32_t to size_t to preserve symmetry with chreMessageFreeFunction.
Also updates the struct given when a message is received to indicate
the sending endpoint.

Removes a note in chreSendEvent mentioning that other nanoapps' instance
IDs are not easily discoverable, as this is now possible via
chreGetNanoappInfo().

Change-Id: I30b49052c900a51840656ebf243e334f9bfd3d2b
/system/chre/chre_api/include/chre_api/chre/event.h
9650de6da76ca34223c55a304a4687bf1190f107 17-Feb-2017 Brian Duddie <bduddie@google.com> CHRE API: Make messageType support mandatory

Rename "reservedMessageType" to "messageType", and update comment to
state that although this field was not necessarily supported in prior
versions of the API, its support is now required.

Change-Id: I58a1de0086c7280e70ad07faa2197cfb35edd089
/system/chre/chre_api/include/chre_api/chre/event.h
88173061e2be625b501ea2979ec01b1e5fe65350 07-Feb-2017 Brian Duddie <bduddie@google.com> Add nanoapp discovery mechanism to CHRE API

Introduce a new API, chreGetNanoappInfo(), which can be used to retrieve
the instance ID for a given nanoapp ID. Also add events which inform
nanoapps of the starting and stopping of other nanoapps.

Also, define the vendor IDs for Google and provide a helper macro to
mask off the vendor ID portion of nanoapp or CHRE platform IDs.

Change-Id: Ib04c5db64e0245ad23c560daeb307a10e963d323
/system/chre/chre_api/include/chre_api/chre/event.h
6bb73b09cc327ecbfede8cb7657d93cecb57e159 13-Feb-2017 Brian Duddie <bduddie@google.com> Updates to CHRE API for Doxygen and style consistency

Change-Id: I0f1b883813a1d6e634b3b1c5215ed9d5415b8fc4
/system/chre/chre_api/include/chre_api/chre/event.h
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
/system/chre/chre_api/include/chre_api/chre/event.h
c14e4d77b5a945140ec2683bd393ff2e68874545 04-Mar-2017 Brian Duddie <bduddie@google.com> Remove preview versions of CHRE API and PALs

These files will be re-added in an older state and then updated through
the incoming history merge from another repo.

Change-Id: I7d5aab4c9b499f7c24a77ec9380f1b4d9533a7f2
/system/chre/chre_api/include/chre_api/chre/event.h
1b71bde2244d67695481e27f7eaa8093832281d9 15-Feb-2017 Brian Duddie <bduddie@google.com> Add initial preview of CHRE API v1.1

Introduce the current preview release of the next version of the CHRE
API, version 1.1. This new version builds upon v1.0 by adding support
for the following features/capabilities:

- Ability to request GNSS-based position fixes, along with raw
measurement data
- Ability to register for monitoring the results of WiFi scans, and
to explicitly request a new WiFi scan
- Ability to query for cell identity information from the WWAN modem,
including information about neighbor cells
- Ability to lookup the instance ID of other nanoapps running in the
system, enabling nanoapps to provide services for other nanoapps

This version of the API also extends and updates the top-level
documentation in chre.h, covering platform expectations surrounding
compatibility, threading, etc.

As of this CL, the API is in preview stage and is still subject to
change.

Test: compile test only
Change-Id: I2baf93130f1ef03b1a4c94d4465f64c1010dd4ea
/system/chre/chre_api/include/chre_api/chre/event.h