/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | input_edittext_component.cpp | 45 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 D | swiper_component.cpp | 51 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 D | input_edittext_component.h | 44 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 D | marquee_component.cpp | 46 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 D | input_radio_component.cpp | 41 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 D | video_component.cpp | 308 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 D | input_checkbox_component.cpp | 40 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 D | slider_component.h | 35 bool SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) override; 45 void SetKnobValue(jerry_value_t attrValue);
|
H A D | image_animator_component.cpp | 104 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 D | slider_component.cpp | 44 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 D | analog_clock_component.cpp | 56 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 D | clock_hand_component.cpp | 156 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 D | horizon_progress_component.cpp | 27 bool HorizonProgressComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument 33 progressView_.SetValue(IntegerOf(attrValue)); in SetPrivateAttribute()
|
H A D | image_component.cpp | 55 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 D | switch_component.cpp | 79 bool SwitchComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue) in SetPrivateAttribute() argument 82 toggleButton_.SetState(BoolOf(attrValue)); in SetPrivateAttribute()
|
H A D | qrcode_component.cpp | 40 bool QrcodeComponent::SetPrivateAttribute(uint16_t attrKeyId, jerry_value_t attrValue)
in SetPrivateAttribute() argument 46 qrcodeValue_ = MallocStringOf(attrValue);
in SetPrivateAttribute()
|
H A D | video_component.h | 323 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 D | component.cpp | 236 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 D | resource_theme_style.cpp | 150 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 D | base_test.cpp | 85 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 D | plugin_switch.cpp | 43 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 D | config_reader.cpp | 65 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 D | picker_view_tdd_test.cpp | 98 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 D | resource_adapter_impl.cpp | 205 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 D | xml_element.cpp | 117 std::string attrValue(reinterpret_cast<char *>(attr)); in GetAttribute() 119 return attrValue; in GetAttribute()
|