Home
last modified time | relevance | path

Searched refs:ResValueWrapper (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_style.h60 struct ResValueWrapper { struct
79 using ThemeConstantsMap = std::unordered_map<uint32_t, ResValueWrapper>; argument
106 void SetAttributes(const std::unordered_map<std::string, ResValueWrapper>& attributes) in SetAttributes()
112 const std::unordered_map<std::string, ResValueWrapper>& GetAttributes() const in GetAttributes()
124 void SetAttr(const std::string& attr, const ResValueWrapper& value) in SetAttr()
161 std::unordered_map<std::string, ResValueWrapper> attributes_;
177 void SetStateValue(uint32_t state, const ResValueWrapper& value) in SetStateValue()
198 std::unordered_map<uint32_t, ResValueWrapper> states_;
H A Dtheme_utils.h35 struct ResValueWrapper;
45 static ResValueWrapper ParseStyleValue(
46 uint32_t styleId, const ResValueWrapper& model, const std::string& value);
H A Dtheme_constants.h370 ResValueWrapper value = { .type = ThemeConstantsType::PATTERN, in GetPatternByName()
378 static const ResValueWrapper* GetPlatformConstants(uint32_t key);
379 static const ResValueWrapper* styleMapDefault[];
382 static const ResValueWrapper* styleMapWatch[];
385 static const ResValueWrapper* styleMapTv[];
389 ResValueWrapper GetValue(uint32_t key) const;
H A Dtheme_utils.cpp106 ResValueWrapper ThemeUtils::ParseStyleValue( in ParseStyleValue()
107 uint32_t styleId, const ResValueWrapper& model, const std::string& value) in ParseStyleValue()
109 ResValueWrapper resultValue = { .type = model.type, .isPublic = model.isPublic }; in ParseStyleValue()
H A Dtheme_constants.cpp23 const ResValueWrapper ERROR_VALUE = { .type = ThemeConstantsType::ERROR };
43 bool ValueTypeMatch(const ResValueWrapper& valueWrapper, uint32_t key, const ThemeConstantsType& ex… in ValueTypeMatch()
66 const ResValueWrapper* ThemeConstants::GetPlatformConstants(uint32_t key) in GetPlatformConstants()
406 ResValueWrapper ThemeConstants::GetValue(uint32_t key) const in GetValue()
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/common/
H A Dmock_theme_utils.cpp26 ResValueWrapper ThemeUtils::ParseStyleValue( in ParseStyleValue()
27 uint32_t styleId, const ResValueWrapper& model, const std::string& value) in ParseStyleValue()
H A Dtheme_mock.cpp25 std::unordered_map<int32_t, std::unordered_map<std::string, ResValueWrapper>> g_themes = {
33 std::unordered_map<uint32_t, std::unordered_map<std::string, ResValueWrapper>> g_componentStyles = {
44 const std::unordered_map<uint32_t, std::unordered_map<uint32_t, ResValueWrapper>> STATE_ELEMENTS = {
53 const std::unordered_map<uint32_t, ResValueWrapper> RESOURCES = {
63 const std::unordered_map<std::string, ResValueWrapper> RESOURCES_WITH_NAME = {
H A Dmock_theme_constants.cpp24 const ResValueWrapper ERROR_VALUE = { .type = ThemeConstantsType::ERROR };
30 const ResValueWrapper* ThemeConstants::GetPlatformConstants(uint32_t key) in GetPlatformConstants()
165 ResValueWrapper ThemeConstants::GetValue(uint32_t key) const in GetValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/theme/
H A Dtheme_mock.cpp25 std::unordered_map<int32_t, std::unordered_map<std::string, ResValueWrapper>> g_themes = {
33 std::unordered_map<uint32_t, std::unordered_map<std::string, ResValueWrapper>> g_componentStyles = {
44 const std::unordered_map<uint32_t, std::unordered_map<uint32_t, ResValueWrapper>> STATE_ELEMENTS = {
53 const std::unordered_map<uint32_t, ResValueWrapper> RESOURCES = {
63 const std::unordered_map<std::string, ResValueWrapper> RESOURCES_WITH_NAME = {
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/
H A Dtest_ng.cpp117 std::unordered_map<std::string, ResValueWrapper> attributes; in CreateThemeConstants()
118 ResValueWrapper resValueWrapper; in CreateThemeConstants()
121 attributes.insert(std::pair<std::string, ResValueWrapper>(patternName, resValueWrapper)); in CreateThemeConstants()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_field_pattern_testtwo.cpp276 ResValueWrapper handleOuterDiameter { .type = ThemeConstantsType::DIMENSION, .value = 100 };
279 ResValueWrapper resValueWrapper { .type = ThemeConstantsType::THEME, .value = themeStyle };
280 std::unordered_map<std::string, ResValueWrapper> attributes;
281 …attributes.insert(std::pair<std::string, ResValueWrapper>(THEME_PATTERN_TEXT_OVERLAY, resValueWrap…
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Ddrag_event_test_ng.cpp1829 std::unordered_map<std::string, ResValueWrapper> attributes;
1830 ResValueWrapper resValueWrapper;
1833 …attributes.insert(std::pair<std::string, ResValueWrapper>(THEME_BLUR_STYLE_COMMON, resValueWrapper…
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_adapter_impl_v2.cpp261 ResValueWrapper value = { .type = ThemeConstantsType::PATTERN, .value = style }; in PreloadTheme()