/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...] |
/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 |
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
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);
|
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);
|
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);
|
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...] |
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);
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
EditTextPreferenceTest.java | 21 import android.widget.EditText; 42 EditText editText = mEditTextPref.getEditText(); 43 assertNotNull(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/ |
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...] |
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"));
|
/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));
|
/external/droiddriver/samples/testapp/src/com/google/android/apps/common/testing/ui/testapp/ |
SendActivity.java | 17 import android.widget.EditText; 37 EditText editText = (EditText) findViewById(R.id.enterDataEditText); 38 editText.setOnKeyListener(new OnKeyListener() { 44 EditText editText = (EditText) view; 46 responseText.setText(editText.getText()); 58 EditText editText = (EditText) findViewById(R.id.sendDataEditText) [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...] |
/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");
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityTextTraversalTest.java | 25 import android.widget.EditText; [all...] |
/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); 109 EditText editText = mEditText [all...] |
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
ImfBaseTestCase.java | 78 public void verifyEditTextAdjustment(final View editText, int rootViewHeight) { 84 mImm.hideSoftInputFromWindow(editText.getWindowToken(), 0); 86 // Bring the target EditText into focus. 89 editText.requestFocus(); 93 // Get the original location of the EditText. 94 editText.getLocationOnScreen(origLocation); 96 // Tap the EditText to bring up the IME. 99 // Wait until the EditText pops above the IME or until we hit the timeout. 100 editText.getLocationOnScreen(newLocation); 103 editText.getLocationOnScreen(newLocation) [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/services/Telephony/src/com/android/phone/ |
EditPhoneNumberPreference.java | 34 import android.widget.EditText; 194 //get the edittext component within the number field 195 EditText editText = getEditText(); 200 if (editText != null) { 209 editText.setText(mPhoneNumber); 210 editText.setMovementMethod(ArrowKeyMovementMethod.getInstance()); 211 editText.setKeyListener(DialerKeyListener.getInstance()); 212 editText.setOnFocusChangeListener(mDialogFocusChangeListener); 230 * This method attaches the EditText to the container specific to thi [all...] |
/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();
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfEditTexts.java | 116 ((EditText) convertView).setText(body); 120 EditText editText = new EditText(getContext()); 121 editText.setText(body); 122 return editText;
|