Home
last modified time | relevance | path

Searched refs:tempFileName (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/
H A Dfile_system.cpp151 char tempFileName[MAX_FILE_PATH] = "/usrbin/hstTmp.XXXXXX"; in GetTmpFileName() local
155 …FALSE_RETURN_V_MSG_E(pathLength < MAX_FILE_PATH && pathLength > 0, tempFileName, "get temp path fa… in GetTmpFileName()
156 auto ret = GetTempFileName(tempPath, "hstTmp", 0, tempFileName); in GetTmpFileName()
157 FALSE_RETURN_V_MSG_E(ret != 0, tempFileName, "get temp file name failed"); in GetTmpFileName()
159 mkstemp(tempFileName); in GetTmpFileName()
161 return tempFileName; in GetTmpFileName()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp166 string tempFileName; in NotifyEvent() local
172 tempFileName = found->first; in NotifyEvent()
176 string fileName = tempFileName; in NotifyEvent()
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_body_part.cpp246 std::string tempFileName = attachment.GetFileName(); in SetAttachment() local
247 if (tempFileName.empty()) { in SetAttachment()
250 tempFileName = filePathName.substr(pos + 1); in SetAttachment()
253 SetFileName(tempFileName); in SetAttachment()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp250 string tempFileName; in NotifyEvent() local
256 tempFileName = found->first; in NotifyEvent()
260 string fileName = tempFileName; in NotifyEvent()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_generate_helper.cpp415 string tempFileName = fileParentPath + "/THM_EX" + fileName.substr(fileParentPath.length()); in GetAvailableFile() local
416 if (access(tempFileName.c_str(), F_OK) == 0) { in GetAvailableFile()
417 fileName = tempFileName; in GetAvailableFile()
425 …OG("GenerateLocalThumbnail failed, path: %{public}s", DfxUtils::GetSafePath(tempFileName).c_str()); in GetAvailableFile()
H A Dthumbnail_utils.cpp1526 string tempFileName = fileName + ".tmp"; in SaveFile() local
1529 UniqueFd fd(open(tempFileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC, fileMode)); in SaveFile()
1533 UniqueFd fd(open(tempFileName.c_str(), O_WRONLY | O_TRUNC, fileMode)); in SaveFile()
1537 std::string fileParentPath = MediaFileUtils::GetParentPath(tempFileName); in SaveFile()
1539 …"exists: %{public}d", err, DfxUtils::GetSafePath(tempFileName).c_str(), MediaFileUtils::IsFileExis… in SaveFile()
1540 tempFileName), MediaFileUtils::IsFileExists(fileParentPath)); in SaveFile()
1566 errCode = MediaFileUtils::ModifyAsset(tempFileName, fileName); in SaveFile()
1569 if (!MediaFileUtils::DeleteFile(tempFileName)) { in SaveFile()
1571 errno, DfxUtils::GetSafePath(tempFileName).c_str()); in SaveFile()