/frameworks/base/core/tests/coretests/src/android/widget/ |
EditorCursorTest.java | 64 private EditText mEditText; 73 mEditText = mActivity.findViewById(R.id.edittext); 76 onView(sameInstance(mEditText)).perform(click()); 85 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); 94 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 103 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); 112 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 119 assertThat(mEditText.getText().toString(), isEmptyString()); 120 assertThat(mEditText.getHint(), nullValue()); 122 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
TransformationMethodTest.java | 60 private EditText mEditText; 75 mEditText = new EditTextNoIme(mActivity); 76 mEditText.setId(EDIT_TXT_ID); 77 mEditText.setTransformationMethod(mMethod); 82 layout.addView(mEditText, new LayoutParams(LayoutParams.MATCH_PARENT, 87 mEditText.requestFocus(); 91 assertTrue(mEditText.isFocused()); 98 mActivityRule.runOnUiThread(() -> mEditText.setText("some text")); 107 assertTrue(mEditText.isFocused()); 114 assertFalse(mEditText.isFocused()) [all...] |
ReplacementTransformationMethodTest.java | 48 private EditText mEditText; 56 mEditText = new EditTextNoIme(mActivityRule.getActivity()); 57 mEditText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); 67 mEditText.setTransformationMethod(method); 68 mEditText.setText("010101"); 94 mEditText.setTransformationMethod(method); 95 mEditText.setText("010101"); 102 mEditText.setTransformationMethod(method); 103 mEditText.setText("010101"); 114 mEditText.setTransformationMethod(method) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
LLEditTextThenButton.java | 28 private EditText mEditText; 40 mEditText = findViewById(R.id.editText); 49 return mEditText;
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
StartInTouchWithViewInFocusTest.java | 31 private EditText mEditText; 43 mEditText = getActivity().getEditText(); 49 assertTrue("should start in touch mode", mEditText.isInTouchMode()); 50 assertTrue("edit text is focusable in touch mode, should have focus", mEditText.isFocused()); 55 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_DPAD_DOWN, mEditText); 56 assertFalse("should have left touch mode", mEditText.isInTouchMode()); 62 assertNotInTouchModeAfterKey(this, KeyEvent.KEYCODE_A, mEditText); 63 assertFalse("should have left touch mode", mEditText.isInTouchMode()); 64 assertTrue("edit text should still have focus", mEditText.isFocused());
|
TouchModeFocusableTest.java | 33 private EditText mEditText; 45 mEditText = getActivity().getEditText(); 52 assertTrue("edit text should have focus", mEditText.isFocused()); 53 assertTrue("edit text should be focusable in touch mode", mEditText.isFocusableInTouchMode()); 60 assertTrue("edit text should still have focus", mEditText.isFocused()); 70 assertInTouchModeAfterClick(this, mEditText); 72 assertTrue("clicking edit text should have given it focus", mEditText.isFocused());
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
ScrollToParentEditTextTest.java | 51 private ScrollToParentEditText mEditText; 56 mEditText = new ScrollToParentEditText( 59 mEditText.layout(0, 0, EDIT_TEXT_SIZE, EDIT_TEXT_SIZE); 69 assertThat(mEditText.requestRectangleOnScreen( 75 ShadowView shadowEditText = shadowOf(mEditText); 78 assertThat(mEditText.requestRectangleOnScreen(
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerServiceTest.java | 28 mEditText.setText("tgis "); 29 mEditText.setSelection(mEditText.getText().length()); 30 mEditText.onAttachedToWindow(); 35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); 47 mEditText.onAttachedToWindow(); 48 mEditText.setText("???? "); 49 mEditText.setSelection(mEditText.getText().length()); 50 mEditText.onAttachedToWindow() [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
View_UsingViewsTest.java | 96 private EditText mEditText; 111 mEditText = (EditText) mActivity.findViewById(R.id.entry); 136 mEditText.setText(null); 146 mEditText.setDrawingCacheEnabled(true); 147 assertTrue(mEditText.isDrawingCacheEnabled()); 150 assertEquals(View.DRAWING_CACHE_QUALITY_AUTO, mEditText.getDrawingCacheQuality()); 151 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW); 152 assertEquals(View.DRAWING_CACHE_QUALITY_LOW, mEditText.getDrawingCacheQuality()); 153 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); 154 assertEquals(View.DRAWING_CACHE_QUALITY_HIGH, mEditText.getDrawingCacheQuality()) [all...] |
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
EditTextLineItem.java | 46 private EditText mEditText; 90 return mEditText == null ? null : mEditText.getText().toString(); 101 mEditText = viewHolder.editText; 102 mEditText.setInputType(mTextType.getValue()); 104 mEditText.setText(mInitialInputText); 106 mEditText.addTextChangedListener(new TextWatcher() {
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
MultipleTimesTextWatcher.java | 39 private final EditText mEditText; 45 this.mEditText = editText; 68 final String actual = mEditText.getText().toString();
|
/frameworks/base/core/java/android/webkit/ |
FindActionModeCallback.java | 44 private EditText mEditText; 57 mEditText = (EditText) mCustomView.findViewById( 59 mEditText.setCustomSelectionActionModeCallback(new NoAction()); 60 mEditText.setOnClickListener(this); 77 mEditText.setText(text); 78 Spannable span = (Spannable) mEditText.getText(); 134 * Highlight all the instances of the string from mEditText in mWebView. 141 CharSequence find = mEditText.getText(); 156 if (mEditText.requestFocus()) { 157 mInput.showSoftInput(mEditText, 0) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
PresetManagementDialog.java | 32 private EditText mEditText; 41 mEditText = (EditText) view.findViewById(R.id.editView); 59 String text = String.valueOf(mEditText.getText());
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
EnterSelfPhoneNumberDialog.java | 37 private EditText mEditText; 50 mEditText = (EditText) inflater.inflate(R.layout.enter_phone_number_view, null, false); 55 .setView(mEditText) 69 final String newNumber = mEditText.getText().toString();
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenRuleNameDialog.java | 34 private final EditText mEditText; 42 mEditText = (EditText) v.findViewById(R.id.rule_name); 44 mEditText.setText(ruleName); 46 mEditText.setSelectAllOnFocus(true); 76 return mEditText.getText() == null ? null : mEditText.getText().toString().trim();
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
NewLocaleDialog.java | 41 private EditText mEditText; 49 mEditText = (EditText) findViewById(R.id.value); 59 String locale = mEditText.getText().toString();
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
DialogActivity.java | 38 private EditText mEditText; 72 mEditText = new EditText(this); 73 mLayout.addView(mEditText);
|
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/ |
EmojiEditTextHelper.java | 200 private final EditText mEditText; 204 mEditText = editText; 205 mTextWatcher = new EmojiTextWatcher(mEditText); 206 mEditText.addTextChangedListener(mTextWatcher); 207 mEditText.setEditableFactory(EmojiEditableFactory.getInstance()); 234 return new EmojiInputConnection(mEditText, inputConnection, outAttrs);
|
/frameworks/support/v14/preference/src/android/support/v14/preference/ |
EditTextPreferenceDialogFragment.java | 32 private EditText mEditText; 65 mEditText = (EditText) view.findViewById(android.R.id.edit); 67 if (mEditText == null) { 72 mEditText.setText(mText); 91 String value = mEditText.getText().toString();
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
EditTextPreferenceDialogFragmentCompat.java | 31 private EditText mEditText; 64 mEditText = (EditText) view.findViewById(android.R.id.edit); 66 if (mEditText == null) { 71 mEditText.setText(mText); 90 String value = mEditText.getText().toString();
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
AccessoryChat.java | 52 private EditText mEditText; 92 mEditText = (EditText)findViewById(R.id.message); 93 mEditText.setOnEditorActionListener(this);
|
/frameworks/base/tests/SerialChat/src/com/android/serialchat/ |
SerialChat.java | 42 private EditText mEditText; 58 mEditText = (EditText)findViewById(R.id.message); 59 mEditText.setOnEditorActionListener(this);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
RenameDocumentFragment.java | 61 private EditText mEditText; 83 mEditText = (EditText) view.findViewById(android.R.id.text1); 97 mEditText.setOnEditorActionListener( 105 renameDocuments(mEditText.getText().toString()); 120 renameDocuments(mEditText.getText().toString()); 135 mEditText.setText(mDocument.displayName); 143 selectFileName(mEditText); 150 clearFileNameSelection(mEditText); 199 selectFileName(mEditText);
|
/frameworks/support/design/src/android/support/design/widget/ |
TextInputLayout.java | 124 EditText mEditText; 320 if (mOriginalHint == null || mEditText == null) { 327 final CharSequence hint = mEditText.getHint(); 328 mEditText.setHint(mOriginalHint); 332 mEditText.setHint(hint); 338 if (mEditText != null) { 347 mEditText = editText; 354 mCollapsingTextHelper.setTypefaces(mEditText.getTypeface()); 356 mCollapsingTextHelper.setExpandedTextSize(mEditText.getTextSize()); 358 final int editTextGravity = mEditText.getGravity() [all...] |
/frameworks/base/core/java/android/preference/ |
EditTextPreference.java | 49 private EditText mEditText; 57 mEditText = new EditText(context, attrs); 60 mEditText.setId(com.android.internal.R.id.edit); 68 mEditText.setEnabled(true); 115 EditText editText = mEditText; 146 String value = mEditText.getText().toString(); 174 return mEditText;
|