HomeSort by relevance Sort by last modified time
    Searched refs:editText (Results 1 - 25 of 34) sorted by null

1 2

  /cts/tests/tests/widget/src/android/widget/cts/
EditTextTest.java 28 import android.widget.EditText;
39 @TestTargetClass(EditText.class)
56 notes = "Test constructor(s) of {@link EditText}",
57 method = "EditText",
62 notes = "Test constructor(s) of {@link EditText}",
63 method = "EditText",
68 notes = "Test constructor(s) of {@link EditText}",
69 method = "EditText",
73 @ToBeFixed(bug="1417734", explanation="EditText#EditText(Context), "
    [all...]
  /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);
EditTextActivityDialog.java 28 import android.widget.EditText;
90 EditText editText;
InputTypeActivity.java 22 import android.widget.EditText;
147 EditText editText = (EditText) view.findViewById(R.id.data);
148 editText.setInputType(inputType);
  /packages/apps/Settings/src/com/android/settings/
EditPinPreference.java 26 import android.widget.EditText;
55 final EditText editText = (EditText) view.findViewById(android.R.id.edit);
57 if (editText != null) {
58 editText.setSingleLine(true);
59 editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
60 editText.setKeyListener(DigitsKeyListener.getInstance());
UserDictionarySettings.java 39 import android.widget.EditText;
240 final EditText editText = (EditText) content.findViewById(R.id.edittext);
241 editText.setText(mDialogEditingWord);
243 editText.setInputType(InputType.TYPE_CLASS_TEXT
253 onAddOrEditFinished(editText.getText().toString());
  /cts/tests/tests/view/src/android/view/cts/
View_IdsTest.java 31 import android.widget.EditText;
56 EditText editText = (EditText) activity.findViewById(R.id.entry);
62 assertNotNull(editText);
71 editText.setId(0x1111);
72 assertEquals(0x1111, editText.getId());
73 assertSame(editText, (EditText) activity.findViewById(0x1111));
  /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/Contacts/src/com/android/contacts/editor/
TextFieldsEditorView.java 46 import android.widget.EditText;
58 private EditText[] mFieldEditTexts = null;
143 EditText firstField = null;
145 for (EditText editText : mFieldEditTexts) {
146 if (firstField == null && editText.getVisibility() == View.VISIBLE) {
147 firstField = editText;
149 if (editText.hasFocus()) {
166 for (EditText fieldEditText : mFieldEditTexts) {
173 mFieldEditTexts = new EditText[fieldCount]
    [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/Phone/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...]
  /cts/tests/tests/text/src/android/text/method/cts/
SingleLineTransformationMethodTest.java 27 import android.widget.EditText;
89 EditText editText = new EditText(getActivity());
90 editText.setText("hello\nworld\r");
PasswordTransformationMethodTest.java 35 import android.widget.EditText;
62 private EditText mEditText;
78 EditText editText = new EditText(mActicity);
79 editText.setId(EDIT_TXT_ID);
80 editText.setTransformationMethod(mMethod);
84 layout.addView(editText, new LayoutParams(LayoutParams.MATCH_PARENT,
89 editText.requestFocus();
97 mEditText = (EditText) getActivity().findViewById(EDIT_TXT_ID)
    [all...]
  /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;
  /frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
LLEditTextThenButton.java 24 import android.widget.EditText;
28 private EditText mEditText;
40 mEditText = (EditText) findViewById(R.id.editText);
48 public EditText getEditText() {
  /packages/apps/Calculator/src/com/android/calculator2/
CalculatorDisplay.java 27 import android.widget.EditText;
31 * Provides vertical scrolling for the input/result EditText.
79 /* the EditText should still accept letters (eg. 'sin')
88 EditText text = (EditText) getChildAt(i);
116 EditText editor = (EditText) getCurrentView();
121 EditText getEditText() {
122 return (EditText) getCurrentView();
126 EditText text = (EditText) getCurrentView()
    [all...]
Logic.java 23 import android.widget.EditText;
91 EditText editText = mDisplay.getEditText();
92 int cursorPos = editText.getSelectionStart();
93 return toLeft ? cursorPos == 0 : cursorPos >= editText.length();
  /packages/apps/Contacts/src/com/android/contacts/interactions/
GroupCreationDialogFragment.java 26 import android.widget.EditText;
49 protected void initializeGroupLabelEditText(EditText editText) {
GroupNameDialogFragment.java 32 import android.widget.EditText;
39 private EditText mEdit;
42 protected abstract void initializeGroupLabelEditText(EditText editText);
48 mEdit = (EditText) view.findViewById(R.id.group_label);

Completed in 425 milliseconds

1 2