/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 81 final EditText editText = new EditText(activity); in launchTestActivity() 82 editText.setPrivateImeOptions(marker); in launchTestActivity() 83 editText.setHint("editText"); in launchTestActivity() 84 editText.requestFocus(); in launchTestActivity() 85 editTextRef.set(editText); in launchTestActivity() 87 layout.addView(editText); in launchTestActivity() 106 final EditText editText = launchTestActivity(marker); in testOnStartInputCalledOnceIme() local 113 InstrumentationRegistry.getInstrumentation(), editText); in testOnStartInputCalledOnceIme() local 182 final EditText editText = new EditText(activity); in testEditorStartsInput() 183 editText.setPrivateImeOptions(marker); in testEditorStartsInput() [all …]
|
D | OnScreenPositionTest.java | 65 final EditText editText = new EditText(activity); in launchTestActivity() 66 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 67 editText.setHint("editText"); in launchTestActivity() 68 editText.requestFocus(); in launchTestActivity() 69 editTextRef.set(editText); in launchTestActivity() 71 layout.addView(editText); in launchTestActivity() 91 final EditText editText = launchTestActivity(); in testImeIsNotBehindNavBar() local 98 InstrumentationRegistry.getInstrumentation(), editText); in testImeIsNotBehindNavBar() local
|
D | NavigationBarColorTest.java | 136 final ImeAwareEditText editText = new ImeAwareEditText(activity); in launchTestActivity() local 137 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 138 editText.setHint("editText"); in launchTestActivity() 139 editText.requestFocus(); in launchTestActivity() 140 editText.scheduleShowSoftInput(); in launchTestActivity() 141 layout.addView(editText); in launchTestActivity() 189 final ImeAwareEditText editText = new ImeAwareEditText(activity); in showDialogIfNecessary() 190 editText.setPrivateImeOptions(TEST_MARKER); in showDialogIfNecessary() 191 editText.setHint("editText"); in showDialogIfNecessary() 192 editText.requestFocus(); in showDialogIfNecessary() [all …]
|
D | KeyboardVisibilityControlTest.java | 143 final EditText editText = launchTestActivity(marker); 149 getOnMainSync(() -> imm.isActive(editText))); 153 getOnMainSync(() -> imm.showSoftInput(editText, 0))); 160 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0))); 211 final EditText editText = launchTestActivity(marker); 217 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0)); 223 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
|
D | InputMethodServiceTest.java | 92 final EditText editText = new EditText(activity); 93 editText.setText("Editable"); 94 layout.addView(editText); 95 editText.requestFocus();
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 727 final EditText editText = (EditText) getActivity().findViewById(R.id.edit); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local 732 editText.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 733 editText.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 734 Selection.removeSelection(editText.getText()); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 785 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 786 assertEquals(1, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 819 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 820 assertEquals(2, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 853 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 854 assertEquals(3, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() [all …]
|
D | AccessibilityTextActionTest.java | 132 final EditText editText = (EditText) getActivity().findViewById(R.id.edit); in testEditText_shouldExposeAndRespondToSetTextAction() local 133 makeTextViewVisibleAndSetText(editText, getString(R.string.a_b)); in testEditText_shouldExposeAndRespondToSetTextAction() 153 TextUtils.equals(textToSet, editText.getText())); in testEditText_shouldExposeAndRespondToSetTextAction() 219 final EditText editText = (EditText) getActivity().findViewById(R.id.edit); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() local 220 makeTextViewVisibleAndSetText(editText, getString(R.string.android_wiki)); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 254 editText.getLocationOnScreen(viewPosition); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 256 editText.scrollTo(0, oneLineDownY + 1); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull()
|
D | AccessibilityEndToEndTest.java | 238 final EditText editText = (EditText) getActivity().findViewById(R.id.edittext); in testTypeViewTextChangedAccessibilityEvent() local 249 editText.requestFocus(); in testTypeViewTextChangedAccessibilityEvent() 288 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent() 568 final EditText editText = (EditText) getOnMain(instrumentation, () -> { in testViewHeadingReportedToAccessibility() local 573 return editText.isAccessibilityHeading(); in testViewHeadingReportedToAccessibility() 586 editText.setAccessibilityHeading(false)), in testViewHeadingReportedToAccessibility()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_IdsTest.java | 49 EditText editText = (EditText) activity.findViewById(R.id.entry); in testIds() local 55 assertNotNull(editText); in testIds() 64 editText.setId(0x1111); in testIds() 65 assertEquals(0x1111, editText.getId()); in testIds() 66 assertSame(editText, (EditText) activity.findViewById(0x1111)); in testIds()
|
D | View_DefaultFocusHighlightTest.java | 62 EditText editText = (EditText) activity.findViewById(R.id.edittext); in testSettersAndGetters() local 68 assertFalse(editText.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 74 editText.setDefaultFocusHighlightEnabled(true); in testSettersAndGetters() 80 assertTrue(editText.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 96 EditText editText = (EditText) activity.findViewById(R.id.edittext_to_inflate); in testInflating() local 103 assertTrue(editText.getDefaultFocusHighlightEnabled()); in testInflating()
|
D | ViewTest.java | 4053 final MockEditText editText = new MockEditText(mActivity); in testInputConnection() local 4058 viewGroup.addView(editText, 100, 30); in testInputConnection() 4059 editText.requestFocus(); in testInputConnection() 4062 assertTrue(editText.isFocused()); in testInputConnection() 4064 mActivityRule.runOnUiThread(() -> imm.showSoftInput(editText, 0)); in testInputConnection() 4067 PollingCheck.waitFor(TIMEOUT_DELTA, editText::hasCalledOnCreateInputConnection); in testInputConnection() 4069 assertTrue(editText.hasCalledOnCheckIsTextEditor()); in testInputConnection() 4072 assertTrue(imm.isActive(editText)); in testInputConnection() 4073 assertFalse(editText.hasCalledCheckInputConnectionProxy()); in testInputConnection() 4075 assertTrue(editText.hasCalledCheckInputConnectionProxy()); in testInputConnection()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | OneTimeTextWatcher.java | 27 OneTimeTextWatcher(String name, EditText editText, CharSequence expectedAutofillValue) { in OneTimeTextWatcher() argument 28 super(name, 1, editText, expectedAutofillValue); in OneTimeTextWatcher()
|
D | MultipleTimesTextWatcher.java | 42 MultipleTimesTextWatcher(String name, int times, EditText editText, in MultipleTimesTextWatcher() argument 45 this.mEditText = editText; in MultipleTimesTextWatcher()
|
D | AutofillValueTest.java | 76 mEditText = (EditText) mActivity.findViewById(R.id.editText); in setFields()
|
/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 | 73 EditText editText = new EditTextNoIme(InstrumentationRegistry.getTargetContext()); in testGetTransformation() local 74 editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in testGetTransformation() 75 editText.setText("hello\nworld\r"); in testGetTransformation()
|
D | PasswordTransformationMethodTest.java | 95 EditText editText = new EditTextNoIme(mActivity); in setup() local 96 editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in setup() 97 editText.setId(EDIT_TXT_ID); in setup() 98 editText.setTransformationMethod(mMethod); in setup() 102 layout.addView(editText, new LayoutParams(LayoutParams.MATCH_PARENT, in setup() 107 editText.requestFocus(); in setup()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PopupMenuTest.java | 79 final EditText editText = (EditText) mActivity.findViewById(R.id.anchor_upper_left); in setup() local 80 editText.setEnabled(false); in setup() 81 editText.setFocusable(false); in setup()
|
D | EditTextTest.java | 369 GetTextEditText editText = new GetTextEditText(mActivity); in testGetTextNonEditable() local 389 GetTextEditText2 editText = new GetTextEditText2(mActivity); in testGetTextBeforeConstructor() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PolicyTransparencyTestActivity.java | 229 final EditText editText = (EditText) findViewById(R.id.edit_text_widget); in onClick() local 230 intent.putExtra(CommandReceiverActivity.EXTRA_VALUE, editText.getText().toString()); in onClick()
|