Home
last modified time | relevance | path

Searched refs:mEditText (Results 1 – 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java49 assertEquals("type word", WORD_TO_TYPE, mEditText.getText().toString()); in testTypeWord()
60 mEditText.getText().toString()); in testPickSuggestionThenBackspace()
72 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
75 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
86 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
89 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
101 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
104 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
125 assertEquals("delete selection", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelection()
147 assertEquals("delete selection twice", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelectionTwice()
[all …]
DInputLogicTestsLanguageWithoutSpaces.java32 mEditText.getText().toString()); in testAutoCorrectForLanguageWithoutSpaces()
42 EXPECTED_INTERMEDIATE_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
45 EXPECTED_FINAL_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
48 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
50 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
58 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
60 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
64 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
66 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
82 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testStartComposingInsideText()
[all …]
DPunctuationTests.java48 EXPECTED_RESULT, mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromStripTwice()
60 mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromKeyboardTwice()
74 mEditText.getText().toString()); in testManualPickThenPunctuationFromStripTwiceThenType()
85 mEditText.getText().toString()); in testManualPickThenManualPickWithPunctAtStart()
96 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenColon()
107 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenOpenParen()
118 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenCloseParen()
129 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenSmiley()
140 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenDotCom()
150 EXPECTED_RESULT, mEditText.getText().toString()); in testTypeWordTypeDotThenPressDotCom()
[all …]
DInputLogicTestsDeadKeys.java61 assertEquals("simple dead circumflex", EXPECTED_RESULT, mEditText.getText().toString()); in testDeadCircumflexSimple()
75 assertEquals("dead circumflex backspace", EXPECTED_RESULT, mEditText.getText().toString()); in testDeadCircumflexBackspace()
88 mEditText.getText().toString()); in testDeadCircumflexFeedback()
106 mEditText.getText().toString()); in testDeadDiaeresisSpace()
120 assertEquals("dead acute on a typed", EXPECTED_RESULT1, mEditText.getText().toString()); in testDeadAcuteLetterBackspace()
124 assertEquals("a with acute deleted", EXPECTED_RESULT2, mEditText.getText().toString()); in testDeadAcuteLetterBackspace()
140 mEditText.getText().toString()); in testFinnishStroke()
163 mEditText.getText().toString()); in testDoubleDeadOgonek()
179 mEditText.getText().toString()); in testDeadCircumflexDeadDiaeresis()
196 mEditText.getText().toString()); in testDeadCircumflexDeadDiaeresisBackspace()
[all …]
DBlueUnderlineTests.java35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline()
52 final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
59 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
82 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineOnBackspace()
85 final SpanGetter underlineSpan = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testBlueUnderlineOnBackspace()
109 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved()
124 SpanGetter span = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testComposingStopsOnSpace()
DInputTestsBase.java78 protected MyEditText mEditText; field in InputTestsBase
199 mEditText = new MyEditText(getContext()); in setUp()
202 mEditText.setInputType(inputType); in setUp()
203 mEditText.setEnabled(true); in setUp()
217 final InputConnection ic = mEditText.onCreateInputConnection(ei); in setUp()
376 mEditText.mCurrentLocale = LocaleUtils.constructLocaleFromString(locale); in changeLanguageWithoutWait()
445 final int lastPos = mEditText.getText().length(); in sendUpdateForCursorMoveBy()
460 final int lastPos = mEditText.getText().length(); in sendUpdateForCursorMoveToEndOfLine()
DShiftModeTests.java87 mEditText.setText(""); in testAutoCapsAfterDigitsPeriod()
93 mEditText.setText(""); in testAutoCapsAfterDigitsPeriod()
107 mEditText.setText(""); in testAutoCapsAfterInvertedMarks()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerServiceTest.java28 mEditText.setText("tgis "); in testSpellchecker()
29 mEditText.setSelection(mEditText.getText().length()); in testSpellchecker()
30 mEditText.onAttachedToWindow(); in testSpellchecker()
35 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker()
47 mEditText.onAttachedToWindow(); in testRussianSpellchecker()
48 mEditText.setText("годп "); in testRussianSpellchecker()
49 mEditText.setSelection(mEditText.getText().length()); in testRussianSpellchecker()
50 mEditText.onAttachedToWindow(); in testRussianSpellchecker()
55 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker()
62 mEditText.setText("I'm.sure "); in testSpellcheckWithPeriods()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/preference/
DEditTextPreferenceDialogFragment.java44 private EditText mEditText; field in EditTextPreferenceDialogFragment
81 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
83 if (mEditText == null) { in onBindDialogView()
88 mEditText.requestFocus(); in onBindDialogView()
89 mEditText.setText(mText); in onBindDialogView()
90 mEditText.setInputType(InputType.TYPE_CLASS_TEXT); in onBindDialogView()
91 mEditText.setImeOptions(EditorInfo.IME_ACTION_DONE); in onBindDialogView()
92 mEditText.setOnEditorActionListener(this); in onBindDialogView()
95 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
110 String value = mEditText.getText().toString(); in onDialogClosed()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugMmsConfigItemView.java51 private EditText mEditText; field in DebugMmsConfigItemView
104 mEditText = new EditText(context); in onClick()
105 mEditText.setText(mTextValue.getText()); in onClick()
106 mEditText.setFocusable(true); in onClick()
108 mEditText.setInputType(InputType.TYPE_CLASS_PHONE); in onClick()
110 mEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS); in onClick()
114 .setView(mEditText) in onClick()
121 mEditText.requestFocus(); in onClick()
122 mEditText.selectAll(); in onClick()
132 mListener.onValueChanged(mKey, mKeyType, mEditText.getText().toString()); in onClick()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DRenameDocumentFragment.java58 private EditText mEditText; field in RenameDocumentFragment
80 mEditText = (EditText) view.findViewById(android.R.id.text1); in onCreateDialog()
95 mEditText.setOnEditorActionListener( in onCreateDialog()
103 renameDocuments(mEditText.getText().toString()); in onCreateDialog()
108 mEditText.requestFocus(); in onCreateDialog()
119 renameDocuments(mEditText.getText().toString()); in onClickDialog()
134 mEditText.setText(mDocument.displayName); in onActivityCreated()
142 selectFileName(mEditText); in onActivityCreated()
149 clearFileNameSelection(mEditText); in onSaveInstanceState()
198 selectFileName(mEditText); in renameDocuments()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPasswordEditTextPreferenceDialogFragment.java35 private EditText mEditText; field in PasswordEditTextPreferenceDialogFragment
55 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
56 mEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); in onBindDialogView()
62 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
65 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
69 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
DValidatedEditTextPreferenceDialogFragment.java41 private EditText mEditText; field in ValidatedEditTextPreferenceDialogFragment
59 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
101 if (dialog != null && mValidator != null && mEditText != null) { in allowDialogSubmissionOnlyIfValidInput()
102 boolean valid = mValidator.isTextValid(mEditText.getText().toString()); in allowDialogSubmissionOnlyIfValidInput()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DScrollToParentEditTextTest.java47 private ScrollToParentEditText mEditText; field in ScrollToParentEditTextTest
52 mEditText = in setUp()
54 mEditText.layout(0, 0, EDIT_TEXT_SIZE, EDIT_TEXT_SIZE); in setUp()
64 assertThat(mEditText.requestRectangleOnScreen( in requestRectangleOnScreen_noParent_shouldScrollToItself()
70 ShadowView shadowEditText = Shadows.shadowOf(mEditText); in requestRectangleOnScreen_withParent_shouldScrollToParent()
73 assertThat(mEditText.requestRectangleOnScreen( in requestRectangleOnScreen_withParent_shouldScrollToParent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsModeDialogPreference.java98 EditText mEditText; field in PrivateDnsModeDialogPreference
171 mEditText = view.findViewById(R.id.private_dns_mode_provider_hostname); in onBindDialogView()
172 mEditText.addTextChangedListener(this); in onBindDialogView()
173 mEditText.setText(getHostnameFromSettings(contentResolver)); in onBindDialogView()
199 mEditText.getText().toString()); in onClick()
269 if (mEditText != null) { in updateDialogInfo()
270 mEditText.setEnabled(modeProvider); in updateDialogInfo()
275 ? NetworkUtils.isWeaklyValidatedHostname(mEditText.getText().toString()) in updateDialogInfo()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java98 EditText mEditText; field in PrivateDnsModeDialogPreference
171 mEditText = view.findViewById(R.id.private_dns_mode_provider_hostname); in onBindDialogView()
172 mEditText.addTextChangedListener(this); in onBindDialogView()
173 mEditText.setText(getHostnameFromSettings(contentResolver)); in onBindDialogView()
199 mEditText.getText().toString()); in onClick()
265 if (mEditText != null) { in updateDialogInfo()
266 mEditText.setEnabled(modeProvider); in updateDialogInfo()
271 ? NetworkUtils.isWeaklyValidatedHostname(mEditText.getText().toString()) in updateDialogInfo()
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DEchoingTextWatcher.java32 final EditText mEditText; field in EchoingTextWatcher
40 final CharSequence current = mEditText.getText();
43 mEditText.setText(newText);
44 mEditText.setSelection(newText.length());
54 mEditText = editText; in EchoingTextWatcher()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DEnterSelfPhoneNumberDialog.java37 private EditText mEditText; field in EnterSelfPhoneNumberDialog
50 mEditText = (EditText) inflater.inflate(R.layout.enter_phone_number_view, null, false); in onCreateDialog()
55 .setView(mEditText) in onCreateDialog()
69 final String newNumber = mEditText.getText().toString(); in onCreateDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java97 assertThat(mPreference.mEditText.isEnabled()).isFalse(); in testOnCheckedChanged_dnsModeOff_disableEditText()
105 assertThat(mPreference.mEditText.isEnabled()).isFalse(); in testOnCheckedChanged_dnsModeOpportunistic_disableEditText()
113 assertThat(mPreference.mEditText.isEnabled()).isTrue(); in testOnCheckedChanged_dnsModeProvider_enableEditText()
130 assertThat(mPreference.mEditText.getText().toString()).isEqualTo(HOST_NAME); in testOnBindDialogView_containsCorrectData()
145 mPreference.mEditText.setText(invalid); in testOnCheckedChanged_switchMode_saveButtonHasCorrectState()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DPresetManagementDialog.java32 private EditText mEditText; field in PresetManagementDialog
41 mEditText = (EditText) view.findViewById(R.id.editView); in onCreateView()
59 String text = String.valueOf(mEditText.getText()); in onClick()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DExportDialog.java73 private EditText mEditText; field in ExportDialog.Watcher
75 mEditText = text; in Watcher()
88 textChanged(mEditText); in afterTextChanged()