Home
last modified time | relevance | path

Searched refs:nanoapp (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/modules/chre/src/
Dechoapp.cpp18 chre::Nanoapp *nanoapp = nullptr; variable
23 nanoapp = chre::EventLoopManagerSingleton ::get()->getEventLoop().getCurrentNanoapp(); in nanoappStart()
24 nanoapp->registerForBroadcastEvent(CHRE_EVENT_MESSAGE_FROM_HOST); in nanoappStart()
36 nanoapp->unregisterForBroadcastEvent(0); in nanoappEnd()
37 nanoapp = nullptr; in nanoappEnd()
/Zephyr-latest/samples/modules/chre/
DREADME.rst9 Android's context hub enables the use of nanoapps. A single nanoapp has 3 entry points seen in
10 `chre_api/chre/nanoapp.h`_:
12 * A ``nanoappStart`` function used to notify the nanoapp that it is now active.
13 * A ``nanoappHandleEvent`` function used to notify the nanoapp tha an event of interest took place.
14 * A ``nanoappEnd`` function used to notify the nanoapp that it is now deactivated.
46 #. Notify that a nanoapp was started and assigned an instance/app ID of 1 via a ``dbg`` level log
47 #. Print a message saying that the nanoapp's start callback was called
48 #. Send an event of type ``1`` and no data to the nanoapp
50 #. Call the ``nanoappEnd`` function of the nanoapp
51 #. Print a message notifying that it's not possible to remove a system level nanoapp
[all …]