/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/ |
H A D | untar_file_sup_test.cpp | 135 string rootPath = ""; in HWTEST_F() local 137 EXPECT_EQ(UntarFile::GetInstance().GenRealPath(rootPath, realName), ""); in HWTEST_F() 139 rootPath = "rootPath"; in HWTEST_F() 140 EXPECT_EQ(UntarFile::GetInstance().GenRealPath(rootPath, realName), ""); in HWTEST_F() 143 EXPECT_EQ(UntarFile::GetInstance().GenRealPath(rootPath, realName), "rootPath/realName"); in HWTEST_F() 145 rootPath = "/rootPath/"; in HWTEST_F() 147 EXPECT_EQ(UntarFile::GetInstance().GenRealPath(rootPath, realNam in HWTEST_F() 163 string rootPath = "rootPath/realName"; HWTEST_F() local 190 string rootPath = ""; HWTEST_F() local [all...] |
H A D | untar_file_test.cpp | 110 string rootPath(""); in HWTEST_F() 111 auto [ret, fileInfos, errFileInfos] = UntarFile::GetInstance().UnPacket(tarFile, rootPath); in HWTEST_F() 149 string rootPath(root); in HWTEST_F() 154 auto [ret, fileInfos, errFileInfos] = UntarFile::GetInstance().UnPacket(tarFile, rootPath); in HWTEST_F() 188 string rootPath(root); in HWTEST_F() 189 auto [ret, fileInfos, errFileInfos] = UntarFile::GetInstance().UnPacket(aFile, rootPath); in HWTEST_F() 227 string rootPath(root); in HWTEST_F() 228 auto [ret, fileInfos, errFileInfos] = UntarFile::GetInstance().UnPacket(tarFile, rootPath); in HWTEST_F() 281 string rootPath(root); in HWTEST_F() 282 auto [ret, fileInfos, errFileInfos] = UntarFile::GetInstance().UnPacket(tarFile, rootPath); in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | untar_file.h | 43 const std::string &tarFile, const std::string &rootPath); 45 const std::string &tarFile, const std::string &rootPath, 59 std::tuple<int, EndFileInfo, ErrFileInfo> ParseTarFile(const std::string &rootPath); 66 std::tuple<int, EndFileInfo, ErrFileInfo> ParseIncrementalTarFile(const std::string &rootPath); 88 std::string GenRealPath(const std::string &rootPath, const std::string &pathName);
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_cleaner.cpp | 124 int ApplicationCleaner::GetRootPath(std::vector<std::string> &rootPath) in GetRootPath() argument 143 rootPath.clear(); in GetRootPath() 151 rootPath.emplace_back(baseDir); in GetRootPath() 157 rootPath.emplace_back(moudleDir); in GetRootPath() 163 const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) in GetObsoleteBundleTempPath() 165 if (rootPath.empty()) { in GetObsoleteBundleTempPath() 170 for (const auto &dir : rootPath) { in GetObsoleteBundleTempPath() 162 GetObsoleteBundleTempPath( const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) GetObsoleteBundleTempPath() argument
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | application_cleaner.h | 41 int GetRootPath(std::vector<std::string> &rootPath); 42 int GetObsoleteBundleTempPath(const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath);
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/ |
H A D | cgroup_map.cpp | 99 std::string rootPath = cgroupObj[JSON_KEY_PATH].get<std::string>(); in LoadConfigFromJsonObj() local 100 if (name.empty() || rootPath.empty()) { in LoadConfigFromJsonObj() 105 CgroupController controller(name, rootPath); in LoadConfigFromJsonObj()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 119 const std::string &tarFile, const std::string &rootPath) in UnPacket() 127 auto [ret, fileInfos, errInfos] = ParseTarFile(rootPath); in UnPacket() 139 const string &tarFile, const string &rootPath, const unordered_map<string, struct ReportFileInfo> &includes) in IncrementalUnPacket() 148 auto [ret, fileInfos, errFileInfos] = ParseIncrementalTarFile(rootPath); in IncrementalUnPacket() 246 std::tuple<int, EndFileInfo, ErrFileInfo> UntarFile::ParseTarFile(const string &rootPath) in ParseTarFile() argument 249 rootPath_ = rootPath; in ParseTarFile() 296 std::tuple<int, EndFileInfo, ErrFileInfo> UntarFile::ParseIncrementalTarFile(const string &rootPath) in ParseIncrementalTarFile() argument 299 rootPath_ = rootPath; in ParseIncrementalTarFile() 332 HILOGD("untar file: %{public}s, rootPath: %{public}s", GetAnonyPath(info.fullPath).c_str(), rootPath_.c_str()); in ParseFileByTypeFlag() 403 HILOGD("untar file: %{public}s, rootPath in ParseIncrementalFileByTypeFlag() 118 UnPacket( const std::string &tarFile, const std::string &rootPath) UnPacket() argument 138 IncrementalUnPacket( const string &tarFile, const string &rootPath, const unordered_map<string, struct ReportFileInfo> &includes) IncrementalUnPacket() argument 523 GenRealPath(const string &rootPath, const string &realName) GenRealPath() argument [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | filesystem_api.cpp | 184 auto rootPath = ResolvePath(rootPathIn); variable 185 if (!rootPath.empty()) { 186 auto entry = rootFs_->GetEntry(rootPath); 188 return IFilesystem::Ptr(new StdFilesystem(rootPath));
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | application_cleaner_test.cpp | 104 std::vector<std::string> rootPath {path}; in HWTEST_F() 106 int res = cleaner->GetObsoleteBundleTempPath(rootPath, tempPath); in HWTEST_F()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/file/ |
H A D | audio_renderer_file_sink.cpp | 144 std::string rootPath; in Start() local 149 rootPath = filePath_.substr(0, pos); in Start() 154 CHECK_AND_RETURN_RET_LOG((filePath_.length() < PATH_MAX) && (realpath(rootPath.c_str(), realPath) != nullptr), in Start()
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/file/ |
H A D | audio_capturer_file_source.cpp | 138 std::string rootPath; in Init() local 143 rootPath = sourceFilePath.substr(0, pos); in Init() 147 bool tmp = strlen(sourceFilePath.c_str()) >= PATH_MAX || realpath(rootPath.c_str(), realPath) == nullptr; in Init()
|
/foundation/distributeddatamgr/udmf/interfaces/innerkits/data/ |
H A D | unified_data_helper.h | 26 static void SetRootPath(const std::string &rootPath);
|
/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | options.cpp | 666 " -r <rootPackage>:<rootPath> Set root path of root package, only support 'intf-type hdi'\n" in ShowUsage() 706 * rootPath:./drivers/interface 747 std::string rootPath = ""; in GetPackagePath() local 752 rootPath = packageRoot.second; in GetPackagePath() 762 if (StringHelper::EndWith(rootPath, SEPARATOR)) { in GetPackagePath() 763 rootPath.pop_back(); in GetPackagePath() 767 return File::AdapterPath(rootPath + "/" + subPath); in GetPackagePath()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/io/ |
H A D | intf_filesystem_api.h | 45 virtual IFilesystem::Ptr CreateStdFileSystem(BASE_NS::string_view rootPath) = 0;
|
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/ |
H A D | unified_data_helper.cpp | 39 void UnifiedDataHelper::SetRootPath(const std::string &rootPath) in SetRootPath() argument 41 rootPath_ = rootPath; in SetRootPath()
|
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/ |
H A D | font_config.cpp | 130 std::string rootPath(fname); in ParseConfig() 131 size_t idx = rootPath.rfind('/'); in ParseConfig() 136 rootPath_.assign(rootPath.substr(0, idx) + "/"); in ParseConfig()
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file.cpp | 47 void GetTreeFileList(std::shared_ptr<DirTreeNode> root, const std::string &rootPath, in GetTreeFileList() argument 53 if (!root->isDir && !rootPath.empty()) { in GetTreeFileList() 54 assetList.push_back(rootPath); in GetTreeFileList() 56 std::string prefix = rootPath; in GetTreeFileList()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_smartalbum_map_operations.cpp | 137 string rootPath = ROOT_MEDIA_DIR + dirAsset.GetDirectory(); in GetAssetRecycle() local 138 if (filePath.find(rootPath) == 0) { in GetAssetRecycle() 139 string trashDirPath = rootPath + RECYCLE_DIR; in GetAssetRecycle()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | key_manager.cpp | 1812 const char rootPath[] = "/data/app/el2/"; in UpdateCeEceSeceUserAuth() local 1814 size_t allPathSize = strlen(rootPath) + strlen(basePath) + 1 + USER_ID_SIZE_VALUE; in UpdateCeEceSeceUserAuth() 1820 int len = sprintf_s(path, allPathSize, "%s%u%s", rootPath, userId, basePath); in UpdateCeEceSeceUserAuth()
|