/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothRenameDialogFragmentTest.java | 59 EditText editText = mDialog.findViewById(android.R.id.edit); in initialTextIsCurrentDeviceName() local 61 assertThat(editText.getText().toString()).isEqualTo(mFragment.getDeviceName()); in initialTextIsCurrentDeviceName() 79 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_positiveButtonEnabled() local 80 editText.append("1234"); in userInput_positiveButtonEnabled() 87 EditText editText = mDialog.findViewById(android.R.id.edit); in userInput_emptyName_positiveButtonDisabled() local 88 editText.setText(""); in userInput_emptyName_positiveButtonDisabled() 95 EditText editText = mDialog.findViewById(android.R.id.edit); in nameUpdatedByCode_positiveButtonDisabled() local 96 editText.append("1234"); in nameUpdatedByCode_positiveButtonDisabled() 105 EditText editText = mDialog.findViewById(android.R.id.edit); in editorDoneAction_dismissesDialog() local 107 editText.onEditorAction(EditorInfo.IME_ACTION_DONE); in editorDoneAction_dismissesDialog() [all …]
|
D | LocalRenameDialogFragmentTest.java | 85 EditText editText = dialog.findViewById(android.R.id.edit); in localNameChangedBroadcast_updatesDeviceName() local 86 assertThat(editText.getText().toString()).isEqualTo(NAME); in localNameChangedBroadcast_updatesDeviceName() 93 assertThat(editText.getText().toString()).isEqualTo(NAME_UPDATED); in localNameChangedBroadcast_updatesDeviceName() 101 EditText editText = dialog.findViewById(android.R.id.edit); in setDeviceName_updatesLocalAdapterName() local 103 editText.setText(NAME_UPDATED); in setDeviceName_updatesLocalAdapterName()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | ValidatedEditTextPreferenceTest.java | 74 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_emptyEditText_shouldNotSetSelection() local 75 editText.setText(testText); in bindDialogView_emptyEditText_shouldNotSetSelection() 76 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_emptyEditText_shouldNotSetSelection() 81 verify(editText, never()).setSelection(anyInt()); in bindDialogView_emptyEditText_shouldNotSetSelection() 87 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_nonemptyEditText_shouldSetSelection() local 88 editText.setText(testText); in bindDialogView_nonemptyEditText_shouldSetSelection() 89 when(mView.findViewById(android.R.id.edit)).thenReturn(editText); in bindDialogView_nonemptyEditText_shouldSetSelection() 94 verify(editText).setSelection(testText.length()); in bindDialogView_nonemptyEditText_shouldSetSelection() 99 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_hasValidator_shouldBindToEditText() local 100 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 | 69 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 70 if (editText != null && !TextUtils.isEmpty(editText.getText())) { in onBindDialogView() 71 editText.setSelection(editText.getText().length()); in onBindDialogView() 73 if (mValidator != null && editText != null) { in onBindDialogView() 74 editText.removeTextChangedListener(mTextWatcher); in onBindDialogView() 76 editText.setInputType( in onBindDialogView() 78 editText.setMaxLines(1); in onBindDialogView() 80 editText.addTextChangedListener(mTextWatcher); in onBindDialogView() 129 final EditText editText = getEditText(); in afterTextChanged() local 130 if (mValidator != null && editText != null) { in afterTextChanged() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | ValidatedEditTextPreference.java | 69 final EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 70 if (editText != null && !TextUtils.isEmpty(editText.getText())) { in onBindDialogView() 71 editText.setSelection(editText.getText().length()); in onBindDialogView() 73 if (mValidator != null && editText != null) { in onBindDialogView() 74 editText.removeTextChangedListener(mTextWatcher); in onBindDialogView() 76 editText.setInputType( in onBindDialogView() 78 editText.setMaxLines(1); in onBindDialogView() 80 editText.addTextChangedListener(mTextWatcher); in onBindDialogView() 129 final EditText editText = getEditText(); in afterTextChanged() local 130 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/apps/Contacts/src/com/android/contacts/editor/ |
D | TextFieldsEditorView.java | 208 for (EditText editText : mFieldEditTexts) { in requestFocusForFirstEditField() 209 if (firstField == null && editText.getVisibility() == View.VISIBLE) { in requestFocusForFirstEditField() 210 firstField = editText; in requestFocusForFirstEditField() 212 if (editText.hasFocus()) { in requestFocusForFirstEditField() 242 EditText editText = null; in getNameField() local 245 editText = (EditText) mFields.getChildAt(1); in getNameField() 247 editText = (EditText) mFields.getChildAt(3); in getNameField() 249 editText = (EditText) mFields.getChildAt(2); in getNameField() 252 if (editText != null) { in getNameField() 253 return editText.getText().toString(); in getNameField() [all …]
|
D | LabeledEditorView.java | 447 final EditText editText = (EditText) view.findViewById(R.id.custom_dialog_content); in createCustomDialog() local 448 editText.setInputType(INPUT_TYPE_CUSTOM); in createCustomDialog() 449 editText.setSaveEnabled(true); in createCustomDialog() 452 editText.requestFocus(); in createCustomDialog() 457 final String customText = editText.getText().toString().trim(); in createCustomDialog() 485 updateCustomDialogOkButtonState(dialog, editText); in createCustomDialog() 488 editText.addTextChangedListener(new TextWatcher() { in createCustomDialog() 499 updateCustomDialogOkButtonState(dialog, editText); in createCustomDialog() 508 /* package */ void updateCustomDialogOkButtonState(AlertDialog dialog, EditText editText) { in updateCustomDialogOkButtonState() argument 510 okButton.setEnabled(!TextUtils.isEmpty(editText.getText().toString().trim())); in updateCustomDialogOkButtonState()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EditPhoneNumberPreference.java | 203 EditText editText = getEditText(); in onBindDialogView() local 208 if (editText != null) { in onBindDialogView() 217 editText.setText(BidiFormatter.getInstance().unicodeWrap( in onBindDialogView() 219 editText.setTextDirection(TEXT_DIRECTION_LOCALE); in onBindDialogView() 220 editText.setLayoutDirection(LAYOUT_DIRECTION_LOCALE); in onBindDialogView() 221 editText.setMovementMethod(ArrowKeyMovementMethod.getInstance()); in onBindDialogView() 222 editText.setKeyListener(DialerKeyListener.getInstance()); in onBindDialogView() 223 editText.setOnFocusChangeListener(mDialogFocusChangeListener); in onBindDialogView() 245 protected void onAddEditTextToDialogView(View dialogView, EditText editText) { in onAddEditTextToDialogView() argument 253 container.addView(editText, ViewGroup.LayoutParams.MATCH_PARENT, in onAddEditTextToDialogView() [all …]
|
D | CallBarringEditPreference.java | 173 final EditText editText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView() local 174 if (editText != null) { in onBindDialogView() 175 editText.setSingleLine(true); in onBindDialogView() 176 editText.setTransformationMethod(PasswordTransformationMethod.getInstance()); in onBindDialogView() 177 editText.setKeyListener(DigitsKeyListener.getInstance()); in onBindDialogView() 179 editText.setVisibility(View.VISIBLE); in onBindDialogView()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenRuleNameDialog.java | 79 EditText editText = (EditText) v.findViewById(R.id.zen_mode_rule_name); in onCreateDialog() local 82 editText.setText(ruleName); in onCreateDialog() 84 editText.setSelection(editText.getText().length()); in onCreateDialog() 86 editText.setSelectAllOnFocus(true); in onCreateDialog() 94 final String newName = trimmedText(editText); in onCreateDialog() 109 private String trimmedText(EditText editText) { 110 return editText.getText() == null ? null : editText.getText().toString().trim();
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenRuleNameDialog.java | 79 EditText editText = (EditText) v.findViewById(R.id.zen_mode_rule_name); in onCreateDialog() local 82 editText.setText(ruleName); in onCreateDialog() 84 editText.setSelection(editText.getText().length()); in onCreateDialog() 86 editText.setSelectAllOnFocus(true); in onCreateDialog() 94 final String newName = trimmedText(editText); in onCreateDialog() 109 private String trimmedText(EditText editText) { 110 return editText.getText() == null ? null : editText.getText().toString().trim();
|
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/ |
D | RttChatFragment.java | 92 private EditText editText; field in RttChatFragment 174 editText = view.findViewById(R.id.rtt_chat_input); in onCreateView() 175 editText.setOnEditorActionListener(this); in onCreateView() 176 editText.addTextChangedListener(this); in onCreateView() 178 editText.setOnKeyListener( in onCreateView() 186 && TextUtils.isEmpty(editText.getText())) { in onCreateView() 220 UiUtil.hideKeyboardFrom(getContext(), editText); in onCreateView() 250 UiUtil.hideKeyboardFrom(getContext(), editText); in onCreateView() 263 if (!TextUtils.isEmpty(editText.getText())) { in onEditorAction() 338 editText.setText(input); in resumeInput() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | PasswordEditTextPreferenceDialogFragmentTest.java | 91 EditText editText = dialog.findViewById(android.R.id.edit); in onCheckBoxChecked_shouldRevealRawPassword() local 92 editText.setText(testPassword); in onCheckBoxChecked_shouldRevealRawPassword() 95 assertThat(editText.getInputType()).isEqualTo(InputType.TYPE_CLASS_TEXT in onCheckBoxChecked_shouldRevealRawPassword() 97 assertThat(editText.getText().toString()).isEqualTo(testPassword); in onCheckBoxChecked_shouldRevealRawPassword() 106 EditText editText = dialog.findViewById(android.R.id.edit); in onCheckBoxUnchecked_shouldObscureRawPassword() local 107 editText.setText(testPassword); in onCheckBoxUnchecked_shouldObscureRawPassword() 112 assertThat(editText.getInputType()).isEqualTo((InputType.TYPE_CLASS_TEXT in onCheckBoxUnchecked_shouldObscureRawPassword() 114 assertThat(editText.getText().toString()).isEqualTo(testPassword); in onCheckBoxUnchecked_shouldObscureRawPassword()
|
D | ValidatedEditTextPreferenceDialogFragmentTest.java | 83 EditText editText = ShadowAlertDialog.getLatestAlertDialog().findViewById( in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit() local 89 editText.setText("any text"); in noValidatorSet_shouldEnablePositiveButton_and_allowEnterToSubmit() 107 EditText editText = ShadowAlertDialog.getLatestAlertDialog().findViewById( in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit() local 109 editText.setText("shorter than 100"); in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit() 128 EditText editText = ShadowAlertDialog.getLatestAlertDialog().findViewById( in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit() local 130 editText.setText("longer than 1"); in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | CreateCustomSmsDialogFragment.java | 43 private EditText editText; field in CreateCustomSmsDialogFragment 56 editText = (EditText) view.findViewById(R.id.custom_sms_input); in onCreateDialog() 58 editText.setText(savedInstanceState.getCharSequence(ARG_ENTERED_TEXT)); in onCreateDialog() 75 .customSmsCreated(editText.getText().toString().trim()); in onCreateDialog() 106 editText.addTextChangedListener( in onCreateDialog() 128 outState.putCharSequence(ARG_ENTERED_TEXT, editText.getText()); in onSaveInstanceState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | RemoteDeviceNameDialogFragmentTest.java | 86 EditText editText = dialog.findViewById(R.id.edittext); in deviceNameDisplayIsCorrect() local 87 assertThat(editText.getText().toString()).isEqualTo(deviceName); in deviceNameDisplayIsCorrect() 112 EditText editText = dialog.findViewById(R.id.edittext); in deviceNameEditSucceeds() local 113 editText.setText(deviceNameModified); in deviceNameEditSucceeds() 128 EditText editText = dialog.findViewById(R.id.edittext); in deviceNameEditThenCancelDoesntRename() local 129 editText.setText(deviceNameModified); in deviceNameEditThenCancelDoesntRename()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/autofill/ |
D | AbstractGlobalSettingsPreference.java | 81 EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 82 if (editText != null) { in onBindDialogView() 83 editText.setInputType(InputType.TYPE_CLASS_NUMBER); in onBindDialogView() 84 editText.setText(getCurrentValue()); in onBindDialogView() 85 Utils.setEditTextCursorPosition(editText); in onBindDialogView()
|
/packages/apps/Settings/src/com/android/settings/development/autofill/ |
D | AbstractGlobalSettingsPreference.java | 81 EditText editText = view.findViewById(android.R.id.edit); in onBindDialogView() local 82 if (editText != null) { in onBindDialogView() 83 editText.setInputType(InputType.TYPE_CLASS_NUMBER); in onBindDialogView() 84 editText.setText(getCurrentValue()); in onBindDialogView() 85 Utils.setEditTextCursorPosition(editText); in onBindDialogView()
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EchoingTextWatcher.java | 49 public static void attachTo(final EditText editText) { in attachTo() argument 50 final EchoingTextWatcher watcher = new EchoingTextWatcher(editText); in attachTo() 53 public EchoingTextWatcher(final EditText editText) { in EchoingTextWatcher() argument 54 mEditText = editText; in EchoingTextWatcher() 55 editText.addTextChangedListener(this); in EchoingTextWatcher()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | DensityPreference.java | 62 final EditText editText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView() local 64 if (editText != null) { in onBindDialogView() 65 editText.setInputType(InputType.TYPE_CLASS_NUMBER); in onBindDialogView() 66 editText.setText(getCurrentSwDp() + ""); in onBindDialogView() 67 Utils.setEditTextCursorPosition(editText); in onBindDialogView()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | DensityPreference.java | 62 final EditText editText = (EditText) view.findViewById(android.R.id.edit); in onBindDialogView() local 64 if (editText != null) { in onBindDialogView() 65 editText.setInputType(InputType.TYPE_CLASS_NUMBER); in onBindDialogView() 66 editText.setText(getCurrentSwDp() + ""); in onBindDialogView() 67 Utils.setEditTextCursorPosition(editText); in onBindDialogView()
|
/packages/apps/Settings/src/com/android/settings/ |
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() 60 editText.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); in onBindDialogView()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
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() 60 editText.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); in onBindDialogView()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | ValidatedEditTextPreferenceDialogFragment.java | 78 EditText editText = view.findViewById(android.R.id.edit); in attachValidatorToView() local 79 if (mValidator != null && editText != null) { in attachValidatorToView() 80 editText.removeTextChangedListener(mTextWatcher); in attachValidatorToView() 81 editText.addTextChangedListener(mTextWatcher); in attachValidatorToView()
|