Home
last modified time | relevance | path

Searched refs:iconPath (Results 1 - 6 of 6) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
H A Dtheme_pack_resource.cpp81 std::shared_ptr<ThemeConfig> GetThemeConfig(const std::string &iconPath) in GetThemeConfig() argument
84 std::string resKey = GetResKey(iconPath); in GetThemeConfig()
184 const std::string &iconPath) in ParseIcon()
186 auto themeConfig = GetThemeConfig(iconPath); in ParseIcon()
187 auto pos1 = iconPath.rfind('.'); in ParseIcon()
188 auto pos2 = iconPath.rfind('/'); in ParseIcon()
190 RESMGR_HILOGE(RESMGR_TAG, "invalid iconPath = %{public}s in ParseIcon", iconPath.c_str()); in ParseIcon()
196 std::string iconName = iconPath.substr(pos2 + 1, pos1 - pos2 - 1); in ParseIcon()
199 auto themeQualifierValue = std::make_shared<ThemeQualifierValue>(themeKey, themeConfig, iconPath); in ParseIcon()
183 ParseIcon(const std::string &bundleName, const std::string &moduleName, const std::string &iconPath) ParseIcon() argument
312 GetIconsBundleName(const std::string& iconPath) GetIconsBundleName() argument
325 LoadThemeIconResource(const std::string& iconPath) LoadThemeIconResource() argument
376 std::string iconPath = GetThemeAppIconByAbilityName(bundleInfo, iconName, abilityName); GetThemeAppIcon() local
[all...]
H A Dtheme_pack_manager.cpp381 std::string iconPath; in GetOtherIconsInfo() local
384 iconPath = themeMask; in GetOtherIconsInfo()
389 iconPath = FindThemeIconResource(bundleInfo, iconName); in GetOtherIconsInfo()
393 if (iconPath.empty()) { in GetOtherIconsInfo()
398 outValue = Utils::LoadResourceFile(iconPath, len); in GetOtherIconsInfo()
/base/global/resource_management/frameworks/resmgr/test/unittest/utils/
H A Dutils_test.cpp57 std::string iconPath = "/data/test/all/assets/entry/resources/base/media/icon.png"; in HWTEST_F() local
59 RState state = Utils::GetMediaBase64Data(iconPath, base64Data); in HWTEST_F()
70 std::string iconPath = "/data/test/all/assets/entry/resources/base/media/icon_no_exist.png"; in HWTEST_F() local
72 RState state = Utils::GetMediaBase64Data(iconPath, base64Data); in HWTEST_F()
96 std::string iconPath = "/data/test/all/assets/entry/resources/base/media/icon.png"; in HWTEST_F() local
99 Utils::CanonicalizePath(iconPath.c_str(), outPath, len); in HWTEST_F()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dutils.cpp53 RState Utils::GetMediaBase64Data(const std::string& iconPath, std::string &base64Data) in GetMediaBase64Data() argument
56 auto tempData = Utils::LoadResourceFile(iconPath, len); in GetMediaBase64Data()
61 auto pos = iconPath.find_last_of('.'); in GetMediaBase64Data()
64 imgType = iconPath.substr(pos + 1); in GetMediaBase64Data()
/base/global/resource_management/frameworks/resmgr/include/utils/
H A Dutils.h107 static RState GetMediaBase64Data(const std::string& iconPath, std::string &base64Data);
/base/global/resource_management/frameworks/resmgr/include/
H A Dtheme_pack_resource.h169 void ParseIcon(const std::string &bundleName, const std::string &moduleName, const std::string &iconPath);

Completed in 5 milliseconds