Home
last modified time | relevance | path

Searched refs:IsFileExist (Results 1 – 25 of 33) sorted by relevance

12

/base/startup/init/test/unittest/modules/
Deng_unittest.cpp70 static bool IsFileExist(const std::string &path) in IsFileExist() function
118 isExist = IsFileExist(SRC_FILE_PATH.c_str());
149 if (!IsFileExist(SRC_FILE_PATH.c_str())) {
151 isExist = IsFileExist(SRC_FILE_PATH.c_str());
157 if (IsFileExist(SRC_FILE_PATH.c_str())) {
159 isExist = IsFileExist(SRC_FILE_PATH.c_str());
168 bool isLinkFile = IsFileExist(TARGET_PATH.c_str());
194 if (!IsFileExist(SRC_FILE_PATH.c_str())) {
196 isExist = IsFileExist(SRC_FILE_PATH.c_str());
208 if (IsFileExist(targetFile)) {
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Dsystem_resource_manager.cpp105 if (Utils::IsFileExist(sysPkgNamePath)) { in LoadSystemResource()
106 if (Utils::IsFileExist(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED)) { in LoadSystemResource()
114 if (Utils::IsFileExist(sysHapNamePath)) { in LoadSystemResource()
115 if (Utils::IsFileExist(SYSTEM_RESOURCE_OVERLAY_PATH_COMPRESSED)) { in LoadSystemResource()
Dtheme_pack_manager.cpp134 if (Utils::IsFileExist(themeFlagA) && themeFlag != flagA) { in LoadThemeRes()
138 } else if (Utils::IsFileExist(themeFlagB) && themeFlag != flagB) { in LoadThemeRes()
/base/update/updateservice/services/core/ability/utils/src/
Dfile_utils.cpp47 bool FileUtils::IsFileExist(const std::string &fileName) in IsFileExist() function in OHOS::UpdateEngine::FileUtils
85 if (!IsFileExist(rootPath)) { in DeleteFile()
117 if (IsFileExist(curDir)) { in CreateMultiDirWithPermission()
124 } while (!curDir.empty() && !IsFileExist(curDir)); in CreateMultiDirWithPermission()
160 if (!IsFileExist(dirInfo.dirName)) { in InitAndCreateBaseDirs()
Dsha256_utils.cpp46 if (!FileUtils::IsFileExist(fileName)) { in CheckFileSha256String()
/base/security/huks/test/unittest/huks_common_test/src/
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/update/updater/test/unittest/utils/
Dutils_unittest.cpp111 HWTEST_F(UtilsUnitTest, IsFileExist, TestSize.Level0)
113 EXPECT_EQ(Utils::IsFileExist("/bin/test_updater"), false);
114 EXPECT_EQ(Utils::IsFileExist("/data/updater/updater/etc/fstab.ut.updater"), true);
/base/security/huks/test/unittest/huks_common_test/include/
Dhks_test_file_operator_c.h36 int32_t IsFileExist(const char *fileName);
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
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/
Dhks_file_operator.c79 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
91 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), HKS_ERROR_NOT_EXIST) in FileRead()
125 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), 0) in FileSize()
212 int32_t ret = IsFileExist(fileName); in FileRemove()
253 ret = IsFileExist(fullFileName); in HksIsFileExist()
261 return IsFileExist(path); in HksIsDirExist()
Dhks_file_operator_lite.c95 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
203 return IsFileExist(path); in HksIsDirExist()
318 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
461 ret = IsFileExist(fullFileName); in HksIsFileExist()
/base/theme/wallpaper_mgr/utils/include/
Dfile_deal.h32 static bool IsFileExist(const std::string &name);
/base/theme/wallpaper_mgr/utils/src/
Dfile_deal.cpp84 bool FileDeal::IsFileExist(const std::string &name) in IsFileExist() function in OHOS::WallpaperMgrService::FileDeal
119 if (!IsFileExist(outRealPath)) { in GetRealPath()
/base/startup/init/test/unittest/ueventd/
Dueventd_event_unittest.cpp216 bool IsFileExist(const std::string &file) in IsFileExist() function
437 auto exist = IsFileExist("/dev/extcon3-1");
439 exist = IsFileExist("/dev/extcon3");
453 auto exist = IsFileExist("/dev/usb-dev");
468 auto exist = IsFileExist("/dev/usb-dev-1");
483 auto exist = IsFileExist("/dev/bus/usb/003/004");
/base/update/updateservice/services/core/ability/utils/include/
Dfile_utils.h37 static bool IsFileExist(const std::string &fileName);
/base/tee/tee_client/services/authentication/
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/
Dutils.h67 static bool IsFileExist(const std::string& filePath);
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_file_operator.c52 ret = IsFileExist(fullFileName); in HksIsFileExist()
/base/update/updater/test/fuzztest/updaterutils_fuzzer/
Dupdater_utils_fuzzer.cpp109 Utils::IsFileExist("/bin/test_updater"); in TestIsFileExist()
110 Utils::IsFileExist("/bin/updater_binary"); in TestIsFileExist()
/base/update/updateservice/services/firmware/common/src/
Dfirmware_update_helper.cpp132 if (!FileUtils::IsFileExist(component.spath)) { in IsUpgradePackagesReady()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp356 if (FileDeal::IsFileExist(userDir)) { in OnInitUser()
379 if (!FileDeal::IsFileExist(pathName)) { in InitResources()
420 if (FileDeal::IsFileExist(WALLPAPER_PREFABRICATE_FILEFULLPATH)) { in RestoreUserResources()
424 if (FileDeal::IsFileExist(WALLPAPER_PREFABRICATE_LOCK_FILEFULLPATH)) { in RestoreUserResources()
428 if (!FileDeal::IsFileExist(wallpaperDefaultPath) || in RestoreUserResources()
429 !FileDeal::IsFileExist(GetWallpaperDir(wallpaperData.userId, wallpaperType))) { in RestoreUserResources()
470 if (!FileDeal::IsFileExist(userDir)) { in OnSwitchedUser()
/base/update/updateservice/services/engine/src/
Dupdate_service_impl_firmware.cpp179 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetNewVersionDescription()
222 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetCurrentVersionDescription()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_file_operator.c64 ret = IsFileExist(fullFileName); in HksTestIsFileExist()
/base/update/updater/utils/include/
Dutils.h73 bool IsFileExist(const std::string &path);
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_test.cpp916 isExist = fileOperation.IsFileExist(URI);
918 isExist = fileOperation.IsFileExist("/data/test/theme/wallpaper/errorURI");
955 ret = FileDeal::IsFileExist(WallpaperTest::GetUserFilePath(TEST_USERID, SYSTEM_FILE));
957 ret = FileDeal::IsFileExist(WallpaperTest::GetUserFilePath(TEST_USERID, LOCKSCREEN_FILE));

12