Home
last modified time | relevance | path

Searched refs:localPath (Results 1 – 10 of 10) sorted by relevance

/developtools/hdc/src/common/
Dfile.cpp56 …uv_fs_open(loopTask, &context->fsOpenReq, context->localPath.c_str(), O_RDONLY, S_IWUSR | S_IRUSR,… in BeginTransfer()
61 LogMsg(MSG_FAIL, "Transfer path failed, Master:%s Slave:%s", context->localPath.c_str(), in BeginTransfer()
109 context->localPath = argv[argc - CMD_FILE_PENULT_PARAM]; in SetMasterParameters()
116 ExtractRelativePath(context->transferConfig.clientCwd, context->localPath); in SetMasterParameters()
120 context->localPath = argv[argc - 1]; in SetMasterParameters()
124 context->localName = Base::GetFullFilePath(context->localPath); in SetMasterParameters()
127 …if (!Base::CheckDirectoryOrPath(context->localPath.c_str(), true, true, errStr, mode) && (mode & S… in SetMasterParameters()
129 GetSubFilesRecursively(context->localPath, context->localName, &context->taskQueue); in SetMasterParameters()
136 context->localDirName = Base::GetPathWithoutFilename(context->localPath); in SetMasterParameters()
141 context->localPath = context->localDirName + context->localName; in SetMasterParameters()
[all …]
Dtransfer.cpp286 context->localPath.c_str(), thisClass->taskInfo->channelId, context->fsOpenReq.result); in OnFileOpen()
293 context->localPath.c_str()); in OnFileOpen()
294 WRITE_LOG(LOG_FATAL, "open path:%s error:%s", context->localPath.c_str(), buf); in OnFileOpen()
326 getfilecon(context->localPath.c_str(), &con); in OnFileOpen()
338 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
339 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.uId, mode.gId, nullptr); in OnFileOpen()
345 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
463 bool HdcTransferBase::CheckLocalPath(string &localPath, string &optName, string &errStr) in CheckLocalPath() argument
466 …WRITE_LOG(LOG_DEBUG, "CheckDirectory localPath = %s optName = %s", localPath.c_str(), optName.c_st… in CheckLocalPath()
473 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in CheckLocalPath()
[all …]
Dtransfer.h72 string localPath; member
112 bool SmartSlavePath(string &cwd, string &localPath, const char *optName);
113 bool CheckLocalPath(string &localPath, string &optName, string &errStr);
114 bool CheckFilename(string &localPath, string &optName, string &errStr);
Dbase.h74 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str);
76 …bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, m…
77 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite);
Dbase.cpp1250 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str) in BuildErrorString() argument
1255 str += localPath; in BuildErrorString()
1261 …bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, m… in CheckDirectoryOrPath() argument
1267 int r = uv_fs_lstat(nullptr, &req, localPath, nullptr); in CheckDirectoryOrPath()
1272 BuildErrorString(localPath, "lstat", buf, errStr); in CheckDirectoryOrPath()
1281 uv_fs_access(nullptr, &req, localPath, readWrite ? R_OK : W_OK, nullptr); in CheckDirectoryOrPath()
1287 BuildErrorString(localPath, op, buf, errStr); in CheckDirectoryOrPath()
1298 errStr += localPath; in CheckDirectoryOrPath()
1302 errStr += localPath; in CheckDirectoryOrPath()
1337 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite) in CheckDirectoryOrPath() argument
[all …]
/developtools/hdc/src/host/
Dhost_app.cpp80 bool HdcHostApp::BeginSideload(CtxFile *context, const char *localPath) in BeginSideload() argument
84 context->taskQueue.push_back(localPath); in BeginSideload()
93 context->localPath = context->taskQueue.back(); in RunQueue()
94 uv_fs_open(loopTask, &context->fsOpenReq, context->localPath.c_str(), O_RDONLY, 0, OnFileOpen); in RunQueue()
107 if (context->localPath.find(".hap") != static_cast<size_t>(-1)) { in CheckMaster()
109 } else if (context->localPath.find(".hsp") != static_cast<size_t>(-1)) { in CheckMaster()
139 LogMsg(MSG_INFO, "%s path:%s, queuesize:%d, msg:%s", modeDesc.c_str(), ctxNow.localPath.c_str(), in CheckInstallContinue()
Dhost_updater.cpp82 context.localPath = context.taskQueue.back(); in RunQueue()
83 uv_fs_open(loopTask, &context.fsOpenReq, context.localPath.c_str(), O_RDONLY, 0, OnFileOpen); in RunQueue()
107 std::string localPath = params[index]; in BeginTransfer() local
108 if (!Base::CheckDirectoryOrPath(localPath.c_str(), true, true)) { in BeginTransfer()
113 if (MatchPackageExtendName(localPath, ".img") || MatchPackageExtendName(localPath, ".bin")) { in BeginTransfer()
115 } else if (MatchPackageExtendName(localPath, ".zip")) { in BeginTransfer()
123 ctxNow.localPath = localPath; in BeginTransfer()
124 ctxNow.taskQueue.push_back(localPath); in BeginTransfer()
136 context->transferConfig.optionalName = Base::GetFileNameAny(context->localPath); in CheckMaster()
Dhost_app.h31 bool BeginSideload(CtxFile *context, const char *localPath);
/developtools/hdc/src/daemon/
Ddaemon_app.cpp69 ctxNow.localPath = dstPath; in CommandDispatch()
73 uv_fs_open(loopTask, &ctxNow.fsOpenReq, ctxNow.localPath.c_str(), in CommandDispatch()
104 unlink(ctxNow.localPath.c_str()); in AsyncInstallFinish()
182 Sideload(context->localPath.c_str()); in WhenTransferFinish()
184 PackageShell(true, context->transferConfig.options.c_str(), context->localPath.c_str()); in WhenTransferFinish()
/developtools/smartperf_host/ide/src/trace/
DSpApplication.ts627 (localPath) => {
640 …let localUrl = downloadLineFile ? `${window.location.origin}${localPath}` : urlParams.get('trace')…