Home
last modified time | relevance | path

Searched refs:localPath (Results 1 – 11 of 11) 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 - 2]; 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.cpp288 context->localPath.c_str(), thisClass->taskInfo->channelId, context->fsOpenReq.result); in OnFileOpen()
295 context->localPath.c_str()); in OnFileOpen()
328 getfilecon(context->localPath.c_str(), &con); in OnFileOpen()
342 uv_fs_chmod(nullptr, &fs, context->localPath.c_str(), mode.perm, nullptr); in OnFileOpen()
343 uv_fs_chown(nullptr, &fs, context->localPath.c_str(), mode.u_id, mode.g_id, nullptr); in OnFileOpen()
349 setfilecon(context->localPath.c_str(), mode.context.c_str()); in OnFileOpen()
469 bool HdcTransferBase::CheckLocalPath(string &localPath, string &optName, string &errStr) in CheckLocalPath() argument
472 …WRITE_LOG(LOG_DEBUG, "CheckDirectory localPath = %s optName = %s", localPath.c_str(), optName.c_st… in CheckLocalPath()
479 int r = uv_fs_lstat(nullptr, &req, localPath.c_str(), nullptr); in CheckLocalPath()
487 Base::SplitString(localPath, split, dirsOflocalPath); 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.h72 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str);
74 …bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, m…
75 bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite);
Dbase.cpp1109 void BuildErrorString(const char *localPath, const char *op, const char *err, string &str) in BuildErrorString() argument
1114 str += localPath; in BuildErrorString()
1120 …bool CheckDirectoryOrPath(const char *localPath, bool pathOrDir, bool readWrite, string &errStr, m… in CheckDirectoryOrPath() argument
1126 int r = uv_fs_lstat(nullptr, &req, localPath, nullptr); in CheckDirectoryOrPath()
1131 BuildErrorString(localPath, "lstat", buf, errStr); in CheckDirectoryOrPath()
1140 uv_fs_access(nullptr, &req, localPath, readWrite ? R_OK : W_OK, nullptr); in CheckDirectoryOrPath()
1146 BuildErrorString(localPath, op, buf, errStr); in CheckDirectoryOrPath()
1157 errStr += localPath; in CheckDirectoryOrPath()
1161 errStr += localPath; in CheckDirectoryOrPath()
1194 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.cpp65 ctxNow.localPath = dstPath; in CommandDispatch()
69 uv_fs_open(loopTask, &ctxNow.fsOpenReq, ctxNow.localPath.c_str(), in CommandDispatch()
100 unlink(ctxNow.localPath.c_str()); in AsyncInstallFinish()
178 Sideload(context->localPath.c_str()); in WhenTransferFinish()
180 PackageShell(true, context->transferConfig.options.c_str(), context->localPath.c_str()); in WhenTransferFinish()
/developtools/profiler/host/smartperf/ide/src/trace/
DSpApplication.ts1207 this.downloadOnLineFile(urlParams.trace, downloadLineFile, (localPath) => {
1213 let localUrl = downloadLineFile ? `${window.location.origin}${localPath}` : urlParams.trace;
/developtools/smartperf_host/ide/src/trace/
DSpApplication.ts1226 this.downloadOnLineFile(urlParams.trace, downloadLineFile, (localPath) => {
1232 let localUrl = downloadLineFile ? `${window.location.origin}${localPath}` : urlParams.trace;