Home
last modified time | relevance | path

Searched refs:mEditText (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorTest.java66 private EditText mEditText; field in EditorCursorTest
75 mEditText = mActivity.findViewById(R.id.edittext); in setUp()
78 onView(sameInstance(mEditText)).perform(click()); in setUp()
87 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForLtr()
96 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForLtr()
105 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForRtl()
114 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForRtl()
121 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
122 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
124 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
[all …]
DTextViewReceiveContentTest.java78 private CustomInputConnectionEditText mEditText; field in TextViewReceiveContentTest
85 mEditText = mActivity.findViewById(R.id.edittext2); in before()
86 mDefaultReceiver = mEditText.getEditorForTesting().getDefaultOnReceiveContentListener(); in before()
94 mEditText.setContentMimeTypes(mimeTypes); in testGetFallbackMimeTypesForAutofill()
96 mEditText.setInputConnectionWrapper(ic); in testGetFallbackMimeTypesForAutofill()
99 onView(withId(mEditText.getId())).perform(clickOnTextAtIndex(0)); in testGetFallbackMimeTypesForAutofill()
102 assertThat(mDefaultReceiver.getFallbackMimeTypesForAutofill(mEditText)).isEqualTo( in testGetFallbackMimeTypesForAutofill()
111 mEditText.setContentMimeTypes(new String[0]); in testGetFallbackMimeTypesForAutofill_noMimeTypesInEditorInfo()
113 mEditText.setInputConnectionWrapper(ic); in testGetFallbackMimeTypesForAutofill_noMimeTypesInEditorInfo()
116 onView(withId(mEditText.getId())).perform(clickOnTextAtIndex(0)); in testGetFallbackMimeTypesForAutofill_noMimeTypesInEditorInfo()
[all …]
DEditTextCursorAnchorInfoTest.java79 private TextView mEditText; field in EditTextCursorAnchorInfoTest
112 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testMatrix()
126 mEditText.setTranslationX(translationX); in testMatrix_withTranslation()
127 mEditText.setTranslationY(translationY); in testMatrix_withTranslation()
131 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testMatrix_withTranslation()
148 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testEditorBoundsInfo_allVisible()
165 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testEditorBoundsInfo_scrolled()
183 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testEditorBoundsInfo_invisible()
194 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testVisibleLineBounds_allVisible()
207 mEditText.getCursorAnchorInfo(0, sCursorAnchorInfoBuilder, sMatrix); in testVisibleLineBounds_allVisible_withLineSpacing()
[all …]
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DTextAppearanceInfoTest.java82 private final EditText mEditText = new EditText(mContext); field in TextAppearanceInfoTest
93 assertTextAppearanceInfoContentsEqual(TextAppearanceInfo.createFromTextView(mEditText)); in testCreateFromTextView_noSpan()
107 mEditText.setText(mSpannableText); in testCreateFromTextView_withSpan1()
110 mEditText.setSelection(0); in testCreateFromTextView_withSpan1()
111 TextAppearanceInfo info1 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_withSpan1()
117 mEditText.setSelection(1); in testCreateFromTextView_withSpan1()
118 TextAppearanceInfo info2 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_withSpan1()
124 mEditText.setSelection(2); in testCreateFromTextView_withSpan1()
125 TextAppearanceInfo info3 = TextAppearanceInfo.createFromTextView(mEditText); in testCreateFromTextView_withSpan1()
131 mEditText.setSelection(2, mSpannableText.length()); in testCreateFromTextView_withSpan1()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DStartInTouchWithViewInFocusTest.java32 private EditText mEditText; field in StartInTouchWithViewInFocusTest
44 mEditText = getActivity().getEditText(); in setUp()
50 assertTrue("should start in touch mode", mEditText.isInTouchMode()); in testPreconditions()
51 … assertTrue("edit text is focusable in touch mode, should have focus", mEditText.isFocused()); in testPreconditions()
56 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_DPAD_DOWN, mEditText); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
57 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
63 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_A, mEditText); in DISABLE_testNonDirectionalKeyExitsTouchMode()
64 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
65 assertTrue("edit text should still have focus", mEditText.isFocused()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
DTouchModeFocusableTest.java34 private EditText mEditText; field in TouchModeFocusableTest
46 mEditText = getActivity().getEditText(); in setUp()
53 assertTrue("edit text should have focus", mEditText.isFocused()); in testPreconditions()
54 … assertTrue("edit text should be focusable in touch mode", mEditText.isFocusableInTouchMode()); in testPreconditions()
61 assertTrue("edit text should still have focus", mEditText.isFocused()); in testClickButtonEditTextKeepsFocus()
71 assertInTouchModeAfterClick(this, mEditText); in testClickEditTextGivesItFocus()
73 assertTrue("clicking edit text should have given it focus", mEditText.isFocused()); in testClickEditTextGivesItFocus()
/frameworks/base/services/tests/InputMethodSystemServerTests/test-apps/SimpleTestIme/src/com/android/apps/inputmethod/simpleime/testing/
DTestActivity.java66 private EditText mEditText; field in TestActivity
69 return mEditText; in getEditText()
77 mEditText = new EditText(this); in onCreate()
78 mEditText.setContentDescription("Input box"); in onCreate()
79 rootView.addView(mEditText, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate()
82 mEditText.requestFocus(); in onCreate()
94 boolean result = imm.showSoftInput(mEditText, flags); in showImeWithInputMethodManager()
101 WindowInsetsController windowInsetsController = mEditText.getWindowInsetsController(); in showImeWithWindowInsetsController()
110 boolean result = imm.hideSoftInputFromWindow(mEditText.getWindowToken(), flags); in hideImeWithInputMethodManager()
117 WindowInsetsController windowInsetsController = mEditText.getWindowInsetsController(); in hideImeWithWindowInsetsController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java122 private RemoteEditText mEditText; field in RemoteInputView
187 mEditText.hideIme(); in hideIme()
241 mEditText.setTextColor(textColor); in setBackgroundTintColor()
242 mEditText.setHintTextColor(hintColor); in setBackgroundTintColor()
243 if (mEditText.getTextCursorDrawable() != null) { in setBackgroundTintColor()
244 mEditText.getTextCursorDrawable().setColorFilter( in setBackgroundTintColor()
274 mEditText = findViewById(R.id.remote_input_text); in onFinishInflate()
275 mEditText.setInnerFocusable(false); in onFinishInflate()
279 mEditText.setEnabled(false); in onFinishInflate()
280 mEditText.setWindowInsetsAnimationCallback( in onFinishInflate()
[all …]
/frameworks/base/core/java/android/preference/
DEditTextPreference.java60 private EditText mEditText; field in EditTextPreference
68 mEditText = new EditText(context, attrs); in EditTextPreference()
71 mEditText.setId(com.android.internal.R.id.edit); in EditTextPreference()
79 mEditText.setEnabled(true); in EditTextPreference()
126 EditText editText = mEditText; in onBindDialogView()
141 mEditText.requestFocus(); in showDialog()
142 mEditText.getWindowInsetsController().show(WindowInsets.Type.ime()); in showDialog()
164 String value = mEditText.getText().toString(); in onDialogClosed()
192 return mEditText; in getEditText()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java51 private EditText mEditText; field in FindActionModeCallback
64 mEditText = (EditText) mCustomView.findViewById( in FindActionModeCallback()
66 mEditText.setCustomSelectionActionModeCallback(new NoAction()); in FindActionModeCallback()
67 mEditText.setOnClickListener(this); in FindActionModeCallback()
84 mEditText.setText(text); in setText()
85 Spannable span = (Spannable) mEditText.getText(); in setText()
150 CharSequence find = mEditText.getText(); in findAll()
165 if (mEditText.requestFocus()) { in showSoftInput()
166 mInput.showSoftInput(mEditText, 0); in showSoftInput()
224 Editable edit = mEditText.getText(); in onCreateActionMode()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DEditTextActivity.java49 private EditText mEditText; field in EditTextActivity
59 mEditText = findViewById(R.id.edit_text); in onCreate()
99 mEditText.setText(clip.getItemAt(0).getText().toString()); in onStart()
100 mEditText.requestFocus(); in onStart()
101 mEditText.setSelection(0); in onStart()
122 Editable editedText = mEditText.getText(); in saveToClipboard()
134 imm.hideSoftInputFromWindow(mEditText.getWindowToken(), 0); in hideIme()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DLLEditTextThenButton.java28 private EditText mEditText; field in LLEditTextThenButton
40 mEditText = findViewById(R.id.editText); in onCreate()
49 return mEditText; in getEditText()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java182 private EditText mEditText; field in GlobalActionsImeTest.TestActivity
191 mEditText = new EditText(this); in onCreate()
192 mEditText.setCursorVisible(false); // Otherwise, main thread doesn't go idle. in onCreate()
193 setContentView(mEditText); in onCreate()
198 mEditText.requestFocus(); in showIme()
200 WindowInsetsController wic = mEditText.getWindowInsetsController(); in showIme()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DImeStressTestUtil.java324 private EditText mEditText; field in ImeStressTestUtil.TestActivity
391 mEditText = new EditText(this); in onCreate()
393 mEditText.setFocusableInTouchMode(false); in onCreate()
395 rootView.addView(mEditText, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in onCreate()
426 .showSoftInput(mEditText, 0 /* flags */); in showImeWithInputMethodManager()
439 .hideSoftInputFromWindow(mEditText.getWindowToken(), 0 /* flags */); in hideImeWithInputMethodManager()
454 WindowInsetsController windowInsetsController = mEditText.getWindowInsetsController(); in showImeWithWindowInsetsController()
467 WindowInsetsController windowInsetsController = mEditText.getWindowInsetsController(); in hideImeWithWindowInsetsController()
479 return mEditText; in getEditText()
507 mEditText.setWindowInsetsAnimationCallback( in enableAnimationMonitoring()
[all …]
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
DSerialChat.java42 private EditText mEditText; field in SerialChat
58 mEditText = (EditText)findViewById(R.id.message); in onCreate()
59 mEditText.setOnEditorActionListener(this); in onCreate()
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java52 private EditText mEditText; field in AccessoryChat
94 mEditText = (EditText)findViewById(R.id.message); in onCreate()
95 mEditText.setOnEditorActionListener(this); in onCreate()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt64760 Landroid/webkit/FindActionModeCallback;->mEditText:Landroid/widget/EditText;