/system/chre/platform/shared/ |
H A D | chre_api_wwan.cc | 31 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); local 33 .requestCellInfo(nanoapp, cookie);
|
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_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_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);
|
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...] |
/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 | host_comms_manager.cc | 34 Nanoapp *nanoapp, void *messageData, size_t messageSize, 51 msgToHost->appId = nanoapp->getAppId(); 180 // We pass the chreMessageFromHostData structure to the nanoapp as the event's 33 sendMessageToHostFromNanoapp( Nanoapp *nanoapp, void *messageData, size_t messageSize, uint32_t messageType, uint16_t hostEndpoint, chreMessageFreeFunction *freeCallback) argument
|
H A D | sensor_request.cc | 222 : SensorRequest(nullptr /* nanoapp */, mode, interval, latency) {} 224 SensorRequest::SensorRequest(Nanoapp *nanoapp, SensorMode mode, argument 226 : mNanoapp(nanoapp), mInterval(interval), mLatency(latency), mMode(mode) {
|
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 | 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 | 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...] |
H A D | sensor_request_manager.cc | 104 bool SensorRequestManager::setSensorRequest(Nanoapp *nanoapp, argument 106 CHRE_ASSERT(nanoapp); 130 bool nanoappHasRequest = (requests.find(nanoapp, &requestIndex) != nullptr); 137 // The existing request is removed from the multiplexer. The nanoapp is 141 nanoapp->unregisterForBroadcastEvent(eventType); 153 // multiplexer. The nanoapp is registered for events if this request was 157 nanoapp->registerForBroadcastEvent(eventType); 165 nanoapp->getInstanceId()); 182 const Nanoapp& nanoapp, 211 if (nanoapp 181 getSensorInfo(uint32_t sensorHandle, const Nanoapp& nanoapp, struct chreSensorInfo *info) const argument 232 Nanoapp *nanoapp = request.getNanoapp(); local 310 find( const Nanoapp *nanoapp, size_t *index) const argument [all...] |
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...] |
/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);
|
H A D | host_link.cc | 58 UniquePtr<Nanoapp> nanoapp = MakeUnique<Nanoapp>(); member in struct:chre::__anon1385::LoadNanoappCallbackData 211 auto nanoappAdderCallback = [](const Nanoapp *nanoapp, void *data) { 214 *(cbData->builder), cbData->nanoappEntries, nanoapp->getAppId(), 215 nanoapp->getAppVersion(), true /*enabled*/, 216 nanoapp->isSystemNanoapp()); 219 // Add a NanoappListEntry to the FlatBuffer for each nanoapp 238 LOGE("Couldn't reserve space for list of nanoapp offsets"); 255 bool startedSuccessfully = (cbData->nanoapp->isLoaded()) ? 256 eventLoop.startNanoapp(cbData->nanoapp) : false; 528 // purging any messages sent by the nanoapp i [all...] |