Home
last modified time | relevance | path

Searched refs:paths (Results 1 – 25 of 28) sorted by relevance

12

/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dget_hardware_info.cpp118 uint64_t GetHardwareInfo::CalcHardware(const vector<string> &paths) in CalcHardware() argument
121 if (paths.size() > 0) { in CalcHardware()
122 for (string path : paths) { in CalcHardware()
134 …fo::GetGroupOfPaths(const size_t &index, const size_t &size, const std::vector<std::string> &paths, in GetGroupOfPaths() argument
138 if (i <= paths.size() - 1) { in GetGroupOfPaths()
139 groupPaths.push_back(paths.at(i)); in GetGroupOfPaths()
147 vector<string> paths; in GetHardwareUsage() local
148 bool findPathSuccess = FindFilePaths(paths); in GetHardwareUsage()
150 size_t size = paths.size(); in GetHardwareUsage()
163 GetGroupOfPaths(i, groupSize, paths, groupPaths); in GetHardwareUsage()
/base/request/request/test/unittest/rust/src/
Dmain.rs29 let mut paths: Vec<String> = Vec::new(); in create_test1() localVariable
39 paths.push(file_name); in create_test1()
54 common::remove_files(paths); in create_test1()
63 let mut paths: Vec<String> = Vec::new(); in create_test2() localVariable
73 paths.push(file_name); in create_test2()
92 common::remove_files(paths); in create_test2()
101 let mut paths: Vec<String> = Vec::new(); in create_test3() localVariable
111 paths.push(file_name); in create_test3()
142 common::remove_files(paths); in create_test3()
Dcommon.rs73 pub fn remove_files(paths: Vec<String>) { in remove_files()
75 for path in paths.iter() { in remove_files()
/base/customization/config_policy/interfaces/inner_api/include/
Dconfig_policy_utils.h59 char *paths[MAX_CFG_POLICY_DIRS_CNT]; member
64 char *paths[MAX_CFG_POLICY_DIRS_CNT]; member
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dhap_manager.cpp126 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueByName() local
128 size_t len = paths.size(); in FindQualifierValueByName()
134 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueByName()
149 return paths[bestIndex]; in FindQualifierValueByName()
158 const std::vector<HapResource::ValueUnderQualifierDir *> paths = idValues->GetLimitPathsConst(); in FindQualifierValueById() local
160 size_t len = paths.size(); in FindQualifierValueById()
166 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueById()
181 return paths[bestIndex]; in FindQualifierValueById()
Dlocale_matcher.cpp109 int8_t SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale) in SearchTrackPathDistance() argument
113 if (paths[i] == LocaleMatcher::ROOT_LOCALE) { in SearchTrackPathDistance()
116 if (paths[i] == encodedLocale) { in SearchTrackPathDistance()
/base/customization/config_policy/frameworks/config_policy/src/
Dconfig_policy_utils.c401 if (res->paths[i] != NULL) { in FreeCfgFiles()
402 free(res->paths[i]); in FreeCfgFiles()
403 res->paths[i] = NULL; in FreeCfgFiles()
434 if (dirs->paths[i - 1] == NULL) { in GetOneCfgFileEx()
440 … snprintf_s(buf, bufLength, bufLength - 1, "%s/%s/%s", dirs->paths[i - 1], result->segs[j - 1], in GetOneCfgFileEx()
450 … if (snprintf_s(buf, bufLength, bufLength - 1, "%s/%s", dirs->paths[i - 1], pathSuffix) > 0 && in GetOneCfgFileEx()
486 if (dirs->paths[i] == NULL) { in GetCfgFilesEx()
489 … if (snprintf_s(buf, MAX_PATH_LEN, MAX_PATH_LEN - 1, "%s/%s", dirs->paths[i], pathSuffix) > 0 && in GetCfgFilesEx()
491 files->paths[index++] = strdup(buf); in GetCfgFilesEx()
495 … snprintf_s(buf, MAX_PATH_LEN, MAX_PATH_LEN - 1, "%s/%s/%s", dirs->paths[i], result->segs[j], in GetCfgFilesEx()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/
Dget_hardware_info.h32 …oid GetGroupOfPaths(const size_t &index, const size_t &size, const std::vector<std::string> &paths,
38 uint64_t static CalcHardware(const std::vector<std::string> &paths);
/base/customization/config_policy/
DREADME.md5 …module to obtain the configuration directories at different levels or the configuration file paths.
15 - **interfaces** provides the path of the file with the highest priority and all-level paths of the…
36 …ponent to obtain the configuration directories at different levels or the configuration file paths.
45 CfgFiles *cfgFiles = GetCfgFiles(cfgPath); // Obtain the configuration file paths of all configurat…
/base/startup/init/services/modules/seccomp/
Dseccomp_policy.c118 if (files->paths[i]) { in GetFilterFileByName()
124 if (seccompPathNum == 1 && files && files->paths[0]) { in GetFilterFileByName()
125 … if (memcpy_s(filterLibRealPath, pathSize, files->paths[0], strlen(files->paths[0]) + 1) == EOK) { in GetFilterFileByName()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dhap_restorecon.cpp284 char *paths[2] = {nullptr, nullptr}; in HapFileRecurseRestorecon() local
285 paths[0] = strdup(realPath.c_str()); in HapFileRecurseRestorecon()
286 if (paths[0] == nullptr) { in HapFileRecurseRestorecon()
291 FTS *fts = fts_open(paths, ftsFlags, nullptr); in HapFileRecurseRestorecon()
293 …selinux_log(SELINUX_ERROR, "%s on %s: %s\n", GetErrStr(SELINUX_FTS_OPEN_ERROR), paths[0], strerror… in HapFileRecurseRestorecon()
294 free(paths[0]); in HapFileRecurseRestorecon()
305 free(paths[0]); in HapFileRecurseRestorecon()
328 free(paths[0]); in HapFileRecurseRestorecon()
/base/startup/appspawn/adapter/
Dappspawn_sandbox.cpp41 if (files->paths[i] == nullptr) { in LoadAppSandboxConfig()
44 std::string path = files->paths[i]; in LoadAppSandboxConfig()
Dappspawn_ace.cpp83 if (files->paths[i] == nullptr) { in PreloadModule()
86 std::string path = files->paths[i]; in PreloadModule()
/base/customization/config_policy/test/unittest/
Dconfig_policy_utils_test.cpp48 filePath = cfgFiles->paths[i]; in TestGetCfgFile()
124 char *filePath = cfgDir->paths[i];
/base/startup/init/services/init/standard/
Dinit.c294 if (files->paths[i]) { in InitLoadParamFiles()
295 LoadDefaultParams(files->paths[i], LOAD_PARAM_ONLY_ADD); in InitLoadParamFiles()
382 if (files->paths[i]) { in ParseInitCfgByPriority()
383 if (ReadFileInDir(files->paths[i], ".cfg", ParseInitCfg, NULL) < 0) { in ParseInitCfgByPriority()
/base/global/resource_management/frameworks/resmgr/src/
Draw_file_manager.cpp351 char paths[PATH_MAX] = {0}; in OH_ResourceManager_GetRawFileDescriptor() local
353 if (!PathCanonicalizeA(paths, rawFile->filePath.c_str())) { in OH_ResourceManager_GetRawFileDescriptor()
357 if (realpath(rawFile->filePath.c_str(), paths) == nullptr) { in OH_ResourceManager_GetRawFileDescriptor()
361 int fd = open(paths, O_RDONLY); in OH_ResourceManager_GetRawFileDescriptor()
Dhap_manager.cpp198 … const std::vector<HapResource::ValueUnderQualifierDir *> paths = (*iter)->GetLimitPathsConst(); in GetBestMatchResource() local
199 size_t len = paths.size(); in GetBestMatchResource()
201 bool isOverlayHapResource = paths[0]->IsOverlay(); in GetBestMatchResource()
203 HapResource::ValueUnderQualifierDir *path = paths[i]; in GetBestMatchResource()
211 overlayResult = paths[i]; in GetBestMatchResource()
216 overlayResult = paths[i]; in GetBestMatchResource()
221 result = paths[i]; in GetBestMatchResource()
226 result = paths[i]; in GetBestMatchResource()
790 std::string paths = ""; in FindRawFileDescriptor() local
791 RState rState = HapManager::FindRawFile(name, paths); in FindRawFileDescriptor()
[all …]
Dlocale_matcher.cpp109 int8_t SearchTrackPathDistance(const uint64_t *paths, size_t len, uint64_t encodedLocale) in SearchTrackPathDistance() argument
113 if (paths[i] == LocaleMatcher::ROOT_LOCALE) { in SearchTrackPathDistance()
116 if (paths[i] == encodedLocale) { in SearchTrackPathDistance()
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp200 if (cfgFiles != nullptr && cfgFiles->paths[i] != nullptr) { in NativeGetCfgFiles()
201 asyncCallbackInfo->paths_.push_back(cfgFiles->paths[i]); in NativeGetCfgFiles()
219 if (cfgDir != nullptr && cfgDir->paths[i] != nullptr) { in NativeGetCfgDirList()
220 asyncCallbackInfo->paths_.push_back(cfgDir->paths[i]); in NativeGetCfgDirList()
/base/hiviewdfx/hiview/core/include/
Devent_json_parser.h52 EventJsonParser(std::vector<std::string>& paths);
/base/startup/init/interfaces/innerkits/modulemgr/
Dmodulemgr.c256 if (files->paths[i]) { in ModuleMgrScan()
257 ScanModules(moduleMgr, files->paths[i]); in ModuleMgrScan()
/base/startup/init/services/modules/trace/
Dinit_trace.c276 cJSON *paths = GetArrayItem(tagJson, &pathCount, "sys-files"); in SetKernelTraceEnabled() local
277 if (paths == NULL) { in SetKernelTraceEnabled()
282 char *path = cJSON_GetStringValue(cJSON_GetArrayItem(paths, j)); in SetKernelTraceEnabled()
/base/hiviewdfx/hiview/core/
Devent_json_parser.cpp112 EventJsonParser::EventJsonParser(std::vector<std::string>& paths) in EventJsonParser() argument
115 for (auto path : paths) { in EventJsonParser()
/base/startup/init/services/sandbox/
Dsandbox.c371 if (files->paths[i]) { in ParseInitSandboxConfigPath()
372 BEGET_LOGI("Parse sandbox cfg file is %s", files->paths[i]); in ParseInitSandboxConfigPath()
373 if (ParseInitSandboxConfigFile(sandbox, files->paths[i], name) < 0) { in ParseInitSandboxConfigPath()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp93 filePath = cfgFiles->paths[i]; in ParseFromCustomSystem()

12