/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | file.cpp | 42 if (absolutePath != nullptr) { in File() 43 pathTmp = absolutePath; in File() 44 free(absolutePath); in File() 49 char absolutePath[_MAX_PATH]; in File() local 51 pathTmp = absolutePath; in File() 70 if (absolutePath != nullptr) { in File() 71 path_ = absolutePath; in File() 72 free(absolutePath); in File() 77 char absolutePath[_MAX_PATH]; in File() 78 _fullpath(absolutePath, path.string(), _MAX_PATH); in File() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/io/dev/ |
H A D | FileMonitor.cpp | 56 std::string absolutePath; in ResolveAbsolutePath() local 62 absolutePath = path.string(); in ResolveAbsolutePath() 71 absolutePath = resolvedPath; in ResolveAbsolutePath() 82 absolutePath = resolvedPath; in ResolveAbsolutePath() 95 absolutePath = resolvedPath; in ResolveAbsolutePath() 99 FormatPath(absolutePath, isDirectory); in ResolveAbsolutePath() 101 return absolutePath; in ResolveAbsolutePath() 179 …if (absolutePath.empty() || IsWatchingDirectory(absolutePath) || IsWatchingSubDirectory(absolutePa… in AddPath() 191 mDirectories.push_back(absolutePath); in AddPath() 221 if (absolutePath.empty() || mFiles.find(absolutePath) != mFiles.end()) { in AddFile() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip_writer.cpp | 92 bool AddFileEntryToZip(zipFile zip_file, FilePath &relativePath, FilePath &absolutePath, const OPTI… in AddFileEntryToZip() argument 101 bool success = AddFileContentToZip(zip_file, absolutePath); in AddFileEntryToZip() 189 FilePath &absolutePath = relativePaths[i].second; in FlushEntriesIfNeeded() local 190 bool isValid = FilePath::PathIsValid(absolutePath); in FlushEntriesIfNeeded() 191 bool isDir = FilePath::IsDir(absolutePath); in FlushEntriesIfNeeded() 193 if (!AddFileEntryToZip(zipFile_, relativePath, absolutePath, options)) { in FlushEntriesIfNeeded()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | std_directory.cpp | 244 string absolutePath; in ResolveAbsolutePath() local 256 absolutePath.assign(pathStr.data(), pathStr.size()); in ResolveAbsolutePath() 265 absolutePath = resolvedPath; in ResolveAbsolutePath() 271 absolutePath = resolvedPath; in ResolveAbsolutePath() 278 absolutePath = resolvedPath; in ResolveAbsolutePath() 282 FormatPath(absolutePath, isDirectory); in ResolveAbsolutePath() 284 return absolutePath; in ResolveAbsolutePath()
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
H A D | zip_writer.cpp | 117 std::string absolutePath = item.first; // first:absolutePath in FlushItems() local 120 relativePath.c_str(), absolutePath.c_str()); in FlushItems() 122 if (!AddFileEntryToZip(zipFile_, relativePath, absolutePath)) { in FlushItems() 231 …ipWriter::AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolutePath) in AddFileEntryToZip() argument 234 relativePath.c_str(), absolutePath.c_str()); in AddFileEntryToZip() 241 bool ret = AddFileContentToZip(zip_file, absolutePath); in AddFileEntryToZip()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | data_storage_helper.cpp | 122 std::string absolutePath = GetConfigFileAbsolutePath(FilePath); in ParseFastSuspendDozeTime() local 123 if (ParseJsonValueFromFile(jsonObj, absolutePath) != ERR_OK) { in ParseFastSuspendDozeTime() 203 char absolutePath[PATH_MAX] = {0}; in GetConfigFileAbsolutePath() local 204 if (!tmpPath || strlen(tmpPath) > PATH_MAX || !realpath(tmpPath, absolutePath)) { in GetConfigFileAbsolutePath() 208 return std::string(absolutePath); in GetConfigFileAbsolutePath()
|
H A D | bgtask_config.cpp | 46 std::string absolutePath = DelayedSingleton<DataStorageHelper>::GetInstance()-> in LoadConfigFile() local 48 …dSingleton<DataStorageHelper>::GetInstance()->ParseJsonValueFromFile(jsonObj, absolutePath) != 0) { in LoadConfigFile()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/fontcollection_napi/ |
H A D | js_fontcollection.cpp | 138 bool JsFontCollection::SpiltAbsoluteFontPath(std::string& absolutePath) in SpiltAbsoluteFontPath() argument 140 auto iter = absolutePath.find_first_of(':'); in SpiltAbsoluteFontPath() 145 std::string head = absolutePath.substr(0, iter); in SpiltAbsoluteFontPath() 146 if ((head == "file" && absolutePath.size() > FILE_HEAD_LENGTH)) { in SpiltAbsoluteFontPath() 147 absolutePath = absolutePath.substr(iter + 3); // 3 means skip "://" in SpiltAbsoluteFontPath()
|
H A D | js_fontcollection.h | 44 bool SpiltAbsoluteFontPath(std::string& absolutePath);
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | audio_effect_server.cpp | 53 std::string absolutePath; in LoadLibrary() local 55 if (!ResolveLibrary(relativePath, absolutePath)) { in LoadLibrary() 61 void* handle = dlopen(absolutePath.c_str(), 1); in LoadLibrary()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/utils/ |
H A D | ressched_utils.cpp | 181 char absolutePath[PATH_MAX] = {0}; in GetProcessFilePath() local 182 if (!realpath(path.c_str(), absolutePath)) { in GetProcessFilePath() 186 return std::string(absolutePath); in GetProcessFilePath()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | uri_utils.cpp | 68 std::string absolutePath; in GetUriListFromWantDms() local 75 absolutePath = path; in GetUriListFromWantDms() 77 absolutePath = srcPath; in GetUriListFromWantDms() 79 if (absolutePath.compare(0, DISTRIBUTED_FILES_PATH.size(), DISTRIBUTED_FILES_PATH) != 0) { in GetUriListFromWantDms()
|
H A D | ability_manager_service.cpp | 11838 std::string absolutePath = GetConfigFileAbsolutePath(relativePath); in ParseJsonFromBoot() local 11839 if (ParseJsonValueFromFile(jsonObj, absolutePath) != ERR_OK) { in ParseJsonFromBoot() 11875 char absolutePath[PATH_MAX] = {0}; in GetConfigFileAbsolutePath() local 11876 if (!tmpPath || strlen(tmpPath) > PATH_MAX || !realpath(tmpPath, absolutePath)) { in GetConfigFileAbsolutePath() 11880 return std::string(absolutePath); in GetConfigFileAbsolutePath()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/qdisc/ |
H A D | nstackx_qdisc.c | 159 char absolutePath[PATH_MAX + 1] = {0}; // +1 is avoiding array out of bound in GetQdiscAllLengthFromFile() local 160 if (realpath(qdiscFileName, absolutePath) == NULL) { in GetQdiscAllLengthFromFile() 163 fileName = absolutePath; in GetQdiscAllLengthFromFile()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | theme_pack_manager.cpp | 459 std::string absolutePath("/data/service/el1/public/themes/"); in IsSameResourceByUserId() local 460 if (path.empty() || path.find(absolutePath) == std::string::npos) { in IsSameResourceByUserId() 463 auto pos = path.find("/", absolutePath.length()); in IsSameResourceByUserId() 467 auto subStr = path.substr(absolutePath.length(), pos - absolutePath.length()); in IsSameResourceByUserId()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_spatial_channel_converter.cpp | 196 std::string absolutePath; in LoadLibrary() local 198 bool ret = ResolveLibrary(relativePath, absolutePath); in LoadLibrary() 202 libHandle_ = dlopen(absolutePath.c_str(), 1); in LoadLibrary()
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/ |
H A D | zip_writer.h | 44 …tic bool AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolutePath);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_element.cpp | 524 std::string absolutePath = filePath + fileName; in GetAssetAbsolutePath() local 525 return absolutePath; in GetAssetAbsolutePath()
|