Home
last modified time | relevance | path

Searched refs:IsFileExist (Results 1 – 25 of 27) 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()
/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
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()
Dsha256_utils.cpp45 if (!FileUtils::IsFileExist(fileName)) { in CheckFileSha256String()
/base/update/updater/test/unittest/utils/
Dutils_unittest.cpp109 HWTEST_F(UtilsUnitTest, IsFileExist, TestSize.Level0)
111 EXPECT_EQ(Utils::IsFileExist("/bin/test_updater"), false);
112 EXPECT_EQ(Utils::IsFileExist("/bin/updater_binary"), true);
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_file_operator.c79 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
91 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileRead()
119 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileSize()
186 ret = IsFileExist(fullFileName); in HksIsFileExist()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_file_operator.c89 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
101 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileRead()
129 if (IsFileExist(fileName) != HKS_SUCCESS) { in FileSize()
196 ret = IsFileExist(fullFileName); in HksTestIsFileExist()
/base/theme/wallpaper_mgr/utils/include/
Dfile_deal.h32 static bool IsFileExist(const std::string &name);
/base/theme/wallpaper_mgr/utils/src/
Dfile_deal.cpp90 bool FileDeal::IsFileExist(const std::string &name) in IsFileExist() function in OHOS::WallpaperMgrService::FileDeal
125 if (!IsFileExist(outRealPath)) { in GetRealPath()
/base/security/huks/utils/file_operator/
Dhks_file_operator.c78 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
90 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), 0) in FileRead()
113 HKS_IF_NOT_SUCC_RETURN(IsFileExist(fileName), 0) in FileSize()
184 int32_t ret = IsFileExist(fileName); in FileRemove()
225 ret = IsFileExist(fullFileName); in HksIsFileExist()
233 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/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file_operator.c74 static int32_t IsFileExist(const char *fileName) in IsFileExist() function
88 return IsFileExist(path); in CmIsDirExist()
94 if (IsFileExist(fileName) != CMR_OK) { in FileRead()
122 if (IsFileExist(fileName) != CMR_OK) { in FileSize()
174 int32_t ret = IsFileExist(fileName); in FileRemove()
454 ret = IsFileExist(fullFileName); in CmIsFileExist()
/base/update/updateservice/services/core/ability/utils/include/
Dfile_utils.h34 static bool IsFileExist(const std::string &fileName);
/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/global/resource_management/frameworks/resmgr/include/utils/
Dutils.h65 static bool IsFileExist(const std::string& filePath);
/base/update/updater/utils/include/
Dutils.h72 bool IsFileExist(const std::string &path);
/base/update/updateservice/services/firmware/common/src/
Dfirmware_update_helper.cpp131 if (!FileUtils::IsFileExist(component.spath)) { in IsUpgradePackagesReady()
/base/update/updateservice/services/engine/src/
Dupdate_service_impl_firmware.cpp157 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetNewVersionDescription()
200 if (!FileUtils::IsFileExist(changelogFilePath)) { in GetCurrentVersionDescription()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp337 if (FileDeal::IsFileExist(userDir)) { in OnInitUser()
360 if (!FileDeal::IsFileExist(pathName)) { in InitResources()
401 if (FileDeal::IsFileExist(WALLPAPER_PREFABRICATE_FILEFULLPATH)) { in RestoreUserResources()
405 if (FileDeal::IsFileExist(WALLPAPER_PREFABRICATE_LOCK_FILEFULLPATH)) { in RestoreUserResources()
409 if (!FileDeal::IsFileExist(wallpaperDefaultPath) || in RestoreUserResources()
410 !FileDeal::IsFileExist(GetWallpaperDir(wallpaperData.userId, wallpaperType))) { in RestoreUserResources()
449 if (!FileDeal::IsFileExist(userDir)) { in OnSwitchedUser()
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_test.cpp914 isExist = fileOperation.IsFileExist(URI);
916 isExist = fileOperation.IsFileExist("/data/test/theme/wallpaper/errorURI");
953 ret = FileDeal::IsFileExist(WallpaperTest::GetUserFilePath(TEST_USERID, SYSTEM_FILE));
955 ret = FileDeal::IsFileExist(WallpaperTest::GetUserFilePath(TEST_USERID, LOCKSCREEN_FILE));
/base/telephony/core_service/interfaces/innerkits/include/
Dresource_utils.h228 bool IsFileExist(const std::string &filePath);
/base/telephony/core_service/frameworks/native/src/
Dresource_utils.cpp393 if (IsFileExist(hapPath)) { in Init()
397 } else if (IsFileExist(resPath)) { in Init()
569 bool ResourceUtils::IsFileExist(const std::string &filePath) in IsFileExist() function in OHOS::Telephony::ResourceUtils
/base/global/resource_management/frameworks/resmgr/include/
Dresource_manager_impl.h571 bool IsFileExist(const std::string& path);
/base/global/resource_management/frameworks/resmgr/src/utils/
Dutils.cpp450 bool Utils::IsFileExist(const std::string& filePath) in IsFileExist() function in OHOS::Global::Resource::Utils
/base/update/updater/utils/
Dutils.cpp620 bool IsFileExist(const std::string &path) in IsFileExist() function

12