/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_input_type.cpp | 20 TextInputType CastToTextInputType(int32_t value) in CastToTextInputType() 22 …if (value < static_cast<int32_t>(TextInputType::BEGIN) || value > static_cast<int32_t>(TextInputTy… in CastToTextInputType() 23 return TextInputType::TEXT; in CastToTextInputType() 25 if (value == static_cast<int32_t>(TextInputType::JS_ENUM_URL)) { in CastToTextInputType() 26 return TextInputType::URL; in CastToTextInputType() 28 return static_cast<TextInputType>(value); in CastToTextInputType()
|
H A D | text_input_type.h | 23 enum class TextInputType { enum 45 TextInputType CastToTextInputType(int32_t value);
|
H A D | text_input_configuration.h | 30 TextInputType type = TextInputType::TEXT;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_accessibility_property.cpp | 51 auto textInputType = textFieldLayoutProperty->GetTextInputTypeValue(TextInputType::BEGIN); in GetTextInputType() 54 case TextInputType::TEXT: in GetTextInputType() 57 case TextInputType::NUMBER: in GetTextInputType() 60 case TextInputType::PHONE: in GetTextInputType() 63 case TextInputType::DATETIME: in GetTextInputType() 66 case TextInputType::EMAIL_ADDRESS: in GetTextInputType() 69 case TextInputType::VISIBLE_PASSWORD: in GetTextInputType() 72 case TextInputType::USER_NAME: in GetTextInputType() 75 case TextInputType::NEW_PASSWORD: in GetTextInputType()
|
H A D | content_controller.cpp | 56 (property->GetTextInputType().value() == TextInputType::NUMBER_DECIMAL || in PreprocessString() 57 property->GetTextInputType().value() == TextInputType::EMAIL_ADDRESS)) { in PreprocessString() 58 …char specialChar = property->GetTextInputType().value() == TextInputType::NUMBER_DECIMAL ? '.' : '… in PreprocessString() 128 case TextInputType::NUMBER: { in FilterTextInputStyle() 132 case TextInputType::PHONE: { in FilterTextInputStyle() 136 case TextInputType::EMAIL_ADDRESS: { in FilterTextInputStyle() 141 case TextInputType::VISIBLE_PASSWORD: in FilterTextInputStyle() 143 case TextInputType::NEW_PASSWORD: in FilterTextInputStyle() 145 case TextInputType::NUMBER_PASSWORD: { in FilterTextInputStyle() 149 case TextInputType::SCREEN_LOCK_PASSWORD: { in FilterTextInputStyle() [all …]
|
H A D | text_field_pattern.cpp | 2742 …if (layoutProperty->GetTextInputTypeValue(TextInputType::UNSPECIFIED) != TextInputType::UNSPECIFIE… in CheckIfNeedToResetKeyboard() 3901 … if (keyboard_ == TextInputType::VISIBLE_PASSWORD || keyboard_ == TextInputType::NEW_PASSWORD) { in RequestKeyboardCrossPlatForm() 5826 case TextInputType::NUMBER: in OnBackPressed() 5830 case TextInputType::PHONE: in OnBackPressed() 5832 case TextInputType::URL: in OnBackPressed() 5836 case TextInputType::USER_NAME: in OnBackPressed() 5838 case TextInputType::NEW_PASSWORD: in OnBackPressed() 6697 …(layoutProperty->GetTextInputTypeValue(TextInputType::UNSPECIFIED) == TextInputType::UNSPECIFIED || in OnBackPressed() 6698 … layoutProperty->GetTextInputTypeValue(TextInputType::UNSPECIFIED) == TextInputType::TEXT); in OnBackPressed() 6706 return inputType == TextInputType::UNSPECIFIED || inputType == TextInputType::TEXT; in OnBackPressed() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_test.cpp | 276 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon337d35090502() 305 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon337d35090602() 383 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon337d35090802() 410 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon337d35090902() 825 model.SetType(TextInputType::TEXT); in __anon337d35090f02() 849 model.SetType(TextInputType::TEXT); in __anon337d35091002() 1362 layoutProperty_->UpdateTextInputType(TextInputType::BEGIN); 1376 layoutProperty_->UpdateTextInputType(TextInputType::TEXT); 1418 layoutProperty_->UpdateTextInputType(TextInputType::URL); 1432 layoutProperty_->UpdateTextInputType(TextInputType::END); [all …]
|
H A D | text_input_area_model_test.cpp | 768 layoutProperty->UpdateTextInputType(TextInputType::UNSPECIFIED); 769 textFieldModelNG.SetType(TextInputType::UNSPECIFIED); 771 textFieldModelNG.SetType(TextInputType::UNSPECIFIED); 773 textFieldModelNG.SetType(TextInputType::UNSPECIFIED); 1055 layoutProperty->UpdateTextInputType(TextInputType::TEXT); 1057 layoutProperty->UpdateTextInputType(TextInputType::NUMBER); 1059 layoutProperty->UpdateTextInputType(TextInputType::PHONE); 1061 layoutProperty->UpdateTextInputType(TextInputType::DATETIME); 1068 layoutProperty->UpdateTextInputType(TextInputType::USER_NAME); 1073 layoutProperty->UpdateTextInputType(TextInputType::BEGIN); [all …]
|
H A D | text_field_controller_test.cpp | 137 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon3e9d21400402() 166 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon3e9d21400502() 195 model.SetType(TextInputType::TEXT); in __anon3e9d21400602() 798 model.SetType(TextInputType::TEXT); in __anon3e9d21400902() 843 model.SetType(TextInputType::TEXT); in __anon3e9d21400a02() 886 model.SetType(TextInputType::TEXT); in __anon3e9d21400b02() 930 model.SetType(TextInputType::TEXT); in __anon3e9d21400c02() 974 model.SetType(TextInputType::TEXT); in __anon3e9d21400d02() 1018 model.SetType(TextInputType::TEXT); in __anon3e9d21400e02() 1053 model.SetType(TextInputType::TEXT); in __anon3e9d21400f02() [all …]
|
H A D | text_input_emoji_test.cpp | 87 model.SetType(TextInputType::TEXT); in __anon3cb9275c0202() 133 model.SetType(TextInputType::TEXT); in __anon3cb9275c0302() 189 model.SetType(TextInputType::TEXT); in __anon3cb9275c0402() 245 model.SetType(TextInputType::TEXT); in __anon3cb9275c0502() 305 model.SetType(TextInputType::TEXT); in __anon3cb9275c0602() 365 model.SetType(TextInputType::TEXT); in __anon3cb9275c0702() 418 model.SetType(TextInputType::TEXT); in __anon3cb9275c0802() 462 model.SetType(TextInputType::TEXT); in __anon3cb9275c0902() 509 model.SetType(TextInputType::TEXT); in __anon3cb9275c0a02() 569 model.SetType(TextInputType::TEXT); in __anon3cb9275c0b02() [all …]
|
H A D | text_input_update_test.cpp | 40 model.SetType(TextInputType::NUMBER_PASSWORD); in __anon822440ab0202() 598 model.SetType(TextInputType::NEW_PASSWORD); in __anon822440ab0902() 622 model.SetType(TextInputType::TEXT); in __anon822440ab0a02() 646 model.SetType(TextInputType::TEXT); in __anon822440ab0b02() 690 model.SetType(TextInputType::TEXT); in __anon822440ab0c02() 835 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon822440ab1002() 851 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon822440ab1102() 867 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon822440ab1202() 885 EXPECT_EQ(pattern_->ConvertToAceAutoFillType(TextInputType::USER_NAME), 899 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anon822440ab1302() [all …]
|
H A D | text_input_preview_test.cpp | 38 model.SetType(TextInputType::TEXT); in __anoneb3d328a0202() 158 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anoneb3d328a0502() 192 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anoneb3d328a0602() 225 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anoneb3d328a0702() 258 model.SetType(TextInputType::VISIBLE_PASSWORD); in __anoneb3d328a0802()
|
H A D | text_field_pattern_testfour.cpp | 253 layoutProperty->UpdateTextInputType(TextInputType::VISIBLE_PASSWORD); 261 layoutProperty->UpdateTextInputType(TextInputType::TEXT); 282 layoutProperty->UpdateTextInputType(TextInputType::VISIBLE_PASSWORD); 406 layoutProperty->UpdateTextInputType(TextInputType::TEXT); 453 layoutProperty->UpdateTextInputType(TextInputType::TEXT); 488 layoutProperty->UpdateTextInputType(TextInputType::TEXT); 490 layoutProperty->UpdateTextInputType(TextInputType::VISIBLE_PASSWORD);
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_field/ |
H A D | text_field_test.cpp | 224 std::vector<TestItem<TextInputType, int32_t>> testItems; 225 testItems.emplace_back(TextInputType::TEXT, text.size(), "TextInputType::TEXT"); 226 testItems.emplace_back(TextInputType::NUMBER, 10, "TextInputType::NUMBER"); 227 testItems.emplace_back(TextInputType::PHONE, 12, "TextInputType::PHONE"); 228 …testItems.emplace_back(TextInputType::EMAIL_ADDRESS, text.size() - 2, "TextInputType::EMAIL_ADDRES… 613 std::vector<TestItem<TextInputType, std::string>> testItems; 614 testItems.emplace_back(TextInputType::TEXT, "openharmony123_ *+%$", "TextInputType::TEXT"); 615 testItems.emplace_back(TextInputType::NUMBER, "123456", "TextInputType::NUMBER"); 616 testItems.emplace_back(TextInputType::PHONE, "#15612932075*", "TextInputType::PHONE"); 618 …TextInputType::EMAIL_ADDRESS, "open_harmony@huawei.comhelloworld", "TextInputType::EMAIL_ADDRESS"); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | textinput_composed_element.cpp | 217 if (keyboard == TextInputType::NUMBER) { in GetTextinputType() 219 } else if (keyboard == TextInputType::VISIBLE_PASSWORD) { in GetTextinputType() 221 } else if (keyboard == TextInputType::EMAIL_ADDRESS) { in GetTextinputType() 223 } else if (keyboard == TextInputType::USER_NAME) { in GetTextinputType() 225 } else if (keyboard == TextInputType::NEW_PASSWORD) { in GetTextinputType()
|
/ohos5.0/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
H A D | input_method_utils.h | 46 enum class TextInputType { enum 95 TextInputType GetTextInputType() const in GetTextInputType() 100 void SetTextInputType(TextInputType textType) in SetTextInputType() 107 TextInputType textInputType = TextInputType::TEXT;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_textfield_ffi.cpp | 39 const std::vector<TextInputType> TEXT_INPUT_TYPES = { TextInputType::TEXT, TextInputType::NUMBER, 40 TextInputType::EMAIL_ADDRESS, TextInputType::VISIBLE_PASSWORD };
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | render_text_field.cpp | 113 case TextInputType::NUMBER: { in GetKeyboardFilter() 117 case TextInputType::PHONE: { in GetKeyboardFilter() 125 case TextInputType::URL: { in GetKeyboardFilter() 1238 if (keyboard_ != TextInputType::MULTILINE && keyboard_ != TextInputType::VISIBLE_PASSWORD) { in CloseKeyboard() 1457 case TextInputType::NUMBER: { in UpdateFormatters() 1461 case TextInputType::PHONE: { in UpdateFormatters() 1469 case TextInputType::URL: { in UpdateFormatters() 1536 if (keyboard_ == TextInputType::EMAIL_ADDRESS || keyboard_ == TextInputType::URL) { in FilterWithRegex() 1550 if (keyboard_ == TextInputType::NUMBER || keyboard_ == TextInputType::PHONE) { in FilterWithRegex() 2590 case TextInputType::TEXT: in UpdateAccessibilityAttr() [all …]
|
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | input_method_attach_test.cpp | 275 TextInputType textInputType = TextInputType::DATETIME; 296 TextInputType textInputType = TextInputType::DATETIME; 442 config.SetTextInputType(TextInputType::DATETIME); 450 … EXPECT_EQ(totalConfig.inputAttribute.inputPattern, static_cast<int32_t>(TextInputType::DATETIME)); 472 configuration.SetTextInputType(TextInputType::DATETIME); 591 configuration.SetTextInputType(TextInputType::DATETIME);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta1/ |
H A D | js-apidiff-misc.md | 49 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType|@ohos.inputMethod.d.ts| 50 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:NONE = -1|@ohos.inputMethod.d.ts| 51 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:TEXT = 0|@ohos.inputMethod.d.ts| 52 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:MULTILINE|@ohos.inputMethod.d.ts| 53 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:NUMBER|@ohos.inputMethod.d.ts| 54 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:PHONE|@ohos.inputMethod.d.ts| 55 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:DATETIME|@ohos.inputMethod.d.ts| 56 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:EMAIL_ADDRESS|@ohos.inputMethod.d.ts| 57 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:URL|@ohos.inputMethod.d.ts| 58 |新增|NA|模块名: ohos.inputMethod<br>类名: TextInputType<br>方法 or 属性:VISIBLE_PASSWORD|@ohos.inputMethod.d.… [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/ime/ |
H A D | ime_test.cpp | 63 EXPECT_EQ(CastToTextInputType(1), TextInputType::MULTILINE); 68 EXPECT_EQ(CastToTextInputType(-2), TextInputType::TEXT); 73 … EXPECT_EQ(CastToTextInputType(static_cast<int32_t>(TextInputType::END) + 1), TextInputType::TEXT); 78 EXPECT_EQ(CastToTextInputType(0), TextInputType::TEXT); 124 EXPECT_EQ(json->GetValue(TYPE_TEST)->GetInt(), static_cast<int32_t>(TextInputType::TEXT));
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/ |
H A D | search_test_ng.cpp | 1688 textFieldLayoutProperty->UpdateTextInputType(TextInputType::BEGIN); 1695 textFieldLayoutProperty->UpdateTextInputType(TextInputType::UNSPECIFIED); 1702 textFieldLayoutProperty->UpdateTextInputType(TextInputType::TEXT); 1704 EXPECT_EQ(textFieldLayoutProperty->GetTextInputType(), TextInputType::TEXT); 1709 textFieldLayoutProperty->UpdateTextInputType(TextInputType::MULTILINE); 1716 textFieldLayoutProperty->UpdateTextInputType(TextInputType::NUMBER); 1723 textFieldLayoutProperty->UpdateTextInputType(TextInputType::PHONE); 1730 textFieldLayoutProperty->UpdateTextInputType(TextInputType::DATETIME); 1737 textFieldLayoutProperty->UpdateTextInputType(TextInputType::EMAIL_ADDRESS); 1744 textFieldLayoutProperty->UpdateTextInputType(TextInputType::URL); [all …]
|
/ohos5.0/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
H A D | js_input_method_engine_setting.cpp | 65 …PI_PROPERTY("PATTERN_NULL", GetIntJsConstProperty(env, static_cast<int32_t>(TextInputType::NONE))), in Init() 66 …NAPI_PROPERTY("PATTERN_TEXT", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::TEXT))), in Init() 67 …_PROPERTY("PATTERN_NUMBER", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::NUMBER))), in Init() 68 …PI_PROPERTY("PATTERN_PHONE", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::PHONE))), in Init() 70 … "PATTERN_DATETIME", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::DATETIME))), in Init() 72 … "PATTERN_EMAIL", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::EMAIL_ADDRESS))), in Init() 73 …E_NAPI_PROPERTY("PATTERN_URI", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::URL))), in Init() 75 …"PATTERN_PASSWORD", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::VISIBLE_PASSWORD)… in Init() 77 …"PATTERN_PASSWORD_NUMBER", GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::NUMBER_PAS… in Init() 79 GetJsConstProperty(env, static_cast<uint32_t>(TextInputType::SCREEN_LOCK_PASSWORD))), in Init()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | utils.h | 409 inline TextInputType ConvertStrToTextInputType(const std::string& type) in ConvertStrToTextInputType() 411 TextInputType inputType; in ConvertStrToTextInputType() 413 inputType = TextInputType::NUMBER; in ConvertStrToTextInputType() 415 inputType = TextInputType::DATETIME; in ConvertStrToTextInputType() 417 inputType = TextInputType::EMAIL_ADDRESS; in ConvertStrToTextInputType() 419 inputType = TextInputType::VISIBLE_PASSWORD; in ConvertStrToTextInputType() 421 inputType = TextInputType::TEXT; in ConvertStrToTextInputType()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/ |
H A D | render_text_field_test.cpp | 30 const TextInputType TEXT_FIELD_TEXTINPUTTYPE_EMAIL = TextInputType::EMAIL_ADDRESS; 74 TextInputType GetTextInputType() const in GetTextInputType()
|