/developtools/profiler/device/plugins/api/test/unittest/ |
H A D | plugin_watcher_test.cpp | 80 void CreateFile(std::string dirPath) const in CreateFile() 83 int fd = creat((dirPath + it).c_str(), DEAFULT_FILE_MODE); in CreateFile() 90 void AddFile(std::string dirPath) const in AddFile() 93 int fd = creat((dirPath + it).c_str(), DEAFULT_FILE_MODE); in AddFile() 102 void DeleteFile(std::string dirPath) const in DeleteFile() 105 if (remove((dirPath + it).c_str()) != 0) { in DeleteFile() 110 if (remove((dirPath + it).c_str()) != 0) { in DeleteFile() 116 bool CheckFileList(std::string dirPath) const in CheckFileList() 123 if (cmpFileList.at(i) != (dirPath + expectFileList.at(i))) { in CheckFileList()
|
/developtools/global_resource_tool/src/ |
H A D | resource_directory.cpp | 72 string dirPath = it->GetFilePath().GetPath(); in ScanResourceLimitKeyDir() local 79 cerr << "Error: '" << dirPath << "' not directory." << endl; in ScanResourceLimitKeyDir() 90 cerr << "Error: '" << dirPath << "', invalid directory name '"; in ScanResourceLimitKeyDir() local 94 DirectoryInfo info = { limitKey, fileCluster, dirPath, keyParams, type }; in ScanResourceLimitKeyDir()
|
H A D | i_resource_compiler.cpp | 45 FileEntry f(directoryInfo.dirPath); in Compile()
|
/developtools/hdc/src/common/ |
H A D | entry.cpp | 183 auto dirPath = prefixPath.append(GetName()); in PayloadToDir() local 185 bool b = Base::TryCreateDirectory(dirPath, estr); in PayloadToDir() 187 WRITE_LOG(LOG_FATAL, "PayloadToDir mkdir failed dirPath:%s estr:%s", dirPath.c_str(), estr.c_str()); in PayloadToDir()
|
/developtools/smartperf_host/trace_streamer/src/base/ |
H A D | file.cpp | 90 std::filesystem::path dirPath(path); in GetFilesNameFromDir() 92 if (!std::filesystem::exists(dirPath)) { in GetFilesNameFromDir() 93 TS_LOGI("!std::filesystem::exists(dirPath), dirPath: %s\n", path.data()); in GetFilesNameFromDir() 97 for (const auto &entry : std::filesystem::recursive_directory_iterator(dirPath)) { in GetFilesNameFromDir() 112 TS_LOGI("!std::filesystem::exists(dirPath), dirPath: %s\n", zipFile.data()); in UnZipFile()
|
/developtools/profiler/device/plugins/ftrace_plugin/include/ |
H A D | file_utils.h | 28 static std::vector<std::string> ListDir(const std::string& dirPath);
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | file_utils.cpp | 107 std::vector<std::string> FileUtils::ListDir(const std::string& dirPath) in ListDir() argument 110 DIR* dir = opendir(dirPath.c_str()); in ListDir()
|
/developtools/packing_tool/packing_tool/frameworks/src/ |
H A D | hsp_packager.cpp | 379 for (const auto& dirPath : formatedDirList_) { in CompressHspModePartFourth() 380 std::string baseDir = fs::path(dirPath).filename().string(); in CompressHspModePartFourth() 381 if (zipWrapper_.AddFileOrDirectoryToZip(dirPath, baseDir) != ZipErrCode::ZIP_ERR_SUCCESS) { in CompressHspModePartFourth()
|
H A D | hap_packager.cpp | 563 for (const auto& dirPath : formatedDirList_) { in AddResFileAndDirLsitToZip() 564 std::string baseDir = fs::path(dirPath).filename().string(); in AddResFileAndDirLsitToZip() 565 if (zipWrapper_.AddFileOrDirectoryToZip(dirPath, baseDir) != ZipErrCode::ZIP_ERR_SUCCESS) { in AddResFileAndDirLsitToZip()
|
/developtools/profiler/device/plugins/cpu_plugin/include/ |
H A D | cpu_data_plugin.h | 99 DIR* OpenDestDir(std::string& dirPath);
|
/developtools/profiler/device/plugins/process_plugin/include/ |
H A D | process_data_plugin.h | 64 DIR* OpenDestDir(const char* dirPath);
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
H A D | cpu_data_plugin.cpp | 543 DIR* CpuDataPlugin::OpenDestDir(std::string& dirPath) in OpenDestDir() argument 547 destDir = opendir(dirPath.c_str()); in OpenDestDir() 548 CHECK_NOTNULL(destDir, nullptr, "%s:failed to opendir(%s), errno=%d", __func__, dirPath.c_str(), errno); in OpenDestDir()
|
/developtools/profiler/device/plugins/process_plugin/src/ |
H A D | process_data_plugin.cpp | 103 DIR* ProcessDataPlugin::OpenDestDir(const char* dirPath) in OpenDestDir() argument 107 destDir = opendir(dirPath); in OpenDestDir() 109 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to opendir(%s), errno=%d", __func__, dirPath, errno); in OpenDestDir()
|
/developtools/global_resource_tool/include/ |
H A D | resource_data.h | 292 std::string dirPath; member
|
/developtools/profiler/device/plugins/memory_plugin/include/ |
H A D | memory_data_plugin.h | 355 DIR* OpenDestDir(const char* dirPath);
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
H A D | memory_data_plugin.cpp | 509 DIR* MemoryDataPlugin::OpenDestDir(const char* dirPath) in OpenDestDir() argument 513 destDir = opendir(dirPath); in OpenDestDir() 518 PROFILER_LOG_ERROR(LOG_CORE, "%s:failed to opendir(%s), errno(%d:%s)", __func__, dirPath, errno, buf); in OpenDestDir()
|