/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | on_text_changed_listener_impl.cpp | 37 if (GreatOrEqual(client->GetMaxLength(), 0) && GreatOrEqual(prevLength, client->GetMaxLength())) { in InsertText() 42 if (GreatOrEqual(client->GetMaxLength(), 0) && in InsertText() 43 GreatOrEqual(prevLength + static_cast<int32_t>(text.length()), client->GetMaxLength())) { in InsertText() 44 leavingStrLength = client->GetMaxLength() - prevLength; in InsertText()
|
H A D | text_field_component.cpp | 270 uint32_t TextFieldComponent::GetMaxLength() const in GetMaxLength() function in OHOS::Ace::TextFieldComponent 272 return declaration_->GetMaxLength(); in GetMaxLength()
|
H A D | text_field_component.h | 120 uint32_t GetMaxLength() const;
|
H A D | render_text_field.h | 326 int32_t GetMaxLength() in GetMaxLength() function in OHOS::OHOS::Ace::RenderTextField
|
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_edit_text_unit_test.cpp | 150 EXPECT_EQ(editText->GetMaxLength(), length1); in HWTEST_F() 154 EXPECT_EQ(editText->GetMaxLength(), length2); in HWTEST_F()
|
/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 | 67 auto maxLength = static_cast<uint32_t>(textField->GetMaxLength()); in PreprocessString()
|
H A D | text_field_model_ng.h | 203 static uint32_t GetMaxLength(FrameNode* frameNode);
|
H A D | text_field_model_ng.cpp | 388 uint32_t preMaxLength = GetMaxLength(frameNode); in SetMaxLength() 1137 uint32_t preMaxLength = GetMaxLength(frameNode); in SetMaxLength() 1442 uint32_t TextFieldModelNG::GetMaxLength(FrameNode* frameNode) in GetMaxLength() function in OHOS::Ace::NG::TextFieldModelNG
|
H A D | text_field_pattern.cpp | 3883 config.maxLength = GetMaxLength(); in RequestKeyboardCrossPlatForm() 4320 auto maxLength = static_cast<uint32_t>(layoutProperty->GetMaxLength().value()); in MeasureCounterNodeHeight() 6016 uint32_t TextFieldPattern::GetMaxLength() const in OnBackPressed() function in OHOS::Ace::NG::TextFieldPattern 6637 json->PutExtAttr("maxLength", GreatOrEqual(GetMaxLength(), in OnBackPressed() 6638 Infinity<uint32_t>()) ? "INF" : std::to_string(GetMaxLength()).c_str(), filter); in OnBackPressed() 6956 dumpLog.AddDesc(std::string("MaxLength:").append(std::to_string(GetMaxLength()))); in OnBackPressed()
|
H A D | text_field_layout_algorithm.cpp | 577 auto maxLength = static_cast<uint32_t>(textFieldLayoutProperty->GetMaxLength().value()); in CounterNodeMeasure()
|
H A D | text_field_pattern.h | 887 uint32_t GetMaxLength() const;
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_edit_text.h | 181 uint16_t GetMaxLength();
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/search/ |
H A D | search_test_ng.cpp | 1393 EXPECT_EQ(pattern->GetMaxLength(), 1000000); // Not set maxLength in HWTEST_F() 1395 EXPECT_EQ(pattern->GetMaxLength(), 19); in HWTEST_F() 1397 EXPECT_EQ(pattern->GetMaxLength(), 0); // Set maxLength = 0 in HWTEST_F() 1399 EXPECT_EQ(pattern->GetMaxLength(), 1000000); in HWTEST_F() 1582 EXPECT_EQ(pattern->GetMaxLength(), 1000000); in HWTEST_F() 1600 EXPECT_EQ(pattern->GetMaxLength(), 5); in HWTEST_F() 1611 EXPECT_EQ(pattern->GetMaxLength(), 0); in HWTEST_F() 1618 EXPECT_EQ(pattern->GetMaxLength(), 1000000); in HWTEST_F() 1630 EXPECT_EQ(pattern->GetMaxLength(), -1); in HWTEST_F() 1637 EXPECT_EQ(pattern->GetMaxLength(), 100001 in HWTEST_F() [all...] |
/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); in HWTEST_F() 1267 EXPECT_EQ(edittext->GetMaxLength(), max); in HWTEST_F() 1275 EXPECT_EQ(edittext->GetMaxLength(), min); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_test.cpp | 808 EXPECT_EQ(pattern_->GetMaxLength(), 1000000); in HWTEST_F() 837 EXPECT_EQ(pattern_->GetMaxLength(), 5); in HWTEST_F() 866 EXPECT_EQ(pattern_->GetMaxLength(), 0); in HWTEST_F() 887 EXPECT_EQ(pattern_->GetMaxLength(), 1000000); in HWTEST_F() 916 EXPECT_EQ(pattern_->GetMaxLength(), -1); in HWTEST_F() 937 EXPECT_EQ(pattern_->GetMaxLength(), 1000023); in HWTEST_F()
|
H A D | text_input_update_test.cpp | 296 EXPECT_EQ(pattern_->GetMaxLength(), 26); in HWTEST_F()
|
/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
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_pattern.h | 290 uint32_t GetMaxLength() const;
|
H A D | search_pattern.cpp | 1334 auto maxLength = GetMaxLength(); in ToJsonValueForTextField() 1632 uint32_t SearchPattern::GetMaxLength() const in GetMaxLength() function in OHOS::Ace::NG::SearchPattern
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | textinput_composed_element.cpp | 251 return std::to_string(render->GetMaxLength()).c_str(); in GetTextMaxLength()
|
/foundation/arkui/ui_lite/test/uitest/test_edit_text/ |
H A D | custom_input_method.cpp | 130 editView_->SetMaxLength(paramView->GetMaxLength()); in OnShow()
|
/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/ |
H A D | textfield_declaration.h | 532 uint32_t GetMaxLength() const in GetMaxLength() function in OHOS::Ace::TextFieldDeclaration
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_text_input_modifier.cpp | 806 return TextFieldModelNG::GetMaxLength(frameNode); in GetTextInputMaxLength()
|
H A D | node_text_area_modifier.cpp | 479 return TextFieldModelNG::GetMaxLength(frameNode); in GetTextAreaMaxLength()
|