Lines Matching refs:rsp

248     NanohubRsp rsp(buf, transactionId, chre);  in handleRx()  local
250 if (rsp.mCmd != NANOHUB_HAL_SYS_INFO) in handleRx()
461 NanohubRsp rsp(buf, transactionId, chre); in handleRx() local
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 int SystemComm::AppMgmtSession::handleTransfer(NanohubRsp &rsp, MessageBuf &, AppManager &appManage… in handleTransfer() argument
504 if (rsp.mCmd != NANOHUB_HAL_CONT_UPLOAD && rsp.mCmd != NANOHUB_HAL_START_UPLOAD) in handleTransfer()
514 if (rsp.mStatus == NANOHUB_HAL_UPLOAD_ACCEPTED) { in handleTransfer()
517 } else if (rsp.mStatus == NANOHUB_HAL_UPLOAD_RESEND) { in handleTransfer()
519 } else if (rsp.mStatus == NANOHUB_HAL_UPLOAD_RESTART) { in handleTransfer()
522 } else if (rsp.mStatus == NANOHUB_HAL_UPLOAD_CANCEL || in handleTransfer()
523 rsp.mStatus == NANOHUB_HAL_UPLOAD_CANCEL_NO_RETRY) { in handleTransfer()
526 } else if (rsp.mStatus == NANOHUB_HAL_UPLOAD_NO_SPACE) { in handleTransfer()
534 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleTransfer()
545 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleTransfer()
564 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleTransfer()
567 int SystemComm::AppMgmtSession::handleStopTransfer(NanohubRsp &rsp, MessageBuf &buf, AppManager &) in handleStopTransfer() argument
569 if (rsp.mCmd != NANOHUB_HAL_APP_MGMT) in handleStopTransfer()
580 if (rsp.mStatus == 0) { in handleStopTransfer()
588 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleStopTransfer()
592 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleStopTransfer()
598 int SystemComm::AppMgmtSession::handleQueryStart(NanohubRsp &rsp, MessageBuf &buf, AppManager &appM… in handleQueryStart() argument
601 if (rsp.mCmd != NANOHUB_HAL_APP_INFO) in handleQueryStart()
616 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleQueryStart()
635 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleQueryStart()
639 int SystemComm::AppMgmtSession::handleStart(NanohubRsp &rsp, MessageBuf &buf, AppManager &) in handleStart() argument
641 if (rsp.mCmd != NANOHUB_HAL_APP_MGMT) in handleStart()
665 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleStart()
669 int SystemComm::AppMgmtSession::handleFinish(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManag… in handleFinish() argument
671 if (rsp.mCmd != NANOHUB_HAL_FINISH_UPLOAD) in handleFinish()
678 if (rsp.mStatus == 0) { in handleFinish()
687 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleFinish()
692 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleFinish()
698 int SystemComm::AppMgmtSession::handleRun(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleRun() argument
700 if (rsp.mCmd != NANOHUB_HAL_APP_MGMT) in handleRun()
711 if (rsp.mStatus == 0) { in handleRun()
721 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleRun()
725 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleRun()
731 int SystemComm::AppMgmtSession::handleInfo(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleInfo() argument
733 if (rsp.mCmd != NANOHUB_HAL_APP_INFO) in handleInfo()
741 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleInfo()
746 int SystemComm::AppMgmtSession::handleStopRun(NanohubRsp &rsp, MessageBuf &buf, AppManager &) in handleStopRun() argument
748 if (rsp.mCmd != NANOHUB_HAL_APP_MGMT) in handleStopRun()
759 if (rsp.mStatus == 0) { in handleStopRun()
767 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleStopRun()
771 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleStopRun()
778 int SystemComm::AppMgmtSession::handleReboot(NanohubRsp &rsp, MessageBuf &buf, AppManager &) in handleReboot() argument
780 if (rsp.mCmd != NANOHUB_HAL_SYS_MGMT) in handleReboot()
786 ALOGI("Nanohub reboot status [USER REQ]: %08" PRIX32 "\n", rsp.mStatus); in handleReboot()
794 int SystemComm::AppMgmtSession::handleEraseTransfer(NanohubRsp &rsp, MessageBuf &buf, AppManager &a… in handleEraseTransfer() argument
796 if (rsp.mCmd != NANOHUB_HAL_SYS_MGMT) in handleEraseTransfer()
801 if (cmd == NANOHUB_HAL_SYS_MGMT_ERASE && rsp.mStatus == 0) { in handleEraseTransfer()
810 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleEraseTransfer()
814 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleEraseTransfer()
820 int SystemComm::AppMgmtSession::handleMgmt(NanohubRsp &rsp, MessageBuf &buf, AppManager &appManager) in handleMgmt() argument
822 if (rsp.mCmd != NANOHUB_HAL_APP_MGMT) in handleMgmt()
830 int32_t result = rsp.mStatus; in handleMgmt()
838 if (valid && rsp.mStatus == 0) in handleMgmt()
843 if (valid && rsp.mStatus == 0) { in handleMgmt()
853 return sendToSystem(buf.getData(), buf.getPos(), rsp.mTransactionId); in handleMgmt()
858 if (valid && rsp.mStatus == 0) in handleMgmt()
865 ALOGI("Nanohub MGMT response: CMD=%02X; STATUS=%08" PRIX32, rsp.mCmd, sts.value); in handleMgmt()
871 sendToApp(mCmd, rsp.mTransactionId, &result, sizeof(result)); in handleMgmt()
889 NanohubRsp rsp(buf, transactionId, chre); in handleRx() local
1429 NanohubRsp rsp(buf, transactionId, chre); in handleRx() local
1430 if (rsp.mCmd == NANOHUB_HAL_SYS_MGMT) { in handleRx()
1445 ALOGW("Nanohub reboot status [UNSOLICITED]: %08" PRIX32, rsp.mStatus); in handleRx()
1449 rebootStatus = rsp.mStatus; in handleRx()