Searched refs:editText (Results 1 – 6 of 6) sorted by relevance
20 private EditText editText; field in ShadowEditTextTest30 editText = new EditText(context, attributeSet); in setup()35 editText.setText("0123456678"); in shouldRespectMaxLength()36 assertThat(editText.getText().toString()).isEqualTo("01234"); in shouldRespectMaxLength()41 editText.setText(null); in shouldAcceptNullStrings()42 assertThat(editText.getText().toString()).isEqualTo(""); in shouldAcceptNullStrings()52 EditText editText = new EditText(context, attrs); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() local55 editText.setText(excessiveInput); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength()57 …assertThat((CharSequence) editText.getText().toString()).isEqualTo(excessiveInput.subSequence(0, m… in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength()63 EditText editText = new EditText(context, attrs); in givenInitializingWithAttributeSet_whenMaxLengthNotDefined_thenTextLengthShouldHaveNoRestrictions() local[all …]
38 final EditText editText = preference.getEditText(); in setTextInEditTextShouldStoreText() local39 editText.setText(SOME_TEXT); in setTextInEditTextShouldStoreText()41 assertThat(editText.getText().toString()).isEqualTo(SOME_TEXT); in setTextInEditTextShouldStoreText()
43 EditText editText = new EditText(context); in shouldBeAbleToGetTextFromEditTextAfterUsingSetTextWithHtmlDotFromHtml() local44 editText.setText(Html.fromHtml("<b>some</b> html text")); in shouldBeAbleToGetTextFromEditTextAfterUsingSetTextWithHtmlDotFromHtml()45 assertThat(editText.getText().toString()).isEqualTo("some html text"); in shouldBeAbleToGetTextFromEditTextAfterUsingSetTextWithHtmlDotFromHtml()
187 EditText editText = viewGroup.findViewById(R.id.edit_text); in shouldGiveFocusToElementContainingRequestFocusElement() local188 assertFalse(editText.isFocused()); in shouldGiveFocusToElementContainingRequestFocusElement()
560 final EditText editText = (EditText) dialog.findViewById(R.id.edit_text); in showUploadLogDialog() local561 editText.setText(Utils.getStringPreference( in showUploadLogDialog()568 String urlString = editText.getText().toString(); in showUploadLogDialog()572 editText.setVisibility(View.GONE); in showUploadLogDialog()
22 editText = 16 variable