/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewHandwritingGestureTest.java | 108 private EditText mEditText; field in TextViewHandwritingGestureTest 142 mEditText = new EditText(mActivityRule.getActivity()); in setup() 143 mEditText.setTypeface(typeface); in setup() 146 mEditText.setTextSize(TypedValue.COMPLEX_UNIT_PX, 1.0f); in setup() 150 mEditText.setLineSpacing(/* add= */ 2 * mGestureLineMargin + 20f, /* mult= */ 1f); in setup() 151 mEditText.setText(DEFAULT_TEXT); in setup() 153 mEditText.measure( in setup() 156 mEditText.layout(0, 0, WIDTH, HEIGHT); in setup() 157 mEditText.setLayoutParams(new ViewGroup.LayoutParams(WIDTH, HEIGHT)); in setup() 159 mLocationOnScreen = mEditText.getLocationOnScreen(); in setup() [all …]
|
D | TextViewTextBoundsInfoTest.java | 121 private EditText mEditText; field in TextViewTextBoundsInfoTest 146 mEditText = activity.findViewById(R.id.edittext); in setupEditText() 149 mEditText.setTypeface(sTypeface); in setupEditText() 150 mEditText.setText(DEFAULT_TEXT); in setupEditText() 151 mEditText.setTextSize(TypedValue.COMPLEX_UNIT_PX, TEXT_SIZE); in setupEditText() 152 mEditText.setLayoutParams(new FrameLayout.LayoutParams(VIEW_WIDTH, VIEW_HEIGHT)); in setupEditText() 154 mEditText.setPadding(TEXT_LAYOUT_LEFT, TEXT_LAYOUT_TOP, 0, 0); in setupEditText() 157 mEditText.setCompoundDrawables(null, null, null, null); in setupEditText() 159 mEditText.setGravity(Gravity.TOP); in setupEditText() 160 mEditText.setTranslationX(translationX); in setupEditText() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_UsingViewsTest.java | 104 private EditText mEditText; field in View_UsingViewsTest 126 mEditText = (EditText) mActivity.findViewById(R.id.entry); in setup() 151 mEditText.setText(null); in testSetProperties() 161 mEditText.setDrawingCacheEnabled(true); in testSetProperties() 162 assertTrue(mEditText.isDrawingCacheEnabled()); in testSetProperties() 165 assertEquals(View.DRAWING_CACHE_QUALITY_AUTO, mEditText.getDrawingCacheQuality()); in testSetProperties() 166 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW); in testSetProperties() 167 assertEquals(View.DRAWING_CACHE_QUALITY_LOW, mEditText.getDrawingCacheQuality()); in testSetProperties() 168 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); in testSetProperties() 169 assertEquals(View.DRAWING_CACHE_QUALITY_HIGH, mEditText.getDrawingCacheQuality()); in testSetProperties() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TransformationMethodTest.java | 63 private EditText mEditText; field in TransformationMethodTest 83 mEditText = new EditTextNoIme(mActivity); in setup() 84 mEditText.setId(EDIT_TXT_ID); in setup() 85 mEditText.setTransformationMethod(mMethod); in setup() 90 layout.addView(mEditText, new LayoutParams(LayoutParams.MATCH_PARENT, in setup() 95 mEditText.requestFocus(); in setup() 99 assertTrue(mEditText.isFocused()); in setup() 106 mActivityRule.runOnUiThread(() -> mEditText.setText("some text")); in testGetTransformation() 115 assertTrue(mEditText.isFocused()); in testOnFocusChanged() 122 assertFalse(mEditText.isFocused()); in testOnFocusChanged() [all …]
|
D | ReplacementTransformationMethodTest.java | 55 private EditText mEditText; field in ReplacementTransformationMethodTest 70 mEditText = new EditTextNoIme(mActivityRule.getActivity()); in setup() 71 mEditText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); in setup() 81 mEditText.setTransformationMethod(method); in testGetTransformation() 82 mEditText.setText("010101"); in testGetTransformation() 108 mEditText.setTransformationMethod(method); in testGetTransformationWithAbmornalReplacement() 109 mEditText.setText("010101"); in testGetTransformationWithAbmornalReplacement() 116 mEditText.setTransformationMethod(method); in testGetTransformationWithAbmornalReplacement() 117 mEditText.setText("010101"); in testGetTransformationWithAbmornalReplacement() 128 mEditText.setTransformationMethod(method); in testGetTransformationWithAbnormalOriginal() [all …]
|
D | PasswordTransformationMethodTest.java | 97 private EditText mEditText; field in PasswordTransformationMethodTest 134 mEditText = (EditText) mActivity.findViewById(EDIT_TXT_ID); in setup() 135 assertTrue(mEditText.isFocused()); in setup() 187 mTransformedText = mMethod.getTransformation(mEditText.getText(), mEditText)); in testTextChangedCallBacks() 194 mCtsKeyEventUtil.sendKeys(mInstrumentation, mEditText, in testTextChangedCallBacks() 198 mCtsKeyEventUtil.sendKeys(mInstrumentation, mEditText, "H E 2*L O"); in testTextChangedCallBacks() 206 runOnUiThread(() -> mEditText.append(" ")); in testTextChangedCallBacks() 228 CharSequence transformed = method.getTransformation(null, mEditText); in testGetTransformation()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityImeTest.java | 92 private EditText mEditText; field in AccessibilityImeTest 122 mEditText = mActivity.findViewById(R.id.edittext); in setUp() 148 sInstrumentation.runOnMainSync(() -> mEditText.setPrivateImeOptions(markerValue)); in testDefaultImplementation() 174 () -> TextUtils.equals(expectedText, mEditText.getText()))); in testDefaultImplementation() 202 mEditText.setPrivateImeOptions(marker); in testOnUpdateSelectionForInProcessA11yIme() 203 mEditText.requestFocus(); in testOnUpdateSelectionForInProcessA11yIme() 226 mEditText.getContext().getSystemService(InputMethodManager.class); in testOnUpdateSelectionForInProcessA11yIme() 229 imm.updateSelection(mEditText, expectedNewSelStart, expectedNewSelEnd, -1, -1); in testOnUpdateSelectionForInProcessA11yIme() 265 assertEquals(mInitialText + mInitialText, mEditText.getText().toString()); in testInputConnection_requestIme() 305 + mEditText.getSelectionStart()); in testSelectionChange_requestIme() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/ |
D | MultiDisplayImeTests.java | 130 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays() 143 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchToDifferentDisplays() 173 activity.mEditText.getPrivateImeOptions()), TIMEOUT); in testFallbackImmMaintainsParameters() 178 imm.showSoftInput(activity.mEditText, 0 /* flags */); in testFallbackImmMaintainsParameters() 250 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 257 imeTestActivitySession2.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 266 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testImeWindowCanSwitchWhenTopFocusedDisplayChange() 300 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), TIMEOUT); in testCrossDisplayBasicImeOperations() 307 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testCrossDisplayBasicImeOperations() 351 imeTestActivitySession.getActivity().mEditText.getPrivateImeOptions()), in testDisplayPolicyImeHideImeOperation() [all …]
|
D | MultiDisplaySecurityImeTests.java | 78 final EditText editText = imeTestActivitySession.getActivity().mEditText; in testNoInputConnectionForUntrustedVirtualDisplay()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | HidHostActivity.java | 47 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/autofillservice/src/android/autofillservice/cts/testcore/ |
D | MultipleTimesTextWatcher.java | 41 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/backnavigation/ |
D | BackGestureInvokedTest.java | 231 EditText mEditText; field in BackGestureInvokedTest.ImeTestActivity 236 mEditText = new EditText(this); in onCreate() 239 layout.addView(mEditText); in onCreate() 240 if (mEditText.requestFocus()) { in onCreate() 243 imm.showSoftInput(mEditText, InputMethodManager.SHOW_IMPLICIT); in onCreate()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | WindowInsetsAnimationSynchronicityTests.java | 153 private EditText mEditText; field in WindowInsetsAnimationSynchronicityTests.TestActivity 164 mEditText = new EditText(this); in onCreate() 165 mEditText.setImeOptions(EditorInfo.IME_FLAG_NO_FULLSCREEN); in onCreate() 166 mTestView.addView(mEditText); in onCreate() 172 mEditText.requestFocus(); in onCreate() 174 mEditText.getWindowInsetsController().addOnControllableInsetsChangedListener(this); in onCreate() 189 mEditText.getWindowInsetsController().removeOnControllableInsetsChangedListener( in onControllableInsetsChanged()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | BubbleActivity.java | 32 private EditText mEditText; field in BubbleActivity 54 mEditText = findViewById(R.id.edit_text); in onCreate() 74 mEditText.setVisibility(GONE); in setUpTestForExtras()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 62 private EditText mEditText; field in EmojiTest 203 mActivityRule.runOnUiThread(() -> mEditText = new EditText(mActivity)); in testEmojiEditable() 204 mEditText.setText(origStr + String.valueOf(Character.toChars(testedCodePoints[i]))); in testEmojiEditable() 207 newStr = mEditText.getText().toString(); in testEmojiEditable() 211 mActivityRule.runOnUiThread(() -> mEditText.dispatchKeyEvent( in testEmojiEditable() 215 newStr = mEditText.getText().toString(); in testEmojiEditable()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/ |
D | MultiDisplayClientTests.java | 295 private EditText mEditText; field in MultiDisplayClientTests.ImeTestActivity 303 mEditText = new EditText(this); in onCreate() 306 layout.addView(mEditText); in onCreate() 316 mEditText.requestFocus(); in onResume()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDeviceImeTest.java | 535 EditText mEditText; field in VirtualDeviceImeTest.ImeActivity 540 mEditText = new EditText(this); in onCreate() 541 setContentView(mEditText); in onCreate() 547 mEditText.requestFocus(); in onResume()
|