Home
last modified time | relevance | path

Searched refs:pathName (Results 1 – 10 of 10) sorted by relevance

/base/startup/init/interfaces/innerkits/file/
Dinit_file.c29 int GetControlFile(const char *pathName) in GetControlFile() argument
31 if (pathName == NULL) { in GetControlFile()
35 …R_CHECK(snprintf_s(path, sizeof(path), sizeof(path) - 1, OHOS_FILE_ENV_PREFIX "%s", pathName) >= 0, in GetControlFile()
/base/startup/init/services/init/
Dinit_service_file.c56 static int SetFileEnv(int fd, const char *pathName) in SetFileEnv() argument
58 INIT_ERROR_CHECK(pathName != NULL, return -1, "Invalid fileName"); in SetFileEnv()
61 HOS_FILE_ENV_PREFIX "%s", pathName) >= 0, return -1, "Failed snprintf_s err=%d", errno); in SetFileEnv()
/base/telephony/sms_mms/test/unittest/
Dmms_msg_test.h51 …MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) con…
Dmms_msg_test.cpp648 …MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) con… in MmsAddAttachment() argument
651 std::size_t pos = pathName.find_last_of('/'); in MmsAddAttachment()
652 std::string fileName(pathName.substr(pos + 1)); in MmsAddAttachment()
654 if (!imageAttachment.SetAttachmentFilePath(pathName, isSmil)) { in MmsAddAttachment()
/base/telephony/sms_mms/test/gtest/
Dmms_gtest.cpp233 const std::string pathName = "/data/app/enSrc/618C0A89.smil"; variable
234 std::size_t pos = pathName.find_last_of('/');
235 std::string fileName(pathName.substr(pos + 1));
241 retBool = attachment.SetAttachmentFilePath(pathName, true);
244 EXPECT_STREQ(retStr.c_str(), pathName.c_str());
/base/update/updater/utils/include/
Dutils.h50 int MkdirRecursive(const std::string &pathName, mode_t mode);
/base/update/updater/utils/
Dutils.cpp86 int MkdirRecursive(const std::string &pathName, mode_t mode) in MkdirRecursive() argument
91 slashPos = pathName.find_first_of("/", slashPos); in MkdirRecursive()
103 auto subDir = pathName.substr(0, slashPos); in MkdirRecursive()
113 int ret = mkdir(pathName.c_str(), mode); in MkdirRecursive()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp354 std::string pathName; in InitResources() local
355 if (!GetFileNameFromMap(userId, wallpaperType, pathName)) { in InitResources()
359 if (!FileDeal::IsFileExist(pathName)) { in InitResources()
628 std::string pathName; in SaveColor() local
629 if (!GetPictureFileName(userId, wallpaperType, pathName)) { in SaveColor()
633 OHOS::Media::ImageSource::CreateImageSource(pathName, opts, errorCode); in SaveColor()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_image_source.cpp84 std::unique_ptr<ImageSource> ImageSource::CreateImageSource(const std::string &pathName, const Sour… in CreateImageSource() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/
Dnotification_rdb_data_mgr_test.cpp161 … const std::string &alias, const std::string &pathName, const std::vector<uint8_t> destEncryptKey) in Attach() argument