/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | FocusHandlingTest.java | 107 final EditText editText = new EditText(activity); in launchTestActivity() 108 editText.setPrivateImeOptions(marker); in launchTestActivity() 109 editText.setHint("editText"); in launchTestActivity() 110 editText.requestFocus(); in launchTestActivity() 111 editTextRef.set(editText); in launchTestActivity() 113 layout.addView(editText); in launchTestActivity() 121 final EditText editText = launchTestActivity(marker); in launchTestActivity() local 122 editText.post(() -> { in launchTestActivity() 123 final ViewTreeObserver observerForEditText = editText.getViewTreeObserver(); in launchTestActivity() 125 outEditHasWindowFocusRef.set(editText.hasWindowFocus())); in launchTestActivity() [all …]
|
D | SpellCheckerTest.kt | 128 val (_, editText) = startTestActivity() in <lambda>() constant 129 CtsTouchUtils.emulateTapOnViewCenter(instrumentation, null, editText) in <lambda>() 130 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>() 135 findSuggestionSpanWithFlags(editText, FLAG_MISSPELLED) != null in <lambda>() 138 emulateTapAtOffset(editText, 2) in <lambda>() 140 waitOnMainUntil({ isCursorInside(editText, 1, 4) }, TIMEOUT) in <lambda>() 146 waitOnMainUntil({ "$uniqueSuggestion " == editText.text.toString() }, TIMEOUT) in <lambda>() 149 findSuggestionSpanWithFlags(editText, FLAG_MISSPELLED) == null in <lambda>() 168 val (_, editText) = startTestActivity() in <lambda>() constant 169 CtsTouchUtils.emulateTapOnViewCenter(instrumentation, null, editText) in <lambda>() [all …]
|
D | InputMethodStartInputLifecycleTest.java | 129 final EditText editText = focusedEditTextRef.get(); in testInputConnectionStateWhenScreenStateChanges() local 135 && editText.getWindowVisibility() != VISIBLE, TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 141 assertFalse(TestUtils.getOnMainSync(() -> imm.isActive(editText))); in testInputConnectionStateWhenScreenStateChanges() 149 TestUtils.waitOnMainUntil(() -> !TextUtils.equals(editText.getText(), "Hi!"), TIMEOUT, in testInputConnectionStateWhenScreenStateChanges() 156 && editText.getWindowVisibility() == VISIBLE, TIMEOUT); in testInputConnectionStateWhenScreenStateChanges() 157 CtsTouchUtils.emulateTapOnViewCenter(instrumentation, null, editText); in testInputConnectionStateWhenScreenStateChanges() 165 () -> imm.isActive(editText) && imm.isAcceptingText())); in testInputConnectionStateWhenScreenStateChanges() 168 TestUtils.waitOnMainUntil(() -> TextUtils.equals(editText.getText(), "Hello!"), TIMEOUT, in testInputConnectionStateWhenScreenStateChanges() 192 final EditText editText = launchTestActivity(marker); in testNoStartNewInputWhileOtherProcessHasWindowFocus() local 193 TestUtils.runOnMainSync(() -> editText.requestFocus()); in testNoStartNewInputWhileOtherProcessHasWindowFocus() [all …]
|
D | KeyboardVisibilityControlTest.java | 218 final EditText editText = launchTestActivity(marker); 225 getOnMainSync(() -> imm.isActive(editText))); 229 getOnMainSync(() -> imm.showSoftInput(editText, 0))); 239 getOnMainSync(() -> imm.hideSoftInputFromWindow(editText.getWindowToken(), 0))); 295 final EditText editText = launchTestActivity(marker); 302 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0)); 309 runOnMainSync(() -> imm.toggleSoftInputFromWindow(editText.getWindowToken(), 0, 0)); 354 final EditText editText = launchTestActivity(marker); 361 getOnMainSync(() -> imm.isActive(editText))); 365 getOnMainSync(() -> imm.showSoftInput(editText, 0))); [all …]
|
D | ImeInsetsVisibilityTest.java | 104 final EditText editText = editTextTestActivityPair.first; in testImeVisibilityWhenImeFocusableChildPopup() local 112 InstrumentationRegistry.getInstrumentation(), null, editText); in testImeVisibilityWhenImeFocusableChildPopup() local 113 TestUtils.waitOnMainUntil(() -> editText.hasFocus(), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup() 121 () -> editText.getRootWindowInsets().isVisible(WindowInsets.Type.ime())); in testImeVisibilityWhenImeFocusableChildPopup() 142 () -> editText.getRootWindowInsets().isVisible(WindowInsets.Type.ime())); in testImeVisibilityWhenImeFocusableChildPopup() 158 final EditText editText = editTextTestActivityPair.first; in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() local 166 InstrumentationRegistry.getInstrumentation(), null, editText); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() local 167 TestUtils.waitOnMainUntil(editText::hasFocus, TIMEOUT); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() 170 () -> editText.getRootWindowInsets().isVisible(WindowInsets.Type.ime())); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() 191 () -> editText.getRootWindowInsets().isVisible(WindowInsets.Type.ime())); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup() [all …]
|
D | OnScreenPositionTest.java | 71 final EditText editText = new EditText(activity); in launchTestActivity() 72 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 73 editText.setHint("editText"); in launchTestActivity() 74 editText.requestFocus(); in launchTestActivity() 75 editTextRef.set(editText); in launchTestActivity() 77 layout.addView(editText); in launchTestActivity() 97 final EditText editText = launchTestActivity(); in testImeIsNotBehindNavBar() local 104 InstrumentationRegistry.getInstrumentation(), null, editText); in testImeIsNotBehindNavBar() local
|
D | EditTextImeSupportTest.java | 83 final EditText editText = new EditText(activity); in launchTestActivity() 84 editText.setPrivateImeOptions(marker); in launchTestActivity() 85 editText.setHint("editText"); in launchTestActivity() 86 editText.setText(initialText); in launchTestActivity() 87 editText.setSelection(initialSelectionStart, initialSelectionEnd); in launchTestActivity() 88 editText.requestFocus(); in launchTestActivity() 89 editTextRef.set(editText); in launchTestActivity() 91 layout.addView(editText); in launchTestActivity() 112 final EditText editText = launchTestActivity(marker, initialText, initialSelectionStart, in testSetTextTriggersRestartInput() local 136 runOnMainSync(() -> editText.setText(updatedText)); in testSetTextTriggersRestartInput()
|
D | ImeInsetsControllerTest.java | 77 final EditText editText = new EditText(activity); in launchTestActivity() 78 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 79 editText.setHint("editText"); in launchTestActivity() 80 editText.requestFocus(); in launchTestActivity() 81 editTextRef.set(editText); in launchTestActivity() 85 layout.addView(editText); in launchTestActivity() 105 final EditText editText = launchResult.first; in testChangeSizeWhileControlling() local 112 editText.setOnApplyWindowInsetsListener((v, insets) -> { in testChangeSizeWhileControlling() 127 editText.getWindowInsetsController().addOnControllableInsetsChangedListener( in testChangeSizeWhileControlling() 164 editText.setOnApplyWindowInsetsListener((v, insets) -> { in testChangeSizeWhileControlling()
|
D | InputMethodServiceTest.java | 141 final EditText editText = new EditText(activity); 142 editText.setText("Editable"); 143 layout.addView(editText); 144 editText.requestFocus(); 376 final EditText editText = new EditText(activity) { 392 editText.setPrivateImeOptions(marker); 393 layout.addView(editText); 394 editText.requestFocus(); 447 final EditText editText = new EditText(activity) { 463 editTextRef.set(editText); [all …]
|
D | NavigationBarColorTest.java | 143 final ImeAwareEditText editText = new ImeAwareEditText(activity); in launchTestActivity() local 144 editText.setPrivateImeOptions(TEST_MARKER); in launchTestActivity() 145 editText.setHint("editText"); in launchTestActivity() 146 editText.requestFocus(); in launchTestActivity() 147 editText.scheduleShowSoftInput(); in launchTestActivity() 148 layout.addView(editText); in launchTestActivity() 196 final ImeAwareEditText editText = new ImeAwareEditText(activity); in showDialogIfNecessary() 197 editText.setPrivateImeOptions(TEST_MARKER); in showDialogIfNecessary() 198 editText.setHint("editText"); in showDialogIfNecessary() 199 editText.requestFocus(); in showDialogIfNecessary() [all …]
|
D | InputMethodServiceStrictModeTest.java | 196 final EditText editText = new EditText(activity); in createTestActivity() local 197 editText.setText("Editable"); in createTestActivity() 198 layout.addView(editText); in createTestActivity() 199 editText.requestFocus(); in createTestActivity()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityTextTraversalTest.java | 782 final EditText editText = (EditText) mActivity.findViewById(R.id.edit); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() local 787 editText.setVisibility(View.VISIBLE); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 788 editText.setText(getString(R.string.a_b)); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 789 Selection.removeSelection(editText.getText()); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 840 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 841 assertEquals(1, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 874 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 875 assertEquals(2, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 908 assertEquals(0, Selection.getSelectionStart(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 909 assertEquals(3, Selection.getSelectionEnd(editText.getText())); in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | WindowFocusHandleService.java | 98 final EditText editText = new EditText(windowContext) { in createPopupTextView() local 119 editText.setOnFocusChangeListener((v, hasFocus) -> { in createPopupTextView() 120 if (v == editText) { in createPopupTextView() 122 (WindowManager.LayoutParams) editText.getLayoutParams(); in createPopupTextView() 128 wm.updateViewLayout(editText, params); in createPopupTextView() 132 editText.setOnTouchListener((v, event) -> { in createPopupTextView() 135 (WindowManager.LayoutParams) editText.getLayoutParams(); in createPopupTextView() 138 wm.updateViewLayout(editText, params); in createPopupTextView() 143 editText.setBackground(new ColorDrawable(Color.CYAN)); in createPopupTextView() 155 wm.addView(editText, params); in createPopupTextView() [all …]
|
/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/framework/base/windowmanager/app/src/android/server/wm/app/ |
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/autofillservice/src/android/autofillservice/cts/testcore/ |
D | OneTimeTextWatcher.java | 27 public OneTimeTextWatcher(String name, EditText editText, CharSequence expectedAutofillValue) { in OneTimeTextWatcher() argument 28 super(name, 1, editText, expectedAutofillValue); in OneTimeTextWatcher()
|
D | MultipleTimesTextWatcher.java | 44 public MultipleTimesTextWatcher(String name, int times, EditText editText, in MultipleTimesTextWatcher() argument 47 this.mEditText = editText; in MultipleTimesTextWatcher()
|
/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 | 229 final UiObject2 editText = helper.findUiObject(EditTextAppConstants.EDIT_TEXT_RES_NAME); in testInputUnbindsOnImeStopped() local 230 editText.click(); in testInputUnbindsOnImeStopped() 245 editText.click(); in testInputUnbindsOnImeStopped() 347 final UiObject2 editText = helper.findUiObject(EditTextAppConstants.EDIT_TEXT_RES_NAME); in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn() local 350 editText); in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn() 353 editText.isFocused()); in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | MultiDisplaySystemDecorationTests.java | 564 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testCrossDisplayBasicImeOperations() local 568 editorMatcher("onStartInput", editText.getPrivateImeOptions()), in testCrossDisplayBasicImeOperations() 576 () -> TextUtils.equals(commitText, editText.getText()), TIMEOUT, in testCrossDisplayBasicImeOperations() 647 EditText editText = defaultDisplaySession.getActivity().mEditText; in testDisplayPolicyImeHideImeNoSystemDecorations() local 649 editText.getLocationOnScreen(location); in testDisplayPolicyImeHideImeNoSystemDecorations() 655 editorMatcher("onStartInput", editText.getPrivateImeOptions()), in testDisplayPolicyImeHideImeNoSystemDecorations() 679 editText = imeTestActivitySession.getActivity().mEditText; in testDisplayPolicyImeHideImeNoSystemDecorations() 681 editText.getLocationOnScreen(location); in testDisplayPolicyImeHideImeNoSystemDecorations() 687 notExpectEvent(stream, editorMatcher("onStartInput", editText.getPrivateImeOptions()), in testDisplayPolicyImeHideImeNoSystemDecorations()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | CheckoutActivityTest.java | 458 EditText editText = mActivity.getCcNumber(); 459 OneTimeTextWatcher textWatcher = new OneTimeTextWatcher(ID_CC_NUMBER, editText, 461 editText.addTextChangedListener(textWatcher); 467 assertThat(editText.getText().toString()).isEqualTo(expectedText); 473 EditText editText = mActivity.getCcNumber(); 474 mActivity.syncRunOnUiThread(() -> editText.setText("test")); 476 assertThat(editText.getAutofillValue()).isEqualTo(AutofillValue.forText("test")); 478 mActivity.syncRunOnUiThread(() -> editText.setEnabled(false)); 480 assertThat(editText.getAutofillValue()).isNull();
|