Lines Matching refs:nanoapp
9 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
62 dependencies. The first nanoapp will be a lid angle calculator which will use 2 accelerometers.
65 #. Run this sample application and watch the nanoapp provide lid angle calculations based on 2
68 …chre_api/chre/nanoapp.h`: https://cs.android.com/android/platform/superproject/+/master:system/chr…