/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
D | EmojiKeyboardTest.java | 71 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testAppendWithSoftKeyboard() local 76 mInstrumentation, editText); in testAppendWithSoftKeyboard() 79 Editable editable = editText.getEditableText(); in testAppendWithSoftKeyboard() 88 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testBackDeleteWithSoftKeyboard() local 92 mInstrumentation, editText); in testBackDeleteWithSoftKeyboard() 96 final Editable editable = editText.getEditableText(); in testBackDeleteWithSoftKeyboard() 100 KeyboardUtil.setSelection(mInstrumentation, editText.getEditableText(), in testBackDeleteWithSoftKeyboard() 110 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testForwardDeleteWithSoftKeyboard() local 114 mInstrumentation, editText); in testForwardDeleteWithSoftKeyboard() 118 final Editable editable = editText.getEditableText(); in testForwardDeleteWithSoftKeyboard() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | EditTextLongTextPerfTest.java | 75 final EditText editText = new EditText(mActivityRule.getActivity()); in setupEditText() local 91 editText.setHeight(height); in setupEditText() 92 editText.setWidth(width); in setupEditText() 93 editText.setLayoutParams(new ViewGroup.LayoutParams(width, height)); in setupEditText() 96 activity.setContentView(editText); in setupEditText() 98 editText.setText(sb.toString(), TextView.BufferType.EDITABLE); in setupEditText() 99 editText.invalidate(); in setupEditText() 100 editText.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), in setupEditText() 102 editText.layout(0, 0, height, width); in setupEditText() 104 return editText; in setupEditText() [all …]
|
D | EditTextBackspacePerfTest.java | 87 private void prepareTextForBackspace(EditText editText) { in prepareTextForBackspace() argument 88 editText.setText(mText, TextView.BufferType.EDITABLE); in prepareTextForBackspace() 89 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace() 93 editText.setLayoutParams(new ViewGroup.LayoutParams( in prepareTextForBackspace() 96 editText.invalidate(); in prepareTextForBackspace() 97 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in prepareTextForBackspace() 99 editText.layout(0, 0, 1024, 768); in prepareTextForBackspace() 103 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace() 104 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace() 110 EditText editText = new EditText(mActivityRule.getActivity()); in testBackspace() local [all …]
|
D | EditTextCursorMovementPerfTest.java | 86 EditText editText = new EditText(mActivityRule.getActivity()); in testCursorMovement() 88 editText.setText(mText, TextView.BufferType.EDITABLE); in testCursorMovement() 89 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement() 93 editText.setLayoutParams(new ViewGroup.LayoutParams( in testCursorMovement() 96 editText.invalidate(); in testCursorMovement() 97 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in testCursorMovement() 99 editText.layout(0, 0, 1024, 768); in testCursorMovement() 103 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() 104 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement() 108 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement() [all …]
|
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/ |
D | EmojiEditTextTest.java | 68 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); in testInflateWithMaxEmojiCount() local 71 assertEquals(5, editText.getMaxEmojiCount()); in testInflateWithMaxEmojiCount() 77 editText.setMaxEmojiCount(1); in testInflateWithMaxEmojiCount() 82 assertEquals(1, editText.getMaxEmojiCount()); in testInflateWithMaxEmojiCount() 89 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); in testSetKeyListener_withNull() local 90 editText.setKeyListener(null); in testSetKeyListener_withNull() 91 assertNull(editText.getKeyListener()); in testSetKeyListener_withNull() 98 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); in testSetMaxCount() local 104 editText.setMaxEmojiCount(1); in testSetMaxCount() 107 editText.setText(string); in testSetMaxCount() [all …]
|
D | EmojiEditTextHelperPre19Test.java | 48 final EditText editText = mock(EditText.class); in setup() local 49 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); in setup() 50 verifyNoMoreInteractions(editText); in setup() 89 final EditText editText = mock(EditText.class); in testDoesNotAttachTextWatcher() local 91 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); in testDoesNotAttachTextWatcher() 93 verify(editText, times(0)).addTextChangedListener(any(TextWatcher.class)); in testDoesNotAttachTextWatcher()
|
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/ |
D | EmojiTextWatcher.java | 47 EmojiTextWatcher(EditText editText) { in EmojiTextWatcher() argument 48 mEditText = editText; in EmojiTextWatcher() 113 InitCallbackImpl(EditText editText) { in InitCallbackImpl() argument 114 mViewRef = new WeakReference<>(editText); in InitCallbackImpl() 120 final EditText editText = mViewRef.get(); in onInitialized() local 121 if (editText != null && editText.isAttachedToWindow()) { in onInitialized() 122 final Editable text = editText.getEditableText(); in onInitialized()
|
D | EmojiEditTextHelper.java | 82 public EmojiEditTextHelper(@NonNull final EditText editText) { in EmojiEditTextHelper() argument 83 Preconditions.checkNotNull(editText, "editText cannot be null"); in EmojiEditTextHelper() 84 mHelper = Build.VERSION.SDK_INT >= 19 ? new HelperInternal19(editText) in EmojiEditTextHelper() 206 HelperInternal19(@NonNull EditText editText) { in HelperInternal19() argument 207 mEditText = editText; in HelperInternal19()
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
D | ImfBaseTestCase.java | 78 public void verifyEditTextAdjustment(final View editText, int rootViewHeight) { in verifyEditTextAdjustment() argument 84 mImm.hideSoftInputFromWindow(editText.getWindowToken(), 0); in verifyEditTextAdjustment() 89 editText.requestFocus(); in verifyEditTextAdjustment() 94 editText.getLocationOnScreen(origLocation); in verifyEditTextAdjustment() 100 editText.getLocationOnScreen(newLocation); in verifyEditTextAdjustment() 103 editText.getLocationOnScreen(newLocation); in verifyEditTextAdjustment() 110 mImm.hideSoftInputFromWindow(editText.getWindowToken(), 0); in verifyEditTextAdjustment()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | EditTextInputActivity.java | 36 final EditText editText = new EditText(this); in onCreate() local 40 editText.setWidth(400); in onCreate() 41 editText.setHeight(200); in onCreate() 42 setContentView(editText); in onCreate() 64 editText.getLocationOnScreen(coordinates); in onCreate() 69 float width = editText.getWidth(); in onCreate() 70 float height = editText.getHeight(); in onCreate()
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
D | ManyEditTextActivityScrollResize.java | 47 final EditText editText = new EditText(this); in onCreate() local 48 editText.setText(String.valueOf(i)); in onCreate() 49 editText.setId(i); in onCreate() 50 layout.addView(editText); in onCreate()
|
D | OneEditTextActivitySelected.java | 51 EditText editText = new EditText(this); in onCreate() local 52 editText.requestFocus(); in onCreate() 53 mDefaultFocusedView = editText; in onCreate() 54 layout.addView(editText); in onCreate()
|
D | ManyEditTextActivityNoScrollPanScan.java | 53 final EditText editText = new EditText(this); in onCreate() local 54 editText.setText(String.valueOf(i)); in onCreate() 55 editText.setId(i); in onCreate() 56 ((LinearLayout) mRootView).addView(editText); in onCreate()
|
D | ManyEditTextActivityScrollPanScan.java | 54 final EditText editText = new EditText(this); in onCreate() local 55 editText.setText(String.valueOf(i)); in onCreate() 56 editText.setId(i); in onCreate() 57 layout.addView(editText); in onCreate()
|
D | DialogActivity.java | 102 EditText editText; in createDialog() local 103 editText = new EditText(this); in createDialog() 104 layout.addView(editText); in createDialog()
|
D | OneEditTextActivityNotSelected.java | 52 EditText editText = new EditText(this); in onCreate() local 59 layout.addView(editText); in onCreate()
|
/frameworks/base/core/java/android/preference/ |
D | EditTextPreference.java | 115 EditText editText = mEditText; in onBindDialogView() local 116 editText.setText(getText()); in onBindDialogView() 118 ViewParent oldParent = editText.getParent(); in onBindDialogView() 121 ((ViewGroup) oldParent).removeView(editText); in onBindDialogView() 123 onAddEditTextToDialogView(view, editText); in onBindDialogView() 132 protected void onAddEditTextToDialogView(View dialogView, EditText editText) { in onAddEditTextToDialogView() argument 136 container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT, in onAddEditTextToDialogView()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewAssertions.java | 207 EditText editText = (EditText) view; 208 Drawable drawable = editText.getEditorForTesting().getCursorDrawable(); 218 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left; 222 int maxRight = editText.getWidth() - editText.getCompoundPaddingRight() 223 - editText.getCompoundPaddingLeft() + editText.getScrollX();
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | CustomEditTextPreferenceTest.java | 53 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_shouldRequestFocus() local 54 editText.setText(testText); in bindDialogView_shouldRequestFocus() 55 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_shouldRequestFocus() 59 verify(editText).requestFocus(); in bindDialogView_shouldRequestFocus()
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/ |
D | KeyboardShortcutsTestCaseWithToolbar.java | 56 final View editText = activity.findViewById(androidx.appcompat.test.R.id.editText); in testAccessActionBar() local 60 editText.requestFocus(); in testAccessActionBar() 71 assertFalse(editText.hasFocus()); in testAccessActionBar() 86 assertTrue(editText.hasFocus()); in testAccessActionBar()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | CustomEditTextPreference.java | 84 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 85 if (editText != null) { in onBindDialogView() 86 editText.setInputType(TYPE_CLASS_TEXT | TYPE_TEXT_FLAG_CAP_SENTENCES); in onBindDialogView() 87 editText.requestFocus(); in onBindDialogView()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | EditTextTypeActivity.java | 56 EditText editText = new EditText(this); in onCreate() local 57 editText.setText(sSeedText); in onCreate() 58 setContentView(editText); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListOfEditTexts.java | 120 EditText editText = new EditText(getContext()); in getView() local 121 editText.setText(body); in getView() 122 return editText; in getView()
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
D | AppCompatEditTextTest.java | 47 GetTextEditText editText = new GetTextEditText(mActivityTestRule.getActivity()); in testGetTextNonEditable() local 68 GetTextEditText2 editText = new GetTextEditText2(mActivityTestRule.getActivity()); in testGetTextBeforeConstructor() local
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | ImeKeyMonitor.java | 39 public abstract boolean onKeyPreIme(EditText editText, int keyCode, KeyEvent event); in onKeyPreIme() argument
|