Home
last modified time | relevance | path

Searched refs:tempPath (Results 1 - 22 of 22) sorted by relevance

/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()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/utils/
H A Dfile_utils.cpp190 string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfind('.')); in SaveVideo() local
200 if (!IsFileExist(tempPath)) { in SaveVideo()
201 MEDIA_INFO_LOG("file not exist: %{public}s", tempPath.c_str()); in SaveVideo()
204 MEDIA_INFO_LOG("video rename targetPath: %{public}s, tempPath: %{public}s", targetPath.c_str(), tempPath.c_str()); in SaveVideo()
205 return rename(tempPath.c_str(), targetPath.c_str()); in SaveVideo()
211 string tempPath = filePath.substr(0, filePath.rfind('.')) + "_tmp" + filePath.substr(filePath.rfind('.')); in DeleteTempVideoFile() local
212 if (IsFileExist(tempPath)) { in DeleteTempVideoFile()
213 return DeleteFile(tempPath); in DeleteTempVideoFile()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dapplication_cleaner.cpp163 const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) in GetObsoleteBundleTempPath()
177 std::copy(temp.begin(), temp.end(), std::back_inserter(tempPath)); in GetObsoleteBundleTempPath()
217 bool ApplicationCleaner::RemoveDir(const std::string &tempPath) in RemoveDir() argument
220 if (tempPath.empty()) { in RemoveDir()
224 if (stat(tempPath.c_str(), &buf) != 0) { in RemoveDir()
230 return OHOS::RemoveFile(tempPath); in RemoveDir()
234 return OHOS::ForceRemoveDirectory(tempPath); in RemoveDir()
162 GetObsoleteBundleTempPath( const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) GetObsoleteBundleTempPath() argument
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/
H A Dapplication_cleaner.h42 int GetObsoleteBundleTempPath(const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath);
43 bool RemoveDir(const std::string &tempPath);
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dapplication_cleaner_test.cpp105 std::vector<std::string> tempPath; in HWTEST_F() local
106 int res = cleaner->GetObsoleteBundleTempPath(rootPath, tempPath); in HWTEST_F()
/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()
/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()
441 TRANS_LOGE(TRANS_FILE, "calloc tempPath failed"); 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()
/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()
/foundation/ability/dmsfwk/common/src/
H A Ddistributed_sched_utils.cpp136 std::string tempPath = g_continueCfgFullPath; in LoadContinueConfig() local
138 (g_continueCfgFullPath.empty() || !IsValidPath(tempPath, g_continueCfgFullPath))) { in LoadContinueConfig()
157 tempPath = g_continueCfgFullPath; in LoadContinueConfig()
159 if (!IsValidPath(tempPath, g_continueCfgFullPath)) { in LoadContinueConfig()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Ddsched_sync_e2e.cpp180 std::string tempPath = continueCfgFullPath_; in LoadContinueConfig() local
181 if ((continueCfgFullPath_.empty() || !IsValidPath(tempPath, continueCfgFullPath_))) { in LoadContinueConfig()
195 tempPath = continueCfgFullPath_; in LoadContinueConfig()
196 if (!IsValidPath(tempPath, continueCfgFullPath_)) { in LoadContinueConfig()
/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()
H A Dcopy.cpp142 fs::path tempPath(path); in GetRealPath()
144 for (const auto& component : tempPath) { in GetRealPath()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/
H A Dmedia_library_manager.cpp342 static int32_t SolvePath(const string &filePath, string &tempPath, string &userId) in SolvePath() argument
359 tempPath = prePath + postpath; in SolvePath()
407 std::string tempPath = ResultSetUtils::GetStringValFromColumn(1, resultSet); in GetFilePathFromUri() local
408 if (tempPath.find(ROOT_MEDIA_DIR) != 0) { in GetFilePathFromUri()
411 string relativePath = tempPath.substr((ROOT_MEDIA_DIR + DOCS_PATH).length()); in GetFilePathFromUri()
422 string postpath = tempPath.substr(prePath.length()); in GetFilePathFromUri()
423 tempPath = prePath + userId + "/" + postpath; in GetFilePathFromUri()
424 filePath = tempPath; in GetFilePathFromUri()
434 string tempPath; in GetUriFromFilePath() local
435 SolvePath(filePath, tempPath, userI in GetUriFromFilePath()
[all...]
/foundation/communication/netstack/frameworks/native/websocket_client/
H A Dwebsocket_client.cpp342 const char *tempPath = nullptr; in ParseUrl() local
343 (void)lws_parse_uri(uri, &tempPrefix, &tempAddress, port, &tempPath); in ParseUrl()
352 if (strcpy_s(path, MAX_URI_LENGTH, tempPath) < 0) { in ParseUrl()
/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()
618 const char *tempPath = nullptr; in FillContextInfo() local
629 if (lws_parse_uri(tempUri, &tempProtocol, &tempAddress, &tempPort, &tempPath) != 0) { in FillContextInfo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/
H A Dverify_manager_host_impl.cpp439 std::string tempPath = tempRootDir + abcPaths[i]; in MoveAbc() local
455 result = InstalldClient::GetInstance()->MoveFile(tempPath, targetPath); in MoveAbc()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_store_impl.cpp1439 std::string tempPath = backupFilePath + ".tmp"; in Backup() local
1440 if (access(tempPath.c_str(), F_OK) == E_OK) { in Backup()
1443 if (access(backupFilePath.c_str(), F_OK) == E_OK && !SqliteUtils::RenameFile(backupFilePath, tempPath)) { in Backup()
1453 SqliteUtils::RenameFile(tempPath, backupFilePath); in Backup()
1456 SqliteUtils::DeleteFile(tempPath); in Backup()
2160 std::string tempPath = destPath + ".tmp"; in GetDestPath() local
2161 if (access(tempPath.c_str(), F_OK) == E_OK) { in GetDestPath()
2162 destPath = tempPath; in GetDestPath()
/foundation/distributedhardware/distributed_input/services/source/inputinject/src/
H A Ddistributed_input_node_manager.cpp165 for (auto &tempPath: vecInputDevPath) { in ScanSinkInputDevices()
166 if (MatchAndSavePhysicalPath(tempPath, devId, dhId)) { in ScanSinkInputDevices()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_deployer.cpp60 std::string tempPath = path.substr(0, path.rfind(ServiceConstants::PATH_SEPARATOR)); in DeployQuickFix()
61 if (InstalldClient::GetInstance()->RemoveDir(tempPath) != ERR_OK) { in DeployQuickFix()
62 LOG_E(BMS_TAG_DEFAULT, "RemovePatchFile failed path: %{private}s", tempPath.c_str()); in DeployQuickFix()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopy.cpp355 fs::path tempPath(path); in GetRealPath()
357 for (const auto& component : tempPath) { in GetRealPath()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime.cpp1353 std::string tempPath = std::regex_replace(sourceMapPath, std::regex("ets"), "assets/js"); in ReadSourceMapData() local
1354 if (!extractor->ExtractToBufByName(tempPath, dataPtr, len)) { in ReadSourceMapData()
1356 tempPath.c_str()); in ReadSourceMapData()
/foundation/distributedhardware/distributed_input/common/include/
H A Dinput_hub.cpp525 for (const auto &tempPath: inputDevPaths) { in ScanInputDevices()
526 if (IsInputNodeNoNeedScan(tempPath)) { in ScanInputDevices()
529 OpenInputDeviceLocked(tempPath); in ScanInputDevices()

Completed in 25 milliseconds