/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 78 EditText editText = new EditText(mContext, mAttributeSet); in testAccessText() local 80 editText.setText("android", BufferType.NORMAL); in testAccessText() 81 assertEquals("android", editText.getText().toString()); in testAccessText() 83 editText.setText("", BufferType.SPANNABLE); in testAccessText() 84 assertEquals("", editText.getText().toString()); in testAccessText() 86 editText.setText(null, BufferType.EDITABLE); in testAccessText() 87 assertEquals("", editText.getText().toString()); in testAccessText() 91 EditText editText = new EditText(mContext, mAttributeSet); in testSetSelectionIndex() local 94 editText.setText(string, BufferType.EDITABLE); in testSetSelectionIndex() 96 editText.setSelection(position); in testSetSelectionIndex() [all …]
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 724 final EditText editText = (EditText) getActivity().findViewById(R.id.edit); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local 729 editText.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 730 editText.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 731 Selection.removeSelection(editText.getText()); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 782 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 783 assertEquals(1, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 816 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 817 assertEquals(2, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 850 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 851 assertEquals(3, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() [all …]
|
D | AccessibilityEndToEndTest.java | 212 final EditText editText = (EditText) getActivity().findViewById(R.id.edittext); in testTypeViewTextChangedAccessibilityEvent() local 223 editText.requestFocus(); in testTypeViewTextChangedAccessibilityEvent() 262 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_IdsTest.java | 39 EditText editText = (EditText) activity.findViewById(R.id.entry); in testIds() local 45 assertNotNull(editText); in testIds() 54 editText.setId(0x1111); in testIds() 55 assertEquals(0x1111, editText.getId()); in testIds() 56 assertSame(editText, (EditText) activity.findViewById(0x1111)); in testIds()
|
D | ViewTest.java | 3335 final MockEditText editText = new MockEditText(mActivity); in testInputConnection() local 3340 viewGroup.addView(editText); in testInputConnection() 3341 editText.requestFocus(); in testInputConnection() 3345 assertTrue(editText.isFocused()); in testInputConnection() 3350 imm.showSoftInput(editText, 0); in testInputConnection() 3358 return editText.hasCalledOnCreateInputConnection(); in testInputConnection() 3362 assertTrue(editText.hasCalledOnCheckIsTextEditor()); in testInputConnection() 3367 assertTrue(imm.isActive(editText)); in testInputConnection() 3368 assertFalse(editText.hasCalledCheckInputConnectionProxy()); in testInputConnection() 3370 assertTrue(editText.hasCalledCheckInputConnectionProxy()); in testInputConnection()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | EditTextPreferenceTest.java | 42 EditText editText = mEditTextPref.getEditText(); in testGetEditText() local 43 assertNotNull(editText); in testGetEditText()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | SingleLineTransformationMethodTest.java | 57 EditText editText = new EditText(getActivity()); in testGetTransformation() local 58 editText.setText("hello\nworld\r"); in testGetTransformation()
|
D | PasswordTransformationMethodTest.java | 78 EditText editText = new EditText(mActivity); in setUp() 79 editText.setId(EDIT_TXT_ID); in setUp() 80 editText.setTransformationMethod(mMethod); in setUp() 84 layout.addView(editText, new LayoutParams(LayoutParams.MATCH_PARENT, in setUp() 89 editText.requestFocus(); in setUp()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 123 final EditText editText = new EditText(getInstrumentation().getContext()); in testEmojiEditable() local 124 editText.setText(origStr + String.valueOf(Character.toChars(testedCodePoints[i]))); in testEmojiEditable() 127 newStr = editText.getText().toString(); in testEmojiEditable() 133 editText.dispatchKeyEvent( in testEmojiEditable() 139 newStr = editText.getText().toString(); in testEmojiEditable()
|
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/ |
D | CtsUiAutomatorTest.java | 120 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.class in testTextEraseAndInput() local 122 editText.setText(testText); in testTextEraseAndInput() 233 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.class in testDeviceSoftKeys() local 235 editText.setText("Android Geppetto Test Application"); in testDeviceSoftKeys()
|