Home
last modified time | relevance | path

Searched refs:basePath (Results 1 - 11 of 11) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
H A Dusb_wrapper.cpp74 std::string basePath = GetDevPath(std::string(path)); in GetDevPathEx() local
75 size_t buf_size = basePath.length() + 1; in GetDevPathEx()
78 (void)memcpy_s(bufRet, buf_size, basePath.c_str(), buf_size); in GetDevPathEx()
/developtools/hiperf/src/
H A Dutilities.cpp457 std::vector<std::string> GetEntriesInDir(const std::string &basePath) in GetEntriesInDir() argument
460 std::string resolvedPath = CanonicalizeSpecPath(basePath.c_str()); in GetEntriesInDir()
475 std::vector<std::string> GetSubDirs(const std::string &basePath) in GetSubDirs() argument
477 std::vector<std::string> entries = GetEntriesInDir(basePath); in GetSubDirs()
480 if (IsDir(basePath + "/" + entries[index])) { in GetSubDirs()
586 const std::string basePath {"/proc/"}; in CollectPidsByAppname()
588 std::vector<std::string> subDirs = GetSubDirs(basePath); in CollectPidsByAppname()
593 std::string fileName {basePath + subDir + cmdline}; in CollectPidsByAppname()
627 const std::string basePath {"/proc/"}; in GetAppPackagePid()
632 std::vector<std::string> subDirs = GetSubDirs(basePath); in GetAppPackagePid()
[all...]
H A Dperf_events.cpp820 std::string basePath {"/sys/kernel/tracing/events"}; in LoadTracepointEventTypesFromSystem()
821 if (access(basePath.c_str(), R_OK) != 0) { in LoadTracepointEventTypesFromSystem()
822 basePath = "/sys/kernel/debug/tracing/events"; in LoadTracepointEventTypesFromSystem()
824 for (const auto &eventName : GetSubDirs(basePath)) { in LoadTracepointEventTypesFromSystem()
825 std::string eventPath = basePath + "/" + eventName; in LoadTracepointEventTypesFromSystem()
H A Dsubcommand_record.cpp1853 const std::string basePath {"/proc/"}; in SetHM()
1854 std::vector<std::string> subDirs = GetSubDirs(basePath); in SetHM()
/developtools/hdc/src/daemon/
H A 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()
179 string outPath = basePath + "/ep1"; in ConnectEPPoint()
184 string inPath = basePath + "/ep2"; in ConnectEPPoint()
H A Ddaemon_usb.h61 string basePath; // usb device's base path member in Hdc::HdcDaemonUSB
/developtools/profiler/device/plugins/native_daemon/src/
H A Dutilities.cpp411 std::vector<std::string> GetEntriesInDir(const std::string &basePath) in GetEntriesInDir() argument
414 DIR *dir = opendir(basePath.c_str()); in GetEntriesInDir()
429 std::vector<std::string> GetSubDirs(const std::string &basePath) in GetSubDirs() argument
431 std::vector<std::string> entries = GetEntriesInDir(basePath); in GetSubDirs()
434 if (IsDir(basePath + "/" + entries[index])) { in GetSubDirs()
/developtools/profiler/device/plugins/native_daemon/include/
H A Dutilities.h212 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
214 std::vector<std::string> GetSubDirs(const std::string &basePath);
/developtools/hiperf/include/
H A Dutilities.h213 std::vector<std::string> GetEntriesInDir(const std::string &basePath);
215 std::vector<std::string> GetSubDirs(const std::string &basePath);
/developtools/profiler/host/smartperf/client/client_command/
H A Dsp_utils.cpp331 std::string basePath = "/sys/devices/system/cpu/cpufreq/"; in GetCpuInfo() local
332 DIR *dir = opendir(basePath.c_str()); in GetCpuInfo()
349 policyFiles.push_back(IncludePathDelimiter(basePath) + clusterName); in GetCpuInfo()
/developtools/packing_tool/adapter/ohos/
H A DCompressor.java1484 Path basePath = Paths.get(hapAdditionPath); in setUtilityParameter()
1485 try (Stream<Path> pathStream = Files.walk(basePath, 1)) { in setUtilityParameter()

Completed in 16 milliseconds