/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 82 final EditText editText = new EditText(activity); in launchTestActivity() 83 editText.setPrivateImeOptions(marker); in launchTestActivity() 84 editText.setHint("editText"); in launchTestActivity() 85 editText.requestFocus(); in launchTestActivity() 86 editTextRef.set(editText); in launchTestActivity() 88 layout.addView(editText); in launchTestActivity() 107 final EditText editText = launchTestActivity(marker); in testOnStartInputCalledOnceIme() local 114 InstrumentationRegistry.getInstrumentation(), null, editText); in testOnStartInputCalledOnceIme() local 184 final EditText editText = new EditText(activity); in testEditorStartsInput() 185 editText.setPrivateImeOptions(marker); in testEditorStartsInput() [all …]
|
D | OnScreenPositionTest.java | 66 final EditText editText = new EditText(activity); in launchTestActivity() 67 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 68 editText.setHint("editText"); in launchTestActivity() 69 editText.requestFocus(); in launchTestActivity() 70 editTextRef.set(editText); in launchTestActivity() 72 layout.addView(editText); in launchTestActivity() 92 final EditText editText = launchTestActivity(); in testImeIsNotBehindNavBar() local 99 InstrumentationRegistry.getInstrumentation(), null, editText); in testImeIsNotBehindNavBar() local
|
D | InputMethodServiceTest.java | 109 final EditText editText = new EditText(activity); 110 editText.setText("Editable"); 111 layout.addView(editText); 112 editText.requestFocus(); 249 final EditText editText = new EditText(activity) { 265 editText.setPrivateImeOptions(marker); 266 layout.addView(editText); 267 editText.requestFocus(); 316 final EditText editText = new EditText(activity) { 332 editTextRef.set(editText); [all …]
|
D | NavigationBarColorTest.java | 137 final ImeAwareEditText editText = new ImeAwareEditText(activity); in launchTestActivity() local 138 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 139 editText.setHint("editText"); in launchTestActivity() 140 editText.requestFocus(); in launchTestActivity() 141 editText.scheduleShowSoftInput(); in launchTestActivity() 142 layout.addView(editText); in launchTestActivity() 190 final ImeAwareEditText editText = new ImeAwareEditText(activity); in showDialogIfNecessary() 191 editText.setPrivateImeOptions(TEST_MARKER); in showDialogIfNecessary() 192 editText.setHint("editText"); in showDialogIfNecessary() 193 editText.requestFocus(); in showDialogIfNecessary() [all …]
|
D | KeyboardVisibilityControlTest.java | 144 final EditText editText = launchTestActivity(marker); 150 getOnMainSync(() -> imm.isActive(editText))); 154 getOnMainSync(() -> imm.showSoftInput(editText, 0))); 161 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0))); 212 final EditText editText = launchTestActivity(marker); 218 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0)); 224 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0));
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 774 final EditText editText = (EditText) mActivity.findViewById(R.id.edit); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local 779 editText.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 780 editText.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 781 Selection.removeSelection(editText.getText()); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 832 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 833 assertEquals(1, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 866 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 867 assertEquals(2, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 900 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 901 assertEquals(3, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() [all …]
|
D | AccessibilityTextActionTest.java | 162 final EditText editText = (EditText) mActivity.findViewById(R.id.edit); in testEditText_shouldExposeAndRespondToSetTextAction() local 163 makeTextViewVisibleAndSetText(editText, mActivity.getString(R.string.a_b)); in testEditText_shouldExposeAndRespondToSetTextAction() 183 TextUtils.equals(textToSet, editText.getText())); in testEditText_shouldExposeAndRespondToSetTextAction() 254 final EditText editText = (EditText) mActivity.findViewById(R.id.edit); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() local 255 makeTextViewVisibleAndSetText(editText, mActivity.getString(R.string.android_wiki)); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 289 editText.getLocationOnScreen(viewPosition); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() 291 editText.scrollTo(0, oneLineDownY + 1); in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull()
|
D | AccessibilityEndToEndTest.java | 303 final EditText editText = (EditText) mActivity.findViewById(R.id.edittext); in testTypeViewTextChangedAccessibilityEvent() local 314 editText.requestFocus(); in testTypeViewTextChangedAccessibilityEvent() 353 editText.getEditableText().replace(3, 4, newText); in testTypeViewTextChangedAccessibilityEvent() 643 final EditText editText = (EditText) getOnMain(sInstrumentation, () -> { in testViewHeadingReportedToAccessibility() local 648 return editText.isAccessibilityHeading(); in testViewHeadingReportedToAccessibility() 660 editText.setAccessibilityHeading(false)), in testViewHeadingReportedToAccessibility()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | InputMethodTestActivity.java | 46 final ImeAwareEditText editText = new ImeAwareEditText(this) { in onCreate() local 70 editText.setPrivateImeOptions(privateImeOption); in onCreate() 72 layout.addView(editText); in onCreate() 73 editText.scheduleShowSoftInput(); in onCreate() 74 editText.requestFocus(); in onCreate()
|
D | ShowWhenLockedAttrImeActivity.java | 31 final EditText editText = new EditText(this); in onCreate() local 34 layout.addView(editText); in onCreate() 38 editText.requestFocus(); in onCreate()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_IdsTest.java | 50 EditText editText = (EditText) activity.findViewById(R.id.entry); in testIds() local 56 assertNotNull(editText); in testIds() 65 editText.setId(0x1111); in testIds() 66 assertEquals(0x1111, editText.getId()); in testIds() 67 assertSame(editText, (EditText) activity.findViewById(0x1111)); in testIds()
|
D | View_DefaultFocusHighlightTest.java | 63 EditText editText = (EditText) activity.findViewById(R.id.edittext); in testSettersAndGetters() local 69 assertFalse(editText.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 75 editText.setDefaultFocusHighlightEnabled(true); in testSettersAndGetters() 81 assertTrue(editText.getDefaultFocusHighlightEnabled()); in testSettersAndGetters() 97 EditText editText = (EditText) activity.findViewById(R.id.edittext_to_inflate); in testInflating() local 104 assertTrue(editText.getDefaultFocusHighlightEnabled()); in testInflating()
|
/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 | 44 MultipleTimesTextWatcher(String name, int times, EditText editText, in MultipleTimesTextWatcher() argument 47 this.mEditText = editText; in MultipleTimesTextWatcher()
|
D | AutofillValueTest.java | 71 mEditText = (EditText) mActivity.findViewById(R.id.editText); in setFields()
|
/cts/tests/tests/preference/src/android/preference/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 | 74 EditText editText = new EditTextNoIme(InstrumentationRegistry.getTargetContext()); in testGetTransformation() local 75 editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in testGetTransformation() 76 editText.setText("hello\nworld\r"); in testGetTransformation()
|
D | PasswordTransformationMethodTest.java | 96 EditText editText = new EditTextNoIme(mActivity); in setup() local 97 editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in setup() 98 editText.setId(EDIT_TXT_ID); in setup() 99 editText.setTransformationMethod(mMethod); in setup() 103 layout.addView(editText, new LayoutParams(LayoutParams.MATCH_PARENT, in setup() 108 editText.requestFocus(); in setup()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MultiUserDeviceTest.java | 93 final EditText editText = new EditText(activity) { in testConnectingToTheSameUserIme() 106 editText.requestFocus(); in testConnectingToTheSameUserIme() 107 layout.addView(editText); in testConnectingToTheSameUserIme()
|
D | InputMethodServiceDeviceTest.java | 222 final UiObject2 editText = helper.findUiObject(EditTextAppConstants.EDIT_TEXT_RES_NAME); in testInputUnbindsOnImeStopped() local 223 editText.click(); in testInputUnbindsOnImeStopped() 238 editText.click(); in testInputUnbindsOnImeStopped()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | EditTextTest.java | 352 final EditText editText = new EditText(context); in testHyphenationFrequencyDefaultValue() local 356 assertEquals(Layout.HYPHENATION_FREQUENCY_NORMAL, editText.getHyphenationFrequency()); in testHyphenationFrequencyDefaultValue() 358 assertEquals(Layout.HYPHENATION_FREQUENCY_NONE, editText.getHyphenationFrequency()); in testHyphenationFrequencyDefaultValue() 365 final EditText editText = new EditText(context); in testBreakStrategyDefaultValue() local 366 assertEquals(Layout.BREAK_STRATEGY_SIMPLE, editText.getBreakStrategy()); in testBreakStrategyDefaultValue() 397 GetTextEditText editText = new GetTextEditText(mActivity); in testGetTextNonEditable() local 417 GetTextEditText2 editText = new GetTextEditText2(mActivity); in testGetTextBeforeConstructor() local
|
D | PopupMenuTest.java | 92 final EditText editText = (EditText) mActivity.findViewById(R.id.anchor_upper_left); in setup() local 93 editText.setEnabled(false); in setup() 94 editText.setFocusable(false); in setup()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | KeyguardLockedTests.java | 361 final EditText editText = new EditText(this); in onCreate() local 364 editText.setPrivateImeOptions( in onCreate() 368 layout.addView(editText); in onCreate() 374 editText.requestFocus(); in onCreate()
|
D | MultiDisplaySystemDecorationTests.java | 566 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testCrossDisplayBasicImeOperations() local 570 editorMatcher("onStartInput", editText.getPrivateImeOptions()), in testCrossDisplayBasicImeOperations() 578 () -> TextUtils.equals(commitText, editText.getText()), TIMEOUT, in testCrossDisplayBasicImeOperations()
|
/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()
|