/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
D | get_hardware_info.cpp | 118 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/ |
D | main.rs | 29 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()
|
D | common.rs | 73 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/ |
D | config_policy_utils.h | 59 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/ |
D | hap_manager.cpp | 126 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()
|
D | locale_matcher.cpp | 109 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/ |
D | config_policy_utils.c | 401 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/ |
D | get_hardware_info.h | 32 …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/ |
D | README.md | 5 …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/ |
D | seccomp_policy.c | 118 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/ |
D | hap_restorecon.cpp | 284 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/ |
D | appspawn_sandbox.cpp | 41 if (files->paths[i] == nullptr) { in LoadAppSandboxConfig() 44 std::string path = files->paths[i]; in LoadAppSandboxConfig()
|
D | appspawn_ace.cpp | 83 if (files->paths[i] == nullptr) { in PreloadModule() 86 std::string path = files->paths[i]; in PreloadModule()
|
/base/customization/config_policy/test/unittest/ |
D | config_policy_utils_test.cpp | 48 filePath = cfgFiles->paths[i]; in TestGetCfgFile() 124 char *filePath = cfgDir->paths[i];
|
/base/startup/init/services/init/standard/ |
D | init.c | 294 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/ |
D | raw_file_manager.cpp | 351 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()
|
D | hap_manager.cpp | 198 … 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 …]
|
D | locale_matcher.cpp | 109 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/ |
D | config_policy_napi.cpp | 200 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/ |
D | event_json_parser.h | 52 EventJsonParser(std::vector<std::string>& paths);
|
/base/startup/init/interfaces/innerkits/modulemgr/ |
D | modulemgr.c | 256 if (files->paths[i]) { in ModuleMgrScan() 257 ScanModules(moduleMgr, files->paths[i]); in ModuleMgrScan()
|
/base/startup/init/services/modules/trace/ |
D | init_trace.c | 276 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/ |
D | event_json_parser.cpp | 112 EventJsonParser::EventJsonParser(std::vector<std::string>& paths) in EventJsonParser() argument 115 for (auto path : paths) { in EventJsonParser()
|
/base/startup/init/services/sandbox/ |
D | sandbox.c | 371 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/ |
D | operator_file_parser.cpp | 93 filePath = cfgFiles->paths[i]; in ParseFromCustomSystem()
|