Searched refs:nanoapp (Results 1 - 25 of 34) sorted by relevance

12

/system/chre/platform/linux/include/chre/target_platform/
H A Dstatic_nanoapp_init.h20 #include "chre/core/nanoapp.h"
25 * Initializes a static nanoapp that is based on the Linux implementation of
28 * @param appName the name of the nanoapp. This will be prefixed by gNanoapp
29 * when creating the global instance of the nanoapp.
38 static UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \
39 if (nanoapp.isNull()) { \
40 FATAL_ERROR("Failed to allocate nanoapp " #appName); \
42 nanoapp->mStart = nanoappStart; \
43 nanoapp->mHandleEvent = nanoappHandleEvent; \
44 nanoapp
[all...]
/system/chre/platform/shared/
H A Dchre_api_re.cc32 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
33 return nanoapp->getAppId();
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
38 return nanoapp->getInstanceId();
42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
43 return chre::getCurrentEventLoop()->getTimerPool().setTimer(nanoapp,
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
49 return chre::getCurrentEventLoop()->getTimerPool().cancelTimer(nanoapp,
H A Dchre_api_wifi.cc30 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
32 .configureScanMonitor(nanoapp, enable, cookie);
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
39 .requestScan(nanoapp, params, cookie);
H A Dchre_api_sensor.cc43 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
48 getSensorInfo(sensorHandle, nanoapp, info);
56 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local
58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval),
61 .setSensorRequest(nanoapp, sensorHandle, sensorRequest);
/system/chre/apps/gnss_world/
H A DMakefile26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
/system/chre/apps/message_world/
H A DMakefile26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
/system/chre/apps/wifi_world/
H A DMakefile26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
/system/chre/apps/wwan_world/
H A DMakefile26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
/system/chre/chre_api/legacy/v1_0/
H A Dchre.h23 * environment in which a nanoapp runs.
34 #include <chre/nanoapp.h>
64 * non-reentrant. That is, any of the functions of the nanoapp, including
67 * hasn't completed. Note this means no nanoapp function can be invoked
70 * For example, if a nanoapp is currently in nanoappHandleEvent(), the CHRE is
72 * callback. Similarly, if a nanoapp is currently in a memory freeing
83 * wouldn't need the nanoapp-supplied buffer after chreSendMessageToHost()
86 * For a nanoapp author, this means no thought needs to be given to
101 * little memory and little CPU. Any single nanoapp should expect to
105 * Thus, a nanoapp need
[all...]
/system/chre/platform/slpi/include/chre/target_platform/
H A Dstatic_nanoapp_init.h20 #include "chre/core/nanoapp.h"
26 * Initializes a static nanoapp that is based on the SLPI implementation of
29 * @param appName the name of the nanoapp. This will be prefixed by gNanoapp
30 * when creating the global instance of the nanoapp.
40 static UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \
54 if (nanoapp.isNull()) { \
55 FATAL_ERROR("Failed to allocate nanoapp " #appName); \
57 nanoapp->loadStatic(&appInfo); \
58 gNanoapp##appName = &nanoapp; \
/system/chre/core/
H A Devent_loop.cc21 #include "chre/core/nanoapp.h"
64 for (const UniquePtr<Nanoapp>& nanoapp : mNanoapps) {
65 callback(nanoapp.get(), data);
97 // callback and are not expected to be delivered to any nanoapp, so no
129 bool EventLoop::startNanoapp(UniquePtr<Nanoapp>& nanoapp) { argument
130 CHRE_ASSERT(!nanoapp.isNull());
135 if (nanoapp.isNull()) {
137 } else if (eventLoopManager->findNanoappInstanceIdByAppId(nanoapp->getAppId(),
141 PRIx32, nanoapp->getAppId(), existingInstanceId);
143 LOGE("Failed to allocate space for new nanoapp");
160 stopNanoapp(Nanoapp *nanoapp) argument
216 Nanoapp *nanoapp = lookupAppByInstanceId(instanceId); local
264 const UniquePtr<Nanoapp>& nanoapp = mNanoapps[index]; local
[all...]
H A Dwifi_request_manager.cc27 // Reserve space for at least one scan monitoring nanoapp. This ensures that
39 bool WifiRequestManager::configureScanMonitor(Nanoapp *nanoapp, bool enable, argument
41 CHRE_ASSERT(nanoapp);
44 uint32_t instanceId = nanoapp->getInstanceId();
46 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie);
53 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie);
60 LOGE("Failed to enable the scan monitor for nanoapp instance %" PRIu32,
71 bool WifiRequestManager::requestScan(Nanoapp *nanoapp, argument
74 CHRE_ASSERT(nanoapp);
80 mScanRequestingNanoappInstanceId = nanoapp
181 addScanMonitorRequestToQueue(Nanoapp *nanoapp, bool enable, const void *cookie) argument
200 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
380 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
416 Nanoapp *nanoapp = EventLoopManagerSingleton::get()-> local
[all...]
H A Dsensor_request_manager.cc111 bool SensorRequestManager::setSensorRequest(Nanoapp *nanoapp, argument
113 CHRE_ASSERT(nanoapp);
136 bool nanoappHasRequest = (requests.find(nanoapp, &requestIndex) != nullptr);
143 // The existing request is removed from the multiplexer. The nanoapp is
147 nanoapp->unregisterForBroadcastEvent(eventType);
159 // multiplexer. The nanoapp is registered for events if this request was
163 nanoapp->registerForBroadcastEvent(eventType);
170 nullptr, kSystemInstanceId, nanoapp->getInstanceId());
187 const Nanoapp *nanoapp,
189 CHRE_ASSERT(nanoapp);
186 getSensorInfo(uint32_t sensorHandle, const Nanoapp *nanoapp, struct chreSensorInfo *info) const argument
232 Nanoapp *nanoapp = request.getNanoapp(); local
252 find( const Nanoapp *nanoapp, size_t *index) const argument
[all...]
H A Dtimer_pool.cc32 TimerHandle TimerPool::setTimer(const Nanoapp *nanoapp, Nanoseconds duration, argument
34 CHRE_ASSERT(nanoapp);
38 timerRequest.requestingNanoapp = nanoapp;
50 nanoapp->getAppId(), duration.toRawNanoseconds());
66 bool TimerPool::cancelTimer(const Nanoapp *nanoapp, TimerHandle timerHandle) { argument
67 CHRE_ASSERT(nanoapp);
77 } else if (timerRequest->requestingNanoapp != nanoapp) {
91 LOGD("App %" PRIx64 " cancelled timer %" PRIu32, nanoapp->getAppId(),
/system/chre/core/include/chre/core/
H A Dsensor_request_manager.h55 * Sets a sensor request for the given nanoapp for the provided sensor handle.
56 * If the nanoapp has made a previous request, it is replaced by this request.
59 * @param nanoapp A non-null pointer to the nanoapp requesting this change.
62 * @param request The new sensor request for this nanoapp.
67 bool setSensorRequest(Nanoapp *nanoapp, uint32_t sensorHandle,
74 * @param nanoapp A non-null pointer to the nanoapp requesting this change.
78 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp *nanoapp,
113 * given nanoapp
[all...]
H A Dtimer_pool.h54 * Requests a timer for a nanoapp given a cookie to pass to the nanoapp when
57 * @param nanoapp The nanoapp for which this timer is being requested.
62 TimerHandle setTimer(const Nanoapp *nanoapp, Nanoseconds duration,
67 * is not owned by the passed in nanoapp, false is returned.
69 * @param nanoapp The nanoapp requesting a timer to be cancelled.
73 bool cancelTimer(const Nanoapp* nanoapp, TimerHandle timerHandle);
85 //! The nanoapp fro
[all...]
H A Devent_loop.h21 #include "chre/core/nanoapp.h"
48 typedef void (NanoappCallbackFunction)(const Nanoapp *nanoapp, void *data);
57 * @param appId The nanoapp identifier to search for.
82 * @param nanoapp The nanoapp that will be started. Upon success, this
87 bool startNanoapp(UniquePtr<Nanoapp>& nanoapp);
90 * Stops a nanoapp by invoking the stop entry point. The nanoapp passed in
94 * @param nanoapp A pointer to the nanoapp t
[all...]
H A Dwifi_request_manager.h20 #include "chre/core/nanoapp.h"
48 * Handles a request from a nanoapp to configure the scan monitor. This
52 * @param nanoapp The nanoapp that has requested that the scan monitor be
56 * @param cookie A cookie that is round-tripped back to the nanoapp to
61 bool configureScanMonitor(Nanoapp *nanoapp, bool enable, const void *cookie);
66 * This is currently a 1:1 mapping into the PAL. If more than one nanoapp
70 * @param nanoapp The nanoapp that has requested an active wifi scan.
72 * @param cookie A cookie that is round-tripped back to the nanoapp t
[all...]
/system/chre/chre_api/include/chre_api/
H A Dchre.h34 #include <chre/nanoapp.h>
55 * The following entry points are used to bind a nanoapp to the CHRE system, and
56 * all three must be implemented by any nanoapp (see chre/nanoapp.h):
74 * spent executing within a nanoapp does not significantly degrade or otherwise
78 * parallel or preempt a nanoapp's execution. The current version of the API
81 * In any case, event ordering from the perspective of an individual nanoapp
88 * an individual nanoapp at any given time. That is, any of the functions of
89 * the nanoapp, including the entry points and all other callbacks, cannot be
91 * nanoapp ha
[all...]
/system/chre/build/variant/
H A Dgoogle_cm4_nanohub.mk18 include $(CHRE_PREFIX)/build/nanoapp/google_nanohub.mk
H A Dgoogle_hexagonv60_slpi.mk16 include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
H A Dgoogle_hexagonv62_slpi.mk16 include $(CHRE_PREFIX)/build/nanoapp/google_slpi.mk
H A Dgoogle_x86_linux.mk14 include $(CHRE_PREFIX)/build/nanoapp/google_linux.mk
/system/chre/util/
H A Dutil.mk12 COMMON_SRCS += util/nanoapp/sensor.cc
13 COMMON_SRCS += util/nanoapp/wifi.cc
/system/chre/build/nanoapp/
H A Dapp.mk4 # Include this file in your nanoapp Makefile to produce binary nanoapps to
11 $(error "The NANOAPP_NAME variable must be set to the name of the nanoapp. \
16 $(error "The NANOAPP_ID variable must be set to the ID of the nanoapp. \
21 $(error "The NANOAPP_VERSION variable must be set to the version of the nanoapp. \
27 the nanoapp. This should be assigned by the Makefile that includes \
44 # required as the target is a nanoapp.
59 DSO_SUPPORT_LIB_PATH = $(CHRE_PREFIX)/platform/shared/nanoapp

Completed in 912 milliseconds

12