Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorTest.java46 private EditText mEditText; field in EditorCursorTest
55 mEditText = new EditText(getActivity()); in setUp()
56 mEditText.setTextSize(30); in setUp()
57 mEditText.setSingleLine(true); in setUp()
58 mEditText.setLines(1); in setUp()
59 mEditText.setPadding(15, 15, 15, 15); in setUp()
63 mEditText.setLayoutParams(editTextLayoutParams); in setUp()
70 layout.addView(mEditText); in setUp()
79 onView(sameInstance(mEditText)).perform(click()); in setUp()
88 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); in testCursorIsInViewBoundariesWhenOnRightForLtr()
[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/design/src/android/support/design/widget/
DTextInputLayout.java124 EditText mEditText; field in TextInputLayout
320 if (mOriginalHint == null || mEditText == null) { in dispatchProvideAutofillStructure()
327 final CharSequence hint = mEditText.getHint(); in dispatchProvideAutofillStructure()
328 mEditText.setHint(mOriginalHint); in dispatchProvideAutofillStructure()
332 mEditText.setHint(hint); in dispatchProvideAutofillStructure()
338 if (mEditText != null) { in setEditText()
347 mEditText = editText; in setEditText()
354 mCollapsingTextHelper.setTypefaces(mEditText.getTypeface()); in setEditText()
356 mCollapsingTextHelper.setExpandedTextSize(mEditText.getTextSize()); in setEditText()
358 final int editTextGravity = mEditText.getGravity(); in setEditText()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java75 private RemoteEditText mEditText; field in RemoteInputView
109 mEditText = (RemoteEditText) getChildAt(0); in onFinishInflate()
110 mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { in onFinishInflate()
122 if (mEditText.length() > 0) { in onFinishInflate()
131 mEditText.addTextChangedListener(this); in onFinishInflate()
132 mEditText.setInnerFocusable(false); in onFinishInflate()
133 mEditText.mRemoteInputView = this; in onFinishInflate()
138 results.putString(mRemoteInput.getResultKey(), mEditText.getText().toString()); in sendRemoteInput()
143 mEditText.setEnabled(false); in sendRemoteInput()
146 mEntry.remoteInputText = mEditText.getText(); in sendRemoteInput()
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiEditTextHelperTest.java49 EditText mEditText; field in EmojiEditTextHelperTest
54 mEditText = new EditText(InstrumentationRegistry.getTargetContext()); in setup()
55 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in setup()
103 mEditText = mock(EditText.class); in testAttachesTextWatcher()
104 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in testAttachesTextWatcher()
109 verify(mEditText, times(1)).addTextChangedListener(argumentCaptor.capture()); in testAttachesTextWatcher()
115 mEditText = mock(EditText.class); in testSetMaxCount()
116 mEmojiEditTextHelper = new EmojiEditTextHelper(mEditText); in testSetMaxCount()
120 verify(mEditText, times(1)).addTextChangedListener(argumentCaptor.capture()); in testSetMaxCount()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java44 private EditText mEditText; field in FindActionModeCallback
57 mEditText = (EditText) mCustomView.findViewById( in FindActionModeCallback()
59 mEditText.setCustomSelectionActionModeCallback(new NoAction()); in FindActionModeCallback()
60 mEditText.setOnClickListener(this); in FindActionModeCallback()
77 mEditText.setText(text); in setText()
78 Spannable span = (Spannable) mEditText.getText(); in setText()
141 CharSequence find = mEditText.getText(); in findAll()
156 if (mEditText.requestFocus()) { in showSoftInput()
157 mInput.showSoftInput(mEditText, 0); in showSoftInput()
210 Editable edit = mEditText.getText(); in onCreateActionMode()
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DEmojiEditTextHelper.java162 private final EditText mEditText; field in EmojiEditTextHelper.HelperInternal19
166 mEditText = editText; in HelperInternal19()
167 mTextWatcher = new EmojiTextWatcher(mEditText); in HelperInternal19()
168 mEditText.addTextChangedListener(mTextWatcher); in HelperInternal19()
169 mEditText.setEditableFactory(EmojiEditableFactory.getInstance()); in HelperInternal19()
191 return new EmojiInputConnection(mEditText, inputConnection, outAttrs); in onCreateInputConnection()
DEmojiTextWatcher.java41 private final EditText mEditText; field in EmojiTextWatcher
46 mEditText = editText; in EmojiTextWatcher()
60 if (mEditText.isInEditMode()) { in onTextChanged()
89 mInitCallback = new InitCallbackImpl(mEditText); in getInitCallback()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DEditTextPreferenceDialogFragment.java32 private EditText mEditText; field in EditTextPreferenceDialogFragment
65 mEditText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView()
67 if (mEditText == null) { in onBindDialogView()
72 mEditText.setText(mText); in onBindDialogView()
91 String value = mEditText.getText().toString(); in onDialogClosed()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DEditTextPreferenceDialogFragmentCompat.java31 private EditText mEditText; field in EditTextPreferenceDialogFragmentCompat
64 mEditText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView()
66 if (mEditText == null) { in onBindDialogView()
71 mEditText.setText(mText); in onBindDialogView()
90 String value = mEditText.getText().toString(); in onDialogClosed()
/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/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()