Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerServiceTest.java29 mEditText.setText("tgis "); in testSpellchecker()
30 mEditText.setSelection(mEditText.getText().length()); in testSpellchecker()
31 mEditText.onAttachedToWindow(); in testSpellchecker()
36 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testSpellchecker()
48 mEditText.onAttachedToWindow(); in testRussianSpellchecker()
49 mEditText.setText("годп "); in testRussianSpellchecker()
50 mEditText.setSelection(mEditText.getText().length()); in testRussianSpellchecker()
51 mEditText.onAttachedToWindow(); in testRussianSpellchecker()
56 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testRussianSpellchecker()
63 mEditText.setText("I'm.sure "); in testSpellcheckWithPeriods()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java50 assertEquals("type word", WORD_TO_TYPE, mEditText.getText().toString()); in testTypeWord()
61 mEditText.getText().toString()); in testPickSuggestionThenBackspace()
73 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
76 mEditText.getText().toString()); in testPickAutoCorrectionThenBackspace()
87 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
90 mEditText.getText().toString()); in testPickTypedWordOverAutoCorrectionThenBackspace()
102 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
105 mEditText.getText().toString()); in testPickDifferentSuggestionThenBackspace()
126 assertEquals("delete selection", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelection()
148 assertEquals("delete selection twice", EXPECTED_RESULT, mEditText.getText().toString()); in testDeleteSelectionTwice()
[all …]
DInputLogicTestsLanguageWithoutSpaces.java33 mEditText.getText().toString()); in testAutoCorrectForLanguageWithoutSpaces()
43 EXPECTED_INTERMEDIATE_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
46 EXPECTED_FINAL_RESULT, mEditText.getText().toString()); in testRevertAutoCorrectForLanguageWithoutSpaces()
49 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
51 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testRevertAutoCorrectForLanguageWithoutSpaces()
59 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
61 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
65 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
67 BaseInputConnection.getComposingSpanEnd(mEditText.getText())); in testDontResumeSuggestionOnBackspace()
83 BaseInputConnection.getComposingSpanStart(mEditText.getText())); in testStartComposingInsideText()
[all …]
DPunctuationTests.java47 EXPECTED_RESULT, mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromStripTwice()
59 mEditText.getText().toString()); in testWordThenSpaceThenPunctuationFromKeyboardTwice()
73 mEditText.getText().toString()); in testManualPickThenPunctuationFromStripTwiceThenType()
84 mEditText.getText().toString()); in testManualPickThenManualPickWithPunctAtStart()
95 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenColon()
106 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenOpenParen()
117 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenCloseParen()
128 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenSmiley()
139 EXPECTED_RESULT, mEditText.getText().toString()); in testManuallyPickedWordThenDotCom()
149 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.java36 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderline()
53 final SpanGetter spanBefore = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
60 final SpanGetter spanAfter = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappears()
83 final SpanGetter suggestionSpan = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineOnBackspace()
86 final SpanGetter underlineSpan = new SpanGetter(mEditText.getText(), UnderlineSpan.class); in testBlueUnderlineOnBackspace()
110 final SpanGetter span = new SpanGetter(mEditText.getText(), SuggestionSpan.class); in testBlueUnderlineDisappearsWhenCursorMoved()
125 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.java88 mEditText.setText(""); in testAutoCapsAfterDigitsPeriod()
94 mEditText.setText(""); in testAutoCapsAfterDigitsPeriod()
108 mEditText.setText(""); in testAutoCapsAfterInvertedMarks()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiPasswordDialog.java41 private EditText mEditText; field in WifiPasswordDialog
72 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
73 mEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); in onBindDialogView()
79 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
82 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
86 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
89 mEditText.setOnFocusChangeListener((v, hasFocus) -> { in onBindDialogView()
92 imm.hideSoftInputFromWindow(mEditText.getWindowToken(), /* flags= */ 0); in onBindDialogView()
118 return WifiUtil.getWifiConfig(mWifiEntry, mEditText.getText().toString()); in getConfig()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java51 private ExtendedEditText mEditText; field in WidgetsSearchBarControllerTest
63 mEditText = new ExtendedEditText(context); in setUp()
66 mSearchAlgorithm, mEditText, mCancelButton, mSearchModeListener); in setUp()
79 mEditText.setText("abc"); in afterTextChanged_shouldInformSearchModeListenerToEnterSearch()
87 mEditText.setText("abc"); in afterTextChanged_shouldDoSearch()
94 mEditText.setText("abc"); in afterTextChanged_shouldShowCancelButton()
101 mEditText.setText(""); in afterTextChanged_empty_shouldInformSearchModeListenerToExitSearch()
109 mEditText.setText(""); in afterTextChanged_empty_shouldCancelSearch()
117 mEditText.setText(""); in afterTextChanged_empty_shouldHideCancelButton()
141 assertEquals(mEditText.getText().toString(), ""); in cancelSearch_shouldClearSearchBar()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingPasswordPreference.java41 @Nullable private EditText mEditText; field in AudioSharingPasswordPreference
77 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
81 if (mEditText == null || mCheckBox == null || mDialogMessage == null) { in onBindDialogView()
102 if (mEditText == null || mCheckBox == null) { in onClick()
109 && mEditText.getText() != null) { in onClick()
111 mEditText.getText().toString(), mCheckBox.isChecked()); in onClick()
116 if (mEditText == null || mCheckBox == null || mDialogMessage == null) { in setEditable()
135 if (mEditText == null) { in setEditTextEnabled()
139 mEditText.setEnabled(enabled); in setEditTextEnabled()
140 mEditText.setAlpha(enabled ? 1.0f : ColorUtil.getDisabledAlpha(getContext())); in setEditTextEnabled()
/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/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.java57 private EditText mEditText; field in RenameDocumentFragment
84 mEditText = (EditText) view.findViewById(android.R.id.text1); in onCreateDialog()
99 mEditText.setOnEditorActionListener( in onCreateDialog()
107 renameDocuments(mEditText.getText().toString()); in onCreateDialog()
112 mEditText.requestFocus(); in onCreateDialog()
123 renameDocuments(mEditText.getText().toString()); in onClickDialog()
138 mEditText.setText(mDocument.displayName); in onActivityCreated()
146 selectFileName(mEditText); in onActivityCreated()
153 clearFileNameSelection(mEditText); in onSaveInstanceState()
190 selectFileName(mEditText); in renameDocuments()
/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/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/Settings/src/com/android/settings/emergency/
DEmergencyGestureNumberOverridePreference.java41 EditText mEditText; field in EmergencyGestureNumberOverridePreference
79 mEditText = view.findViewById(R.id.emergency_gesture_number_override); in onBindDialogView()
81 mEditText.setHint(defaultNumber); in onBindDialogView()
84 mEditText.setText(number); in onBindDialogView()
91 final String input = mEditText.getText().toString(); in onClick()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageEditTextPreference.java32 private EditText mEditText; field in DataUsageEditTextPreference
63 mEditText = (EditText) view.findViewById(R.id.data_usage_edit_text); in onBindViewHolder()
66 mEditText.setText(mTextToSet); in onBindViewHolder()
79 return mEditText.getText().toString(); in getText()
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java92 EditText mEditText; field in PrivateDnsModeDialogPreference
148 mEditText = view.findViewById(R.id.private_dns_mode_provider_hostname); in onBindDialogView()
149 mEditText.addTextChangedListener(this); in onBindDialogView()
150 mEditText.setText(getHostnameFromSettings(contentResolver)); in onBindDialogView()
188 mEditText.getText().toString()); in onClick()
254 if (mEditText != null) { in updateDialogInfo()
255 mEditText.setEnabled(modeProvider); in updateDialogInfo()
260 ? InternetDomainName.isValid(mEditText.getText().toString()) in updateDialogInfo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/search/
DLauncherWidgetsSearchBar.java36 private ExtendedEditText mEditText; field in LauncherWidgetsSearchBar
57 mEditText, mCancelButton, searchModeListener); in initialize()
68 mEditText = findViewById(R.id.widgets_search_bar_edit_text); in onFinishInflate()
80 return mEditText.isFocused(); in isSearchBarFocused()
/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/DocumentsUI/src/com/android/documentsui/
DCreateDirectoryFragment.java63 private EditText mEditText; field in CreateDirectoryFragment
84 mEditText = (EditText) view.findViewById(android.R.id.text1); in onCreateDialog()
97 mEditText.setOnEditorActionListener( in onCreateDialog()
105 createDirectory(mEditText.getText().toString()); in onCreateDialog()
111 mEditText.requestFocus(); in onCreateDialog()
123 createDirectory(mEditText.getText().toString()); in onClickDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java95 assertThat(mPreference.mEditText.isEnabled()).isFalse(); in testOnCheckedChanged_dnsModeOff_disableEditText()
103 assertThat(mPreference.mEditText.isEnabled()).isFalse(); in testOnCheckedChanged_dnsModeOpportunistic_disableEditText()
111 assertThat(mPreference.mEditText.isEnabled()).isTrue(); in testOnCheckedChanged_dnsModeProvider_enableEditText()
126 assertThat(mPreference.mEditText.getText().toString()).isEqualTo(HOST_NAME); in testOnBindDialogView_containsCorrectData()
141 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()

12