/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_theme_style.cpp | 205 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 D | resource_adapter_impl.cpp | 482 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 D | resource_adapter_impl_v2.cpp | 600 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 D | resource_adapter_impl.h | 74 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
|
H A D | resource_adapter_impl_v2.h | 78 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 D | medialibrary_inotify.cpp | 61 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 D | medialibrary_asset_operations.cpp | 1763 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 D | resource_adapter_impl.cpp | 457 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 D | resource_adapter_impl_standard.cpp | 458 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 D | rosen_media_player.cpp | 183 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 D | resource_wrapper.h | 290 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 D | media_asset_manager.h | 42 std::string mediaPath; member
|
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/common/ |
H A D | mock_theme_constants.cpp | 125 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 D | theme_constants.cpp | 319 bool ThemeConstants::GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById() 324 return resAdapter_->GetMediaById(resId, mediaPath); in GetMediaById()
|
H A D | resource_adapter.h | 205 virtual bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById() argument
|
H A D | theme_constants.h | 274 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_element.cpp | 385 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 D | resource_manager_impl.cpp | 1402 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()
|