| /developtools/hdc/hdc_rust/src/cffi/ |
| D | usb_wrapper.cpp | 88 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/ |
| D | SystemUtils.ets | 21 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/ |
| D | utilities.cpp | 448 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 …]
|
| D | perf_events.cpp | 692 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()
|
| D | subcommand_record.cpp | 1806 const std::string basePath {"/proc/"}; in SetHM() local 1807 std::vector<std::string> subDirs = GetSubDirs(basePath); in SetHM()
|
| /developtools/hdc/src/daemon/ |
| D | daemon_usb.cpp | 106 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()
|
| D | daemon_usb.h | 61 string basePath; // usb device's base path variable
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | utilities.cpp | 391 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/ |
| D | sp_utils.cpp | 270 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/ |
| D | utilities.h | 211 std::vector<std::string> GetEntriesInDir(const std::string &basePath); 213 std::vector<std::string> GetSubDirs(const std::string &basePath);
|
| /developtools/hiperf/include/ |
| D | utilities.h | 214 std::vector<std::string> GetEntriesInDir(const std::string &basePath); 216 std::vector<std::string> GetSubDirs(const std::string &basePath);
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | ets_checker.ts | 150 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/ |
| D | Compressor.java | 1242 Path basePath = Paths.get(hapAdditionPath); in setUtilityParameter() local 1243 Files.walk(basePath, 1).forEach(path -> { in setUtilityParameter()
|