/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_theme_style.cpp | 201 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 D | resource_adapter_impl.cpp | 481 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 D | resource_adapter_impl_v2.cpp | 597 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 D | resource_adapter_impl_v2.h | 78 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
|
H A D | resource_adapter_impl.h | 74 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const override;
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_inotify.cpp | 59 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 D | medialibrary_asset_operations.cpp | 1921 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 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 | 459 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 D | resource_wrapper.h | 236 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 D | rosen_media_player.cpp | 182 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 D | mock_theme_constants.cpp | 125 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 D | media_asset_manager.h | 42 std::string mediaPath; member
|
/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 | theme_constants.h | 271 * @param[in] resId Target resource id, mediaPath Target media path. 274 bool GetMediaById(const int32_t& resId, std::string& mediaPath) const;
|
H A D | resource_adapter.h | 205 virtual bool GetMediaById(const int32_t& resId, std::string& mediaPath) const in GetMediaById()
|
/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_element.cpp | 370 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()
|