Home
last modified time | relevance | path

Searched refs:mediaPath (Results 1 - 17 of 17) sorted by relevance

/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_theme_style.cpp201 std::string mediaPath; in OnParseResourceMedia() local
203 mediaPath = RES_PATH_TAG; in OnParseResourceMedia()
205 mediaPath.append(RES_HAP_PATH); in OnParseResourceMedia()
212 mediaPath += attrValue.substr(pos + 1); in OnParseResourceMedia()
214 mediaPath += attrValue; in OnParseResourceMedia()
223 mediaPath = std::string(RES_TAG) + attrValue.substr(pos + 1); in OnParseResourceMedia()
225 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = mediaPath }; in OnParseResourceMedia()
H A Dresource_adapter_impl.cpp481 std::string mediaPath = ""; in GetMediaPath() local
484 auto state = manager->GetMediaById(resId, mediaPath); in GetMediaPath()
490 return "file:///" + mediaPath; in GetMediaPath()
492 auto pos = mediaPath.find_last_of('.'); in GetMediaPath()
494 LOGE("GetMediaById error, return mediaPath[%{private}s] format error", mediaPath.c_str()); in GetMediaPath()
497 return "resource:///" + std::to_string(resId) + mediaPath.substr(pos); in GetMediaPath()
502 std::string mediaPath = ""; in GetMediaPathByName() local
507 auto state = manager->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
514 return "file:///" + mediaPath; in GetMediaPathByName()
[all...]
H A Dresource_adapter_impl_v2.cpp597 std::string mediaPath = ""; in GetMediaPath() local
600 auto state = manager->GetMediaById(resId, mediaPath); in GetMediaPath()
606 return "file:///" + mediaPath; in GetMediaPath()
608 auto pos = mediaPath.find_last_of('.'); in GetMediaPath()
612 return "resource:///" + std::to_string(resId) + mediaPath.substr(pos); in GetMediaPath()
617 std::string mediaPath = ""; in GetMediaPathByName() local
622 auto state = manager->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
630 return "file:///" + mediaPath; in GetMediaPathByName()
632 auto pos = mediaPath.find_last_of('.'); in GetMediaPathByName()
636 return "resource:///" + actualResName + mediaPath in GetMediaPathByName()
[all...]
H A Dresource_adapter_impl_v2.h78 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
H A Dresource_adapter_impl.h74 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_inotify.cpp59 string mediaPath = path; in ConvertMediaPath() local
62 if (mediaPath.find(localPath) != string::npos) { in ConvertMediaPath()
63 mediaPath.replace(mediaPath.find(localPath), localPath.length(), cloudPath); in ConvertMediaPath()
65 return mediaPath; in ConvertMediaPath()
H A Dmedialibrary_asset_operations.cpp1921 string mediaPath = "/storage/media/local/"; in ConvertMediaPathFromCloudPath() local
1925 newPath.replace(newPath.find(cloudPath), cloudPath.length(), mediaPath); in ConvertMediaPathFromCloudPath()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresource_adapter_impl.cpp457 std::string mediaPath = ""; in GetMediaPath() local
458 auto ret = resourceManger_.GetString(static_cast<int32_t>(resId), mediaPath); in GetMediaPath()
463 return "resource://" + mediaPath.substr(0, mediaPath.find_last_of("/")) + "/" + in GetMediaPath()
464 std::to_string(resId) + mediaPath.substr(mediaPath.find_last_of(".")); in GetMediaPath()
H A Dresource_adapter_impl_standard.cpp459 std::string mediaPath = ""; in GetMediaPath() local
461 auto state = resourceManager_->GetMediaById(resId, mediaPath); in GetMediaPath()
467 return "file://" + mediaPath; in GetMediaPath()
474 std::string mediaPath = ""; in GetMediaPathByName() local
477 auto state = resourceManager_->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
484 return "file://" + mediaPath; in GetMediaPathByName()
/foundation/arkui/ace_engine/frameworks/core/common/resource/
H A Dresource_wrapper.h236 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById()
239 return resourceAdapter_->GetMediaById(resId, mediaPath); in GetMediaById()
241 return themeConstants_->GetMediaById(resId, mediaPath); in GetMediaById()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_media_player.cpp182 std::string mediaPath; in MediaPlay() local
183 auto getMediaPathState = themeConstants->GetMediaById(resId, mediaPath); in MediaPlay()
189 std::string videoFilePath = mediaPath.substr(mediaPath.find("resources/base")); in MediaPlay()
/foundation/arkui/ace_engine/test/mock/core/common/
H A Dmock_theme_constants.cpp125 bool ThemeConstants::GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById()
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_asset_manager.h42 std::string mediaPath; member
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_constants.cpp319 bool ThemeConstants::GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById()
324 return resAdapter_->GetMediaById(resId, mediaPath); in GetMediaById()
H A Dtheme_constants.h271 * @param[in] resId Target resource id, mediaPath Target media path.
274 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const;
H A Dresource_adapter.h205 virtual bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById()
/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dvideo_element.cpp370 std::string mediaPath; in MediaPlay() local
371 auto state1 = themeConstants->GetMediaById(resId, mediaPath); in MediaPlay()
377 auto state2 = assetManager->GetFileInfo(mediaPath.substr(mediaPath.find("resources/base")), fileInfo); in MediaPlay()

Completed in 18 milliseconds