/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/ |
H A D | widget_adapter.cpp | 124 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 D | file_utils.cpp | 194 …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 D | application_cleaner.cpp | 166 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 D | hap_manager.cpp | 84 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 D | client_trans_proxy_file_helper.c | 439 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 D | application_cleaner.h | 42 …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 D | file_system.cpp | 153 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 D | thermal_zone_manager.cpp | 82 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 D | multistages_video_capture_manager.cpp | 78 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 D | application_cleaner_test.cpp | 105 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 D | media_library_manager.cpp | 358 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 D | thermal_sensor_provision.cpp | 113 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 D | distributed_sched_utils.cpp | 127 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 D | file_impl.cpp | 314 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 D | dump_utils.cpp | 310 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 D | wallpaper_common.h | 72 std::string tempPath; member
|
/ohos5.0/base/powermgr/thermal_manager/application/protector/include/ |
H A D | thermal_sensor_provision.h | 29 char tempPath[PATH_MAX]; member
|
/ohos5.0/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
H A D | sensor_info_config.h | 48 std::string tempPath; member
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 212 std::string GetCppCrashFileName(const pid_t pid, const std::string& tempPath) in GetCppCrashFileName() argument 220 OHOS::GetDirFiles(tempPath, files); in GetCppCrashFileName()
|
H A D | dfx_test_util.h | 87 std::string GetCppCrashFileName(const pid_t pid, const std::string& tempPath = TEMP_DIR);
|
/ohos5.0/base/telephony/call_manager/services/video/src/ |
H A D | video_control_manager.cpp | 123 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 D | websocket_client.cpp | 335 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 D | websocket_exec.cpp | 264 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 D | pkg_managerImpl.cpp | 355 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 D | wallpaper_service.cpp | 1709 …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()
|