Lines Matching refs:nanoapp
84 for (const UniquePtr<Nanoapp> &nanoapp : mNanoapps) { in forEachNanoapp() local
85 callback(nanoapp.get(), data); in forEachNanoapp()
92 Nanoapp *nanoapp = lookupAppByAppId(appId); in invokeMessageFreeFunction() local
93 if (nanoapp == nullptr) { in invokeMessageFreeFunction()
97 mCurrentApp = nanoapp; in invokeMessageFreeFunction()
146 bool EventLoop::startNanoapp(UniquePtr<Nanoapp> &nanoapp) { in startNanoapp() argument
147 CHRE_ASSERT(!nanoapp.isNull()); in startNanoapp()
153 if (nanoapp.isNull()) { in startNanoapp()
155 } else if (nanoapp->getTargetApiVersion() < in startNanoapp()
159 nanoapp->getTargetApiVersion(), in startNanoapp()
161 } else if (eventLoop.findNanoappInstanceIdByAppId(nanoapp->getAppId(), in startNanoapp()
165 nanoapp->getAppId(), existingInstanceId); in startNanoapp()
169 nanoapp->setInstanceId(eventLoopManager->getNextInstanceId()); in startNanoapp()
171 nanoapp->getInstanceId(), nanoapp->getAppId()); in startNanoapp()
173 Nanoapp *newNanoapp = nanoapp.get(); in startNanoapp()
176 mNanoapps.push_back(std::move(nanoapp)); in startNanoapp()
488 const Nanoapp &nanoapp) { in notifyAppStatusChange() argument
493 info->appId = nanoapp.getAppId(); in notifyAppStatusChange()
494 info->version = nanoapp.getAppVersion(); in notifyAppStatusChange()
495 info->instanceId = nanoapp.getInstanceId(); in notifyAppStatusChange()
502 const UniquePtr<Nanoapp> &nanoapp = mNanoapps[index]; in unloadNanoappAtIndex() local
509 mCurrentApp = nanoapp.get(); in unloadNanoappAtIndex()
510 nanoapp->end(); in unloadNanoappAtIndex()
524 for (auto &nanoapp : mNanoapps) { in handleNanoappWakeupBuckets() local
525 nanoapp->cycleWakeupBuckets(numBuckets); in handleNanoappWakeupBuckets()