Home
last modified time | relevance | path

Searched refs:mEditText (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DView_UsingViewsTest.java97 private EditText mEditText; field in View_UsingViewsTest
112 mEditText = (EditText) mActivity.findViewById(R.id.entry); in setup()
137 mEditText.setText(null); in testSetProperties()
147 mEditText.setDrawingCacheEnabled(true); in testSetProperties()
148 assertTrue(mEditText.isDrawingCacheEnabled()); in testSetProperties()
151 assertEquals(View.DRAWING_CACHE_QUALITY_AUTO, mEditText.getDrawingCacheQuality()); in testSetProperties()
152 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW); in testSetProperties()
153 assertEquals(View.DRAWING_CACHE_QUALITY_LOW, mEditText.getDrawingCacheQuality()); in testSetProperties()
154 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); in testSetProperties()
155 assertEquals(View.DRAWING_CACHE_QUALITY_HIGH, mEditText.getDrawingCacheQuality()); in testSetProperties()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DReplacementTransformationMethodTest.java49 private EditText mEditText; field in ReplacementTransformationMethodTest
57 mEditText = new EditTextNoIme(mActivityRule.getActivity()); in setup()
58 mEditText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in setup()
68 mEditText.setTransformationMethod(method); in testGetTransformation()
69 mEditText.setText("010101"); in testGetTransformation()
95 mEditText.setTransformationMethod(method); in testGetTransformationWithAbmornalReplacement()
96 mEditText.setText("010101"); in testGetTransformationWithAbmornalReplacement()
103 mEditText.setTransformationMethod(method); in testGetTransformationWithAbmornalReplacement()
104 mEditText.setText("010101"); in testGetTransformationWithAbmornalReplacement()
115 mEditText.setTransformationMethod(method); in testGetTransformationWithAbnormalOriginal()
[all …]
DTransformationMethodTest.java61 private EditText mEditText; field in TransformationMethodTest
76 mEditText = new EditTextNoIme(mActivity); in setup()
77 mEditText.setId(EDIT_TXT_ID); in setup()
78 mEditText.setTransformationMethod(mMethod); in setup()
83 layout.addView(mEditText, new LayoutParams(LayoutParams.MATCH_PARENT, in setup()
88 mEditText.requestFocus(); in setup()
92 assertTrue(mEditText.isFocused()); in setup()
99 mActivityRule.runOnUiThread(() -> mEditText.setText("some text")); in testGetTransformation()
108 assertTrue(mEditText.isFocused()); in testOnFocusChanged()
115 assertFalse(mEditText.isFocused()); in testOnFocusChanged()
[all …]
DPasswordTransformationMethodTest.java82 private EditText mEditText; field in PasswordTransformationMethodTest
112 mEditText = (EditText) mActivity.findViewById(EDIT_TXT_ID); in setup()
113 assertTrue(mEditText.isFocused()); in setup()
162 mTransformedText = mMethod.getTransformation(mEditText.getText(), mEditText)); in testTextChangedCallBacks()
169 CtsKeyEventUtil.sendKeys(mInstrumentation, mEditText, in testTextChangedCallBacks()
173 CtsKeyEventUtil.sendKeys(mInstrumentation, mEditText, "H E 2*L O"); in testTextChangedCallBacks()
181 mActivityRule.runOnUiThread(() -> mEditText.append(" ")); in testTextChangedCallBacks()
203 CharSequence transformed = method.getTransformation(null, mEditText); in testGetTransformation()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutofillValueTest.java59 private EditText mEditText; field in AutofillValueTest
71 mEditText = (EditText) mActivity.findViewById(R.id.editText); in setFields()
182 mActivity.syncRunOnUiThread(() -> mEditText.setVisibility(View.VISIBLE));
192 OneTimeTextWatcher textWatcher = new OneTimeTextWatcher("editText", mEditText,
194 mEditText.addTextChangedListener(textWatcher);
197 startAutoFill(mEditText);
206 assertThat(mEditText.getText().toString()).isEqualTo(expectedText);
227 mActivity.syncRunOnUiThread(() -> mEditText.setText("test"));
228 assertThat(mEditText.getAutofillValue()).isEqualTo(AutofillValue.forText("test"));
230 mActivity.syncRunOnUiThread(() -> mEditText.setEnabled(false));
[all …]
DMultipleTimesTextWatcher.java41 private final EditText mEditText; field in MultipleTimesTextWatcher
47 this.mEditText = editText; in MultipleTimesTextWatcher()
72 final String actual = mEditText.getText().toString(); in assertAutoFilled()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplaySystemDecorationTests.java412 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchToDifferentDisplays()
428 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchToDifferentDisplays()
512 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
522 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
531 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testImeWindowCanSwitchWhenTopFocusedDisplayChange()
566 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testCrossDisplayBasicImeOperations()
591 ImeAwareEditText mEditText; field in MultiDisplaySystemDecorationTests.ImeTestActivity
596 mEditText = new ImeAwareEditText(this); in onCreate()
599 mEditText.setPrivateImeOptions( in onCreate()
603 layout.addView(mEditText); in onCreate()
[all …]
DMultiDisplayClientTests.java227 private EditText mEditText; field in MultiDisplayClientTests.ImeTestActivity
235 mEditText = new EditText(this); in onCreate()
238 layout.addView(mEditText); in onCreate()
248 mEditText.requestFocus(); in onResume()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DHidHostActivity.java47 private EditText mEditText; field in HidHostActivity
57 mEditText = (EditText) findViewById(R.id.bt_hid_host_edit_text); in onCreate()
58 mEditText.addTextChangedListener(new TextWatcher() { in onCreate()
79 mEditText.requestFocus(); in onCreate()
/cts/tests/tests/text/src/android/text/cts/
DEmojiTest.java59 private EditText mEditText; field in EmojiTest
194 mActivityRule.runOnUiThread(() -> mEditText = new EditText(mContext)); in testEmojiEditable()
195 mEditText.setText(origStr + String.valueOf(Character.toChars(testedCodePoints[i]))); in testEmojiEditable()
198 newStr = mEditText.getText().toString(); in testEmojiEditable()
202 mActivityRule.runOnUiThread(() -> mEditText.dispatchKeyEvent( in testEmojiEditable()
206 newStr = mEditText.getText().toString(); in testEmojiEditable()