Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 1238) sorted by relevance

12345678910>>...50

/ohos5.0/base/hiviewdfx/faultloggerd/test/systemtest/
H A Dfaultloggerd_system_test.cpp345 string fileName; variable
365 string fileName; variable
385 string fileName; variable
405 string fileName; variable
425 string fileName; variable
445 string fileName; variable
465 string fileName; variable
485 string fileName; variable
505 string fileName; variable
525 string fileName; variable
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_layout/
H A Dui_auto_test_basic_layout.cpp53 CompareByBinary(fileName); in UIKitBasicLayoutTestMargin001()
70 CompareByBinary(fileName); in UIKitBasicLayoutTestPadding001()
78 CompareByBinary(fileName); in UIKitBasicLayoutTestCenterOfParent001()
86 CompareByBinary(fileName); in UIKitBasicLayoutTestLeftOfParent001()
94 CompareByBinary(fileName); in UIKitBasicLayoutTestRightOfParent001()
102 CompareByBinary(fileName); in UIKitBasicLayoutTestTopOfParent001()
110 CompareByBinary(fileName); in UIKitBasicLayoutTestBottomOfParent001()
118 CompareByBinary(fileName); in UIKitBasicLayoutTestLeftOfSibling001()
126 CompareByBinary(fileName); in UIKitBasicLayoutTestRightOfSibling001()
134 CompareByBinary(fileName); in UIKitBasicLayoutTestTopOfSibling001()
[all …]
/ohos5.0/base/security/huks/utils/file_operator/
H A Dhks_file_operator_lite.c64 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
68 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
98 int32_t ret = stat(fileName, &fileStat); in IsFileExist()
114 int32_t fd = open(fileName, O_RDONLY); in FileRead()
136 static uint32_t FileSize(const char *fileName) in FileSize() argument
140 if (stat(fileName, &fileStat) != 0) { in FileSize()
178 int32_t ret = stat(fileName, &fileStat); in FileRemove()
192 if (unlink(fileName) != 0) { in FileRemove()
247 … if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in HksGetDirFile()
250 direntInfo->fileName[len] = '\0'; in HksGetDirFile()
[all …]
H A Dhks_file_operator.c49 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
53 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
95 if (access(fileName, F_OK) != 0) { in IsFileExist()
107 if (strstr(fileName, "../") != NULL) { in FileRead()
143 if (stat(fileName, &fileStat) != 0) { in FileSize()
153 if (memcpy_s(filePath, PATH_MAX, fileName, strlen(fileName)) != EOK) { in GetRealPath()
171 (void)realpath(fileName, filePath); in FileWrite()
226 int32_t ret = IsFileExist(fileName); in FileRemove()
230 if (stat(fileName, &tmp) != 0) { in FileRemove()
332 … if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in HksGetDirFile()
[all …]
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file_operator.c45 if (strncat_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
49 if (strncpy_s(fullFileName, fullFileNameLen, fileName, strlen(fileName)) != EOK) { in GetFileName()
78 if (access(fileName, F_OK) != 0) { in IsFileExist()
146 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileWrite()
154 (void)realpath(fileName, filePath); in FileWrite()
184 int32_t ret = IsFileExist(fileName); in FileRemove()
190 if (stat(fileName, &tmp) != 0) { in FileRemove()
208 if (fileName == NULL) { in CmFileRemove()
284 … if (memcpy_s(direntInfo->fileName, sizeof(direntInfo->fileName) - 1, dire->d_name, len) != EOK) { in CmGetDirFile()
347 if (fileName == NULL) { in CmFileSize()
[all …]
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_file_operator.c39 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); 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()
77 int32_t ret = UtilsFileStat(fileName, &fileSize); in FileRead()
88 int fd = UtilsFileOpen(fileName, O_RDONLY_FS, 0); in FileRead()
131 static uint32_t FileSize(const char *fileName) in FileSize() argument
134 int32_t ret = UtilsFileStat(fileName, &fileSize); in FileSize()
173 if ((fileName == NULL) || (buf == NULL) || (len == 0)) { in HksTestFileWrite()
188 uint32_t HksTestFileSize(const char *path, const char *fileName) in HksTestFileSize() argument
[all …]
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_xml_utils.cpp118 if (IsFileExist(fileName)) { in XmlReadFile()
119 doc = ReadFile(fileName); in XmlReadFile()
133 if (RenameFromBackupFile(fileName)) { in XmlReadFile()
134 return ReadFile(fileName); in XmlReadFile()
144 if (fileName.size() == 0) { in ReadSettingXml()
307 if (IsFileExist(fileName) && !RenameToBackupFile(fileName)) { in XmlSaveFormatFileEnc()
316 if (IsFileExist(fileName)) { in XmlSaveFormatFileEnc()
321 RenameFromBackupFile(fileName); in XmlSaveFormatFileEnc()
325 RemoveBackupFile(fileName); in XmlSaveFormatFileEnc()
328 if (!Fsync(fileName)) { in XmlSaveFormatFileEnc()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp46 auto iter = wdFileNameMap_.find(fileName); in CheckEventWatched()
60 if (iter->fileName == arg->fileName && iter->events == arg->events) { in AddWatcherInfo()
82 if (iter->fileName == arg->fileName && iter->wd > 0) { in RemoveWatcherInfo()
113 wdFileNameMap_[data_->fileName].first = newWd; in StartNotify()
130 wdFileNameMap_[fileName].second = watchEvents; in NotifyToWatchNewEvents()
176 string fileName = tempFileName; in NotifyEvent() local
178 if ((iter->fileName == fileName) && (iter->wd > 0)) { in NotifyEvent()
185 fileName += "/" + string(event->name); in NotifyEvent()
188 .fileName = fileName.c_str(), in NotifyEvent()
225 wdFileNameMap_.erase(data_->fileName); in StopNotify()
[all …]
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dfile_operator.c24 static bool IsFileExist(const char *fileName) in IsFileExist() argument
26 if (fileName == NULL) { in IsFileExist()
30 FILE *fileOperator = fopen(fileName, "rb"); in IsFileExist()
44 FILE *fileOperator = fopen(fileName, "rb"); in ReadFile()
65 FILE *fileOperator = fopen(fileName, "wb"); in WriteFile()
72 if (chmod(fileName, S_IRUSR | S_IWUSR) != 0) { in WriteFile()
93 if ((fileName == NULL) || (len == NULL)) { in GetFileLen()
97 FILE *fileOperator = fopen(fileName, "rb"); in GetFileLen()
118 static int32_t DeleteFile(const char *fileName) in DeleteFile() argument
120 if (fileName == NULL) { in DeleteFile()
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c31 if (fileName == NULL) { in SoftBusCreateFile()
36 char *dir = (char *)fileName; in SoftBusCreateFile()
38 uint32_t len = (uint32_t)(dir - fileName); in SoftBusCreateFile()
136 if (access(fileName, F_OK) != 0 && SoftBusCreateFile(fileName) != SOFTBUS_OK) { in SoftBusWriteFile()
173 if (fileName == NULL) { in SoftBusOpenFile()
177 int32_t fd = open(fileName, flags); in SoftBusOpenFile()
187 if (fileName == NULL) { in SoftBusOpenFileWithPerms()
199 void SoftBusRemoveFile(const char *fileName) in SoftBusRemoveFile() argument
201 if (fileName == NULL) { in SoftBusRemoveFile()
205 if (remove(fileName) != 0) { in SoftBusRemoveFile()
[all …]
/ohos5.0/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_test_file_operator_func.c32 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()
56 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileRead()
61 (void)realpath(fileName, filePath); in FileRead()
86 uint32_t FileSize(const char *fileName) in FileSize() argument
88 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileSize()
94 if (stat(fileName, &fileStat) != 0) { in FileSize()
106 if (memcpy_s(filePath, sizeof(filePath) - 1, fileName, strlen(fileName)) != EOK) { in FileWrite()
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dfile_operator.c31 IAM_STATIC bool IsFileExist(const char *fileName) in IsFileExist() argument
33 if (fileName == NULL) { in IsFileExist()
37 FILE *fileOperator = fopen(fileName, "rb"); in IsFileExist()
51 FILE *fileOperator = fopen(fileName, "rb"); in ReadFile()
73 FILE *fileOperator = fopen(fileName, "wb"); in WriteFile()
80 if (chmod(fileName, S_IRUSR | S_IWUSR) != 0) { in WriteFile()
101 if ((fileName == NULL) || (len == NULL)) { in GetFileLen()
106 FILE *fileOperator = fopen(fileName, "rb"); in GetFileLen()
127 IAM_STATIC int32_t DeleteFile(const char *fileName) in DeleteFile() argument
129 if (fileName == NULL) { in DeleteFile()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp60 auto iter = wdFileNameMap_.find(fileName); in CheckEventWatched()
96 wdFileNameMap_[arg->fileName].first = newWd; in StartNotify()
97 wdFileNameMap_[arg->fileName].second = watchEvents; in StartNotify()
113 wdFileNameMap_[fileName].second = watchEvents; in NotifyToWatchNewEvents()
156 wdFileNameMap_.erase(arg->fileName); in StopNotify()
161 wdFileNameMap_.erase(arg->fileName); in StopNotify()
214 if (iter->fileName == arg->fileName && iter->events == arg->events) { in AddWatcherInfo()
232 if (iter->fileName == arg->fileName && iter->wd > 0) { in RemoveWatcherInfo()
260 string fileName = tempFileName; in NotifyEvent() local
262 if ((iter->fileName == fileName) && (iter->wd > 0)) { in NotifyEvent()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_bundle_extractor.cpp61 char *fileName = nullptr; in ExtractHap() local
78 UI_Free(fileName); in ExtractHap()
83 UI_Free(fileName); in ExtractHap()
85 fileName = nullptr; in ExtractHap()
92 char *fileName = nullptr; in ExtractHapProfile() local
107 UI_Free(fileName); in ExtractHapProfile()
113 UI_Free(fileName); in ExtractHapProfile()
123 UI_Free(fileName); in ExtractHapProfile()
138 char *fileName = nullptr; in ExtractResourceFile() local
178 UI_Free(fileName); in ExtractResourceFile()
[all …]
/ohos5.0/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()
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()
64 int32_t ret = GetFullFileName(path, fileName, &fullFileName); in HksFileRead()
77 if ((fileName == NULL) || (buf == NULL) || (len == 0)) { in HksFileWrite()
81 int32_t ret = GetFullFileName(path, fileName, &fullFileName); in HksFileWrite()
91 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize() argument
94 if (fileName == NULL) { in HksFileSize()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avmuxer/
H A Davmuxer_demo_common.c21 .fileName = "mpeg_44100_2.dat",
29 .fileName = "aac_44100_2.dat",
37 .fileName = "amrnb_8000_1.dat",
45 .fileName = "amrwb_16000_1.dat",
53 .fileName = "g711mu_44100_2.dat",
69 .fileName = "h264_720_480.dat",
83 .fileName = "mpeg4_720_480.dat",
97 .fileName = "h265_720_480.dat",
125 .fileName = "greatwall.jpg",
132 .fileName = "greatwall.png",
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_asset_recv_listener_test.cpp221 string fileName = "test"; variable
224 fileName.clear();
225 fileName = "/data/test/ASSET_TEMP/";
228 fileName.clear();
229 fileName = "/data/test/ASSET_TEMP/";
231 EXPECT_EQ(SoftbusAssetRecvListener::RemoveAsset(fileName), true);
247 fileName = "test";
261 string fileName = "demoA/ASSET_TEMP/test.asset_single?"; variable
266 fileName = "demoB/ASSET_TEMP/test.asset_single?";
280 string fileName = "test"; variable
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_file.c34 if (fileName == NULL || readBuf == NULL || maxLen == 0) { in SoftBusReadFullFile()
38 int32_t fd = UtilsFileOpen(fileName, O_RDONLY_FS, 0); in SoftBusReadFullFile()
43 int32_t ret = UtilsFileStat(fileName, &fileLen); in SoftBusReadFullFile()
72 if (fileName == NULL || writeBuf == NULL) { in SoftBusWriteFile()
101 int32_t SoftBusOpenFile(const char *fileName, int32_t flags) in SoftBusOpenFile() argument
103 (void)fileName; in SoftBusOpenFile()
110 (void)fileName; in SoftBusOpenFileWithPerms()
116 void SoftBusRemoveFile(const char *fileName) in SoftBusRemoveFile() argument
118 (void)fileName; in SoftBusRemoveFile()
157 int32_t SoftBusGetFileSize(const char *fileName, uint64_t *fileSize) in SoftBusGetFileSize() argument
[all …]
/ohos5.0/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()
79 result.data = fileName; in ExportWindowsInfo()
94 if (fileName.empty()) { in ExportWindowsMemory()
97 int fd = open(fileName.c_str(), O_WRONLY); in ExportWindowsMemory()
109 result.data = fileName; in ExportWindowsMemory()
125 std::string fileName = CreateExportFileName("gpu_memory_", ".txt"); in ExportGpuMemory() local
126 if (fileName.empty()) { in ExportGpuMemory()
130 bool isSuccess = FileUtil::SaveStringToFile(fileName, content, true); in ExportGpuMemory()
[all …]
/ohos5.0/base/hiviewdfx/hiview/adapter/service/test/unittest/common/
H A Dadapter_loglibrary_ability_test.cpp67 std::string fileName = "AbilityList.txt"; variable
95 std::string fileName = "AbilityCopy.txt"; variable
98 int32_t result = ability.Copy(LOG_TYPE, fileName, DEST_PATH);
109 std::string fileName = "AbilityCopy.txt"; variable
122 std::string fileName = "AbilityMove.txt"; variable
125 int32_t result = ability.Move(LOG_TYPE, fileName, DEST_PATH);
136 std::string fileName = "AbilityMove.txt"; variable
149 std::string fileName = "AbilityRemove.txt"; variable
152 int32_t result = ability.Remove(LOG_TYPE, fileName);
163 std::string fileName = "AbilityRemove.txt"; variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/
H A DdisableLogs.js66 function loadFile(fileName) { argument
69 content = fs.readFileSync(fileName) + "\n";
71 console.error(`While trying to read source file ${fileName}: ${err}`);
74 console.log(` Read source file ${fileName}: ${content.length} Bytes.`)
78 function saveFile(fileName, content) { argument
79 fs.writeFileSync(fileName, content);
80 console.log(` Logs disabled. '${fileName}': ${content.length} Bytes. OK.`);
90 let fileName = process.argv[2];
92 console.log(`Loading file to disable console.logs. File: ${fileName}`);
95 let content = loadFile(fileName);
[all …]
H A DdisableProfiler.js65 function loadFile(fileName) { argument
68 content = fs.readFileSync(fileName) + '\n';
70 console.error(`While trying to read source file ${fileName}: ${err}`);
73 console.log(` Read source file ${fileName}: ${content.length} Bytes.`)
77 function saveFile(fileName, content) { argument
78 fs.writeFileSync(fileName, content);
79 … console.log(`Calls for stateMgmtProfiler disabled. '${fileName}': ${content.length} Bytes. OK.`);
89 let fileName = process.argv[2];
91 console.log(`Loading file to disable stateMgmtProfiler calls. File: ${fileName}`);
94 let content = loadFile(fileName);
[all …]
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dextractor.cpp92 bool Extractor::HasEntry(const std::string &fileName) const in HasEntry()
99 return zipFile_.HasEntry(fileName); in HasEntry()
121 if (!zipFile_.ExtractFile(fileName, dest)) { in ExtractByName()
132 std::string fileName = entry.first; in GetSpecifiedTypeFiles() local
133 auto position = fileName.rfind('.'); in GetSpecifiedTypeFiles()
137 fileNames.emplace_back(fileName); in GetSpecifiedTypeFiles()
160 std::string relativePath = GetRelativePath(fileName); in GetData()
166 std::string relativePath = GetRelativePath(fileName); in GetSafeData()
176 std::string relativePath = GetRelativePath(fileName); in GetMmapData()
213 std::string relativePath = GetRelativePath(fileName); in ExtractToBufByName()
[all …]
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dhap_asset_provider_impl.cpp68 std::string fileName = basePath + assetName; in GetAsMapping() local
69 bool hasFile = runtimeExtractor_->HasEntry(fileName); in GetAsMapping()
75 hasFile = runtimeExtractor_->GetFileBuffer(fileName, osstream); in GetAsMapping()
95 std::string fileName = basePath + assetName; in GetAsMappingFromI18n() local
96 bool hasFile = runtimeExtractor_->HasEntry(fileName); in GetAsMappingFromI18n()
101 hasFile = runtimeExtractor_->GetFileBuffer(fileName, osstream); in GetAsMappingFromI18n()
115 std::string fileName = basePath + assetName; in GetAssetPath() local
116 bool hasFile = runtimeExtractor_->HasEntry(fileName); in GetAssetPath()
120 return isAddHapPath ? (hapPath_ + "/" + basePath) : fileName; in GetAssetPath()
157 LOGE("GetFileInfo failed, fileName=%{public}s", fileName.c_str()); in GetFileInfo()
[all …]
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage.c66 int32_t ret = HksFileWrite(path, fileName, offset, buf, len); in HksStorageWriteFile()
71 return HksFileWrite(path, fileName, offset, buf, len); in HksStorageWriteFile()
91 static int32_t CleanFile(const char *path, const char *fileName) in CleanFile() argument
93 uint32_t size = HksFileSize(path, fileName); in CleanFile()
135 ret = CleanFile(path, fileName); in HksStorageRemoveFile()
143 ret = HksFileRemove(path, fileName); in HksStorageRemoveFile()
147 ret = HksFileRemove(path, fileName); in HksStorageRemoveFile()
191 uint32_t size = HksFileSize(path, fileName); in GetKeyBlobFromFile()
394 uint32_t nameLen = strlen(dire.fileName); in GetFileNameList()
401 dire.fileName, nameLen) != EOK) { in GetFileNameList()
[all …]

12345678910>>...50