/system/chre/platform/shared/ |
H A D | chre_api_re.cc | 37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 38 return nanoapp->getAppId(); 42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 43 return nanoapp->getInstanceId(); 48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 50 .setTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); 54 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 56 .cancelTimer(nanoapp, timerId); 60 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 62 nanoappAlloc(nanoapp, byte 66 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local [all...] |
H A D | chre_api_gnss.cc | 35 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 37 .startLocationSession(nanoapp, Milliseconds(minIntervalMs), 42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 44 .stopLocationSession(nanoapp, cookie);
|
H A D | chre_api_wifi.cc | 32 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 34 .configureScanMonitor(nanoapp, enable, cookie); 39 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 41 .requestScan(nanoapp, params, cookie);
|
H A D | chre_api_wwan.cc | 31 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 33 .requestCellInfo(nanoapp, cookie);
|
H A D | chre_api_core.cc | 35 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 37 // TODO: we should cleanly unload the nanoapp, release all of its resources, 39 // the calling nanoapp 40 if (nanoapp == nullptr) { 43 FATAL_ERROR("chreAbort called by app 0x%016" PRIx64, nanoapp->getAppId()); 50 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 58 nanoapp->getInstanceId()); 61 nanoapp->getInstanceId(), targetInstanceId); 81 Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 88 "stopping", nanoapp 116 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local [all...] |
H A D | chre_api_sensor.cc | 44 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 49 getSensorInfo(sensorHandle, *nanoapp, info); 69 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 71 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), 74 .setSensorRequest(nanoapp, sensorHandle, sensorRequest);
|
/system/chre/platform/slpi/ |
H A D | preloaded_nanoapps.cc | 19 #include "chre/core/nanoapp.h" 36 UniquePtr<Nanoapp> nanoapp; member in struct:chre::PreloadedNanoappDescriptor 48 if (preloadedNanoapps[i].nanoapp.isNull()) { 49 FATAL_ERROR("Couldn't allocate memory for preloaded nanoapp"); 51 preloadedNanoapps[i].nanoapp->loadFromFile(preloadedNanoapps[i].appId, 53 eventLoop->startNanoapp(preloadedNanoapps[i].nanoapp);
|
/system/chre/core/ |
H A D | static_nanoapps.cc | 34 //! The size of the default static nanoapp list. 47 UniquePtr<Nanoapp> nanoapp = kStaticNanoappList[i](); local 48 EventLoopManagerSingleton::get()->getEventLoop().startNanoapp(nanoapp);
|
H A D | wwan_request_manager.cc | 34 bool WwanRequestManager::requestCellInfo(Nanoapp *nanoapp, argument 36 CHRE_ASSERT(nanoapp); 42 nanoapp->registerForBroadcastEvent(CHRE_EVENT_WWAN_CELL_INFO_RESULT); 43 mCellInfoRequestingNanoappInstanceId = nanoapp->getInstanceId(); 94 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() local 96 if (nanoapp != nullptr) { 97 nanoapp->unregisterForBroadcastEvent(CHRE_EVENT_WWAN_CELL_INFO_RESULT); 99 LOGE("Freeing cell info for non-existent nanoapp");
|
H A D | event_loop.cc | 21 #include "chre/core/nanoapp.h" 81 for (const UniquePtr<Nanoapp>& nanoapp : mNanoapps) { 82 callback(nanoapp.get(), data); 89 Nanoapp *nanoapp = lookupAppByAppId(appId); local 90 if (nanoapp == nullptr) { 94 mCurrentApp = nanoapp; 143 bool EventLoop::startNanoapp(UniquePtr<Nanoapp>& nanoapp) { argument 144 CHRE_ASSERT(!nanoapp.isNull()); 150 if (nanoapp.isNull()) { 152 } else if (eventLoop.findNanoappInstanceIdByAppId(nanoapp 401 notifyAppStatusChange(uint16_t eventType, const Nanoapp& nanoapp) argument 419 const UniquePtr<Nanoapp>& nanoapp = mNanoapps[index]; local [all...] |
H A D | timer_pool.cc | 32 TimerHandle TimerPool::setTimer(const Nanoapp *nanoapp, Nanoseconds duration, argument 34 CHRE_ASSERT(nanoapp); 38 timerRequest.nanoappInstanceId = nanoapp->getInstanceId(); 51 nanoapp->getAppId(), duration.toRawNanoseconds()); 68 bool TimerPool::cancelTimer(const Nanoapp *nanoapp, TimerHandle timerHandle) { argument 69 CHRE_ASSERT(nanoapp); 79 } else if (timerRequest->nanoappInstanceId != nanoapp->getInstanceId()) { 93 LOGD("App %" PRIx64 " cancelled timer %" PRIu32, nanoapp->getAppId(),
|
H A D | wifi_request_manager.cc | 29 // Reserve space for at least one scan monitoring nanoapp. This ensures that 45 bool WifiRequestManager::configureScanMonitor(Nanoapp *nanoapp, bool enable, argument 47 CHRE_ASSERT(nanoapp); 50 uint32_t instanceId = nanoapp->getInstanceId(); 53 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); 61 success = addScanMonitorRequestToQueue(nanoapp, enable, cookie); 68 LOGE("Failed to enable the scan monitor for nanoapp instance %" PRIu32, 79 bool WifiRequestManager::requestScan(Nanoapp *nanoapp, argument 82 CHRE_ASSERT(nanoapp); 102 mScanRequestingNanoappInstanceId = nanoapp 236 addScanMonitorRequestToQueue(Nanoapp *nanoapp, bool enable, const void *cookie) argument 255 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() local 459 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() local 492 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() local [all...] |
H A D | gnss_request_manager.cc | 41 bool GnssRequestManager::startLocationSession(Nanoapp *nanoapp, argument 45 CHRE_ASSERT(nanoapp); 46 return configureLocationSession(nanoapp, true /* enable */, minInterval, 50 bool GnssRequestManager::stopLocationSession(Nanoapp *nanoapp, argument 52 CHRE_ASSERT(nanoapp); 53 return configureLocationSession(nanoapp, false /* enable */, 128 Nanoapp *nanoapp, bool enable, Milliseconds minInterval, 131 uint32_t instanceId = nanoapp->getInstanceId(); 157 LOGE("Failed to enable a GNSS location session for nanoapp instance " 225 // nanoapp ha 127 configureLocationSession( Nanoapp *nanoapp, bool enable, Milliseconds minInterval, Milliseconds minTimeToFirstFix, const void *cookie) argument 255 Nanoapp *nanoapp = EventLoopManagerSingleton::get()->getEventLoop() local [all...] |
/system/chre/apps/gnss_world/ |
H A D | Makefile | 26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
|
/system/chre/apps/message_world/ |
H A D | Makefile | 26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
|
/system/chre/apps/wifi_world/ |
H A D | Makefile | 26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
|
/system/chre/apps/wwan_world/ |
H A D | Makefile | 26 include $(CHRE_PREFIX)/build/nanoapp/app.mk
|
/system/chre/chre_api/legacy/v1_0/ |
H A D | chre.h | 23 * 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/linux/include/chre/target_platform/ |
H A D | static_nanoapp_init.h | 20 #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. 36 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \ 51 if (nanoapp.isNull()) { \ 52 FATAL_ERROR("Failed to allocate nanoapp " #appName); \ 54 nanoapp->loadStatic(&appInfo); \ 57 return nanoapp; \
|
/system/chre/platform/slpi/include/chre/target_platform/ |
H A D | static_nanoapp_init.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. 38 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); \ 53 if (nanoapp.isNull()) { \ 54 FATAL_ERROR("Failed to allocate nanoapp " #appName); \ 56 nanoapp->loadStatic(&appInfo); \ 59 return nanoapp; \
|
/system/chre/util/ |
H A D | util.mk | 12 COMMON_SRCS += util/nanoapp/debug.cc 13 COMMON_SRCS += util/nanoapp/sensor.cc 14 COMMON_SRCS += util/nanoapp/wifi.cc
|
/system/chre/chre_api/include/chre_api/ |
H A D | chre.h | 34 #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/core/include/chre/core/ |
H A D | timer_pool.h | 54 * 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. 64 TimerHandle setTimer(const Nanoapp *nanoapp, Nanoseconds duration, 69 * is not owned by the passed in nanoapp, false is returned. 71 * @param nanoapp The nanoapp requesting a timer to be cancelled. 75 bool cancelTimer(const Nanoapp* nanoapp, TimerHandle timerHandle); 87 //! The nanoapp instanc [all...] |
H A D | sensor_request_manager.h | 55 * 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 The nanoapp requesting this change. 78 bool getSensorInfo(uint32_t sensorHandle, const Nanoapp& nanoapp, 147 * given nanoapp [all...] |
H A D | event_loop.h | 21 #include "chre/core/nanoapp.h" 50 typedef void (NanoappCallbackFunction)(const Nanoapp *nanoapp, void *data); 59 * @param appId The nanoapp identifier to search for. 78 * Invokes a message to host free callback supplied by the given nanoapp 82 * @param appId Identifies the nanoapp that sent this message and supplied the 84 * @param freeFunction The non-null message free callback given by the nanoapp 99 * @param nanoapp The nanoapp that will be started. Upon success, this 104 bool startNanoapp(UniquePtr<Nanoapp>& nanoapp); 107 * Stops and unloads a nanoapp identifie [all...] |