Home
last modified time | relevance | path

Searched refs:IsFileExist (Results 1 - 25 of 37) sorted by relevance

12

/base/startup/init/test/unittest/modules/
H A Deng_unittest.cpp70 static bool IsFileExist(const std::string &path) in IsFileExist() function
118 isExist = IsFileExist(SRC_FILE_PATH.c_str()); in HWTEST_F()
149 if (!IsFileExist(SRC_FILE_PATH.c_str())) { in HWTEST_F()
151 isExist = IsFileExist(SRC_FILE_PATH.c_str()); in HWTEST_F()
157 if (IsFileExist(SRC_FILE_PATH.c_str())) { in HWTEST_F()
159 isExist = IsFileExist(SRC_FILE_PATH.c_str()); in HWTEST_F()
168 bool isLinkFile = IsFileExist(TARGET_PATH.c_str()); in HWTEST_F()
194 if (!IsFileExist(SRC_FILE_PATH.c_str())) { in HWTEST_F()
196 isExist = IsFileExist(SRC_FILE_PATH.c_str()); in HWTEST_F()
208 if (IsFileExist(targetFil in HWTEST_F()
[all...]
/base/global/resource_management/frameworks/resmgr/src/
H A Dsystem_resource_manager.cpp109 if (Utils::IsFileExist(sysPkgNamePath)) { in LoadSystemResource()
110 if (Utils::IsFileExist(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED)) { in LoadSystemResource()
118 if (Utils::IsFileExist(sysHapNamePath)) { in LoadSystemResource()
120 if (Utils::IsFileExist(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED)) { in LoadSystemResource()
127 if (result && Utils::IsFileExist(sysHapExtNamePath)) { in LoadSystemResource()
H A Dtheme_pack_manager.cpp146 if (Utils::IsFileExist(themeFlagA)) { in LoadThemeRes()
149 } else if (Utils::IsFileExist(themeFlagB)) { in LoadThemeRes()
163 if (Utils::IsFileExist(ReplaceUserIdInPath(absoluteThemeFlagA, userId))) { in LoadSAThemeRes()
166 } else if (Utils::IsFileExist(ReplaceUserIdInPath(absoluteThemeFlagB, userId))) { in LoadSAThemeRes()
/base/update/updateservice/services/core/ability/utils/src/
H A Dfile_utils.cpp48 bool FileUtils::IsFileExist(const std::string &fileName) in IsFileExist() function in OHOS::UpdateEngine::FileUtils
86 if (!IsFileExist(rootPath)) { in DeleteFile()
118 if (IsFileExist(curDir)) { in CreateMultiDirWithPermission()
125 } while (!curDir.empty() && !IsFileExist(curDir)); in CreateMultiDirWithPermission()
161 if (!IsFileExist(dirInfo.dirName)) { in InitAndCreateBaseDirs()
H A Dsha256_utils.cpp46 if (!FileUtils::IsFileExist(fileName)) { in CheckFileSha256String()
/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_test_file_operator_func.c44 int32_t IsFileExist(const char *fileName) in IsFileExist() function
56 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileRead()
88 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileSize()
/base/theme/wallpaper_mgr/utils/src/
H A Dfile_deal.cpp76 if (!IsFileExist(sourceFile)) { in DeleteFile()
86 bool FileDeal::IsFileExist(const std::string &name) in IsFileExist() function in OHOS::WallpaperMgrService::FileDeal
121 if (!IsFileExist(outRealPath)) { in GetRealPath()
/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_file_operator_c.h36 int32_t IsFileExist(const char *fileName);
/base/theme/wallpaper_mgr/utils/include/
H A Dfile_deal.h32 static bool IsFileExist(const std::string &name);
/base/update/updater/utils/include/
H A Dutils_fs.h30 bool IsFileExist(const std::string &path);
/base/update/updater/test/unittest/utils/
H A Dutils_unittest.cpp111 HWTEST_F(UtilsUnitTest, IsFileExist, TestSize.Level0) in HWTEST_F()
113 EXPECT_EQ(Utils::IsFileExist("/bin/test_updater"), false); in HWTEST_F()
114 EXPECT_EQ(Utils::IsFileExist("/data/updater/updater/etc/fstab.ut.updater"), true); in HWTEST_F()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file_operator.c76 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
90 return IsFileExist(path); in CmIsDirExist()
96 if (IsFileExist(fileName) != CMR_OK) { in FileRead()
127 if (IsFileExist(fileName) != CMR_OK) { in FileSize()
184 int32_t ret = IsFileExist(fileName); in FileRemove()
502 ret = IsFileExist(fullFileName); in CmIsFileExist()
/base/security/huks/utils/file_operator/
H A Dhks_file_operator.c93 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
105 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), HKS_ERROR_NOT_EXIST) in FileRead()
139 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), 0) in FileSize()
226 int32_t ret = IsFileExist(fileName); in FileRemove()
275 ret = IsFileExist(fullFileName); in HksIsFileExist()
286 return IsFileExist(path); in HksIsDirExist()
H A Dhks_file_operator_lite.c95 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
203 return IsFileExist(path); in HksIsDirExist()
288 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
431 ret = IsFileExist(fullFileName); in HksIsFileExist()
/base/update/updateservice/services/core/ability/utils/include/
H A Dfile_utils.h38 static bool IsFileExist(const std::string &fileName);
/base/startup/init/test/unittest/ueventd/
H A Dueventd_event_unittest.cpp216 bool IsFileExist(const std::string &file) in IsFileExist() function
437 auto exist = IsFileExist("/dev/extcon3-1"); in HWTEST_F()
439 exist = IsFileExist("/dev/extcon3"); in HWTEST_F()
453 auto exist = IsFileExist("/dev/usb-dev"); in HWTEST_F()
468 auto exist = IsFileExist("/dev/usb-dev-1"); in HWTEST_F()
483 auto exist = IsFileExist("/dev/bus/usb/003/004"); in HWTEST_F()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_test_file_operator.c52 ret = IsFileExist(fullFileName); in HksIsFileExist()
/base/tee/tee_client/services/authentication/
H A Dtcu_authentication.c240 static bool IsFileExist(const char *name) in IsFileExist() function
278 if (!IsFileExist(hashFileList[index])) { in TcuAuthentication()
/base/global/resource_management/frameworks/resmgr/include/utils/
H A Dutils.h101 static bool IsFileExist(const std::string& filePath);
/base/update/updater/utils/
H A Dutils_fs.cpp134 bool IsFileExist(const std::string &path) in IsFileExist() function
/base/update/updater/test/fuzztest/updaterutils_fuzzer/
H A Dupdater_utils_fuzzer.cpp110 Utils::IsFileExist("/bin/test_updater"); in TestIsFileExist()
111 Utils::IsFileExist("/bin/updater_binary"); in TestIsFileExist()
/base/security/huks/test/unittest/huks_lite_test/common/
H A Dhks_test_file_operator.c64 ret = IsFileExist(fullFileName); in HksTestIsFileExist()
/base/update/updateservice/services/firmware/common/src/
H A Dfirmware_update_helper.cpp132 if (!FileUtils::IsFileExist(component.spath)) { in IsUpgradePackagesReady()
/base/update/updater/test/fuzztest/updatermain_fuzzer/
H A Dupdatermain_fuzzer.cpp251 if (!Utils::IsFileExist(filePath)) { in UtilsFuzzTest()
/base/update/updateservice/services/engine/src/
H A Dupdate_service_impl_firmware.cpp179 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetNewVersionDescription()
228 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetCurrentVersionDescription()

Completed in 13 milliseconds

12