Home
last modified time | relevance | path

Searched refs:mediaPath (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_theme_style.cpp205 std::string mediaPath; in OnParseResourceMedia() local
207 mediaPath = RES_PATH_TAG; in OnParseResourceMedia()
209 mediaPath.append(RES_HAP_PATH); in OnParseResourceMedia()
216 mediaPath += attrValue.substr(pos + 1); in OnParseResourceMedia()
218 mediaPath += attrValue; in OnParseResourceMedia()
227 mediaPath = std::string(RES_TAG) + attrValue.substr(pos + 1); in OnParseResourceMedia()
229 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = mediaPath }; in OnParseResourceMedia()
H A Dresource_adapter_impl.cpp482 std::string mediaPath = ""; in GetMediaPath() local
485 auto state = manager->GetMediaById(resId, mediaPath); in GetMediaPath()
491 return "file:///" + mediaPath; in GetMediaPath()
493 auto pos = mediaPath.find_last_of('.'); in GetMediaPath()
498 return "resource:///" + std::to_string(resId) + mediaPath.substr(pos); in GetMediaPath()
503 std::string mediaPath = ""; in GetMediaPathByName() local
508 auto state = manager->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
515 return "file:///" + mediaPath; in GetMediaPathByName()
517 auto pos = mediaPath.find_last_of('.'); in GetMediaPathByName()
522 return "resource:///" + actualResName + mediaPath.substr(pos); in GetMediaPathByName()
[all …]
H A Dresource_adapter_impl_v2.cpp600 std::string mediaPath = ""; in GetMediaPath() local
603 auto state = manager->GetMediaById(resId, mediaPath); in GetMediaPath()
609 return "file:///" + mediaPath; in GetMediaPath()
611 auto pos = mediaPath.find_last_of('.'); in GetMediaPath()
615 return "resource:///" + std::to_string(resId) + mediaPath.substr(pos); in GetMediaPath()
620 std::string mediaPath = ""; in GetMediaPathByName() local
625 auto state = manager->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
633 return "file:///" + mediaPath; in GetMediaPathByName()
635 auto pos = mediaPath.find_last_of('.'); in GetMediaPathByName()
639 return "resource:///" + actualResName + mediaPath.substr(pos); in GetMediaPathByName()
[all …]
H A Dresource_adapter_impl.h74 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
H A Dresource_adapter_impl_v2.h78 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_inotify.cpp61 string mediaPath = path; in ConvertMediaPath() local
64 if (mediaPath.find(localPath) != string::npos) { in ConvertMediaPath()
65 mediaPath.replace(mediaPath.find(localPath), localPath.length(), cloudPath); in ConvertMediaPath()
67 return mediaPath; in ConvertMediaPath()
H A Dmedialibrary_asset_operations.cpp1763 string mediaPath = "/storage/media/local/"; in ConvertMediaPathFromCloudPath() local
1767 newPath.replace(newPath.find(cloudPath), cloudPath.length(), mediaPath); in ConvertMediaPathFromCloudPath()
/ohos5.0/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.cpp458 std::string mediaPath = ""; in GetMediaPath() local
460 auto state = resourceManager_->GetMediaById(resId, mediaPath); in GetMediaPath()
466 return "file://" + mediaPath; in GetMediaPath()
473 std::string mediaPath = ""; in GetMediaPathByName() local
476 auto state = resourceManager_->GetMediaByName(actualResName.c_str(), mediaPath); in GetMediaPathByName()
483 return "file://" + mediaPath; in GetMediaPathByName()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_media_player.cpp183 std::string mediaPath; in MediaPlay() local
184 auto getMediaPathState = themeConstants->GetMediaById(resId, mediaPath); in MediaPlay()
190 std::string videoFilePath = mediaPath.substr(mediaPath.find("resources/base")); in MediaPlay()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/resource/
H A Dresource_wrapper.h290 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById() argument
294 return resourceAdapter_->GetMediaById(resId, mediaPath); in GetMediaById()
297 return themeConstants_->GetMediaById(resId, mediaPath); in GetMediaById()
/ohos5.0/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
H A Dmedia_asset_manager.h42 std::string mediaPath; member
/ohos5.0/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()
/ohos5.0/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 Dresource_adapter.h205 virtual bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById() argument
H A Dtheme_constants.h274 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Dvideo_element.cpp385 std::string mediaPath; in MediaPlay() local
386 auto state1 = themeConstants->GetMediaById(resId, mediaPath); in MediaPlay()
392 …auto state2 = assetManager->GetFileInfo(mediaPath.substr(mediaPath.find("resources/base")), fileIn… in MediaPlay()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dresource_manager_impl.cpp1402 std::string mediaPath = idItem->value_; in GetSuffix() local
1403 auto pos = mediaPath.find_last_of('.'); in GetSuffix()
1407 return mediaPath.substr(pos + 1); in GetSuffix()