/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 91 HILOGE("Failed to fread longName of %{private}s", info.fullPath.c_str()); in ReadLongName() 96 HILOGE("longName of %{private}s exceed PATH_MAX_LEN", info.fullPath.c_str()); in ReadLongName() 101 errFileInfo[info.fullPath].push_back(ret); in ReadLongName() 105 HILOGE("Failed to fseeko of %{private}s, err = %{public}d", info.fullPath.c_str(), errno); in ReadLongName() 106 errFileInfo[info.fullPath].push_back(errno); in ReadLongName() 176 info.fullPath = realName.substr(1, realName.length() - 1); in HandleTarBuffer() 179 info.fullPath = realName; in HandleTarBuffer() 271 if ((ret = DealParseTarFileResult(result, fileSize, info.fullPath, fileInfos, errInfos)) != 0) { in ParseTarFile() 321 ret = DealIncreParseTarFileResult(result, fileSize, info.fullPath, fileInfos, errFileInfo); in ParseIncrementalTarFile() 332 HILOGD("untar file: %{public}s, rootPath: %{public}s", GetAnonyPath(info.fullPath) in ParseFileByTypeFlag() [all...] |
/foundation/bundlemanager/bundle_framework/common/log/src/ |
H A D | app_log_wrapper.cpp | 34 std::string fullPath(str); in GetBriefFileName() 35 size_t pos = fullPath.find_last_of('/'); in GetBriefFileName() 39 return fullPath.substr(pos + 1); in GetBriefFileName()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/ |
H A D | memcg.cpp | 303 std::string fullPath = GetMemcgPath_(); in CreateMemcgDir() local 304 if (!KernelInterface::GetInstance().CreateDir(fullPath)) { in CreateMemcgDir() 305 HILOGE("failed. %{public}s", fullPath.c_str()); in CreateMemcgDir() 308 HILOGI("success. %{public}s", fullPath.c_str()); in CreateMemcgDir() 314 std::string fullPath = GetMemcgPath_(); in RemoveMemcgDir() local 315 if (!KernelInterface::GetInstance().RemoveDirRecursively(fullPath)) { in RemoveMemcgDir() 316 HILOGE("failed. %{public}s", fullPath.c_str()); in RemoveMemcgDir() 319 HILOGI("success. %{public}s", fullPath.c_str()); in RemoveMemcgDir() 331 std::string fullPath = KernelInterface::GetInstance().JoinPath(GetMemcgPath_(), "cgroup.procs"); in AddProc() local 332 bool ret = WriteToFile_(fullPath, st in AddProc() [all...] |
/foundation/multimedia/media_foundation/src/osal/filesystem/ |
H A D | file_system.cpp | 123 void FileSystem::ClearFileContent(const std::string& fullPath) in ClearFileContent() argument 125 MEDIA_LOG_I("Clear file content path : " PUBLIC_LOG_S, fullPath.c_str()); in ClearFileContent() 126 auto filePtr = fopen(fullPath.c_str(), "w+"); in ClearFileContent() 143 std::string fullPath = path + "/" + info->d_name; in RemoveFilesInDir() local 144 MEDIA_LOG_D("Remove file : " PUBLIC_LOG_S, fullPath.c_str()); in RemoveFilesInDir() 145 NZERO_LOG(remove(fullPath.c_str())); in RemoveFilesInDir()
|
/foundation/resourceschedule/device_usage_statistics/utils/src/ |
H A D | bundle_active_log.cpp | 35 std::string fullPath(str); in GetCurrFileName() 36 size_t pos = fullPath.find_last_of("/"); in GetCurrFileName() 40 return fullPath.substr(pos + 1); in GetCurrFileName()
|
/foundation/filemanagement/dfs_service/utils/log/src/ |
H A D | utils_log.cpp | 21 std::string fullPath(str); in GetFileNameFromFullPath() 22 size_t pos = fullPath.find_last_of("/"); in GetFileNameFromFullPath() 23 return (pos == std::string::npos) ? std::string() : fullPath.substr(pos + 1); in GetFileNameFromFullPath()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | render_data_loader.cpp | 45 const string fullPath = pathPrefix + RENDER_CONFIG_PATH; in Load() local 46 if (auto const path = fileManager_.OpenDirectory(fullPath); path) { in Load() 47 const string currentPath = fullPath + string_view(POST_PROCESS_PATH) + '/'; in Load() 55 PLUGIN_LOG_E("render configuration files path (%s) not found.", fullPath.c_str()); in Load()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.h | 48 std::string fullPath = prePath; in GenerateFullPath() local 49 if (fullPath.empty() || fullPath.back() == '/') { in GenerateFullPath() 50 fullPath += tmpPostPath; in GenerateFullPath() 52 fullPath += "/" + tmpPostPath; in GenerateFullPath() 54 return fullPath; in GenerateFullPath()
|
/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/ |
H A D | file_system.cpp | 121 void FileSystem::ClearFileContent(const std::string& fullPath) in ClearFileContent() argument 123 MEDIA_LOG_I("Clear file content path : " PUBLIC_LOG_S, fullPath.c_str()); in ClearFileContent() 124 auto filePtr = fopen(fullPath.c_str(), "w+"); in ClearFileContent() 141 std::string fullPath = path + "/" + info->d_name; in RemoveFilesInDir() local 142 MEDIA_LOG_D("Remove file : " PUBLIC_LOG_S, fullPath.c_str()); in RemoveFilesInDir() 143 NZERO_LOG(remove(fullPath.c_str())); in RemoveFilesInDir()
|
/foundation/arkui/ace_engine_lite/frameworks/common/memory/ |
H A D | mem_proc.cpp | 61 char *fullPath = RelocateJSSourceFilePath(MEM_BACK_UP_LOG_FILE_PREFIX, markdata); in ClearUp() local 62 if (fullPath == nullptr) { in ClearUp() 65 rename(MEM_LOG_FILE_PATH, fullPath); in ClearUp() 66 ace_free(fullPath); in ClearUp() 67 fullPath = nullptr; in ClearUp()
|
/foundation/multimedia/media_foundation/engine/foundation/utils/ |
H A D | dump_buffer.cpp | 73 std::string fullPath; in PrepareDumpDir() local 74 bool isFileExist = OSAL::ConvertFullPath(filePath, fullPath); in PrepareDumpDir() 76 OSAL::FileSystem::ClearFileContent(fullPath); in PrepareDumpDir() 79 auto realPath = realpath(fullPath.c_str(), path); in PrepareDumpDir() 83 MEDIA_LOG_W("Open file(" PUBLIC_LOG_S ") failed(" PUBLIC_LOG_S ").", fullPath.c_str(), strerror(errno)); in PrepareDumpDir()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
H A D | js_app_context.cpp | 72 jerry_value_t JsAppContext::Eval(char *fullPath, size_t fullPathLength, bool isAppEval) const in Eval() argument 74 if ((fullPath == nullptr) || (fullPathLength == 0)) { in Eval() 83 char *jsCode = EvaluateFile(isSnapshotMode, contentLength, fullPath, fullPathLength); in Eval() 100 jerry_value_t retValue = jerry_parse(reinterpret_cast<const jerry_char_t *>(fullPath), fullPathLength, in Eval() 134 char *fullPath, in EvaluateFile() 137 if (fullPath == nullptr || fullPathLength == 0) { in EvaluateFile() 141 size_t filePathLen = strlen(fullPath); in EvaluateFile() 146 char *jsCode = ReadFile(fullPath, outLength, isSnapshotMode); in EvaluateFile() 156 if (strcpy_s((fullPath + (fullPathLength - fileSuffixLength)), (fileSuffixLength + 1), anotherSuffx) != EOK) { in EvaluateFile() 162 jsCode = ReadFile(fullPath, outLengt in EvaluateFile() 132 EvaluateFile(bool &isSnapshotMode, uint32_t &outLength, char *fullPath, size_t fullPathLength) const EvaluateFile() argument [all...] |
H A D | js_profiler.cpp | 222 char *fullPath = RelocateJSSourceFilePath(DEFAULT_PROFILER_MSG_PATH, fileName); in FlushProfilerMsg() local 223 if (fullPath == nullptr) { in FlushProfilerMsg() 228 int32_t fd = open(fullPath, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); in FlushProfilerMsg() 231 ace_free(fullPath); in FlushProfilerMsg() 232 fullPath = nullptr; in FlushProfilerMsg() 247 ace_free(fullPath); in FlushProfilerMsg() 248 fullPath = nullptr; in FlushProfilerMsg()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | js_fwk_common.cpp | 463 char *fullPath = static_cast<char *>(ace_malloc(totalLength + 1)); in RelocateFilePath() local 464 if (fullPath == nullptr) { in RelocateFilePath() 468 fullPath[0] = '\0'; in RelocateFilePath() 470 size_t copiedLength = AppendTwoPath(fullPath, 0, appRootPath, totalLength); in RelocateFilePath() 474 copiedLength = AppendTwoPath(fullPath, index, subPath, totalLength); in RelocateFilePath() 478 index += AppendTwoPath(fullPath, index, fileName, totalLength); in RelocateFilePath() 479 fullPath[index] = '\0'; in RelocateFilePath() 480 return fullPath; in RelocateFilePath() 603 char fullPath[PATH_MAX + 1] = {0}; in OpenFileInternal() local 605 if (!PathCanonicalize(fullPath, orgFullPat in OpenFileInternal() 620 OutputFileMaxLimitationTrace(const char * const fullPath, size_t limitation) OutputFileMaxLimitationTrace() argument 647 CheckFileLength(const char * const fullPath, int32_t &outFileSize) CheckFileLength() argument 668 ReadFile(const char * const fullPath, uint32_t &fileSize, const bool binary) ReadFile() argument 727 char *fullPath = RelocateJSSourceFilePath(appPath, jsFileName); ReadJSFile() local [all...] |
/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | json_utils.cpp | 195 std::string fullPath; in GetFileContent() local 196 if (!GetRealPath(filePath, fullPath)) { in GetFileContent() 199 STANDBYSERVICE_LOGD("full path of standby service config file is: %{public}s ", fullPath.c_str()); in GetFileContent() 200 std::ifstream fin(fullPath); in GetFileContent() 210 bool JsonUtils::GetRealPath(const std::string& partialPath, std::string& fullPath) in GetRealPath() argument 216 fullPath = tmpPath; in GetRealPath()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/ |
H A D | page_info.h | 83 void SetFullPath(const std::string& fullPath) in SetFullPath() argument 85 fullPath_ = fullPath; in SetFullPath()
|
/foundation/multimedia/media_foundation/src/osal/utils/ |
H A D | util.cpp | 66 bool ConvertFullPath(const std::string& partialPath, std::string& fullPath) in ConvertFullPath() argument 78 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/multimedia/media_foundation/engine/foundation/osal/utils/ |
H A D | util.cpp | 56 bool ConvertFullPath(const std::string& partialPath, std::string& fullPath) in ConvertFullPath() argument 68 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | std_directory.cpp | 148 const auto fullPath = path + string(entry.d_name); 150 const auto statResult = (stat(fullPath.c_str(), &statBuf) == 0); 302 string StdDirectory::GetDirName(const string_view fullPath) in GetDirName() argument 304 auto path = string(fullPath); in GetDirName() 315 string StdDirectory::GetBaseName(const string_view fullPath) in GetBaseName() argument 317 auto path = string(fullPath); in GetBaseName()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_proxy_file_helper.c | 343 TRANS_LOGE(TRANS_FILE, "create fullPath fail"); in GetFullRecvPath() 350 static int32_t GetDirPath(const char *fullPath, char *dirPath, int32_t dirPathLen) in GetDirPath() argument 352 if ((fullPath == NULL) || (strlen(fullPath) < 1) || (fullPath[strlen(fullPath) - 1] == PATH_SEPARATOR)) { in GetDirPath() 357 int32_t dirFullLen = (int32_t)strlen(fullPath); in GetDirPath() 359 if (fullPath[i] == PATH_SEPARATOR) { in GetDirPath() 372 if (strncpy_s(dirPath, dirPathLen, fullPath, dirLen) != EOK) { in GetDirPath() 379 static int32_t GetAbsFullPath(const char *fullPath, cha argument [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/ |
H A D | js_page_state_machine.cpp | 236 char *fullPath = RelocateJSSourceFilePath(appRootPath_, jsPagePath_); in CheckJSSourceFile() local 237 if (fullPath == nullptr) { in CheckJSSourceFile() 243 size_t pathLength = strlen(fullPath); in CheckJSSourceFile() 249 result = (GetFileSize(fullPath) > 0); in CheckJSSourceFile() 257 if (strcpy_s((fullPath + (pathLength - fileSuffixLength)), (fileSuffixLength + 1), anotherSuffix) != EOK) { in CheckJSSourceFile() 260 result = (GetFileSize(fullPath) > 0); in CheckJSSourceFile() 263 ace_free(fullPath); in CheckJSSourceFile() 264 fullPath = nullptr; in CheckJSSourceFile()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/stream/src/ |
H A D | file_packer_stream.cpp | 58 std::string fullPath = realPath + "/" + fileName; in FilePackerStream() local 59 file_ = fopen(fullPath.c_str(), "wb"); in FilePackerStream()
|
/foundation/resourceschedule/work_scheduler/utils/native/src/ |
H A D | work_sched_utils.cpp | 83 bool WorkSchedUtils::ConvertFullPath(const std::string& partialPath, std::string& fullPath) in ConvertFullPath() argument 92 fullPath = tmpPath; in ConvertFullPath()
|
/foundation/multimedia/media_foundation/engine/include/foundation/osal/utils/ |
H A D | util.h | 25 bool ConvertFullPath(const std::string& partialPath, std::string& fullPath);
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | node_impl.cpp | 787 const BASE_NS::string& fullPath, SceneHolder::Ptr sceneHolder) in SetPathWithoutNode() 791 if (sceneHolder->FindResource(name, fullPath, entity)) { in SetPathWithoutNode() 927 BASE_NS::string fullPath = META_NS::GetValue(META_ACCESS_PROPERTY(Path)); in EnsureEcsBinding() local 928 fullPath.append(META_NS::GetValue(Name())); in EnsureEcsBinding() 940 scene->BindNodeToEcs(self, fullPath, shouldCreate); in EnsureEcsBinding() 950 const BASE_NS::string& fullPath, BASE_NS::array_view<CORE3D_NS::ISceneNode* const> children) in BuildChildrenIterateOver() 954 auto childPath = fullPath; in BuildChildrenIterateOver() 1002 BASE_NS::string fullPath = META_ACCESS_PROPERTY(Path)->GetValue(); in BuildChildren() local 1003 fullPath.append(Name()->GetValue()); in BuildChildren() 1005 if (fullPath in BuildChildren() 786 SetPathWithoutNode(const BASE_NS::shared_ptr<NodeImpl>& self, const BASE_NS::string& name, const BASE_NS::string& fullPath, SceneHolder::Ptr sceneHolder) SetPathWithoutNode() argument 949 BuildChildrenIterateOver(const BASE_NS::shared_ptr<NodeImpl>& self, const SCENE_NS::IEcsScene::Ptr& ecs, const BASE_NS::string& fullPath, BASE_NS::array_view<CORE3D_NS::ISceneNode* const> children) BuildChildrenIterateOver() argument [all...] |