• Home
  • Raw
  • Download

Lines Matching refs:app

49 bool populateNanoappInfo(const Nanoapp *app, struct chreNanoappInfo *info) {  in populateNanoappInfo()  argument
52 if (app != nullptr && info != nullptr) { in populateNanoappInfo()
53 info->appId = app->getAppId(); in populateNanoappInfo()
54 info->version = app->getAppVersion(); in populateNanoappInfo()
55 info->instanceId = app->getInstanceId(); in populateNanoappInfo()
70 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in findNanoappInstanceIdByAppId() local
71 if (app->getAppId() == appId) { in findNanoappInstanceIdByAppId()
72 *instanceId = app->getInstanceId(); in findNanoappInstanceIdByAppId()
336 Nanoapp *app = lookupAppByAppId(appId); in populateNanoappInfoForAppId() local
337 return populateNanoappInfo(app, info); in populateNanoappInfoForAppId()
343 Nanoapp *app = lookupAppByInstanceId(instanceId); in populateNanoappInfoForInstanceId() local
344 return populateNanoappInfo(app, info); in populateNanoappInfoForInstanceId()
367 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in logStateToBuffer() local
368 app->logStateToBuffer(debugDump); in logStateToBuffer()
394 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in deliverEvents() local
395 if (app->hasPendingEvent()) { in deliverEvents()
396 havePendingEvents |= deliverNextEvent(app); in deliverEvents()
403 bool EventLoop::deliverNextEvent(const UniquePtr<Nanoapp> &app) { in deliverNextEvent() argument
405 mCurrentApp = app.get(); in deliverNextEvent()
406 Event *event = app->processNextEvent(); in deliverNextEvent()
413 return app->hasPendingEvent(); in deliverNextEvent()
417 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in distributeEvent() local
419 app->isRegisteredForBroadcastEvent(event->eventType, in distributeEvent()
421 event->targetInstanceId == app->getInstanceId()) { in distributeEvent()
422 app->postEvent(event); in distributeEvent()
464 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in lookupAppByAppId() local
465 if (app->getAppId() == appId) { in lookupAppByAppId()
466 return app.get(); in lookupAppByAppId()
477 for (const UniquePtr<Nanoapp> &app : mNanoapps) { in lookupAppByInstanceId() local
478 if (app->getInstanceId() == instanceId) { in lookupAppByInstanceId()
479 return app.get(); in lookupAppByInstanceId()