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.java64 private EditText mEditText; field in EditorCursorTest
73 mEditText = mActivity.findViewById(R.id.edittext); in setUp()
76 onView(sameInstance(mEditText)).perform(click()); in setUp()
85 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForLtr()
94 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForLtr()
103 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForRtl()
112 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsInViewBoundariesWhenOnLeftForRtl()
119 assertThat(mEditText.getText().toString(), isEmptyString()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
120 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
122 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/
DStartInTouchWithViewInFocusTest.java31 private EditText mEditText; field in StartInTouchWithViewInFocusTest
43 mEditText = getActivity().getEditText(); in setUp()
49 assertTrue("should start in touch mode", mEditText.isInTouchMode()); in testPreconditions()
50 … assertTrue("edit text is focusable in touch mode, should have focus", mEditText.isFocused()); in testPreconditions()
55 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_DPAD_DOWN, mEditText); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
56 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
62 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_A, mEditText); in DISABLE_testNonDirectionalKeyExitsTouchMode()
63 assertFalse("should have left touch mode", mEditText.isInTouchMode()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
64 assertTrue("edit text should still have focus", mEditText.isFocused()); in DISABLE_testNonDirectionalKeyExitsTouchMode()
DTouchModeFocusableTest.java33 private EditText mEditText; field in TouchModeFocusableTest
45 mEditText = getActivity().getEditText(); in setUp()
52 assertTrue("edit text should have focus", mEditText.isFocused()); in testPreconditions()
53 … assertTrue("edit text should be focusable in touch mode", mEditText.isFocusableInTouchMode()); in testPreconditions()
60 assertTrue("edit text should still have focus", mEditText.isFocused()); in testClickButtonEditTextKeepsFocus()
70 assertInTouchModeAfterClick(this, mEditText); in testClickEditTextGivesItFocus()
72 assertTrue("clicking edit text should have given it focus", mEditText.isFocused()); in testClickEditTextGivesItFocus()
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
DRemoteInputView.java73 private RemoteEditText mEditText; field in RemoteInputView
97 mEditText = (RemoteEditText) getChildAt(0); in onFinishInflate()
98 mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { in onFinishInflate()
110 if (mEditText.length() > 0) { in onFinishInflate()
119 mEditText.addTextChangedListener(this); in onFinishInflate()
120 mEditText.setInnerFocusable(false); in onFinishInflate()
121 mEditText.mRemoteInputView = this; in onFinishInflate()
126 results.putString(mRemoteInput.getResultKey(), mEditText.getText().toString()); in sendRemoteInput()
131 mEditText.setEnabled(false); in sendRemoteInput()
134 mEditText.mShowImeOnInputConnection = false; in sendRemoteInput()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java78 private RemoteEditText mEditText; field in RemoteInputView
113 mEditText = (RemoteEditText) getChildAt(0); in onFinishInflate()
114 mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { in onFinishInflate()
126 if (mEditText.length() > 0) { in onFinishInflate()
135 mEditText.addTextChangedListener(this); in onFinishInflate()
136 mEditText.setInnerFocusable(false); in onFinishInflate()
137 mEditText.mRemoteInputView = this; in onFinishInflate()
142 results.putString(mRemoteInput.getResultKey(), mEditText.getText().toString()); in sendRemoteInput()
148 mEditText.setEnabled(false); in sendRemoteInput()
151 mEntry.remoteInputText = mEditText.getText(); in sendRemoteInput()
[all …]
/frameworks/support/preference/src/main/java/androidx/preference/
DEditTextPreferenceDialogFragmentCompat.java32 private EditText mEditText; field in EditTextPreferenceDialogFragmentCompat
65 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
66 mEditText.requestFocus(); in onBindDialogView()
68 if (mEditText == null) { in onBindDialogView()
73 mEditText.setText(mText); in onBindDialogView()
75 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
94 String value = mEditText.getText().toString(); in onDialogClosed()
DEditTextPreferenceDialogFragment.java32 private EditText mEditText; field in EditTextPreferenceDialogFragment
65 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
66 mEditText.requestFocus(); in onBindDialogView()
68 if (mEditText == null) { in onBindDialogView()
73 mEditText.setText(mText); in onBindDialogView()
75 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
94 String value = mEditText.getText().toString(); in onDialogClosed()
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/
DEmojiEditTextHelperTest.java51 EditText mEditText; field in EmojiEditTextHelperTest
56 mEditText = new EditText(InstrumentationRegistry.getTargetContext()); in setup()
57 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in setup()
115 mEditText = mock(EditText.class); in testAttachesTextWatcher()
116 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in testAttachesTextWatcher()
121 verify(mEditText, times(1)).addTextChangedListener(argumentCaptor.capture()); in testAttachesTextWatcher()
127 mEditText = mock(EditText.class); in testSetMaxCount()
128 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in testSetMaxCount()
132 verify(mEditText, times(1)).addTextChangedListener(argumentCaptor.capture()); in testSetMaxCount()
143 mEditText = mock(EditText.class); in testSetEmojiReplaceStrategy()
[all …]
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java45 private EditText mEditText; field in FindActionModeCallback
58 mEditText = (EditText) mCustomView.findViewById( in FindActionModeCallback()
60 mEditText.setCustomSelectionActionModeCallback(new NoAction()); in FindActionModeCallback()
61 mEditText.setOnClickListener(this); in FindActionModeCallback()
78 mEditText.setText(text); in setText()
79 Spannable span = (Spannable) mEditText.getText(); in setText()
144 CharSequence find = mEditText.getText(); in findAll()
159 if (mEditText.requestFocus()) { in showSoftInput()
160 mInput.showSoftInput(mEditText, 0); in showSoftInput()
213 Editable edit = mEditText.getText(); in onCreateActionMode()
[all …]
/frameworks/base/core/java/android/preference/
DEditTextPreference.java49 private EditText mEditText; field in EditTextPreference
57 mEditText = new EditText(context, attrs); in EditTextPreference()
60 mEditText.setId(com.android.internal.R.id.edit); in EditTextPreference()
68 mEditText.setEnabled(true); in EditTextPreference()
115 EditText editText = mEditText; in onBindDialogView()
146 String value = mEditText.getText().toString(); in onDialogClosed()
174 return mEditText; in getEditText()
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
DEmojiEditTextHelper.java203 private final EditText mEditText; field in EmojiEditTextHelper.HelperInternal19
207 mEditText = editText; in HelperInternal19()
208 mTextWatcher = new EmojiTextWatcher(mEditText); in HelperInternal19()
209 mEditText.addTextChangedListener(mTextWatcher); in HelperInternal19()
210 mEditText.setEditableFactory(EmojiEditableFactory.getInstance()); in HelperInternal19()
237 return new EmojiInputConnection(mEditText, inputConnection, outAttrs); in onCreateInputConnection()
DEmojiTextWatcher.java41 private final EditText mEditText; field in EmojiTextWatcher
48 mEditText = editText; in EmojiTextWatcher()
70 if (mEditText.isInEditMode()) { in onTextChanged()
105 mInitCallback = new InitCallbackImpl(mEditText); in getInitCallback()
/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/tests/ImfTest/src/com/android/imftest/samples/
DDialogActivity.java38 private EditText mEditText; field in DialogActivity
72 mEditText = new EditText(this); in onCreate()
73 mLayout.addView(mEditText); in onCreate()
/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
92 mEditText = (EditText)findViewById(R.id.message); in onCreate()
93 mEditText.setOnEditorActionListener(this); in onCreate()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt4460 Landroid/preference/EditTextPreference;->mEditText:Landroid/widget/EditText;