Lines Matching refs:appManager

309 …:AppMgmtSession::setup(const hub_message_t *appMsg, uint32_t transactionId, AppManager &appManager)  in setup()  argument
325 return setupMgmt(appMsg, transactionId, NANOHUB_HAL_APP_MGMT_START, appManager); in setup()
327 return setupMgmt(appMsg, transactionId, NANOHUB_HAL_APP_MGMT_STOP, appManager); in setup()
329 return setupMgmt(appMsg, transactionId, NANOHUB_HAL_APP_MGMT_UNLOAD, appManager); in setup()
338 if (!appManager.isAppLoaded(mAppName)) { in setup()
339 appManager.addNewApp(mAppName, appReq->app_binary.app_version); in setup()
340 appManager.writeApp(mAppName, msgData, mLen); in setup()
351 if (appManager.cmpApp(mAppName, msgData, mLen)) { in setup()
352 mFlashAddr = appManager.getFlashAddr(mAppName); in setup()
353 if (appManager.isAppRunning(mAppName)) { in setup()
371 appManager.setCachedVersion(mAppName, appReq->app_binary.app_version); in setup()
372 appManager.writeApp(mAppName, msgData, mLen); in setup()
375 if (appManager.isAppRunning(mAppName)) { in setup()
406 appManager.eraseApps(); in setup()
419 …etupMgmt(const hub_message_t *appMsg, uint32_t transactionId, uint32_t cmd, AppManager &appManager) in setupMgmt() argument
430 if (appManager.isAppRunning(mAppName)) { in setupMgmt()
431 appManager.setCachedStart(mAppName, true); in setupMgmt()
439 appManager.setCachedStart(mAppName, false); in setupMgmt()
440 if (!appManager.isAppRunning(mAppName)) { in setupMgmt()
457 …ppMgmtSession::handleRx(MessageBuf &buf, uint32_t transactionId, AppManager &appManager, bool chre) in handleRx() argument
465 ret = handleTransfer(rsp, buf, appManager); in handleRx()
468 ret = handleStopTransfer(rsp, buf, appManager); in handleRx()
471 ret = handleQueryStart(rsp, buf, appManager); in handleRx()
474 ret = handleStart(rsp, buf, appManager); in handleRx()
477 ret = handleFinish(rsp, buf, appManager); in handleRx()
480 ret = handleRun(rsp, buf, appManager); in handleRx()
483 ret = handleStopRun(rsp, buf, appManager); in handleRx()
486 ret = handleReboot(rsp, buf, appManager); in handleRx()
489 ret = handleEraseTransfer(rsp, buf, appManager); in handleRx()
492 ret = handleMgmt(rsp, buf, appManager); in handleRx()
495 ret = handleInfo(rsp, buf, appManager); in handleRx()
502 …t SystemComm::AppMgmtSession::handleTransfer(NanohubRsp &rsp, MessageBuf &, AppManager &appManager) in handleTransfer() argument
543 appManager.clearCachedApp(mAppName); in handleTransfer()
598 …temComm::AppMgmtSession::handleQueryStart(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleQueryStart() argument
606 uint32_t nextAddr = appManager.readNanohubAppInfo(buf); in handleQueryStart()
620 appManager.getAppsToStart(mAppList); in handleQueryStart()
669 … SystemComm::AppMgmtSession::handleFinish(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleFinish() argument
679 appManager.setCachedCrc(mAppName, crc); in handleFinish()
690 appManager.clearCachedApp(mAppName); in handleFinish()
698 int SystemComm::AppMgmtSession::handleRun(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleRun() argument
712 appManager.setCachedStart(mAppName, true); in handleRun()
723 appManager.setCachedStart(mAppName, false); in handleRun()
731 int SystemComm::AppMgmtSession::handleInfo(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleInfo() argument
738 appManager.readNanohubAppInfo(buf); in handleInfo()
739 appManager.saveApps(); in handleInfo()
794 …Comm::AppMgmtSession::handleEraseTransfer(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleEraseTransfer() argument
804 appManager.eraseApps(); in handleEraseTransfer()
820 int SystemComm::AppMgmtSession::handleMgmt(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleMgmt() argument
839 appManager.clearRunning(mAppName); in handleMgmt()
844 appManager.setCachedStart(mAppName, true); in handleMgmt()
850 buf.writeU32(appManager.getFlashAddr(mAppName)); in handleMgmt()
859 appManager.clearRunning(mAppName); in handleMgmt()
1411 …Manager::handleRx(MessageBuf &buf, uint32_t transactionId, AppManager &appManager, bool chre, bool… in handleRx() argument
1423 status = session->handleRx(buf, transactionId, appManager, chre); in handleRx()
1456 … id, Session *session, const hub_message_t *appMsg, uint32_t transactionId, AppManager &appManager) in setup_and_add() argument
1467 int ret = session->setup(appMsg, transactionId, appManager); in setup_and_add()