Home
last modified time | relevance | path

Searched refs:GetMaxLength (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Don_text_changed_listener_impl.cpp39 … if (GreatOrEqual(client->GetMaxLength(), 0) && GreatOrEqual(prevLength, client->GetMaxLength())) { in InsertText()
44 if (GreatOrEqual(client->GetMaxLength(), 0) && in InsertText()
45 … GreatOrEqual(prevLength + static_cast<int32_t>(text.length()), client->GetMaxLength())) { in InsertText()
46 leavingStrLength = client->GetMaxLength() - prevLength; in InsertText()
H A Dtext_field_component.cpp271 uint32_t TextFieldComponent::GetMaxLength() const in GetMaxLength() function in OHOS::Ace::TextFieldComponent
273 return declaration_->GetMaxLength(); in GetMaxLength()
H A Dtext_field_component.h120 uint32_t GetMaxLength() const;
H A Drender_text_field.h313 int32_t GetMaxLength() in GetMaxLength() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/
H A Ddsl_text_field_creator_test.cpp125 … EXPECT_EQ(static_cast<uint32_t>(textFieldComponent->GetMaxLength()), TEXT_FIELD_ATTR_MAX_LENGTH);
174 …EXPECT_EQ(static_cast<uint32_t>(textFieldComponent->GetMaxLength()), TEXT_FIELD_ATTR_MAX_LENGTH_DE…
H A Drender_text_field_test.cpp49 size_t GetMaxLength() const in GetMaxLength() function in OHOS::Ace::MockRenderTextField
230 EXPECT_EQ(renderTextField->GetMaxLength(), TEXT_FIELD_MAXLENGTH);
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_edit_text_unit_test.cpp150 EXPECT_EQ(editText->GetMaxLength(), length1);
154 EXPECT_EQ(editText->GetMaxLength(), length2);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_input_test.cpp660 EXPECT_EQ(pattern_->GetMaxLength(), 1000000);
689 EXPECT_EQ(pattern_->GetMaxLength(), 5);
718 EXPECT_EQ(pattern_->GetMaxLength(), 0);
739 EXPECT_EQ(pattern_->GetMaxLength(), 1000000);
768 EXPECT_EQ(pattern_->GetMaxLength(), -1);
789 EXPECT_EQ(pattern_->GetMaxLength(), 1000023);
H A Dtext_input_update_test.cpp296 EXPECT_EQ(pattern_->GetMaxLength(), 26);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/
H A Dsearch_test_ng.cpp1394 EXPECT_EQ(pattern->GetMaxLength(), 1000000); // Not set maxLength
1396 EXPECT_EQ(pattern->GetMaxLength(), 19);
1398 EXPECT_EQ(pattern->GetMaxLength(), 0); // Set maxLength = 0
1400 EXPECT_EQ(pattern->GetMaxLength(), 1000000);
1562 EXPECT_EQ(pattern->GetMaxLength(), 1000000);
1580 EXPECT_EQ(pattern->GetMaxLength(), 5);
1591 EXPECT_EQ(pattern->GetMaxLength(), 0);
1598 EXPECT_EQ(pattern->GetMaxLength(), 1000000);
1610 EXPECT_EQ(pattern->GetMaxLength(), -1);
1617 EXPECT_EQ(pattern->GetMaxLength(), 1000012);
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_edit_text.h181 uint16_t GetMaxLength();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_accessibility_property.cpp28 return textFieldPattern->GetMaxLength(); in GetTextLengthLimit()
H A Dcontent_controller.cpp68 auto maxLength = static_cast<uint32_t>(textField->GetMaxLength()); in PreprocessString()
H A Dtext_field_model_ng.h198 static uint32_t GetMaxLength(FrameNode* frameNode);
H A Dtext_field_model_ng.cpp393 uint32_t preMaxLength = GetMaxLength(frameNode); in SetMaxLength()
1087 uint32_t preMaxLength = GetMaxLength(frameNode); in SetMaxLength()
1375 uint32_t TextFieldModelNG::GetMaxLength(FrameNode* frameNode) in GetMaxLength() function in OHOS::Ace::NG::TextFieldModelNG
H A Dtext_field_pattern.cpp3900 config.maxLength = GetMaxLength(); in RequestKeyboardCrossPlatForm()
4333 auto maxLength = static_cast<uint32_t>(layoutProperty->GetMaxLength().value_or(INT32_MAX)); in MeasureCounterNodeHeight()
6067 uint32_t TextFieldPattern::GetMaxLength() const in OnBackPressed() function in OHOS::Ace::NG::TextFieldPattern
6730 json->PutExtAttr("maxLength", GreatOrEqual(GetMaxLength(), in OnBackPressed()
6731 Infinity<uint32_t>()) ? "INF" : std::to_string(GetMaxLength()).c_str(), filter); in OnBackPressed()
7043 dumpLog.AddDesc(std::string("MaxLength:").append(std::to_string(GetMaxLength()))); in OnBackPressed()
H A Dtext_field_pattern.h862 uint32_t GetMaxLength() const;
H A Dtext_field_layout_algorithm.cpp584 auto maxLength = static_cast<uint32_t>(textFieldLayoutProperty->GetMaxLength().value()); in CounterNodeMeasure()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dinput_tdd_test.cpp1259 EXPECT_EQ(edittext->GetMaxLength(), maxlenth);
1267 EXPECT_EQ(edittext->GetMaxLength(), max);
1275 EXPECT_EQ(edittext->GetMaxLength(), min);
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_edit_text.cpp241 uint16_t maxLength = GetMaxLength(); in UpdateTextString()
697 uint16_t UIEditText::GetMaxLength() in GetMaxLength() function in OHOS::UIEditText
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dtextinput_composed_element.cpp254 return std::to_string(render->GetMaxLength()).c_str(); in GetTextMaxLength()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_pattern.h294 uint32_t GetMaxLength() const;
H A Dsearch_pattern.cpp1364 auto maxLength = GetMaxLength(); in ToJsonValueForTextField()
1662 uint32_t SearchPattern::GetMaxLength() const in GetMaxLength() function in OHOS::Ace::NG::SearchPattern
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_edit_text/
H A Dcustom_input_method.cpp130 editView_->SetMaxLength(paramView->GetMaxLength()); in OnShow()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/
H A Dtextfield_declaration.h531 uint32_t GetMaxLength() const in GetMaxLength() function

12