/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | on_text_changed_listener_impl.cpp | 39 … 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 D | text_field_component.cpp | 271 uint32_t TextFieldComponent::GetMaxLength() const in GetMaxLength() function in OHOS::Ace::TextFieldComponent 273 return declaration_->GetMaxLength(); in GetMaxLength()
|
H A D | text_field_component.h | 120 uint32_t GetMaxLength() const;
|
H A D | render_text_field.h | 313 int32_t GetMaxLength() in GetMaxLength() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/ |
H A D | dsl_text_field_creator_test.cpp | 125 … 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 D | render_text_field_test.cpp | 49 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 D | ui_edit_text_unit_test.cpp | 150 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 D | text_input_test.cpp | 660 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 D | text_input_update_test.cpp | 296 EXPECT_EQ(pattern_->GetMaxLength(), 26);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/ |
H A D | search_test_ng.cpp | 1394 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 D | ui_edit_text.h | 181 uint16_t GetMaxLength();
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_accessibility_property.cpp | 28 return textFieldPattern->GetMaxLength(); in GetTextLengthLimit()
|
H A D | content_controller.cpp | 68 auto maxLength = static_cast<uint32_t>(textField->GetMaxLength()); in PreprocessString()
|
H A D | text_field_model_ng.h | 198 static uint32_t GetMaxLength(FrameNode* frameNode);
|
H A D | text_field_model_ng.cpp | 393 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 D | text_field_pattern.cpp | 3900 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 D | text_field_pattern.h | 862 uint32_t GetMaxLength() const;
|
H A D | text_field_layout_algorithm.cpp | 584 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 D | input_tdd_test.cpp | 1259 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 D | ui_edit_text.cpp | 241 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 D | textinput_composed_element.cpp | 254 return std::to_string(render->GetMaxLength()).c_str(); in GetTextMaxLength()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_pattern.h | 294 uint32_t GetMaxLength() const;
|
H A D | search_pattern.cpp | 1364 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 D | custom_input_method.cpp | 130 editView_->SetMaxLength(paramView->GetMaxLength()); in OnShow()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/ |
H A D | textfield_declaration.h | 531 uint32_t GetMaxLength() const in GetMaxLength() function
|