/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | perf_collector_test.cpp | 47 std::string filename = "hiperf-"; in HWTEST_F() local 48 filename += TimeUtil::TimestampFormatToDate(TimeUtil::GetMilliseconds() / TimeUtil::SEC_TO_MILLISEC, in HWTEST_F() 50 filename += ".data"; in HWTEST_F() 51 perfCollector->SetOutputFilename(filename); in HWTEST_F() 69 std::string filename = "hiperf-"; in HWTEST_F() local 70 filename += TimeUtil::TimestampFormatToDate(TimeUtil::GetMilliseconds() / TimeUtil::SEC_TO_MILLISEC, in HWTEST_F() 72 filename += ".data"; in HWTEST_F() 73 std::string filepath = filedir + filename; in HWTEST_F() 74 perfCollector->SetOutputFilename(filename); in HWTEST_F() 92 std::string filename in HWTEST_F() local 124 std::string filename = "hiperf-"; HWTEST_F() local 149 std::string filename = "hiperf-"; HWTEST_F() local [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
H A D | file_stream_dumper.cpp | 77 std::string filename = filenames_[next_file_index_]; in OpenNextFile() local 79 if ((fd_ = DumpUtils::FdToRead(filename)) == -1) { in OpenNextFile() 92 line_vector_filename.push_back(filename); in OpenNextFile() 186 std::string filename = dir_name + d_name; in BuildFileNames() local 189 ReplacePidInFilename(filename, pid); in BuildFileNames() 192 ReplaceCpuidInFilename(filename, cpuid); in BuildFileNames() 194 filenames_.push_back(filename); in BuildFileNames() 198 std::string filename = target; in BuildFileNames() local 200 ReplacePidInFilename(filename, pid); in BuildFileNames() 203 ReplaceCpuidInFilename(filename, cpui in BuildFileNames() 209 ReplacePidInFilename(std::string& filename, int pid) ReplacePidInFilename() argument 218 ReplaceCpuidInFilename(std::string& filename, int cpuid) ReplaceCpuidInFilename() argument [all...] |
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 158 auto filename = GetCppCrashFileName(testProcess); in HWTEST_F() local 159 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F() 160 ASSERT_TRUE(CheckCppCrashKeyWords(filename, testProcess, SIGILL)); in HWTEST_F() 177 auto filename = GetCppCrashFileName(testProcess); in HWTEST_F() local 178 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F() 179 ASSERT_TRUE(CheckCppCrashKeyWords(filename, testProcess, SIGTRAP)); in HWTEST_F() 196 auto filename = GetCppCrashFileName(testProcess); in HWTEST_F() local 197 ASSERT_EQ(std::to_string(curTime).length(), filename in HWTEST_F() 215 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 234 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 254 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 273 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 292 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 345 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 362 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local 384 auto filename = GetCppCrashFileName(testProcess); HWTEST_F() local [all...] |
/base/startup/init/services/init/standard/ |
H A D | system_call_wrap.c | 107 int __real_chmod(const char *filename, int pmode);
108 int __wrap_chmod(const char *filename, int pmode)
in __wrap_chmod() argument 111 return __real_chmod(filename, pmode);
in __wrap_chmod() 115 int ret = __real_chmod(filename, pmode);
in __wrap_chmod() 133 FILE *__real_fopen(const char *filename, const char *mode);
134 FILE *__wrap_fopen(const char *filename, const char *mode)
in __wrap_fopen() argument 137 return __real_fopen(filename, mode);
in __wrap_fopen() 141 FILE *file = __real_fopen(filename, mode);
in __wrap_fopen()
|
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/ |
H A D | stat_utils.cpp | 21 int Statx(int dfd, const char *filename, int flags,
in Statx() argument 24 return syscall(__NR_statx, dfd, filename, flags, mask, buffer);
in Statx()
|
/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/ |
H A D | sys_event_stat_test.cpp | 38 static int OpenTestFile(const char *filename) in OpenTestFile() argument 40 int fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644); in OpenTestFile() 48 static std::string GetFileContent(const std::string& filename) in GetFileContent() argument 50 std::ifstream inputfile(filename); in GetFileContent()
|
/base/security/code_signature/services/key_enable/src/ |
H A D | file_utils.rs | 62 pub fn write_bytes_to_file(filename: &str, data: &[u8]) -> Result<(), std::io::Error> { in write_bytes_to_file() 63 let mut file = File::create(filename)?; in write_bytes_to_file() 68 pub fn load_bytes_from_file(filename: &str, buffer: &mut Vec<u8>) -> Result<(), std::io::Error> { in load_bytes_from_file() 69 let mut file = File::open(filename)?; in load_bytes_from_file()
|
/base/theme/wallpaper_mgr/utils/src/ |
H A D | file_deal.cpp | 97 std::string filename = filePath; in GetExtension() local 102 filename = filePath.substr(pos + 1); in GetExtension() 106 pos = filename.find_last_of('.'); in GetExtension() 107 if (pos != std::string::npos && pos + 1 < filename.length()) { in GetExtension() 108 extension = filename.substr(pos); in GetExtension()
|
/base/hiviewdfx/hidumper/frameworks/native/include/executor/ |
H A D | file_stream_dumper.h | 36 void ReplacePidInFilename(std::string& filename, int pid); 37 void ReplaceCpuidInFilename(std::string& filename, int cpuid);
|
/base/hiviewdfx/hitrace/utils/ |
H A D | trace_utils.cpp | 40 std::string filename; member 72 std::string fileName = entry.path().filename().string(); in GetRecordTraceFilesInDir() 159 RemoveFile(TRACE_DEFAULT_DIR + snapshotTraceFiles[i].filename); in DelSnapshotTraceFile() 184 if (remove((TRACE_DEFAULT_DIR + fileList[i].filename).c_str()) == 0) { in DelOldRecordTraceFile() 186 fileList[i].filename.c_str()); in DelOldRecordTraceFile() 189 fileList[i].filename.c_str(), errno); in DelOldRecordTraceFile()
|
/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | file_parser.py | 549 filename = os.path.split(filepath)[1] 551 filename = os.path.relpath(filepath, self.root_directory) 552 filename = filename.replace('\\', '/') 556 self.add_data(filename, system_util.read_file(filepath)) 561 def add_data(self, filename, data): 581 self.typedefs.append(obj_typedef(self, filename, value, alias)) 593 validate_comment(filename, retval, comment) 595 obj_function(self, filename, attrib, retval, argval, comment)) 620 validate_comment(filename, nam [all...] |
H A D | system_util.py | 91 filename = os.path.join(root, basename) 92 yield filename
|
/base/location/services/location_locator/locator/include/ |
H A D | location_config_manager.h | 55 bool IsExistFile(const std::string& filename); 56 bool CreateFile(const std::string& filename, const std::string& filedata);
|
/base/telephony/core_service/services/sim/include/ |
H A D | operator_file_parser.h | 33 bool WriteOperatorConfigJson(std::string filename, const cJSON *root); 34 std::string GetOperatorConfigFilePath(std::string filename);
|
/base/hiviewdfx/hiview/plugins/unified_collector/task/ |
H A D | cpu_perf_dump.cpp | 51 std::string filename = "hiperf-top3-"; in DumpTopNCpuProcessPerfData() local 52 filename += TimeUtil::TimestampFormatToDate(TimeUtil::GetMilliseconds() / TimeUtil::SEC_TO_MILLISEC, in DumpTopNCpuProcessPerfData() 54 filename += ".data"; in DumpTopNCpuProcessPerfData() 55 perfCollector_->SetOutputFilename(filename); in DumpTopNCpuProcessPerfData()
|
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | upload_task.cpp | 105 UPLOAD_HILOGD(UPLOAD_MODULE_FRAMEWORK, "filename is %{public}s", f.filename.c_str());
in InitFileArray() 116 data.filename = std::string(f.uri, position + 1);
in InitFileArray() 117 data.filename.erase(data.filename.find_last_not_of(" ") + 1);
in InitFileArray()
|
/base/hiviewdfx/hilog_lite/services/apphilogcat/ |
H A D | hiview_applogcat.c | 42 static int FileSize(const char *filename) in FileSize() argument 44 FILE *fp = fopen(filename, "r"); in FileSize() 59 static FILE *FileClear(FILE **fp, const char *filename) in FileClear() argument 64 *fp = fopen(filename, "w"); in FileClear() 68 printf("write file switch %s\n", filename); in FileClear()
|
/base/telephony/core_service/services/sim/src/ |
H A D | operator_file_parser.cpp | 34 bool OperatorFileParser::WriteOperatorConfigJson(std::string filename, const cJSON *root) in WriteOperatorConfigJson() argument 47 file = fopen(GetOperatorConfigFilePath(filename).c_str(), "w"); in WriteOperatorConfigJson() 90 std::string OperatorFileParser::GetOperatorConfigFilePath(std::string filename) in GetOperatorConfigFilePath() argument 92 if (filename.empty()) { in GetOperatorConfigFilePath() 93 TELEPHONY_LOGE("filename is empty"); in GetOperatorConfigFilePath() 94 return filename; in GetOperatorConfigFilePath() 96 return std::string(DEFAULT_OPERATE_CONFIG_DIR) + "/" + filename; in GetOperatorConfigFilePath()
|
/base/security/code_signature/interfaces/innerkits/code_sign_utils/include/ |
H A D | stat_utils.h | 27 int Statx(int dfd, const char *filename, int flags,
|
/base/request/request/frameworks/js/napi/include/upload/ |
H A D | upload_config.h | 27 std::string filename;
member 58 std::string filename;
member
|
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_zip_helper.cpp | 100 bool ModuleZipHelper::LocateFile(const std::string &filename) in LocateFile() argument 106 int err = unzLocateFile2(handle_, filename.c_str(), 0); in LocateFile() 108 LOG(ERROR) << filename << " is not found in " << zipPath_; in LocateFile() 113 filename_ = filename; in LocateFile()
|
/base/request/request/frameworks/js/napi/src/legacy/ |
H A D | request_manager.cpp | 184 downloadOption.filename_ = NapiUtils::Convert2String(env, option, "filename");
in ParseOption() 188 auto filename = downloadOption.filename_;
in ParseOption() local 189 while (access((downloadOption.fileDir_ + '/' + filename).c_str(), F_OK) == 0) {
in ParseOption() 191 filename = downloadOption.filename_ + std::to_string(i);
in ParseOption() 193 downloadOption.filename_ = filename;
in ParseOption() 201 bool RequestManager::IsPathValid(const std::string &dir, const std::string &filename)
in IsPathValid() argument 203 auto filepath = dir + '/' + filename;
in IsPathValid() 213 bool RequestManager::HasSameFilename(const std::string &filename)
in HasSameFilename() argument 217 if (element.second.filename_ == filename) {
in HasSameFilename() 260 CallFailCallback(env, argv[0], "filename conflic in Download() [all...] |
/base/location/services/location_locator/locator/source/ |
H A D | location_config_manager.cpp | 60 bool LocationConfigManager::IsExistFile(const std::string& filename) in IsExistFile() argument 65 if (strlen(filename.c_str()) > PATH_MAX || realpath(filename.c_str(), path) == NULL) { in IsExistFile() 80 bool LocationConfigManager::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile() argument 84 outFile.open(filename.c_str()); in CreateFile()
|
/base/startup/init/services/modules/trace/ |
H A D | init_trace.c | 159 static bool IsWritableFile(const char *filename)
in IsWritableFile() argument 164 "%s%s", workspace->traceRootPath, filename);
in IsWritableFile() 165 PLUGIN_CHECK(len > 0, return false, "Failed to format path %s", filename);
in IsWritableFile() 169 static bool WriteStrToFile(const char *filename, const char *str)
in WriteStrToFile() argument 171 PLUGIN_LOGV("WriteStrToFile filename %s %s", filename, str);
in WriteStrToFile() 175 "%s%s", workspace->traceRootPath, filename);
in WriteStrToFile() 176 PLUGIN_CHECK(len > 0, return false, "Failed to format path %s", filename);
in WriteStrToFile()
|
/base/update/sys_installer/services/module_update/util/include/ |
H A D | module_zip_helper.h | 37 bool LocateFile(const std::string &filename);
|