Home
last modified time | relevance | path

Searched refs:tempPath (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/
H A Dwidget_adapter.cpp124 auto tempPath = const_cast<std::string&> (shaderPath); in UpdateShaderPath() local
125 auto index = tempPath.find_last_of("/"); in UpdateShaderPath()
126 auto strSize = tempPath.size(); in UpdateShaderPath()
128 auto fileName = tempPath.substr(index + 1); in UpdateShaderPath()
131 tempPath = tempPath.substr(0, index); in UpdateShaderPath()
132 auto dirIndex = tempPath.find_last_of("/"); in UpdateShaderPath()
133 tempPath = (dirIndex != std::string::npos) ? tempPath.substr(0, dirIndex) : tempPath; in UpdateShaderPath()
136 auto shaderPathOut = const_cast<const std::string&> (tempPath); in UpdateShaderPath()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp194 …string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfin… in SaveVideo() local
204 if (!IsFileExist(tempPath)) { in SaveVideo()
205 MEDIA_INFO_LOG("file not exist: %{public}s", tempPath.c_str()); in SaveVideo()
208 …"video rename targetPath: %{public}s, tempPath: %{public}s", targetPath.c_str(), tempPath.c_str()); in SaveVideo()
209 return rename(tempPath.c_str(), targetPath.c_str()); in SaveVideo()
215 …string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfin… in DeleteTempVideoFile() local
216 if (IsFileExist(tempPath)) { in DeleteTempVideoFile()
217 return DeleteFile(tempPath); in DeleteTempVideoFile()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dapplication_cleaner.cpp166 const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) in GetObsoleteBundleTempPath() argument
180 std::copy(temp.begin(), temp.end(), std::back_inserter(tempPath)); in GetObsoleteBundleTempPath()
220 bool ApplicationCleaner::RemoveDir(const std::string &tempPath) in RemoveDir() argument
223 if (tempPath.empty()) { in RemoveDir()
227 if (stat(tempPath.c_str(), &buf) != 0) { in RemoveDir()
233 return OHOS::RemoveFile(tempPath); in RemoveDir()
237 return OHOS::ForceRemoveDirectory(tempPath); in RemoveDir()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dhap_manager.cpp84 std::string tempPath(path); in Init() local
85 auto pos = tempPath.rfind('\\'); in Init()
87 u_setDataDirectory(tempPath.substr(0, pos).c_str()); in Init()
93 std::string tempPath(info.dli_fname); in Init()
94 auto pos = tempPath.rfind('/'); in Init()
96 u_setDataDirectory(tempPath.substr(0, pos).c_str()); in Init()
405 const std::string tempPath = (*iter)->GetIndexPath(); in GetValidAppPath() local
409 appPath = tempPath; in GetValidAppPath()
733 if (Utils::ContainsTail(tempPath, Utils::tailSet)) { in GetValidHapPath()
734 hapPath = tempPath; in GetValidHapPath()
[all …]
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/
H A Dclient_trans_proxy_file_helper.c439 char *tempPath = (char *)SoftBusCalloc(len + 1); in CreateDirAndGetAbsPath() local
440 if (tempPath == NULL) { in CreateDirAndGetAbsPath()
445 tempPath[i] = filePath[i]; in CreateDirAndGetAbsPath()
446 if (tempPath[i] != PATH_SEPARATOR) { in CreateDirAndGetAbsPath()
449 if (SoftBusAccessFile(tempPath, SOFTBUS_F_OK) != SOFTBUS_OK) { in CreateDirAndGetAbsPath()
450 ret = SoftBusMakeDir(tempPath, DEFAULT_NEW_PATH_AUTHORITY); in CreateDirAndGetAbsPath()
453 SoftBusFree(tempPath); in CreateDirAndGetAbsPath()
459 SoftBusFree(tempPath); in CreateDirAndGetAbsPath()
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/
H A Dapplication_cleaner.h42 …soleteBundleTempPath(const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath);
43 bool RemoveDir(const std::string &tempPath);
/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/osal/filesystem/
H A Dfile_system.cpp153 char tempPath[MAX_FILE_PATH]; in GetTmpFileName() local
154 auto pathLength = GetTempPath(MAX_FILE_PATH, tempPath); in GetTmpFileName()
156 auto ret = GetTempFileName(tempPath, "hstTmp", 0, tempFileName); in GetTmpFileName()
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A Dthermal_zone_manager.cpp82 data.tempPath = path; in UpdateDataType()
109 data.tempPath = tnIter.path; in UpdateThermalZoneInfo()
189 info.temp = ThermalHdfUtils::ReadNodeToInt(iter.tempPath); in CollectCallbackInfo()
243 info.temp = ThermalHdfUtils::ReadNodeToInt(iter.tempPath); in GetCallbackInfo()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_video_capture_manager.cpp78 string tempPath = realDirPath + filePath.substr(filePath.rfind('/'), in AddVideoInternal() local
80 MEDIA_INFO_LOG("AddVideoInternal tempPath = %{public}s", tempPath.c_str()); in AddVideoInternal()
81 int dstFd = open(tempPath.c_str(), O_CREAT|O_WRONLY|O_TRUNC, fileMode); in AddVideoInternal()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dapplication_cleaner_test.cpp105 std::vector<std::string> tempPath; variable
106 int res = cleaner->GetObsoleteBundleTempPath(rootPath, tempPath);
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/
H A Dmedia_library_manager.cpp358 tempPath = prePath + postpath; in SolvePath()
406 std::string tempPath = ResultSetUtils::GetStringValFromColumn(1, resultSet); in GetFilePathFromUri() local
407 if (tempPath.find(ROOT_MEDIA_DIR) != 0) { in GetFilePathFromUri()
410 string relativePath = tempPath.substr((ROOT_MEDIA_DIR + DOCS_PATH).length()); in GetFilePathFromUri()
421 string postpath = tempPath.substr(prePath.length()); in GetFilePathFromUri()
422 tempPath = prePath + userId + "/" + postpath; in GetFilePathFromUri()
423 filePath = tempPath; in GetFilePathFromUri()
433 string tempPath; in GetUriFromFilePath() local
434 SolvePath(filePath, tempPath, userId); in GetUriFromFilePath()
435 if (tempPath.find(ROOT_MEDIA_DIR) != 0) { in GetUriFromFilePath()
[all …]
/ohos5.0/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_sensor_provision.cpp113 FormatThermalPaths(tzSysPathInfo_.tempPath, sizeof(tzSysPathInfo_.tempPath), in FormatThermalSysfsPaths()
200 tzPathMap.insert(std::make_pair(tzType, iter->tempPath)); in ParseThermalZoneInfo()
/ohos5.0/foundation/ability/dmsfwk/common/src/
H A Ddistributed_sched_utils.cpp127 std::string tempPath = g_continueCfgFullPath; in LoadContinueConfig() local
129 (g_continueCfgFullPath.empty() || !IsValidPath(tempPath, g_continueCfgFullPath))) { in LoadContinueConfig()
148 tempPath = g_continueCfgFullPath; in LoadContinueConfig()
150 if (!IsValidPath(tempPath, g_continueCfgFullPath)) { in LoadContinueConfig()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dfile_impl.cpp314 string tempPath = string(static_cast<char*>(realPath->ptr)); in GetPath() local
315 char* value = static_cast<char*>(malloc((tempPath.size() + 1) * sizeof(char))); in GetPath()
319 if (strcpy_s(value, tempPath.size() + 1, tempPath.c_str()) != 0) { in GetPath()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/
H A Ddump_utils.cpp310 std::string tempPath = file.substr(0, pos + 1); in FdToWrite() local
314 if (realpath(tempPath.c_str(), path) != nullptr) { in FdToWrite()
333 path, tempPath.c_str()); in FdToWrite()
/ohos5.0/base/theme/wallpaper_mgr/utils/include/
H A Dwallpaper_common.h72 std::string tempPath; member
/ohos5.0/base/powermgr/thermal_manager/application/protector/include/
H A Dthermal_sensor_provision.h29 char tempPath[PATH_MAX]; member
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/include/
H A Dsensor_info_config.h48 std::string tempPath; member
/ohos5.0/base/hiviewdfx/faultloggerd/test/utils/
H A Ddfx_test_util.cpp212 std::string GetCppCrashFileName(const pid_t pid, const std::string& tempPath) in GetCppCrashFileName() argument
220 OHOS::GetDirFiles(tempPath, files); in GetCppCrashFileName()
H A Ddfx_test_util.h87 std::string GetCppCrashFileName(const pid_t pid, const std::string& tempPath = TEMP_DIR);
/ohos5.0/base/telephony/call_manager/services/video/src/
H A Dvideo_control_manager.cpp123 std::string tempPath(Str16ToStr8(path)); in SetPausePicture() local
131 ret = netCall->SetPausePicture(tempPath); in SetPausePicture()
/ohos5.0/foundation/communication/netstack/frameworks/native/websocket_client/
H A Dwebsocket_client.cpp335 const char *tempPath = nullptr; in ParseUrl() local
336 (void)lws_parse_uri(uri, &tempPrefix, &tempAddress, port, &tempPath); in ParseUrl()
345 if (strcpy_s(path, MAX_URI_LENGTH, tempPath) < 0) { in ParseUrl()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/websocket/websocket_exec/src/
H A Dwebsocket_exec.cpp264 const char *tempPath = nullptr; in ParseUrl() local
265 (void)lws_parse_uri(uri, &tempProt, &tempAddress, port, &tempPath); in ParseUrl()
278 if (strcpy_s(path, pathLen, tempPath) < 0) { in ParseUrl()
609 const char *tempPath = nullptr; in FillContextInfo() local
620 if (lws_parse_uri(tempUri, &tempProtocol, &tempAddress, &tempPort, &tempPath) != 0) { in FillContextInfo()
/ohos5.0/base/update/updater/services/package/pkg_manager/
H A Dpkg_managerImpl.cpp355 const std::string tempPath = GetExtraPath(path); in ExtraAndLoadPackage() local
356 if (stat(tempPath.c_str(), &st) != 0) { in ExtraAndLoadPackage()
358 (void)mkdir(tempPath.c_str(), 0775); // 0775 : rwxrwxr-x in ExtraAndLoadPackage()
364 …ret = CreatePkgStream(stream, tempPath + name + ".tmp", info->unpackedSize, PkgStream::PkgStreamTy… in ExtraAndLoadPackage()
366 …ret = CreatePkgStream(stream, tempPath + name + ".tmp", info->unpackedSize, PkgStream::PkgStreamTy… in ExtraAndLoadPackage()
/ohos5.0/base/theme/wallpaper_mgr/services/src/
H A Dwallpaper_service.cpp1709 …wallpaperInfo.tempPath = std::string(WALLPAPER_USERID_PATH) + GetFoldStateName(wallpaperInfo.foldS… in SetAllWallpapers()
1715 errCode = WriteFdToFile(wallpaperInfo, wallpaperInfo.tempPath); in SetAllWallpapers()
1803 if (!OHOS::FileExists(wallpaperInfo.tempPath)) { in SetAllWallpaperBackupData()
1810 if (!FileDeal::CopyFile(wallpaperInfo.tempPath, wallpaperFile)) { in SetAllWallpaperBackupData()
1812 FileDeal::DeleteFile(wallpaperInfo.tempPath); in SetAllWallpaperBackupData()
1815 if (!FileDeal::DeleteFile(wallpaperInfo.tempPath)) { in SetAllWallpaperBackupData()
2033 FileDeal::DeleteFile(wallpaperFile.tempPath); in DeleteTempResource()

12