Home
last modified time | relevance | path

Searched refs:assetName (Results 1 - 25 of 37) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/common/rosen/
H A Drosen_asset_manager.cpp19 RefPtr<Asset> RSAssetManager::GetAsset(const std::string& assetName) in GetAsset() argument
21 if (assetName.empty()) { in GetAsset()
22 LOGE("GetAsset assetName is empty"); in GetAsset()
32 auto asset = fileProvider->GetAsset(assetName); in GetAsset()
40 LOGW("find asset failed, assetName = %{public}s", assetName.c_str()); in GetAsset()
44 std::string RSAssetManager::GetAssetPath(const std::string& assetName, bool isAddHapPath) in GetAssetPath() argument
47 std::string path = provider->GetAssetPath(assetName, isAddHapPath); in GetAssetPath()
H A Drosen_asset_manager.h55 virtual RefPtr<Asset> GetAsset(const std::string &assetName) const = 0;
81 RefPtr<Asset> GetAsset(const std::string& assetName) override;
83 std::vector<RefPtr<Asset>> GetAssetFromI18n(const std::string& assetName) override
88 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override;
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dasset_manager_impl.cpp46 RefPtr<Asset> AssetManagerImpl::GetAsset(const std::string& assetName) in GetAsset() argument
48 if (assetName.empty()) { in GetAsset()
49 LOGW("GetAsset failed. assetName is null."); in GetAsset()
59 auto assetMapping = asProvider->GetAsMapping(assetName); in GetAsset()
65 LOGW("GetAsset failed: %{public}s", assetName.c_str()); in GetAsset()
69 std::vector<RefPtr<Asset>> AssetManagerImpl::GetAssetFromI18n(const std::string& assetName) in GetAssetFromI18n() argument
72 if (assetName.empty()) { in GetAssetFromI18n()
73 LOGW("GetAsset from i18n failed. assetName is null."); in GetAssetFromI18n()
83 auto assetVector = asProvider->GetAsMappingFromI18n(assetName); in GetAssetFromI18n()
91 std::string AssetManagerImpl::GetAssetPath(const std::string& assetName, boo argument
[all...]
H A Dasset_manager_impl.h44 virtual std::unique_ptr<AssetMapping> GetAsMapping(const std::string& assetName) const = 0;
45 virtual std::vector<std::unique_ptr<AssetMapping>> GetAsMappingFromI18n(const std::string& assetName) const = 0;
56 RefPtr<Asset> GetAsset(const std::string& assetName) override;
57 std::vector<RefPtr<Asset>> GetAssetFromI18n(const std::string& assetName) override;
58 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override;
/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Drs_dir_asset_provider.h56 RefPtr<Asset> GetAsset(const std::string& assetName) const override
59 LOGI("GetAsset: %{public}s, %{private}s", assetName.c_str(), basePath_.c_str());
60 std::string fileName = basePath_ + assetName;
98 LOGI("[%{public}s] length: %{public}zu/%{public}zu success", assetName.c_str(), rsize, size);
102 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override
104 std::string fileName = basePath_ + assetName;
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dhap_asset_provider_impl.cpp58 std::unique_ptr<AssetMapping> HapAssetProviderImpl::GetAsMapping(const std::string& assetName) const in GetAsMapping()
65 std::string fileName = basePath + assetName; in GetAsMapping()
81 const std::string& assetName) const in GetAsMappingFromI18n()
89 std::string fileName = basePath + assetName; in GetAsMappingFromI18n()
104 std::string HapAssetProviderImpl::GetAssetPath(const std::string& assetName, bool isAddHapPath) in GetAssetPath() argument
109 std::string fileName = basePath + assetName; in GetAssetPath()
116 LOGI("Cannot find base path of %{public}s", assetName.c_str()); in GetAssetPath()
H A Dfile_asset_provider_impl.cpp48 std::unique_ptr<AssetMapping> FileAssetProviderImpl::GetAsMapping(const std::string& assetName) const in GetAsMapping()
54 std::string fileName = packagePath_ + basePath + assetName; in GetAsMapping()
99 std::string FileAssetProviderImpl::GetAssetPath(const std::string& assetName, bool /* isAddHapPath */) in GetAssetPath() argument
104 std::string fileName = assetBasePath + assetName; in GetAssetPath()
116 LOGE("Cannot find base path of %{public}s", assetName.c_str()); in GetAssetPath()
H A Dhap_asset_provider_impl.h39 std::unique_ptr<AssetMapping> GetAsMapping(const std::string& assetName) const override;
40 std::vector<std::unique_ptr<AssetMapping>> GetAsMappingFromI18n(const std::string& assetName) const override;
42 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override;
H A Dfile_asset_provider_impl.h38 std::unique_ptr<AssetMapping> GetAsMapping(const std::string& assetName) const override;
39 std::vector<std::unique_ptr<AssetMapping>> GetAsMappingFromI18n(const std::string& assetName) const override
44 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override;
/foundation/arkui/ace_engine/frameworks/core/components/plugin/
H A Dhap_asset_provider_impl.cpp43 std::unique_ptr<AssetMapping> HapAssetProviderImpl::GetAsMapping(const std::string& assetName) const in GetAsMapping()
49 std::string fileName = basePath + assetName; in GetAsMapping()
64 std::string HapAssetProviderImpl::GetAssetPath(const std::string& assetName, bool isAddHapPath) in GetAssetPath() argument
69 std::string fileName = basePath + assetName; in GetAssetPath()
H A Dhap_asset_provider.cpp43 std::unique_ptr<fml::Mapping> HapAssetProvider::GetAsMapping(const std::string& assetName) const in GetAsMapping()
49 std::string fileName = basePath + assetName; in GetAsMapping()
64 std::string HapAssetProvider::GetAssetPath(const std::string& assetName, bool isAddHapPath) in GetAssetPath() argument
69 std::string fileName = basePath + assetName; in GetAssetPath()
H A Dhap_asset_provider_impl.h42 std::unique_ptr<AssetMapping> GetAsMapping(const std::string& assetName) const override;
44 std::vector<std::unique_ptr<AssetMapping>> GetAsMappingFromI18n(const std::string& assetName) const override
51 std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) override;
/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dasset_manager.h43 virtual std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) = 0;
67 virtual RefPtr<Asset> GetAsset(const std::string& assetName) = 0;
69 virtual std::vector<RefPtr<Asset>> GetAssetFromI18n(const std::string& assetName) = 0;
71 virtual std::string GetAssetPath(const std::string& assetName, bool isAddHapPath) = 0;
/foundation/arkui/ace_engine/test/unittest/core/common/asset/
H A Dmock_asset.h35 MOCK_METHOD(std::string, GetAssetPath, (const std::string& /* assetName */, bool /* isAddHapPath */),
41 MOCK_METHOD(RefPtr<Asset>, GetAsset, (const std::string& assetName));
50 MOCK_METHOD(RefPtr<Asset>, GetAsset, (const std::string& assetName), (override));
51 MOCK_METHOD(std::vector<RefPtr<Asset>>, GetAssetFromI18n, (const std::string& assetName), (override));
52 MOCK_METHOD(std::string, GetAssetPath, (const std::string& /* assetName */, bool /* isAddHapPath */),
H A Dasset_test.cpp147 * @tc.steps: step2. Call GetFileInfo with null assetName. in HWTEST_F()
197 * @tc.steps: step2. Call GetAsset with null assetName. in HWTEST_F()
204 * @tc.steps: step3. Call GetAsset with assetName. in HWTEST_F()
256 // assetName is empty in HWTEST_F()
257 std::string assetName = ""; in HWTEST_F() local
258 std::vector<RefPtr<Asset>> ret = assetManager->GetAssetFromI18n(assetName); in HWTEST_F()
260 // assetName is not empty in HWTEST_F()
261 assetName = "test"; in HWTEST_F()
262 std::vector<RefPtr<Asset>> ret2 = assetManager->GetAssetFromI18n(assetName); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/common/rosen/
H A Dmock_rosen.h34 MOCK_METHOD(std::string, GetAssetPath, (const std::string& /* assetName */, bool /* isAddHapPath */),
40 MOCK_METHOD(RefPtr<Asset>, GetAsset, (const std::string& assetName));
49 MOCK_METHOD(RefPtr<Asset>, GetAsset, (const std::string& assetName), (override));
50 MOCK_METHOD(std::vector<RefPtr<Asset>>, GetAssetFromI18n, (const std::string& assetName), (override));
51 MOCK_METHOD(std::string, GetAssetPath, (const std::string& /* assetName */, bool /* isAddHapPath */),
H A Drosen_test.cpp302 std::string assetName = RET_TEST; in HWTEST_F() local
303 std::string result = object.GetAssetPath(assetName, true); in HWTEST_F()
320 std::string assetName = RET_TEST; in HWTEST_F() local
321 std::string ret = object.GetAssetPath(assetName, true); in HWTEST_F()
369 * @tc.steps: step2. callback GetFileInfo input assetName is null. in HWTEST_F()
394 * @tc.steps: step2. callback GetAsset input assetName is null. in HWTEST_F()
402 * @tc.steps: step3. callback GetAsset input assetName is not null. in HWTEST_F()
405 std::string assetName = RET_TEST; in HWTEST_F() local
406 auto testAsset = object.GetAsset(assetName); in HWTEST_F()
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloudsync_kit_inner/
H A Dcloud_sync_common.h84 std::string assetName; member
95 assetName(assetInfo.assetName) in AssetInfoObj()
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/
H A Dobject_types_util.cpp23 input.assetName); in Marshalling()
29 output.assetName); in Unmarshalling()
/foundation/filemanagement/dfs_service/test/fuzztest/cloudsyncassetmanager_fuzzer/
H A Dcloudsyncassetmanager_fuzzer.cpp55 .assetName = fuzzData.GetStringFromData(len), in DownloadFileFuzzTest()
74 .assetName = fuzzData.GetStringFromData(len), in DownloadFilesFuzzTest()
99 .assetName = fuzzData.GetStringFromData(len), in DownloadFileCallbackFuzzTest()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_types_utils.cpp23 output.assetName); in Unmarshalling()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dobject_asset_machine_test.cpp65 .assetName = "asset1.jpg", in SetUp()
204 .assetName = "asset_" + timestamp + ".jpg", in HWTEST_F()
248 .assetName = "asset_006.jpg", in HWTEST_F()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/snapshot/
H A Dmachine_status.h51 std::string assetName; member
H A Dbind_event.h42 std::string assetName; member
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/
H A Dcloud_info.h31 std::string assetName; member

Completed in 7 milliseconds

12