/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | theme_style.h | 60 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 D | theme_utils.h | 35 struct ResValueWrapper; 45 static ResValueWrapper ParseStyleValue( 46 uint32_t styleId, const ResValueWrapper& model, const std::string& value);
|
H A D | theme_constants.h | 370 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 D | theme_utils.cpp | 106 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 D | theme_constants.cpp | 23 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 D | mock_theme_utils.cpp | 26 ResValueWrapper ThemeUtils::ParseStyleValue( in ParseStyleValue() 27 uint32_t styleId, const ResValueWrapper& model, const std::string& value) in ParseStyleValue()
|
H A D | theme_mock.cpp | 25 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 D | mock_theme_constants.cpp | 24 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 D | theme_mock.cpp | 25 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 D | test_ng.cpp | 117 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 D | text_field_pattern_testtwo.cpp | 276 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 D | drag_event_test_ng.cpp | 1829 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 D | resource_adapter_impl_v2.cpp | 261 ResValueWrapper value = { .type = ThemeConstantsType::PATTERN, .value = style }; in PreloadTheme()
|