Home
last modified time | relevance | path

Searched refs:basePath (Results 1 – 13 of 13) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
Dusb_wrapper.cpp88 std::string basePath = GetDevPath(std::string(path)); in GetDevPathEx() local
89 size_t buf_size = basePath.length() + 1; in GetDevPathEx()
92 (void)memcpy_s(bufRet, buf_size, basePath.c_str(), buf_size); in GetDevPathEx()
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/utils/
DSystemUtils.ets21 const basePath = "/sys/devices/system/cpu/cpufreq"
26 let policyArr = travelFile(basePath, "policy")
38 var affected_cpus = fileOpen(basePath + "/" + policy + "/affected_cpus")
/developtools/hiperf/src/
Dutilities.cpp448 std::vector<std::string> GetEntriesInDir(const std::string &basePath) in GetEntriesInDir() argument
451 std::string resolvedPath = CanonicalizeSpecPath(basePath.c_str()); in GetEntriesInDir()
470 std::vector<std::string> GetSubDirs(const std::string &basePath) in GetSubDirs() argument
472 std::vector<std::string> entries = GetEntriesInDir(basePath); in GetSubDirs()
475 if (IsDir(basePath + "/" + entries[index])) { in GetSubDirs()
581 const std::string basePath {"/proc/"}; in CollectPidsByAppname() local
583 std::vector<std::string> subDirs = GetSubDirs(basePath); in CollectPidsByAppname()
588 std::string fileName {basePath + subDir + cmdline}; in CollectPidsByAppname()
624 const std::string basePath {"/proc/"}; in GetAppPackagePid() local
629 std::vector<std::string> subDirs = GetSubDirs(basePath); in GetAppPackagePid()
[all …]
Dperf_events.cpp692 std::string basePath {"/sys/kernel/tracing/events"}; in LoadTracepointEventTypesFromSystem() local
694 basePath = "/sys/kernel/tracing/hongmeng/events"; in LoadTracepointEventTypesFromSystem()
696 if (access(basePath.c_str(), R_OK) != 0) { in LoadTracepointEventTypesFromSystem()
697 basePath = "/sys/kernel/debug/tracing/events"; in LoadTracepointEventTypesFromSystem()
699 for (const auto &eventName : GetSubDirs(basePath)) { in LoadTracepointEventTypesFromSystem()
700 std::string eventPath = basePath + "/" + eventName; in LoadTracepointEventTypesFromSystem()
Dsubcommand_record.cpp1806 const std::string basePath {"/proc/"}; in SetHM() local
1807 std::vector<std::string> subDirs = GetSubDirs(basePath); in SetHM()
/developtools/hdc/src/daemon/
Ddaemon_usb.cpp106 basePath = GetDevPath(USB_FFS_BASE); in Initial()
107 if (access((basePath + "/ep0").c_str(), F_OK) != 0) { in Initial()
109 "usbmode disabled: errno: %d, basePath: %s ", errno, basePath.c_str()); in Initial()
160 string ep0Path = basePath + "/ep0"; in ConnectEPPoint()
177 string outPath = basePath + "/ep1"; in ConnectEPPoint()
182 string inPath = basePath + "/ep2"; in ConnectEPPoint()
Ddaemon_usb.h61 string basePath; // usb device's base path variable
/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp391 std::vector<std::string> GetEntriesInDir(const std::string &basePath) in GetEntriesInDir() argument
394 DIR *dir = opendir(basePath.c_str()); in GetEntriesInDir()
409 std::vector<std::string> GetSubDirs(const std::string &basePath) in GetSubDirs() argument
411 std::vector<std::string> entries = GetEntriesInDir(basePath); in GetSubDirs()
414 if (IsDir(basePath + "/" + entries[index])) { in GetSubDirs()
/developtools/profiler/host/smartperf/client/client_command/
Dsp_utils.cpp270 std::string basePath = "/sys/devices/system/cpu/cpufreq/"; in GetCpuInfo() local
272 DIR *dir = opendir(basePath.c_str()); in GetCpuInfo()
284 policyFiles.push_back(IncludePathDelimiter(basePath) + std::string(ptr->d_name)); in GetCpuInfo()
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h211 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
213 std::vector<std::string> GetSubDirs(const std::string &basePath);
/developtools/hiperf/include/
Dutilities.h214 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
216 std::vector<std::string> GetSubDirs(const std::string &basePath);
/developtools/ace_ets2bundle/compiler/src/
Dets_checker.ts150 const basePath: string = path.resolve(projectConfig.projectPath); constant
154 allPath.push(path.join(path.relative(basePath, item), '*'));
176 'baseUrl': basePath,
/developtools/packing_tool/adapter/ohos/
DCompressor.java1242 Path basePath = Paths.get(hapAdditionPath); in setUtilityParameter() local
1243 Files.walk(basePath, 1).forEach(path -> { in setUtilityParameter()