Home
last modified time | relevance | path

Searched refs:fileName (Results 1 - 25 of 324) sorted by relevance

12345678910>>...13

/base/hiviewdfx/faultloggerd/test/systemtest/
H A Dfaultloggerd_system_test.cpp345 string fileName; in HWTEST_F() local
346 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_C, fileName); in HWTEST_F()
347 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; in HWTEST_F() local
348 if (pid < 0 || fileName.size() < CPPCRASH_FILENAME_MIN_LENGTH) { in HWTEST_F()
352 EXPECT_TRUE(CheckCountNum(fileName, pid, cmd)) << "ProcessDfxRequestTest001 Failed"; in HWTEST_F()
365 string fileName; in HWTEST_F() local
366 pid_t pid = TriggerCrasherAndGetFileName(cmd, CRASHER_CPP, fileName); in HWTEST_F()
367 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; in HWTEST_F() local
368 if (pid < 0 || fileName.size() < CPPCRASH_FILENAME_MIN_LENGTH) { in HWTEST_F()
372 EXPECT_TRUE(CheckCountNum(fileName, pi in HWTEST_F()
385 string fileName; HWTEST_F() local
387 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
405 string fileName; HWTEST_F() local
407 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
425 string fileName; HWTEST_F() local
427 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
445 string fileName; HWTEST_F() local
447 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
465 string fileName; HWTEST_F() local
467 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
485 string fileName; HWTEST_F() local
487 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
505 string fileName; HWTEST_F() local
507 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
525 string fileName; HWTEST_F() local
527 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
545 string fileName; HWTEST_F() local
547 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
565 string fileName; HWTEST_F() local
567 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
585 string fileName; HWTEST_F() local
587 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
605 string fileName; HWTEST_F() local
607 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
625 string fileName; HWTEST_F() local
627 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
645 string fileName; HWTEST_F() local
647 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
665 string fileName; HWTEST_F() local
667 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
685 string fileName; HWTEST_F() local
687 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
705 string fileName; HWTEST_F() local
707 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
725 string fileName; HWTEST_F() local
727 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
745 string fileName; HWTEST_F() local
747 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
765 string fileName; HWTEST_F() local
767 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
785 string fileName; HWTEST_F() local
787 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
805 string fileName; HWTEST_F() local
807 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
825 string fileName; HWTEST_F() local
827 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
845 string fileName; HWTEST_F() local
847 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
865 string fileName; HWTEST_F() local
867 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
885 string fileName; HWTEST_F() local
887 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
904 string fileName; HWTEST_F() local
906 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
924 string fileName; HWTEST_F() local
926 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
944 string fileName; HWTEST_F() local
946 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
964 string fileName; HWTEST_F() local
966 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
984 string fileName; HWTEST_F() local
986 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1004 string fileName; HWTEST_F() local
1006 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1024 string fileName; HWTEST_F() local
1026 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1044 string fileName; HWTEST_F() local
1046 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1125 string fileName = GetCppCrashFileName(readPid); HWTEST_F() local
1189 string fileName; HWTEST_F() local
1191 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1225 string fileName; HWTEST_F() local
1227 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1245 string fileName; HWTEST_F() local
1247 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1265 string fileName; HWTEST_F() local
1267 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1285 string fileName; HWTEST_F() local
1287 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1327 string fileName; HWTEST_F() local
1329 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1347 string fileName; HWTEST_F() local
1349 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1367 string fileName; HWTEST_F() local
1369 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1387 string fileName; HWTEST_F() local
1389 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1408 string fileName; HWTEST_F() local
1410 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1429 string fileName; HWTEST_F() local
1431 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1449 string fileName; HWTEST_F() local
1451 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1469 string fileName; HWTEST_F() local
1471 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1489 string fileName; HWTEST_F() local
1491 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1509 string fileName; HWTEST_F() local
1511 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1529 string fileName; HWTEST_F() local
1531 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1549 string fileName; HWTEST_F() local
1551 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1569 string fileName; HWTEST_F() local
1571 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1589 string fileName; HWTEST_F() local
1591 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1615 string fileName; HWTEST_F() local
1621 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
1639 string fileName; HWTEST_F() local
1641 GTEST_LOG_(INFO) << "test pid(" << pid << ")" << " cppcrash file name : " << fileName; HWTEST_F() local
[all...]
/base/startup/init/test/unittest/fs_manager/erofs/
H A Derofs_common_unittest.cpp65 const char *fileName = STARTUP_INIT_UT_PATH "/data/ext4_super_block"; in HWTEST_F() local
66 CheckAndCreateDir(fileName); in HWTEST_F()
67 ret = CheckIsExt4(fileName, 0); in HWTEST_F()
70 int fd = open(fileName, O_WRONLY); in HWTEST_F()
74 ret = CheckIsExt4(fileName, 0); in HWTEST_F()
77 ret = CheckIsExt4(fileName, 0); in HWTEST_F()
78 remove(fileName); in HWTEST_F()
86 const char *fileName = STARTUP_INIT_UT_PATH "/data/erofsfile"; in HWTEST_F() local
87 CheckAndCreateDir(fileName); in HWTEST_F()
88 ret = CheckIsErofs(fileName); in HWTEST_F()
[all...]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_test_file_operator.c20 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
29 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
31 HKS_TEST_LOG_E("get full fileName failed"); in GetFullFileName()
40 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist() argument
43 if (fileName == NULL) { in HksIsFileExist()
47 int32_t ret = GetFullFileName(path, fileName, &fullFileName); in HksIsFileExist()
57 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) in HksFileRead() argument
60 if ((fileName == NULL) || (blob == NULL) || (blob->data == NULL) || (blob->size == 0) || (size == NULL)) { in HksFileRead()
64 int32_t ret = GetFullFileName(path, fileName, &fullFileName); in HksFileRead()
74 int32_t HksFileWrite(const char *path, const char *fileName, uint32_ argument
91 HksFileSize(const char *path, const char *fileName) HksFileSize() argument
[all...]
/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_file_operator.c30 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
39 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
41 HKS_TEST_LOG_E("get full fileName failed"); in GetFullFileName()
52 int32_t HksTestIsFileExist(const char *path, const char *fileName) in HksTestIsFileExist() argument
54 if (fileName == NULL) { in HksTestIsFileExist()
59 int32_t ret = GetFullFileName(path, fileName, &fullFileName); in HksTestIsFileExist()
69 static int32_t FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) in FileRead() argument
77 int32_t ret = UtilsFileStat(fileName, &fileSize); in FileRead()
88 int fd = UtilsFileOpen(fileName, O_RDONLY_FS, 0); in FileRead()
103 static int32_t FileWrite(const char *fileName, uint32_ argument
131 FileSize(const char *fileName) FileSize() argument
142 HksTestFileRemove(const char *path, const char *fileName) HksTestFileRemove() argument
154 HksTestFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksTestFileRead() argument
171 HksTestFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksTestFileWrite() argument
188 HksTestFileSize(const char *path, const char *fileName) HksTestFileSize() argument
[all...]
/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_test_file_operator_func.c19 int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
32 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
36 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
44 int32_t IsFileExist(const char *fileName) in IsFileExist() argument
46 if (access(fileName, F_OK) != 0) { in IsFileExist()
53 int32_t FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) in FileRead() argument
56 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileRead()
61 (void)realpath(fileName, filePat in FileRead()
86 FileSize(const char *fileName) FileSize() argument
102 FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) FileWrite() argument
[all...]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dwm_collector_impl.cpp63 std::string fileName = CreateExportFileName("windows_info_", ".txt"); in ExportWindowsInfo() local
64 if (fileName.empty()) { in ExportWindowsInfo()
67 int fd = open(fileName.c_str(), O_WRONLY); in ExportWindowsInfo()
69 HIVIEW_LOGE("create fileName=%{public}s failed.", fileName.c_str()); in ExportWindowsInfo()
73 HIVIEW_LOGE("write cmd to file=%{public}s failed.", fileName.c_str()); in ExportWindowsInfo()
79 result.data = fileName; in ExportWindowsInfo()
93 std::string fileName = CreateExportFileName("windows_memory_", ".txt"); in ExportWindowsMemory() local
94 if (fileName.empty()) { in ExportWindowsMemory()
97 int fd = open(fileName in ExportWindowsMemory()
125 std::string fileName = CreateExportFileName("gpu_memory_", ".txt"); ExportGpuMemory() local
[all...]
H A Dcommon_util.cpp82 int CommonUtil::GetFileNameNum(const std::string& fileName, const std::string& ext) in GetFileNameNum() argument
85 auto startPos = fileName.find(UNDERLINE); in GetFileNameNum()
89 auto endPos = fileName.find(ext); in GetFileNameNum()
96 return StringUtil::StrToInt(fileName.substr(startPos + 1, endPos - startPos - 1)); in GetFileNameNum()
118 std::string fileName; in CreateExportFile() local
119 fileName.append(path).append(prefix).append(timeFormat); in CreateExportFile()
124 fileName.append(UNDERLINE).append(std::to_string(++fileNameNum)); in CreateExportFile()
127 fileName.append(ext); in CreateExportFile()
128 (void)FileUtil::CreateFile(fileName); in CreateExportFile()
129 HIVIEW_LOGI("create file=%{public}s", FileUtil::ExtractFileName(fileName) in CreateExportFile()
133 ReadNodeWithOnlyNumber(const std::string& fileName) ReadNodeWithOnlyNumber() argument
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file_operator.c32 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
45 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
49 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
56 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
65 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
67 CM_LOG_E("get full fileName failed"); in GetFullFileName()
76 static int32_t IsFileExist(const char *fileName) in IsFileExist() argument
78 if (access(fileName, F_O in IsFileExist()
93 FileRead(const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) FileRead() argument
125 FileSize(const char *fileName) FileSize() argument
142 FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len, bool isWriteBakFile) FileWrite() argument
182 FileRemove(const char *fileName) FileRemove() argument
206 CmFileRemove(const char *path, const char *fileName) CmFileRemove() argument
294 CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len) CmFileRead() argument
311 CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmFileWrite() argument
328 CmUserBackupFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) CmUserBackupFileWrite() argument
345 CmFileSize(const char *path, const char *fileName) CmFileSize() argument
488 CmIsFileExist(const char *path, const char *fileName) CmIsFileExist() argument
[all...]
/base/security/huks/utils/file_operator/
H A Dhks_file_operator_lite.c51 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
64 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
68 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
76 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
83 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
85 HKS_LOG_E("get full fileName failed"); in GetFullFileName()
95 static int32_t IsFileExist(const char *fileName) in IsFileExist() argument
98 int32_t ret = stat(fileName, in IsFileExist()
111 FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) FileRead() argument
136 FileSize(const char *fileName) FileSize() argument
148 FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) FileWrite() argument
175 FileRemove(const char *fileName) FileRemove() argument
288 IsFileExist(const char *fileName) IsFileExist() argument
298 FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) FileRead() argument
334 FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) FileWrite() argument
357 FileSize(const char *fileName) FileSize() argument
368 FileRemove(const char *fileName) FileRemove() argument
380 HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksFileRead() argument
395 HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksFileWrite() argument
410 HksFileSize(const char *path, const char *fileName) HksFileSize() argument
423 HksIsFileExist(const char *path, const char *fileName) HksIsFileExist() argument
436 HksFileRemove(const char *path, const char *fileName) HksFileRemove() argument
449 HksGetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) HksGetFileName() argument
[all...]
H A Dhks_file_operator.c36 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) in GetFileName() argument
49 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
53 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
61 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() argument
68 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
70 HKS_LOG_E("get full fileName failed"); in GetFullFileName()
93 static int32_t IsFileExist(const char *fileName) in IsFileExist() argument
95 if (access(fileName, F_O in IsFileExist()
102 FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) FileRead() argument
137 FileSize(const char *fileName) FileSize() argument
151 GetRealPath(const char *fileName, char *filePath) GetRealPath() argument
164 FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) FileWrite() argument
224 FileRemove(const char *fileName) FileRemove() argument
246 HksFileRemove(const char *path, const char *fileName) HksFileRemove() argument
263 HksIsFileExist(const char *path, const char *fileName) HksIsFileExist() argument
488 HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksFileRead() argument
507 HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksFileWrite() argument
526 HksFileSize(const char *path, const char *fileName) HksFileSize() argument
543 HksGetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen) HksGetFileName() argument
[all...]
H A Dhks_file_operator.h69 char fileName[HKS_MAX_DIRENT_FILE_LEN]; /* point to dirent->d_name */ member
76 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size);
78 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
80 int32_t HksFileRemove(const char *path, const char *fileName);
82 uint32_t HksFileSize(const char *path, const char *fileName);
84 int32_t HksIsFileExist(const char *path, const char *fileName);
100 int32_t HksGetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen);
/base/hiviewdfx/hiview/interfaces/js/napi/test/unittest/common/
H A Dloglibrary_agent_test.cpp53 std::string fileName = "List.txt"; in HWTEST_F() local
54 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "listtestcontent", true); in HWTEST_F()
62 std::string fileName = "Copy.txt"; in HWTEST_F() local
63 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "copytestcontent", true); in HWTEST_F()
64 int32_t result = HiviewServiceAgent::GetInstance().Copy(LOG_TYPE, fileName, DEST_PATH); in HWTEST_F()
70 std::string fileName = "Move.txt"; in HWTEST_F() local
71 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "movetestcontent", true); in HWTEST_F()
72 int32_t result = HiviewServiceAgent::GetInstance().Move(LOG_TYPE, fileName, DEST_PATH); in HWTEST_F()
78 std::string fileName = "Reove.txt"; in HWTEST_F() local
79 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "removetestconten in HWTEST_F()
[all...]
/base/startup/init/test/unittest/remount/
H A Dremount_overlay_unittest.cpp88 const char *fileName = ""; in HWTEST_F() local
89 int ret = GetDevSize(fileName, NULL); in HWTEST_F()
91 fileName = STARTUP_INIT_UT_PATH "/data/getDevSize"; in HWTEST_F()
92 CheckAndCreateDir(fileName); in HWTEST_F()
93 ret = GetDevSize(fileName, NULL); in HWTEST_F()
97 ret = GetDevSize(fileName, &devSize); in HWTEST_F()
99 remove(fileName); in HWTEST_F()
103 const char *fileName = ""; in HWTEST_F() local
104 int ret = GetDevSize(fileName, NULL); in HWTEST_F()
106 fileName in HWTEST_F()
[all...]
/base/hiviewdfx/hiview/adapter/service/test/unittest/common/
H A Dadapter_loglibrary_ability_test.cpp67 std::string fileName = "AbilityList.txt"; in HWTEST_F() local
68 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "AbilityListtestcontent", true); in HWTEST_F()
95 std::string fileName = "AbilityCopy.txt"; in HWTEST_F() local
96 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "AbilityCopytestcontent", true); in HWTEST_F()
98 int32_t result = ability.Copy(LOG_TYPE, fileName, DEST_PATH); in HWTEST_F()
109 std::string fileName = "AbilityCopy.txt"; in HWTEST_F() local
111 int32_t result = ability.Copy(NON_LOG_TYPE, fileName, DEST_PATH); in HWTEST_F()
122 std::string fileName = "AbilityMove.txt"; in HWTEST_F() local
123 FileUtil::SaveStringToFile(SOURCE_PATH + fileName, "AbilityMovetestcontent", true); in HWTEST_F()
125 int32_t result = ability.Move(LOG_TYPE, fileName, DEST_PAT in HWTEST_F()
136 std::string fileName = "AbilityMove.txt"; HWTEST_F() local
149 std::string fileName = "AbilityRemove.txt"; HWTEST_F() local
163 std::string fileName = "AbilityRemove.txt"; HWTEST_F() local
[all...]
/base/account/os_account/frameworks/common/test/unittest/common_account_test/
H A Daccount_log_test.cpp78 * @tc.steps: step1. Constructor fileName and execeptStr strings in HWTEST_F()
80 std::string fileName = "../base/account/test.cpp"; in HWTEST_F() local
87 std::string result = AccountLogWrapper::GetBriefFileName(fileName); in HWTEST_F()
99 std::string fileName = "test.cpp"; in HWTEST_F() local
100 std::string result = AccountLogWrapper::GetBriefFileName(fileName); in HWTEST_F()
101 EXPECT_EQ(fileName, result); in HWTEST_F()
102 fileName = ""; in HWTEST_F()
103 result = AccountLogWrapper::GetBriefFileName(fileName); in HWTEST_F()
104 EXPECT_EQ(fileName, result); in HWTEST_F()
116 * @tc.steps: step1. Constructor fileName an in HWTEST_F()
118 std::string fileName = "\\\\test.cpp"; HWTEST_F() local
[all...]
/base/startup/init/test/unittest/init/
H A Dservice_file_unittest.cpp42 const char *fileName = "/data/filetest"; in HWTEST_F() local
43 ServiceFile *fileOpt = (ServiceFile *)calloc(1, sizeof(ServiceFile) + strlen(fileName) + 1); in HWTEST_F()
51 int ret = strncpy_s(fileOpt->fileName, strlen(fileName) + 1, fileName, strlen(fileName)); in HWTEST_F()
60 ret = strncpy_s(fileOpt->fileName, strlen(fileName) + 1, "fileName", strlen("fileName")); in HWTEST_F()
[all...]
/base/security/huks/test/unittest/huks_lite_test/common/include/
H A Dhks_test_file_operator.h25 int32_t HksTestIsFileExist(const char *path, const char *fileName);
27 uint32_t HksTestFileSize(const char *path, const char *fileName);
29 int32_t HksTestFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size);
31 int32_t HksTestFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
33 int32_t HksTestFileRemove(const char *path, const char *fileName);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Dcert_manager_file_operator.h30 char fileName[CM_MAX_DIRENT_FILE_LEN]; /* point to dirent->d_name */ member
33 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t len);
35 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
38 const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
40 int32_t CmFileRemove(const char *path, const char *fileName);
42 uint32_t CmFileSize(const char *path, const char *fileName);
44 int32_t CmIsFileExist(const char *path, const char *fileName);
/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_file_operator_c.h34 int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t fullFileNameLen);
36 int32_t IsFileExist(const char *fileName);
38 int32_t FileRead(const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size);
40 uint32_t FileSize(const char *fileName);
42 int32_t FileWrite(const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
/base/tee/tee_client/services/tlogcat/src/
H A Dtarzip.c80 static void WriteHeader(struct TagHeader *header, const char *fileName, long fileSize) in WriteHeader() argument
90 if (fileName == NULL || fileSize == 0) { in WriteHeader()
94 nameLen = strlen(fileName); in WriteHeader()
97 sumAppend += WriteOneUint(j, nameLen, fileName, index); in WriteHeader()
129 static void WriteZipContent(gzFile gzFd, const char *fileName, long fileSize) in WriteZipContent() argument
135 bool cond = (gzFd == NULL || fileName == NULL || fileSize == 0); in WriteZipContent()
138 tloge("fd or fileName or fileSize invalid\n"); in WriteZipContent()
142 int32_t fileFd = open(fileName, O_CREAT | O_RDWR, ZIP_OPEN_MODE); in WriteZipContent()
221 static int32_t WriteSingleFile(const char *fileName, gzFile out) in WriteSingleFile() argument
228 if (!JudgeFileValidite(fileName, in WriteSingleFile()
255 const char **fileName = NULL; TarZipFiles() local
[all...]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/include/
H A Dhks_test_file_operator.h25 int32_t HksIsFileExist(const char *path, const char *fileName);
27 uint32_t HksFileSize(const char *path, const char *fileName);
29 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size);
31 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_extractor_utils.h60 std::string fileName = entry.first; in GetHapAbcInfo() local
61 if (!EndsWith(fileName, "modules.abc")) { in GetHapAbcInfo()
72 fileName.c_str(), (uint64_t)offset); in GetHapAbcInfo()
74 if (zipFile_->ExtractToBufByName(fileName, abcDataPtr, abcDataSize)) { in GetHapAbcInfo()
75 DFXLOGU("Hap abc: %{public}s, size: %{public}zu", fileName.c_str(), abcDataSize); in GetHapAbcInfo()
94 std::string fileName = entry.first; in GetHapSourceMapInfo() local
95 if (!EndsWith(fileName, ".map")) { in GetHapSourceMapInfo()
106 fileName.c_str(), (uint64_t)offset); in GetHapSourceMapInfo()
108 if (zipFile_->ExtractToBufByName(fileName, sourceMapPtr, sourceMapSize)) { in GetHapSourceMapInfo()
109 DFXLOGU("Hap sourcemap: %{public}s, size: %{public}zu", fileName in GetHapSourceMapInfo()
[all...]
/base/update/updateservice/services/core/ability/utils/src/
H A Dsha256_utils.cpp44 bool Sha256Utils::CheckFileSha256String(const std::string &fileName, const std::string &sha256String) in CheckFileSha256String() argument
46 if (!FileUtils::IsFileExist(fileName)) { in CheckFileSha256String()
47 ENGINE_LOGE("check file sha256 failed, fileName = %{pubilc}s is not exist", fileName.c_str()); in CheckFileSha256String()
51 if (!GetFileSha256Str(fileName, sha256Result, sizeof(sha256Result))) { in CheckFileSha256String()
62 bool Sha256Utils::GetDigestFromFile(const char *fileName, unsigned char digest[]) in GetDigestFromFile() argument
64 char *canonicalPath = realpath(fileName, NULL); in GetDigestFromFile()
66 ENGINE_LOGI("%s is not exist or invalid", fileName); in GetDigestFromFile()
86 ENGINE_LOGE("read file %{public}s error", fileName); in GetDigestFromFile()
98 bool Sha256Utils::GetFileSha256Str(const std::string &fileName, cha argument
[all...]
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage.c41 static HksStorageFileLock *CreateStorageFileLock(const char *path, const char *fileName) in CreateStorageFileLock() argument
46 int32_t ret = HksGetFileName(path, fileName, fullPath, HKS_MAX_FILE_NAME_LEN); in CreateStorageFileLock()
60 const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) in HksStorageWriteFile()
63 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageWriteFile()
65 int32_t ret = HksFileWrite(path, fileName, offset, buf, len); in HksStorageWriteFile()
70 return HksFileWrite(path, fileName, offset, buf, len); in HksStorageWriteFile()
75 const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) in HksStorageReadFile()
78 HksStorageFileLock *lock = CreateStorageFileLock(path, fileName); in HksStorageReadFile()
80 int32_t ret = HksFileRead(path, fileName, offset, blob, size); in HksStorageReadFile()
84 int32_t ret = HksFileRead(path, fileName, offse in HksStorageReadFile()
59 HksStorageWriteFile( const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len) HksStorageWriteFile() argument
74 HksStorageReadFile( const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, uint32_t *size) HksStorageReadFile() argument
90 CleanFile(const char *path, const char *fileName) CleanFile() argument
130 HksStorageRemoveFile(const char *path, const char *fileName) HksStorageRemoveFile() argument
188 GetKeyBlobFromFile(const char *path, const char *fileName, struct HksBlob *keyBlob) GetKeyBlobFromFile() argument
[all...]
/base/update/updater/services/applypatch/
H A Dstore.cpp46 int32_t Store::FreeStore(const std::string &dirPath, const std::string &fileName) in FreeStore() argument
48 if (dirPath.empty() || fileName.empty()) { in FreeStore()
51 std::string path = dirPath + "/" + fileName; in FreeStore()
99 int32_t Store::WriteDataToStore(const std::string &dirPath, const std::string &fileName, in WriteDataToStore() argument
106 if (!fileName.empty()) { in WriteDataToStore()
109 std::string path = pathTmp + fileName; in WriteDataToStore()
110 pathTmp = pathTmp + fileName; in WriteDataToStore()
140 int32_t Store::LoadDataFromStore(const std::string &dirPath, const std::string &fileName, in LoadDataFromStore() argument
143 LOG(INFO) << "Store base is " << dirPath << "/" << fileName; in LoadDataFromStore() local
145 if (!fileName in LoadDataFromStore()
[all...]

Completed in 17 milliseconds

12345678910>>...13