/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);
|
DialogActivity.java | 24 import android.widget.EditText; 38 private EditText mEditText; 53 mButton1.setText("Dialog WITHOUT EditText");//(R.string.open_dialog_scrollable); 63 mButton2.setText("Dialog WITH EditText");//(R.string.open_dialog_nonscrollable); 72 mEditText = new EditText(this); 102 EditText editText; 103 editText = new EditText(this); 104 layout.addView(editText); [all...] |
EditTextActivityDialog.java | 28 import android.widget.EditText; 90 EditText editText;
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
GroupNameDialogFragment.java | 31 import android.widget.EditText; 40 protected abstract void initializeGroupLabelEditText(EditText editText); 48 final EditText editText = (EditText) view.findViewById(R.id.group_label); 49 initializeGroupLabelEditText(editText); 53 editText.requestFocus(); 58 onCompleted(editText.getText().toString().trim()); 69 updateOkButtonState(dialog, editText); [all...] |
/external/robolectric/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"));
|
EditTextTest.java | 17 import android.widget.EditText; 26 assertTrue(new EditText(null).isFocusable()); 27 assertTrue(new EditText(null).isFocusableInTouchMode()); 34 EditText editText = new EditText(null, attrs); 37 editText.setText(excessiveInput); 39 assertThat(editText.getText().toString(), equalTo(excessiveInput.subSequence(0, maxLength))); 45 EditText editText = new EditText(null, attrs) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
EditTextTest.java | 28 import android.widget.EditText; 48 new EditText(mContext); 50 new EditText(mContext, null); 52 new EditText(mContext, null, 0); 54 new EditText(mContext, mAttributeSet); 56 new EditText(mContext, mAttributeSet, 0); 59 new EditText(null); 65 new EditText(null, null); 71 new EditText(null, null); 78 EditText editText = new EditText(mContext, mAttributeSet) [all...] |
/external/chromium_org/tools/android/memconsumer/java/src/org/chromium/memconsumer/ |
MemConsumer.java | 17 import android.widget.EditText; 57 if (child instanceof EditText) { 58 EditText editText = (EditText) child; 59 editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
EditTextPreferenceTest.java | 21 import android.widget.EditText; 42 EditText editText = mEditTextPref.getEditText(); 43 assertNotNull(editText);
|
/cts/tests/tests/view/src/android/view/cts/ |
View_IdsTest.java | 27 import android.widget.EditText; 39 EditText editText = (EditText) activity.findViewById(R.id.entry); 45 assertNotNull(editText); 54 editText.setId(0x1111); 55 assertEquals(0x1111, editText.getId()); 56 assertSame(editText, (EditText) activity.findViewById(0x1111));
|
/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 | 25 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 | 25 import android.widget.EditText; 54 final EditText editText = getEditText(); 56 if (editText != null) { 57 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/Browser/src/com/android/browser/preferences/ |
GeneralPreferencesFragment.java | 34 import android.widget.EditText; 119 final EditText editText = new EditText(getActivity()); 120 editText.setInputType(InputType.TYPE_CLASS_TEXT 122 editText.setText(settings.getHomePage()); 123 editText.setSelectAllOnFocus(true); 124 editText.setSingleLine(true); 125 editText.setImeActionLabel(null, EditorInfo.IME_ACTION_DONE); 127 .setView(editText) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
UserPresetsAdapter.java | 25 import android.widget.EditText; 45 private EditText mCurrentEditText; 88 EditText editText; 99 viewHolder.editText = (EditText) convertView.findViewById(R.id.editView); 101 viewHolder.editText.setOnClickListener(this); 102 viewHolder.editText.setOnFocusChangeListener(this); 115 viewHolder.editText.setTag(action); 116 viewHolder.editText.setHint(action.getName()) [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
TextFieldsEditorView.java | 34 import android.widget.EditText; 54 private EditText[] mFieldEditTexts = null; 171 for (EditText text : mFieldEditTexts) { 198 EditText firstField = null; 200 for (EditText editText : mFieldEditTexts) { 201 if (firstField == null && editText.getVisibility() == View.VISIBLE) { 202 firstField = editText; 204 if (editText.hasFocus()) { 225 for (EditText fieldEditText : mFieldEditTexts) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
SingleLineTransformationMethodTest.java | 23 import android.widget.EditText; 57 EditText editText = new EditText(getActivity()); 58 editText.setText("hello\nworld\r");
|
/frameworks/base/core/java/android/preference/ |
EditTextPreference.java | 30 import android.widget.EditText; 36 * It is a subclass of {@link DialogPreference} and shows the {@link EditText} 37 * in a dialog. This {@link EditText} can be modified either programmatically 38 * via {@link #getEditText()}, or through XML by setting any EditText 43 * See {@link android.R.styleable#EditText EditText Attributes}. 49 private EditText mEditText; 56 mEditText = new EditText(context, attrs); 113 EditText editText = mEditText [all...] |