Home
last modified time | relevance | path

Searched refs:mEditText (Results 1 – 9 of 9) 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 …]
/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java82 private RemoteEditText mEditText; field in RemoteInputView
117 mEditText = (RemoteEditText) getChildAt(0); in onFinishInflate()
118 mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { in onFinishInflate()
130 if (mEditText.length() > 0) { in onFinishInflate()
139 mEditText.addTextChangedListener(this); in onFinishInflate()
140 mEditText.setInnerFocusable(false); in onFinishInflate()
141 mEditText.mRemoteInputView = this; in onFinishInflate()
146 results.putString(mRemoteInput.getResultKey(), mEditText.getText().toString()); in sendRemoteInput()
156 mEditText.setEnabled(false); in sendRemoteInput()
159 mEntry.remoteInputText = mEditText.getText(); in sendRemoteInput()
[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.java58 private EditText mEditText; field in EditTextPreference
66 mEditText = new EditText(context, attrs); in EditTextPreference()
69 mEditText.setId(com.android.internal.R.id.edit); in EditTextPreference()
77 mEditText.setEnabled(true); in EditTextPreference()
124 EditText editText = mEditText; in onBindDialogView()
155 String value = mEditText.getText().toString(); in onDialogClosed()
183 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/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()