Home
last modified time | relevance | path

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

12

/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/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DSearchController.java55 private OnPrivateImeCommandEditText mEditText; field in SearchController
102 if (mEditText != null && textViewConsumer != null) { in setSearchTextViewConsumer()
103 mSearchTextViewConsumer.accept(mEditText); in setSearchTextViewConsumer()
110 if (mEditText != null) { in setOnPrivateImeCommandListener()
111 mEditText.setOnPrivateImeCommandListener(mOnPrivateImeCommandListener); in setOnPrivateImeCommandListener()
119 mEditText = mInflatedView.requireViewById(R.id.toolbar_search_bar); in setSearchMode()
122 mSearchTextViewConsumer.accept(mEditText); in setSearchMode()
124 mEditText.setOnPrivateImeCommandListener(mOnPrivateImeCommandListener); in setSearchMode()
128 mEditText.setSaveEnabled(false); in setSearchMode()
129 mEditText.setText(mSearchQuery); in setSearchMode()
[all …]
/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/car-ui-lib/src/main/java/com/android/car/ui/preference/
DEditTextPreferenceDialogFragment.java46 private EditText mEditText; field in EditTextPreferenceDialogFragment
84 mEditText = CarUiUtils.findViewByRefId(view, android.R.id.edit); in onBindDialogView()
86 if (mEditText == null) { in onBindDialogView()
91 mEditText.requestFocus(); in onBindDialogView()
92 mEditText.setText(mText); in onBindDialogView()
93 mEditText.setInputType(InputType.TYPE_CLASS_TEXT); in onBindDialogView()
94 mEditText.setImeOptions(EditorInfo.IME_ACTION_DONE); in onBindDialogView()
95 mEditText.setOnEditorActionListener(this); in onBindDialogView()
98 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
113 String value = mEditText.getText().toString(); in onDialogClosed()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DWidgetsSearchBarControllerTest.java52 private ExtendedEditText mEditText; field in WidgetsSearchBarControllerTest
65 mEditText = new ExtendedEditText(testActivity); in setUp()
68 mSearchAlgorithm, mEditText, mCancelButton, mSearchModeListener); in setUp()
86 mEditText.setText("abc"); in afterTextChanged_shouldInformSearchModeListenerToEnterSearch()
94 mEditText.setText("abc"); in afterTextChanged_shouldDoSearch()
101 mEditText.setText("abc"); in afterTextChanged_shouldShowCancelButton()
108 mEditText.setText(""); in afterTextChanged_empty_shouldInformSearchModeListenerToExitSearch()
116 mEditText.setText(""); in afterTextChanged_empty_shouldCancelSearch()
124 mEditText.setText(""); in afterTextChanged_empty_shouldHideCancelButton()
148 assertEquals(mEditText.getText().toString(), ""); in cancelSearch_shouldClearSearchBar()
/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/Car/Settings/src/com/android/car/settings/wifi/
DWifiPasswordDialog.java40 private EditText mEditText; field in WifiPasswordDialog
71 mEditText = view.findViewById(android.R.id.edit); in onBindDialogView()
72 mEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); in onBindDialogView()
78 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
81 mEditText.setInputType(InputType.TYPE_CLASS_TEXT in onBindDialogView()
85 mEditText.setSelection(mEditText.getText().length()); in onBindDialogView()
111 return WifiUtil.getWifiConfig(mWifiEntry, mEditText.getText().toString()); in getConfig()
/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/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/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java92 EditText mEditText; field in PrivateDnsModeDialogPreference
165 mEditText = view.findViewById(R.id.private_dns_mode_provider_hostname); in onBindDialogView()
166 mEditText.addTextChangedListener(this); in onBindDialogView()
167 mEditText.setText(getHostnameFromSettings(contentResolver)); in onBindDialogView()
202 mEditText.getText().toString()); in onClick()
268 if (mEditText != null) { in updateDialogInfo()
269 mEditText.setEnabled(modeProvider); in updateDialogInfo()
274 ? InternetDomainName.isValid(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/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/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/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/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