/tools/tradefederation/core/tests/test-apps/UITestApp/src/com/android/tradefed/uitestapp/ |
EditBoxActivityTest.java | 21 import android.widget.EditText; 40 EditText editText = (EditText)getActivity().findViewById(R.id.EditText); 41 assertNotNull(editText); 42 assertTrue(editText.requestFocus()); 43 assertTrue(editText.hasFocus()); 51 EditText editText = (EditText)getActivity().findViewById(R.id.EditText) [all...] |
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
OneEditTextActivitySelected.java | 27 import android.widget.EditText; 35 * Activity with EditText selected initially 51 EditText editText = new EditText(this); 52 editText.requestFocus(); 53 mDefaultFocusedView = editText; 54 layout.addView(editText);
|
InputTypeActivity.java | 22 import android.widget.EditText; 147 EditText editText = (EditText) view.findViewById(R.id.data); 148 editText.setInputType(inputType);
|
ManyEditTextActivityNoScrollPanScan.java | 27 import android.widget.EditText; 53 final EditText editText = new EditText(this); 54 editText.setText(String.valueOf(i)); 55 editText.setId(i); 56 ((LinearLayout) mRootView).addView(editText);
|
ManyEditTextActivityScrollPanScan.java | 27 import android.widget.EditText; 54 final EditText editText = new EditText(this); 55 editText.setText(String.valueOf(i)); 56 editText.setId(i); 57 layout.addView(editText);
|
ManyEditTextActivityScrollResize.java | 24 import android.widget.EditText; 47 final EditText editText = new EditText(this); 48 editText.setText(String.valueOf(i)); 49 editText.setId(i); 50 layout.addView(editText);
|
OneEditTextActivityNotSelected.java | 28 import android.widget.EditText; 36 * Activity with non-EditText view selected initially 52 EditText editText = new EditText(this); 59 layout.addView(editText);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ShadowEditTextTest.java | 3 import android.widget.EditText; 22 EditText editText = new EditText(Robolectric.application, attributeSet); 23 editText.setText("0123456678"); 24 assertThat(editText.getText().toString(), equalTo("01234"));
|
HtmlTest.java | 7 import android.widget.EditText; 35 EditText editText = new EditText(context); 36 editText.setText(Html.fromHtml("<b>some</b> html text")); 37 assertThat(editText.getText().toString(), equalTo("<b>some</b> html text"));
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
EditTextBackspacePerfTest.java | 92 private void prepareTextForBackspace(EditText editText) { 93 editText.setText(mText, TextView.BufferType.EDITABLE); 94 Selection.setSelection(editText.getText(), 0, 0); 98 editText.setLayoutParams(new ViewGroup.LayoutParams( 101 editText.invalidate(); 102 editText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), 104 editText.layout(0, 0, 1024, 768); 108 editText.onKeyDown(RIGHT_ARROW_KEY_EVENT.getKeyCode(), RIGHT_ARROW_KEY_EVENT); 109 Assert.assertEquals(mCursorPos, Selection.getSelectionStart(editText.getText())) [all...] |
EditTextLongTextPerfTest.java | 74 private EditText setupEditText() { 75 final EditText editText = new EditText(mActivityRule.getActivity()); 91 editText.setHeight(height); 92 editText.setWidth(width); 93 editText.setLayoutParams(new ViewGroup.LayoutParams(width, height)); 96 activity.setContentView(editText); 98 editText.setText(sb.toString(), TextView.BufferType.EDITABLE); 99 editText.invalidate() [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
SingleLineTransformationMethodTest.java | 34 import android.widget.EditText; 73 EditText editText = new EditTextNoIme(InstrumentationRegistry.getTargetContext()); 74 editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 10); 75 editText.setText("hello\nworld\r");
|
/cts/tests/tests/view/src/android/view/cts/ |
View_DefaultFocusHighlightTest.java | 34 import android.widget.EditText; 63 EditText editText = (EditText) activity.findViewById(R.id.edittext); 69 assertFalse(editText.getDefaultFocusHighlightEnabled()); 75 editText.setDefaultFocusHighlightEnabled(true); 81 assertTrue(editText.getDefaultFocusHighlightEnabled()); 98 EditText editText = (EditText) activity.findViewById(R.id.edittext_to_inflate) [all...] |
View_IdsTest.java | 29 import android.widget.EditText; 49 EditText editText = (EditText) activity.findViewById(R.id.entry); 55 assertNotNull(editText); 64 editText.setId(0x1111); 65 assertEquals(0x1111, editText.getId()); 66 assertSame(editText, (EditText) activity.findViewById(0x1111));
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/ |
EmojiEditTextTest.java | 67 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); 70 assertEquals(5, editText.getMaxEmojiCount()); 76 editText.setMaxEmojiCount(1); 81 assertEquals(1, editText.getMaxEmojiCount()); 89 final EmojiEditText editText = activity.findViewById(R.id.editTextWithMaxCount); 95 editText.setMaxEmojiCount(1); 98 editText.setText(string); 103 assertThat(editText.getText(), hasEmojiCount(1));
|
EmojiEditTextHelperPre19Test.java | 32 import android.widget.EditText; 46 final EditText editText = mock(EditText.class); 47 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); 48 verifyNoMoreInteractions(editText); 71 final EditText editText = mock(EditText.class); 73 mEmojiEditTextHelper = new EmojiEditTextHelper(editText); [all...] |
EmojiTextWatcherTest.java | 35 import android.widget.EditText; 50 final EditText editText = mock(EditText.class); 53 mTextWatcher = new EmojiTextWatcher(editText);
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
CreateCustomSmsDialogFragment.java | 32 import android.widget.EditText; 42 private EditText editText; 54 editText = (EditText) view.findViewById(R.id.custom_sms_input); 56 editText.setText(savedInstanceState.getCharSequence(ARG_ENTERED_TEXT)); 68 .customSmsCreated(editText.getText().toString().trim()); 99 editText.addTextChangedListener( 121 outState.putCharSequence(ARG_ENTERED_TEXT, editText.getText());
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
EditTextPreferenceTest.java | 21 import android.widget.EditText; 42 EditText editText = mEditTextPref.getEditText(); 43 assertNotNull(editText);
|
/development/samples/training/notify-user/src/com/example/android/pingme/ |
MainActivity.java | 21 import android.widget.EditText; 47 EditText msgText = (EditText) findViewById(R.id.edit_reminder); 55 EditText editText = (EditText)findViewById(R.id.edit_seconds); 56 String input = editText.getText().toString();
|
/packages/apps/Settings/src/com/android/settings/ |
SelectableEditTextPreference.java | 23 import android.widget.EditText; 53 EditText editText = getEditText(); 55 int length = editText.getText() != null ? editText.getText().length() : 0; 56 if (!TextUtils.isEmpty(editText.getText())) { 59 editText.setSelection(length); 62 editText.setSelection(0); 65 editText.setSelection(0, length);
|
EditPinPreference.java | 24 import android.widget.EditText; 55 final EditText editText = (EditText) view.findViewById(android.R.id.edit); 57 if (editText != null) { 58 editText.setInputType(InputType.TYPE_CLASS_NUMBER |
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
EditTextFragment.java | 26 import android.widget.EditText; 89 EditText editText = null; 91 int editTextResId = getArguments().getInt(EXTRA_EDIT_TEXT_RES_ID, R.id.edittext); 94 editText = (EditText) view.findViewById(editTextResId); 105 if (editText != null) { 106 editText.setOnEditorActionListener(this); 107 editText.addTextChangedListener(this); 108 editText.requestFocus() [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
CreateDirectoryFragment.java | 42 import android.widget.EditText; 70 final EditText editText = (EditText) view.findViewById(android.R.id.text1); 80 createDirectory(editText.getText().toString()); 90 editText.setOnEditorActionListener( 98 createDirectory(editText.getText().toString());
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
ValidatedEditTextPreferenceTest.java | 23 import android.widget.EditText; 64 // should not crash trying to get the EditText text 71 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); 72 editText.setText(testText); 73 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); 78 verify(editText, never()).setSelection(anyInt()); 84 final EditText editText = spy(new EditText(RuntimeEnvironment.application)) [all...] |