Home
last modified time | relevance | path

Searched refs:attrValue (Results 1 - 25 of 53) sorted by relevance

123

/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dinput_edittext_component.cpp45 bool InputEditTextComponent::SetInputType(const jerry_value_t& attrValue) in SetInputType() argument
47 if (jerry_value_is_string(attrValue)) { in SetInputType()
48 char *type = MallocStringOf(attrValue); in SetInputType()
65 bool InputEditTextComponent::SetText(const jerry_value_t& attrValue) in SetText() argument
67 if (jerry_value_is_string(attrValue)) { in SetText()
68 char *value = MallocStringOf(attrValue); in SetText()
81 bool InputEditTextComponent::SetPlaceholder(const jerry_value_t& attrValue) in SetPlaceholder() argument
83 if (jerry_value_is_string(attrValue)) { in SetPlaceholder()
84 char *placeholder = MallocStringOf(attrValue); in SetPlaceholder()
97 bool InputEditTextComponent::SetMaxLength(const jerry_value_t& attrValue) in SetMaxLength() argument
108 SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) SetPrivateAttribute() argument
[all...]
H A Dswiper_component.cpp51 bool SwiperComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
54 int16_t duration = IntegerOf(attrValue); in SetPrivateAttribute()
62 if (jerry_value_is_boolean(attrValue)) { in SetPrivateAttribute()
63 swiperView_.SetLoopState(BoolOf(attrValue)); in SetPrivateAttribute()
69 if (!jerry_value_is_number(attrValue) && !jerry_value_is_string(attrValue)) { in SetPrivateAttribute()
72 index_ = IntegerOf(attrValue); in SetPrivateAttribute()
77 if (jerry_value_is_boolean(attrValue)) { in SetPrivateAttribute()
78 swiperView_.SetDirection(BoolOf(attrValue)); in SetPrivateAttribute()
H A Dinput_edittext_component.h44 bool SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) override;
59 bool SetInputType(const jerry_value_t& attrValue);
60 bool SetText(const jerry_value_t& attrValue);
61 bool SetPlaceholder(const jerry_value_t& attrValue);
62 bool SetMaxLength(const jerry_value_t& attrValue);
H A Dmarquee_component.cpp46 bool MarqueeComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
48 bool isSuccess = TextComponent::SetPrivateAttribute(attrKeyId, attrValue); in SetPrivateAttribute()
52 SetScrollamount(IntegerOf(attrValue)); in SetPrivateAttribute()
56 SetScrolldelay(IntegerOf(attrValue)); in SetPrivateAttribute()
H A Dinput_radio_component.cpp41 bool InputRadioComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
45 if (jerry_value_is_boolean(attrValue)) { in SetPrivateAttribute()
46 bool checked = jerry_get_boolean_value(attrValue); in SetPrivateAttribute()
56 char *name = MallocStringOf(attrValue); in SetPrivateAttribute()
H A Dvideo_component.cpp308 bool VideoComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
312 SetMuted(attrValue); in SetPrivateAttribute()
316 SetVideoSource(attrValue); in SetPrivateAttribute()
320 SetVideoAutoPlay(attrValue); in SetPrivateAttribute()
324 SetVideoControls(attrValue); in SetPrivateAttribute()
334 void VideoComponent::SetMuted(jerry_value_t attrValue) in SetMuted() argument
336 videoMuted_ = BoolOf(attrValue); in SetMuted()
342 void VideoComponent::SetVideoSource(jerry_value_t attrValue) in SetVideoSource() argument
345 videoSourceUrl_ = MallocStringOf(attrValue); in SetVideoSource()
351 void VideoComponent::SetVideoAutoPlay(jerry_value_t attrValue) in SetVideoAutoPlay() argument
359 SetVideoControls(jerry_value_t attrValue) SetVideoControls() argument
[all...]
H A Dinput_checkbox_component.cpp40 bool InputCheckboxComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
45 if (jerry_value_is_boolean(attrValue)) { in SetPrivateAttribute()
46 bool checked = jerry_get_boolean_value(attrValue); in SetPrivateAttribute()
H A Dslider_component.h35 bool SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) override;
45 void SetKnobValue(jerry_value_t attrValue);
H A Dimage_animator_component.cpp104 bool ImageAnimatorComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
108 return ParseToFillMode(attrValue); in SetPrivateAttribute()
110 return ParseToFixedSize(attrValue); in SetPrivateAttribute()
112 return ParseToFrames(attrValue); in SetPrivateAttribute()
114 return ParseToIteration(attrValue); in SetPrivateAttribute()
116 return ParseToReverse(attrValue); in SetPrivateAttribute()
118 return ParseToDuration(attrValue); in SetPrivateAttribute()
H A Dslider_component.cpp44 bool SliderComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
48 minValue_ = IntegerOf(attrValue); in SetPrivateAttribute()
51 maxValue_ = IntegerOf(attrValue); in SetPrivateAttribute()
57 value_ = IntegerOf(attrValue); in SetPrivateAttribute()
H A Danalog_clock_component.cpp56 bool AnalogClockComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
58 if ((clockView_ == nullptr) || !KeyParser::IsKeyValid(attrKeyId) || IS_UNDEFINED(attrValue)) { in SetPrivateAttribute()
64 hour_ = IntegerOf(attrValue); in SetPrivateAttribute()
67 min_ = IntegerOf(attrValue); in SetPrivateAttribute()
70 sec_ = IntegerOf(attrValue); in SetPrivateAttribute()
H A Dclock_hand_component.cpp156 bool ClockHandComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
158 if ((clockHandView_ == nullptr) || !KeyParser::IsKeyValid(attrKeyId) || IS_UNDEFINED(attrValue)) { in SetPrivateAttribute()
167 char *attrValueStr = MallocStringOf(attrValue, &length); in SetPrivateAttribute()
198 handType_ = MallocStringOf(attrValue); in SetPrivateAttribute()
H A Dhorizon_progress_component.cpp27 bool HorizonProgressComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
33 progressView_.SetValue(IntegerOf(attrValue)); in SetPrivateAttribute()
H A Dimage_component.cpp55 bool ImageComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
60 char *src = const_cast<char *>(ParseImageSrc(attrValue)); in SetPrivateAttribute()
H A Dswitch_component.cpp79 bool SwitchComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
82 toggleButton_.SetState(BoolOf(attrValue)); in SetPrivateAttribute()
H A Dqrcode_component.cpp40 bool QrcodeComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument
46 qrcodeValue_ = MallocStringOf(attrValue); in SetPrivateAttribute()
H A Dvideo_component.h323 bool SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) override;
333 void SetMuted(jerry_value_t attrValue);
334 void SetVideoSource(jerry_value_t attrValue);
335 void SetVideoAutoPlay(jerry_value_t attrValue);
336 void SetVideoControls(jerry_value_t attrValue);
H A Dcomponent.cpp236 bool Component::UpdateView(uint16_t attrKeyId, jerry_value_t attrValue) in UpdateView() argument
247 bool updateResult = SetAttribute(attrKeyId, attrValue); in UpdateView()
249 AppStyleItem *styleItem = AppStyleItem::CreateStyleItem(attrKeyId, attrValue); in UpdateView()
278 bool Component::SetAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetAttribute() argument
281 if ((uiView == nullptr) || !KeyParser::IsKeyValid(attrKeyId) || IS_UNDEFINED(attrValue)) { in SetAttribute()
286 bool setResult = SetPrivateAttribute(attrKeyId, attrValue); in SetAttribute()
289 setResult = SetCommonAttribute(*uiView, attrKeyId, attrValue); in SetAttribute()
295 bool Component::SetCommonAttribute(UIView &view, const uint16_t attrKeyId, const jerry_value_t attrValue) in SetCommonAttribute() argument
301 viewId_ = MallocStringOf(attrValue); in SetCommonAttribute()
310 view.SetVisible(BoolOf(attrValue)); in SetCommonAttribute()
1107 AddWatcherItem(const jerry_value_t attrKey, const jerry_value_t attrValue, bool isLazyLoading) AddWatcherItem() argument
1144 jerry_value_t attrValue = jerry_get_property(attrs, attrKey); ParseAttrs() local
[all...]
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_theme_style.cpp150 for (auto& [attrName, attrValue] : rawAttrs_) { in ParseContent()
151 if (attrName.empty() || attrValue.empty()) { in ParseContent()
156 attributes_[attrName] = { .type = ThemeConstantsType::STRING, .value = attrValue }; in ParseContent()
159 if (attrValue.front() == '#' || attrValue.find(COLOR_VALUE_PREFIX) != std::string::npos) { in ParseContent()
161 attributes_[attrName] = { .type = ThemeConstantsType::COLOR, .value = Color::FromString(attrValue) }; in ParseContent()
162 } else if (attrValue.find(MEDIA_VALUE_PREFIX) != std::string::npos) { in ParseContent()
163 OnParseResourceMedia(attrName, attrValue); in ParseContent()
164 } else if (attrValue.find(REF_ATTR_VALUE_KEY_WORD) != std::string::npos) { in ParseContent()
165 attributes_[attrName] = { .type = ThemeConstantsType::REFERENCE_ATTR, .value = attrValue }; in ParseContent()
199 OnParseResourceMedia(const std::string& attrName, const std::string& attrValue) OnParseResourceMedia() argument
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/
H A Dbase_test.cpp85 jerry_value_t attrValue = jerry_create_number(newNumValue); in UpdateNumAttributeOrStyleValue() local
87 jerry_set_property(attrsObj_, attrName, attrValue); in UpdateNumAttributeOrStyleValue()
89 jerry_set_property(styleObj_, attrName, attrValue); in UpdateNumAttributeOrStyleValue()
91 component->UpdateView(KeyParser::ParseKeyId(attributeName), attrValue); in UpdateNumAttributeOrStyleValue() local
93 jerry_release_value(attrValue); in UpdateNumAttributeOrStyleValue()
106 jerry_value_t attrValue = jerry_create_string(reinterpret_cast<const jerry_char_t *>(newCharValue)); in UpdateCharAttributeOrStyleValue() local
108 jerry_set_property(attrsObj_, attrName, attrValue); in UpdateCharAttributeOrStyleValue()
110 jerry_set_property(styleObj_, attrName, attrValue); in UpdateCharAttributeOrStyleValue()
112 component->UpdateView(KeyParser::ParseKeyId(attributeName), attrValue); in UpdateCharAttributeOrStyleValue() local
114 jerry_release_value(attrValue); in UpdateCharAttributeOrStyleValue()
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/
H A Dplugin_switch.cpp43 xmlChar *attrValue = nullptr; in FillinPluginInfo() local
45 attrValue = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>(XML_ATTR_LIB_PATH)); in FillinPluginInfo()
47 attrValue = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>(XML_ATTR_LIB_PATH_EXE)); in FillinPluginInfo()
49 if (!attrValue) { in FillinPluginInfo()
53 std::string libPath = reinterpret_cast<const char*>(attrValue); in FillinPluginInfo()
59 xmlFree(attrValue); in FillinPluginInfo()
61 attrValue = xmlGetProp(currNode, reinterpret_cast<const xmlChar*>(XML_ATTR_SWITCH)); in FillinPluginInfo()
62 if (attrValue) { in FillinPluginInfo()
63 std::string value = reinterpret_cast<const char*>(attrValue); in FillinPluginInfo()
67 xmlFree(attrValue); in FillinPluginInfo()
[all...]
/foundation/resourceschedule/qos_manager/common/src/
H A Dconfig_reader.cpp65 xmlChar *attrValue = xmlGetProp(currNodePtr, reinterpret_cast<const xmlChar*>(XML_TAG_UID.c_str())); in FillinUidInfo() local
66 if (!attrValue) { in FillinUidInfo()
70 int64_t uid = atoi(reinterpret_cast<const char*>(attrValue)); in FillinUidInfo()
72 xmlFree(attrValue); in FillinUidInfo()
87 xmlChar *attrValue = xmlGetProp(currNodePtr, reinterpret_cast<const xmlChar*>(XML_TAG_BUNDLENAME.c_str())); in FillinBundleNameInfo() local
88 if (!attrValue) { in FillinBundleNameInfo()
92 std::string bundleName = reinterpret_cast<const char*>(attrValue); in FillinBundleNameInfo()
94 xmlFree(attrValue); in FillinBundleNameInfo()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dpicker_view_tdd_test.cpp98 jerry_value_t attrValue = jerry_create_string(reinterpret_cast<const jerry_char_t *>(attribute)); in SetCharAttribute() local
99 jerry_release_value(jerry_set_property(g_attrsObj, attrName, attrValue)); in SetCharAttribute()
101 jerry_release_value(attrValue); in SetCharAttribute()
107 jerry_value_t attrValue = jerry_create_number(attribute); in SetNumAttribute() local
108 jerry_release_value(jerry_set_property(g_attrsObj, attrName, attrValue)); in SetNumAttribute()
110 jerry_release_value(attrValue); in SetNumAttribute()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresource_adapter_impl.cpp205 for (auto& [attrName, attrValue] : rawAttrs_) { in ParseContent()
206 if (!attrValue) { in ParseContent()
209 auto rawString = attrValue->GetOriginalValue(); in ParseContent()
215 attributes_[attrName] = { .type = ThemeConstantsType::COLOR, .value = Color(attrValue->GetColorValue()) }; in ParseContent()
224 patternStyle->rawAttrs_ = attrValue->GetPattern(); in ParseContent()
230 auto xmlWrapper = attrValue->GetLayoutValue(); in ParseContent()
245 auto doubleValue = static_cast<double>(attrValue->GetFloat(unit)); in ParseContent()
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/xml/
H A Dxml_element.cpp117 std::string attrValue(reinterpret_cast<char *>(attr)); in GetAttribute()
119 return attrValue; in GetAttribute()

Completed in 12 milliseconds

123