Home
last modified time | relevance | path

Searched refs:cachePath (Results 1 – 25 of 79) sorted by relevance

1234

/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnncompiled_cache.cpp222 std::string cachePath = path; in GenerateCacheModel() local
224 std::string cacheModelFile = cachePath + "/" + m_modelName + std::to_string(i) + ".nncache"; in GenerateCacheModel()
277 std::string cachePath = path; in WriteCacheInfo() local
278 std::string cacheInfoPath = cachePath + "/" + m_modelName + "cache_info.nncache"; in WriteCacheInfo()
438 OH_NN_ReturnCode NNCompiledCache::VerifyCachePath(const std::string& cachePath) const in VerifyCachePath()
441 if (cachePath.find(ROOT_DIR_STR) != size_t(0)) { in VerifyCachePath()
444 cachePath.c_str()); in VerifyCachePath()
449 if (cachePath.find(DOUBLE_SLASH_STR) != std::string::npos) { in VerifyCachePath()
452 cachePath.c_str()); in VerifyCachePath()
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/ipc/
H A Dcloud_daemon.cpp172 …string cachePath = LOCAL_PATH_DATA_SERVICE_EL2 + to_string(userId) + LOCAL_PATH_HMDFS_DENTRY_CACHE; in StartFuse() local
173 if (mkdir(cachePath.c_str(), STAT_MODE_DIR) != 0 && errno != EEXIST) { in StartFuse()
177 if (chmod(cachePath.c_str(), STAT_MODE_DIR_DENTRY_CACHE) != 0) { in StartFuse()
180 if (chown(cachePath.c_str(), OID_DFS, OID_DFS) != 0) { in StartFuse()
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dneural_network_core.cpp321 const char *cachePath, in OH_NNCompilation_SetCache() argument
329 if (cachePath == nullptr) { in OH_NNCompilation_SetCache()
335 compilationImpl->cachePath = const_cast<char*>(cachePath); in OH_NNCompilation_SetCache()
438 if (compilation->cachePath != nullptr) { in SetCompilationOptions()
512 } else if (compilation->cachePath != nullptr) { in CheckExceedRamLimit()
513 ret = nnrtService.CheckModelSizeFromPath(compilation->cachePath, isExceedRamLimit); in CheckExceedRamLimit()
638 } else if (compilationImpl->cachePath != nullptr) { in GetNnrtModelId()
640 nnrtService.GetNNRtModelIDFromCache(compilationImpl->cachePath, modelName.c_str()); in GetNnrtModelId()
1246 std::string cachePath = ""; in Scheduling() local
1247 if (compilationImpl->cachePath != nullptr) { in Scheduling()
[all …]
H A Dcompilation.h34 char* cachePath {nullptr};
H A Dnnrt_client.h40 … int (*Scheduling)(uint32_t hiaiModelId, bool* needModelLatency, const char* cachePath) = nullptr;
H A Dcpp_type.h65 std::string cachePath; member
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/audio_adapter/audiocreaterender_fuzzer/
H A Daudiocreaterender_fuzzer.cpp96 std::string cachePath(reinterpret_cast<const char*>(data), size); in AudioCreateRenderFuzzTest()
98 adapter.Create(rendererOptions, cachePath); in AudioCreateRenderFuzzTest()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_audio_capturer_adapter_wrapper.cpp30 const std::shared_ptr<NWeb::AudioCapturerOptionsAdapter> capturerOptions, std::string cachePath) in Create() argument
32 ArkWebString str = ArkWebStringClassToStruct(cachePath); in Create()
H A Dark_audio_renderer_adapter_wrapper.cpp30 const std::shared_ptr<NWeb::AudioRendererOptionsAdapter> options, std::string cachePath) in Create() argument
32 ArkWebString str = ArkWebStringClassToStruct(cachePath); in Create()
H A Dark_audio_capturer_adapter_wrapper.h30 std::string cachePath = std::string()) override;
H A Dark_audio_renderer_adapter_wrapper.h30 std::string cachePath = std::string()) override;
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_audio_capturer_adapter_impl.cpp31 const ArkWebRefPtr<ArkAudioCapturerOptionsAdapter> capturerOptions, ArkWebString& cachePath) in Create() argument
33 std::string str = ArkWebStringStructToClass(cachePath); in Create()
H A Dark_audio_renderer_adapter_impl.cpp31 const ArkWebRefPtr<ArkAudioRendererOptionsAdapter> options, ArkWebString& cachePath) in Create() argument
33 std::string str = ArkWebStringStructToClass(cachePath); in Create()
H A Dark_audio_capturer_adapter_impl.h30 …const ArkWebRefPtr<ArkAudioCapturerOptionsAdapter> capturerOptions, ArkWebString& cachePath) overr…
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/toneplayer/src/
H A Dtoneplayer_impl.cpp58 TonePlayerImpl::TonePlayerImpl(const std::string cachePath, const AudioRendererInfo &rendereInfo) in TonePlayerImpl() argument
78 if (!cachePath.empty()) { in TonePlayerImpl()
80 cachePath_.assign(cachePath); in TonePlayerImpl()
103 std::shared_ptr<TonePlayer> TonePlayer::Create(const std::string cachePath, const AudioRendererInfo… in Create() argument
107 return std::make_shared<TonePlayerImpl>(cachePath, rendererInfo); in Create()
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/audio_adapter/audiocapturer_fuzzer/
H A Daudiocaptureradapter_fuzzer.cpp84 std::string cachePath(reinterpret_cast<const char*>(data), size); in AudioCapturerFuzzTest()
87 adapter.Create(capturerOptions, cachePath); in AudioCapturerFuzzTest()
/ohos5.0/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocapturer/include/
H A Daudio_capturer.h192 …unique_ptr<AudioCapturer> Create(const AudioCapturerOptions &options, const std::string cachePath);
204 …:unique_ptr<AudioCapturer> Create(const AudioCapturerOptions &options, const std::string cachePath,
439 virtual void SetApplicationCachePath(const std::string cachePath) = 0;
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_photo_operations.h114 const std::string &cachePath);
116 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath);
118 const std::shared_ptr<FileAsset> &fileAsset, const std::string &cachePath);
125 const std::string &cachePath, const std::string &destPath);
/ohos5.0/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiorenderer/include/
H A Daudio_renderer.h218 static std::unique_ptr<AudioRenderer> Create(const std::string cachePath,
231 static std::unique_ptr<AudioRenderer> Create(const std::string cachePath,
715 virtual void SetApplicationCachePath(const std::string cachePath) = 0;
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp350 string cachePath = GetLivePhotoCachePath(movingPhotoImagepath, userId); in ConvertToLivePhoto() local
351 if (MediaFileUtils::IsFileExists(cachePath)) { in ConvertToLivePhoto()
352 livePhotoPath = cachePath; in ConvertToLivePhoto()
371 if (MediaFileUtils::CreateAsset(cachePath) != E_OK) { in ConvertToLivePhoto()
372 MEDIA_ERR_LOG("Failed to create file, path:%{private}s", cachePath.c_str()); in ConvertToLivePhoto()
376 CHECK_AND_RETURN_RET_LOG(PathToRealPath(cachePath, absCachePath), in ConvertToLivePhoto()
377 …E_HAS_FS_ERROR, "file is not real path: %{private}s, errno: %{public}d", cachePath.c_str(), errno); in ConvertToLivePhoto()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/
H A Dace_view.h141 void SetCachePath(const std::string& cachePath) in SetCachePath() argument
143 cachePath_ = cachePath; in SetCachePath()
/ohos5.0/base/web/webview/ohos_adapter/audio_adapter/src/
H A Daudio_capturer_adapter_mock.cpp21 const std::shared_ptr<AudioCapturerOptionsAdapter> capturerOptions, std::string cachePath) in Create() argument
H A Daudio_renderer_adapter_mock.cpp22 const std::shared_ptr<AudioRendererOptionsAdapter> rendererOptions, std::string cachePath) in Create() argument
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/
H A Dend_to_end_test.cpp381 const fs::path cachePath{CACHE_DIR}; variable
382 ASSERT_EQ(false, fs::exists(cachePath));
383 ASSERT_EQ(true, fs::create_directory(cachePath));
388 ASSERT_EQ(false, fs::is_empty(cachePath));
428 ASSERT_GT(fs::remove_all(cachePath), (std::uintmax_t)1);
/ohos5.0/foundation/multimedia/audio_framework/interfaces/inner_api/native/toneplayer/include/
H A Dtone_player.h81 …static std::shared_ptr<TonePlayer> Create(const std::string cachePath, const AudioRendererInfo &re…

1234