/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | ValidatedEditTextPreferenceTest.java | 71 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_emptyEditText_shouldNotSetSelection() local 72 editText.setText(testText); in bindDialogView_emptyEditText_shouldNotSetSelection() 73 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_emptyEditText_shouldNotSetSelection() 78 verify(editText, never()).setSelection(anyInt()); in bindDialogView_emptyEditText_shouldNotSetSelection() 84 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_nonemptyEditText_shouldSetSelection() local 85 editText.setText(testText); in bindDialogView_nonemptyEditText_shouldSetSelection() 86 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_nonemptyEditText_shouldSetSelection() 91 verify(editText).setSelection(testText.length()); in bindDialogView_nonemptyEditText_shouldSetSelection() 96 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_hasValidator_shouldBindToEditText() local 97 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_hasValidator_shouldBindToEditText() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ValidatedEditTextPreference.java | 66 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 67 if (editText != null && !TextUtils.isEmpty(editText.getText())) { in onBindDialogView() 68 editText.setSelection(editText.getText().length()); in onBindDialogView() 70 if (mValidator != null && editText != null) { in onBindDialogView() 71 editText.removeTextChangedListener(mTextWatcher); in onBindDialogView() 73 editText.setInputType( in onBindDialogView() 75 editText.setMaxLines(1); in onBindDialogView() 77 editText.addTextChangedListener(mTextWatcher); in onBindDialogView() 105 final EditText editText = getEditText(); in afterTextChanged() local 106 if (mValidator != null && editText != null) { in afterTextChanged() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | UserPresetsAdapter.java | 88 EditText editText; field in UserPresetsAdapter.UserPresetViewHolder 99 viewHolder.editText = (EditText) convertView.findViewById(R.id.editView); in getView() 101 viewHolder.editText.setOnClickListener(this); in getView() 102 viewHolder.editText.setOnFocusChangeListener(this); in getView() 115 viewHolder.editText.setTag(action); in getView() 116 viewHolder.editText.setHint(action.getName()); in getView() 155 EditText editText = (EditText) v; in onFocusChange() local 157 updateActionFromEditText(editText); in onFocusChange() 159 mCurrentEditText = editText; in onFocusChange() 163 private void updateActionFromEditText(EditText editText) { in updateActionFromEditText() argument [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | EditPhoneNumberPreference.java | 197 EditText editText = getEditText(); in onBindDialogView() local 202 if (editText != null) { in onBindDialogView() 211 editText.setText(BidiFormatter.getInstance().unicodeWrap( in onBindDialogView() 213 editText.setMovementMethod(ArrowKeyMovementMethod.getInstance()); in onBindDialogView() 214 editText.setKeyListener(DialerKeyListener.getInstance()); in onBindDialogView() 215 editText.setOnFocusChangeListener(mDialogFocusChangeListener); in onBindDialogView() 237 protected void onAddEditTextToDialogView(View dialogView, EditText editText) { in onAddEditTextToDialogView() argument 245 container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT, in onAddEditTextToDialogView() 303 EditText editText = getEditText(); in onPickActivityResult() local 304 if (editText != null) { in onPickActivityResult() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | EditTextFragment.java | 89 EditText editText = null; in onCreateView() local 94 editText = (EditText) view.findViewById(editTextResId); in onCreateView() 105 if (editText != null) { in onCreateView() 106 editText.setOnEditorActionListener(this); in onCreateView() 107 editText.addTextChangedListener(this); in onCreateView() 108 editText.requestFocus(); in onCreateView() 111 editText.setText(initialText); in onCreateView() 112 editText.setSelection(initialText.length()); in onCreateView() 115 editText.setTransformationMethod(PasswordTransformationMethod.getInstance()); in onCreateView()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SelectableEditTextPreference.java | 53 EditText editText = getEditText(); in onBindDialogView() local 55 int length = editText.getText() != null ? editText.getText().length() : 0; in onBindDialogView() 56 if (!TextUtils.isEmpty(editText.getText())) { in onBindDialogView() 59 editText.setSelection(length); in onBindDialogView() 62 editText.setSelection(0); in onBindDialogView() 65 editText.setSelection(0, length); in onBindDialogView()
|
D | EditPinPreference.java | 55 final EditText editText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView() local 57 if (editText != null) { in onBindDialogView() 58 editText.setInputType(InputType.TYPE_CLASS_NUMBER | in onBindDialogView()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | TextFieldsEditorView.java | 198 for (EditText editText : mFieldEditTexts) { in requestFocusForFirstEditField() 199 if (firstField == null && editText.getVisibility() == View.VISIBLE) { in requestFocusForFirstEditField() 200 firstField = editText; in requestFocusForFirstEditField() 202 if (editText.hasFocus()) { in requestFocusForFirstEditField() 341 EditText editText = (EditText) mFields.getChildAt(i); in isEmpty() local 342 if (!TextUtils.isEmpty(editText.getText())) { in isEmpty() 366 EditText editText = mFieldEditTexts[i]; in acquireEditorBounds() local 367 if (editText.getVisibility() == View.VISIBLE) { in acquireEditorBounds() 368 bounds.set(editText.getLeft(), editText.getTop(), editText.getRight(), in acquireEditorBounds() 369 editText.getBottom()); in acquireEditorBounds()
|
D | LabeledEditorView.java | 436 final EditText editText = (EditText) view.findViewById(R.id.custom_dialog_content); in createCustomDialog() local 437 editText.setInputType(INPUT_TYPE_CUSTOM); in createCustomDialog() 438 editText.setSaveEnabled(true); in createCustomDialog() 441 editText.requestFocus(); in createCustomDialog() 446 final String customText = editText.getText().toString().trim(); in createCustomDialog() 474 updateCustomDialogOkButtonState(dialog, editText); in createCustomDialog() 477 editText.addTextChangedListener(new TextWatcher() { in createCustomDialog() 488 updateCustomDialogOkButtonState(dialog, editText); in createCustomDialog() 497 /* package */ void updateCustomDialogOkButtonState(AlertDialog dialog, EditText editText) { in updateCustomDialogOkButtonState() argument 499 okButton.setEnabled(!TextUtils.isEmpty(editText.getText().toString().trim())); in updateCustomDialogOkButtonState()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
D | AutoCompleteEditTextPreference.java | 143 AutoCompleteTextView editText = mAutoCompleteTextView; in onBindDialogView() local 144 editText.setText(getText()); in onBindDialogView() 146 ViewParent oldParent = editText.getParent(); in onBindDialogView() 149 ((ViewGroup) oldParent).removeView(editText); in onBindDialogView() 151 onAddEditTextToDialogView(view, editText); in onBindDialogView() 153 editText.setSelection(editText.getText().length()); in onBindDialogView() 161 protected void onAddEditTextToDialogView(View dialogView, AutoCompleteTextView editText) { in onAddEditTextToDialogView() argument 165 container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT, in onAddEditTextToDialogView()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | CreateCustomSmsDialogFragment.java | 42 private EditText editText; field in CreateCustomSmsDialogFragment 54 editText = (EditText) view.findViewById(R.id.custom_sms_input); in onCreateDialog() 56 editText.setText(savedInstanceState.getCharSequence(ARG_ENTERED_TEXT)); in onCreateDialog() 68 .customSmsCreated(editText.getText().toString().trim()); in onCreateDialog() 99 editText.addTextChangedListener( in onCreateDialog() 121 outState.putCharSequence(ARG_ENTERED_TEXT, editText.getText()); in onSaveInstanceState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | RemoteDeviceNameDialogFragmentTest.java | 90 EditText editText = (EditText) dialog.findViewById(R.id.edittext); in deviceNameDisplayIsCorrect() local 91 assertThat(editText.getText().toString()).isEqualTo(deviceName); in deviceNameDisplayIsCorrect() 116 EditText editText = (EditText) dialog.findViewById(R.id.edittext); in deviceNameEditSucceeds() local 117 editText.setText(deviceNameModified); in deviceNameEditSucceeds() 132 EditText editText = (EditText) dialog.findViewById(R.id.edittext); in deviceNameEditThenCancelDoesntRename() local 133 editText.setText(deviceNameModified); in deviceNameEditThenCancelDoesntRename()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | RenameDocumentFragment.java | 172 private void selectFileName(EditText editText) { in selectFileName() argument 173 String text = editText.getText().toString(); in selectFileName() 175 editText.setSelection(0, in selectFileName() 184 private void clearFileNameSelection(EditText editText) { in clearFileNameSelection() argument 185 editText.setSelection(0, 0); in clearFileNameSelection()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | DensityPreference.java | 61 final EditText editText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView() local 63 if (editText != null) { in onBindDialogView() 64 editText.setInputType(InputType.TYPE_CLASS_NUMBER); in onBindDialogView() 65 editText.setText(getCurrentSwDp() + ""); in onBindDialogView()
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
D | BlockedNumbersActivity.java | 211 final EditText editText = (EditText) dialogView.findViewById(R.id.add_blocked_number); in showAddBlockedNumberDialog() local 212 editText.addTextChangedListener(new PhoneNumberFormattingTextWatcher()); in showAddBlockedNumberDialog() 213 editText.addTextChangedListener(this); in showAddBlockedNumberDialog() 219 editText.getText().toString())); in showAddBlockedNumberDialog() 237 inputMethodManager.showSoftInput(editText, in showAddBlockedNumberDialog()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | CreateDirectoryFragment.java | 70 final EditText editText = (EditText) view.findViewById(android.R.id.text1); in onCreateDialog() local 80 createDirectory(editText.getText().toString()); in onCreateDialog() 90 editText.setOnEditorActionListener( in onCreateDialog() 98 createDirectory(editText.getText().toString()); in onCreateDialog()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
D | TestUtils.java | 68 final UiObject2 editText = uiDevice.findObject(By.res(res)); in setEditTextWithValue() local 69 assertWithMessage("Cannot find editText with res: " + res).that(editText).isNotNull(); in setEditTextWithValue() 70 editText.setText(String.valueOf(value)); in setEditTextWithValue()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | EditTextLineItem.java | 101 mEditText = viewHolder.editText; in bindViewHolder() 128 public final EditText editText; field in EditTextLineItem.ViewHolder 133 editText = view.findViewById(R.id.input); in ViewHolder()
|
D | PasswordLineItem.java | 61 viewHolder.editText.setInputType(mTextType.getValue()); in bindViewHolder()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/ |
D | AnomalyActivity.java | 106 final EditText editText = findViewById(id); in getValueFromEditText() local 107 if (editText != null) { in getValueFromEditText() 108 final long value = Long.parseLong(editText.getText().toString()); in getValueFromEditText()
|
/packages/experimental/FilledApp/src/foo/bar/filled/ |
D | CustomLinearLayout.java | 68 EditText editText = (EditText) view; in autofill() local 69 editText.setText(value.getTextValue()); in autofill()
|