/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/ipc/ |
H A D | cloud_daemon.cpp | 171 string cachePath = LOCAL_PATH_DATA_SERVICE_EL2 + to_string(userId) + LOCAL_PATH_HMDFS_DENTRY_CACHE; in StartFuse() local 172 if (mkdir(cachePath.c_str(), STAT_MODE_DIR) != 0 && errno != EEXIST) { in StartFuse() 176 if (chmod(cachePath.c_str(), STAT_MODE_DIR_DENTRY_CACHE) != 0) { in StartFuse() 179 if (chown(cachePath.c_str(), OID_DFS, OID_DFS) != 0) { in StartFuse()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nncompiled_cache.cpp | 214 std::string cachePath = path; in GenerateCacheModel() local 216 std::string cacheModelFile = cachePath + "/" + m_modelName + std::to_string(i) + ".nncache"; in GenerateCacheModel() 269 std::string cachePath = path; in WriteCacheInfo() local 270 std::string cacheInfoPath = cachePath + "/" + m_modelName + "cache_info.nncache"; in WriteCacheInfo() 436 OH_NN_ReturnCode NNCompiledCache::VerifyCachePath(const std::string& cachePath) const in VerifyCachePath() 439 if (cachePath.find(ROOT_DIR_STR) != size_t(0)) { in VerifyCachePath() 442 cachePath.c_str()); in VerifyCachePath() 447 if (cachePath.find(DOUBLE_SLASH_STR) != std::string::npos) { in VerifyCachePath() 450 cachePath.c_str()); in VerifyCachePath()
|
H A D | nncompiled_cache.h | 69 OH_NN_ReturnCode VerifyCachePath(const std::string& cachePath) const;
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | neural_network_core.cpp | 321 const char *cachePath, in OH_NNCompilation_SetCache() 329 if (cachePath == nullptr) { in OH_NNCompilation_SetCache() 330 LOGE("OH_NNCompilation_SetCache failed, cachePath is nullptr."); in OH_NNCompilation_SetCache() 335 compilationImpl->cachePath = const_cast<char*>(cachePath); in OH_NNCompilation_SetCache() 438 if (compilation->cachePath != nullptr) { in SetCompilationOptions() 439 ret = compilation->compiler->SetCacheDir(compilation->cachePath, compilation->cacheVersion); in SetCompilationOptions() 512 } else if (compilation->cachePath != nullptr) { in CheckExceedRamLimit() 513 ret = nnrtService.CheckModelSizeFromPath(compilation->cachePath, isExceedRamLimit); in CheckExceedRamLimit() 624 compilationImpl->nnrtModelID = nnrtService.GetNNRtModelIDFromCache(compilationImpl->cachePath, in GetNnrtModelId() 320 OH_NNCompilation_SetCache(OH_NNCompilation *compilation, const char *cachePath, uint32_t version) OH_NNCompilation_SetCache() argument 1239 std::string cachePath = ""; Scheduling() local [all...] |
H A D | compilation.h | 34 char* cachePath {nullptr};
|
H A D | cpp_type.h | 65 std::string cachePath; member
|
H A D | nnrt_client.h | 40 int (*Scheduling)(uint32_t hiaiModelId, bool* needModelLatency, const char* cachePath) = nullptr;
|
/foundation/multimedia/audio_framework/interfaces/inner_api/native/toneplayer/include/ |
H A D | tone_player.h | 75 * @param cachePath Application cache path 82 static std::shared_ptr<TonePlayer> Create(const std::string cachePath, const AudioRendererInfo &rendererInfo);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | moving_photo_file_utils.cpp | 351 string cachePath = GetLivePhotoCachePath(movingPhotoImagepath, userId); in ConvertToLivePhoto() local 352 if (MediaFileUtils::IsFileExists(cachePath)) { in ConvertToLivePhoto() 353 livePhotoPath = cachePath; in ConvertToLivePhoto() 372 if (MediaFileUtils::CreateAsset(cachePath) != E_OK) { in ConvertToLivePhoto() 373 MEDIA_ERR_LOG("Failed to create file, path:%{private}s", cachePath.c_str()); in ConvertToLivePhoto() 377 CHECK_AND_RETURN_RET_LOG(PathToRealPath(cachePath, absCachePath), in ConvertToLivePhoto() 378 E_HAS_FS_ERROR, "file is not real path: %{private}s, errno: %{public}d", cachePath.c_str(), errno); in ConvertToLivePhoto()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | medialibrary_photo_operations.h | 104 const std::string &cachePath); 106 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath); 108 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath); 115 const std::string &cachePath, const std::string &destPath);
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | ace_view.h | 141 void SetCachePath(const std::string& cachePath) in SetCachePath() argument 143 cachePath_ = cachePath; in SetCachePath()
|
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include/ |
H A D | audio_capturer.h | 192 * @param cachePath Application cache path 197 static std::unique_ptr<AudioCapturer> Create(const AudioCapturerOptions &options, const std::string cachePath); 216 * @param cachePath Application cache path 222 static std::unique_ptr<AudioCapturer> Create(const AudioCapturerOptions &options, const std::string cachePath,
|
/foundation/multimedia/audio_framework/frameworks/native/toneplayer/include/ |
H A D | tone_player_impl.h | 32 TonePlayerImpl(const std::string cachePath, const AudioRendererInfo &rendererInfo);
|
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/fuse_manager/ |
H A D | fuse_manager.cpp | 697 string cachePath = LOCAL_PATH_DATA_SERVICE_EL2 + to_string(userId) + LOCAL_PATH_HMDFS_CLOUD_CACHE + in LoadCacheFileIndex() local 702 if (access(cachePath.c_str(), F_OK) != 0) { in LoadCacheFileIndex() 704 string parentPath = filesystem::path(cachePath).parent_path().string(); in LoadCacheFileIndex() 709 int fd = open(cachePath.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); in LoadCacheFileIndex() 721 if (getxattr(cachePath.c_str(), CLOUD_CACHE_XATTR_NAME.c_str(), mp.get(), in LoadCacheFileIndex() 869 string cachePath = LOCAL_PATH_DATA_SERVICE_EL2 + to_string(data->userId) + LOCAL_PATH_HMDFS_CLOUD_CACHE + in CloudRelease() local 871 if (setxattr(cachePath.c_str(), CLOUD_CACHE_XATTR_NAME.c_str(), cInode->cacheFileIndex.get(), in CloudRelease() 1037 string cachePath = in SaveCacheToFile() local 1039 char *realPaths = realpath(cachePath.c_str(), nullptr); in SaveCacheToFile() 1278 string cachePath in ReadCacheFile() local [all...] |
/foundation/multimedia/audio_framework/frameworks/native/toneplayer/src/ |
H A D | toneplayer_impl.cpp | 58 TonePlayerImpl::TonePlayerImpl(const std::string cachePath, const AudioRendererInfo &rendereInfo) in TonePlayerImpl() argument 97 std::shared_ptr<TonePlayer> TonePlayer::Create(const std::string cachePath, const AudioRendererInfo &rendererInfo) in Create() argument 101 return std::make_shared<TonePlayerImpl>(cachePath, rendererInfo); in Create()
|
/foundation/ai/neural_network_runtime/test/system_test/ |
H A D | end_to_end_test.cpp | 381 const fs::path cachePath{CACHE_DIR}; in HWTEST_F() 382 ASSERT_EQ(false, fs::exists(cachePath)); in HWTEST_F() 383 ASSERT_EQ(true, fs::create_directory(cachePath)); in HWTEST_F() 388 ASSERT_EQ(false, fs::is_empty(cachePath)); in HWTEST_F() 428 ASSERT_GT(fs::remove_all(cachePath), (std::uintmax_t)1); in HWTEST_F()
|
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include/ |
H A D | audio_renderer.h | 216 * @param cachePath Application cache path 223 static std::unique_ptr<AudioRenderer> Create(const std::string cachePath, 241 * @param cachePath Application cache path 249 static std::unique_ptr<AudioRenderer> Create(const std::string cachePath,
|
/foundation/multimedia/audio_framework/frameworks/native/opensles/src/adapter/ |
H A D | audioplayer_adapter.cpp | 75 string cachePath = "/data/storage/el2/base/cache";
in CreateAudioPlayerAdapter() local 76 unique_ptr<AudioRenderer> rendererHolder = AudioRenderer::Create(cachePath.c_str(), rendererOptions);
in CreateAudioPlayerAdapter()
|
H A D | audiocapturer_adapter.cpp | 65 string cachePath = "/data/storage/el2/base/cache"; in CreateAudioCapturerAdapter() local 66 unique_ptr<AudioCapturer> capturerHolder = AudioCapturer::Create(capturerOptions, cachePath.c_str()); in CreateAudioCapturerAdapter()
|
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_core.h | 248 * @param cachePath Directory for storing model cache files. This method creates directories for different devices in 249 * the <b>cachePath</b> directory. You are advised to use a separate cache directory for each model. 257 OH_NN_ReturnCode OH_NNCompilation_SetCache(OH_NNCompilation *compilation, const char *cachePath, uint32_t version);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_photo_operations.cpp | 2339 MediaLibraryCommand& cmd, int32_t subtype, const string& cachePath, const string& destPath) in MoveCacheFile() 2342 return Move(cachePath, destPath); in MoveCacheFile() 2346 CHECK_AND_RETURN_RET_LOG(MediaFileUtils::CheckMovingPhotoImage(cachePath), E_INVALID_MOVING_PHOTO, in MoveCacheFile() 2360 return Move(cachePath, destPath); in MoveCacheFile() 2698 const shared_ptr<FileAsset>& fileAsset, const string& cachePath) in AddFiltersExecute() 2711 if (cachePath.empty()) { in AddFiltersExecute() 2717 MoveCacheFile(cmd, subtype, cachePath, sourcePath); in AddFiltersExecute() 2774 const shared_ptr<FileAsset>& fileAsset, const string& cachePath) in SubmitEditCacheExecute() 2790 errCode = MoveCacheFile(cmd, subtype, cachePath, assetPath); in SubmitEditCacheExecute() 2793 cachePath in SubmitEditCacheExecute() 2338 MoveCacheFile( MediaLibraryCommand& cmd, int32_t subtype, const string& cachePath, const string& destPath) MoveCacheFile() argument 2697 AddFiltersExecute(MediaLibraryCommand& cmd, const shared_ptr<FileAsset>& fileAsset, const string& cachePath) AddFiltersExecute() argument 2773 SubmitEditCacheExecute(MediaLibraryCommand& cmd, const shared_ptr<FileAsset>& fileAsset, const string& cachePath) SubmitEditCacheExecute() argument 2814 SubmitCacheExecute(MediaLibraryCommand& cmd, const shared_ptr<FileAsset>& fileAsset, const string& cachePath) SubmitCacheExecute() argument 3014 string cachePath = cacheDir + "/" + fileName; SubmitCache() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | calendar_data_adapter.h | 348 static void SetCachePath(const std::string& cachePath) in SetCachePath() argument 350 cachePath_ = cachePath; in SetCachePath()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 200 ErrCode InstalldClient::GetBundleCachePath(const std::string &dir, std::vector<std::string> &cachePath) in GetBundleCachePath() argument 207 return CallService(&IInstalld::GetBundleCachePath, dir, cachePath); in GetBundleCachePath()
|
/foundation/multimedia/av_session/services/session/server/ |
H A D | avsession_users_manager.cpp | 298 std::string cachePath(AVSessionUtils::GetCachePathName(userId)); in ClearCache() 299 AVSessionUtils::DeleteCacheFiles(cachePath); in ClearCache()
|
/foundation/multimedia/av_session/frameworks/native/session/src/ |
H A D | avsession_manager_impl.cpp | 82 std::string cachePath(AVSessionUtils::GetCachePathName()); in OnServiceDie() 83 AVSessionUtils::DeleteCacheFiles(cachePath); in OnServiceDie()
|