Home
last modified time | relevance | path

Searched refs:absolutePath (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/ability/idl_tool/util/
H A Dfile.cpp42 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 DFileMonitor.cpp56 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 Dzip_writer.cpp92 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 Dstd_directory.cpp244 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 Dzip_writer.cpp117 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 Ddata_storage_helper.cpp122 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 Dbgtask_config.cpp46 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 Djs_fontcollection.cpp138 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 Djs_fontcollection.h44 bool SpiltAbsoluteFontPath(std::string& absolutePath);
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Daudio_effect_server.cpp53 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 Dressched_utils.cpp181 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 Duri_utils.cpp68 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 Dability_manager_service.cpp11838 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 Dnstackx_qdisc.c159 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 Dtheme_pack_manager.cpp459 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 Daudio_spatial_channel_converter.cpp196 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 Dzip_writer.h44 …tic bool AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolutePath);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dvideo_element.cpp524 std::string absolutePath = filePath + fileName; in GetAssetAbsolutePath() local
525 return absolutePath; in GetAssetAbsolutePath()