Home
last modified time | relevance | path

Searched refs:editText (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiKeyboardTest.java70 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testAppendWithSoftKeyboard() local
75 mInstrumentation, editText); in testAppendWithSoftKeyboard()
78 Editable editable = editText.getEditableText(); in testAppendWithSoftKeyboard()
87 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testBackDeleteWithSoftKeyboard() local
91 mInstrumentation, editText); in testBackDeleteWithSoftKeyboard()
95 final Editable editable = editText.getEditableText(); in testBackDeleteWithSoftKeyboard()
99 KeyboardUtil.setSelection(mInstrumentation, editText.getEditableText(), in testBackDeleteWithSoftKeyboard()
109 final EditText editText = (EditText) activity.findViewById(R.id.editText); in testForwardDeleteWithSoftKeyboard() local
113 mInstrumentation, editText); in testForwardDeleteWithSoftKeyboard()
117 final Editable editable = editText.getEditableText(); in testForwardDeleteWithSoftKeyboard()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DEditTextLongTextPerfTest.java75 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 …]
DEditTextBackspacePerfTest.java92 private void prepareTextForBackspace(EditText editText) { in prepareTextForBackspace() argument
93 editText.setText(mText, TextView.BufferType.EDITABLE); in prepareTextForBackspace()
94 Selection.setSelection(editText.getText(), 0, 0); in prepareTextForBackspace()
98 editText.setLayoutParams(new ViewGroup.LayoutParams( in prepareTextForBackspace()
101 editText.invalidate(); in prepareTextForBackspace()
102 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in prepareTextForBackspace()
104 editText.layout(0, 0, 1024, 768); in prepareTextForBackspace()
108 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in prepareTextForBackspace()
109 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in prepareTextForBackspace()
115 EditText editText = new EditText(mActivityRule.getActivity()); in testBackspace() local
[all …]
DEditTextCursorMovementPerfTest.java91 EditText editText = new EditText(mActivityRule.getActivity()); in testCursorMovement()
93 editText.setText(mText, TextView.BufferType.EDITABLE); in testCursorMovement()
94 Selection.setSelection(editText.getText(), 0, 0); in testCursorMovement()
98 editText.setLayoutParams(new ViewGroup.LayoutParams( in testCursorMovement()
101 editText.invalidate(); in testCursorMovement()
102 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), in testCursorMovement()
104 editText.layout(0, 0, 1024, 768); in testCursorMovement()
108 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement()
109 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())); in testCursorMovement()
113 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); in testCursorMovement()
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DEmojiTextWatcher.java46 EmojiTextWatcher(EditText editText) { in EmojiTextWatcher() argument
47 mEditText = editText; in EmojiTextWatcher()
111 InitCallbackImpl(EditText editText) { in InitCallbackImpl() argument
112 mViewRef = new WeakReference<>(editText); in InitCallbackImpl()
118 final EditText editText = mViewRef.get(); in onInitialized() local
119 if (editText != null && editText.isAttachedToWindow()) { in onInitialized()
120 final Editable text = editText.getEditableText(); in onInitialized()
DEmojiEditTextHelper.java80 public EmojiEditTextHelper(@NonNull final EditText editText) { in EmojiEditTextHelper() argument
81 Preconditions.checkNotNull(editText, "editText cannot be null"); in EmojiEditTextHelper()
82 mHelper = Build.VERSION.SDK_INT >= 19 ? new HelperInternal19(editText) in EmojiEditTextHelper()
203 HelperInternal19(@NonNull EditText editText) { in HelperInternal19() argument
204 mEditText = editText; in HelperInternal19()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiEditTextTest.java67 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); in testInflateWithMaxEmojiCount() local
70 assertEquals(5, editText.getMaxEmojiCount()); in testInflateWithMaxEmojiCount()
76 editText.setMaxEmojiCount(1); in testInflateWithMaxEmojiCount()
81 assertEquals(1, editText.getMaxEmojiCount()); in testInflateWithMaxEmojiCount()
89 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); in testSetMaxCount() local
95 editText.setMaxEmojiCount(1); in testSetMaxCount()
98 editText.setText(string); in testSetMaxCount()
103 assertThat(editText.getText(), hasEmojiCount(1)); in testSetMaxCount()
DEmojiEditTextHelperPre19Test.java46 final EditText editText = mock(EditText.class); in setup() local
47 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); in setup()
48 verifyNoMoreInteractions(editText); in setup()
71 final EditText editText = mock(EditText.class); in testDoesNotAttachTextWatcher() local
73 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); in testDoesNotAttachTextWatcher()
75 verify(editText, times(0)).addTextChangedListener(any(TextWatcher.class)); in testDoesNotAttachTextWatcher()
DEmojiTextWatcherTest.java50 final EditText editText = mock(EditText.class); in setup() local
53 mTextWatcher = new EmojiTextWatcher(editText); in setup()
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
DImfBaseTestCase.java78 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/ImfTest/src/com/android/imftest/samples/
DManyEditTextActivityScrollResize.java47 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()
DOneEditTextActivitySelected.java51 EditText editText = new EditText(this); in onCreate() local
52 editText.requestFocus(); in onCreate()
53 mDefaultFocusedView = editText; in onCreate()
54 layout.addView(editText); in onCreate()
DManyEditTextActivityNoScrollPanScan.java53 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()
DManyEditTextActivityScrollPanScan.java54 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()
DDialogActivity.java102 EditText editText; in createDialog() local
103 editText = new EditText(this); in createDialog()
104 layout.addView(editText); in createDialog()
DOneEditTextActivityNotSelected.java52 EditText editText = new EditText(this); in onCreate() local
59 layout.addView(editText); in onCreate()
DInputTypeActivity.java147 EditText editText = (EditText) view.findViewById(R.id.data); in buildEntryView() local
148 editText.setInputType(inputType); in buildEntryView()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewAssertions.java204 EditText editText = (EditText) view;
205 Drawable drawable = editText.getEditorForTesting().getCursorDrawable()[0];
215 diff = drawableBounds.left - editText.getScrollX() + drawablePadding.left;
219 int maxRight = editText.getWidth() - editText.getCompoundPaddingRight()
220 - editText.getCompoundPaddingLeft() + editText.getScrollX();
/frameworks/base/core/java/android/preference/
DEditTextPreference.java115 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/support/design/tests/src/android/support/design/widget/
DTextInputLayoutTest.java309 final EditText editText = (EditText) activity.findViewById(R.id.textinput_edittext); in testExtractUiHintSet() local
314 editText.onCreateInputConnection(info); in testExtractUiHintSet()
339 final EditText editText = activity.findViewById(R.id.textinput_edittext); in testDispatchProvideAutofillStructure() local
340 assertNull(editText.getHint()); in testDispatchProvideAutofillStructure()
362 final TextInputEditText editText = new TextInputEditText(activity); in testSaveRestoreStateAnimation() local
363 editText.setText(INPUT_TEXT); in testSaveRestoreStateAnimation()
364 editText.setId(R.id.textinputedittext); in testSaveRestoreStateAnimation()
365 layout.addView(editText); in testSaveRestoreStateAnimation()
373 editText.setText(""); in testSaveRestoreStateAnimation()
396 final TextInputEditText editText = new TextInputEditText(activity); in testMaintainsLeftRightCompoundDrawables() local
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DKeyboardShortcutsTestCaseWithToolbar.java55 … final View editText = activity.findViewById(android.support.v7.appcompat.test.R.id.editText); in testAccessActionBar() local
59 editText.requestFocus(); in testAccessActionBar()
70 assertFalse(editText.hasFocus()); in testAccessActionBar()
85 assertTrue(editText.hasFocus()); in testAccessActionBar()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DEditTextTypeActivity.java56 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/
DListOfEditTexts.java120 EditText editText = new EditText(getContext()); in getView() local
121 editText.setText(body); in getView()
122 return editText; in getView()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DImeKeyMonitor.java39 public abstract boolean onKeyPreIme(EditText editText, int keyCode, KeyEvent event); in onKeyPreIme() argument
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
DR$id.classR.java package com.android.layoutlib.test.myapplication public final com.android. ...

12