Home
last modified time | relevance | path

Searched refs:editable (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/widget/
DSpellChecker.java194 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument
197 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan()
263 Editable editable = (Editable) mTextView.getText(); in spellCheck()
264 final int selectionStart = Selection.getSelectionStart(editable); in spellCheck()
265 final int selectionEnd = Selection.getSelectionEnd(editable); in spellCheck()
274 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck()
275 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck()
284 mCurrentLocale, Character.codePointBefore(editable, end + 1))) { in spellCheck()
296 final TextInfo textInfo = new TextInfo(editable, start, end, mCookie, mIds[i]); in spellCheck()
329 final Editable editable = (Editable) mTextView.getText(); in onGetSuggestionsInternal() local
[all …]
DMultiAutoCompleteTextView.java196 Editable editable = getText(); in replaceText() local
197 String original = TextUtils.substring(editable, start, end); in replaceText()
199 QwertyKeyListener.markAsReplaced(editable, start, end, original); in replaceText()
200 editable.replace(start, end, mTokenizer.terminateToken(text)); in replaceText()
DTextInputTimePickerView.java95 public void afterTextChanged(Editable editable) { in TextInputTimePickerView()
96 parseAndSetHourInternal(editable.toString()); in TextInputTimePickerView()
108 public void afterTextChanged(Editable editable) { in TextInputTimePickerView()
109 parseAndSetMinuteInternal(editable.toString()); in TextInputTimePickerView()
DEditor.java2680 final Editable editable = (Editable) mTextView.getText(); in findEquivalentSuggestionSpan() local
2681 if (editable.getSpanStart(suggestionSpanInfo.mSuggestionSpan) >= 0) { in findEquivalentSuggestionSpan()
2687 final SuggestionSpan[] suggestionSpans = editable.getSpans(suggestionSpanInfo.mSpanStart, in findEquivalentSuggestionSpan()
2690 final int start = editable.getSpanStart(suggestionSpan); in findEquivalentSuggestionSpan()
2694 final int end = editable.getSpanEnd(suggestionSpan); in findEquivalentSuggestionSpan()
2712 final Editable editable = (Editable) mTextView.getText(); in replaceWithSuggestion() local
2713 final int spanStart = editable.getSpanStart(targetSuggestionSpan); in replaceWithSuggestion()
2714 final int spanEnd = editable.getSpanEnd(targetSuggestionSpan); in replaceWithSuggestion()
2720 final String originalText = TextUtils.substring(editable, spanStart, spanEnd); in replaceWithSuggestion()
2722 SuggestionSpan[] suggestionSpans = editable.getSpans(spanStart, spanEnd, in replaceWithSuggestion()
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiEditableFactoryTest.java55 final Editable editable = EmojiEditableFactory.getInstance().newEditable("abc"); in testNewEditable_returnsEditable() local
56 assertNotNull(editable); in testNewEditable_returnsEditable()
57 assertThat(editable, instanceOf(Editable.class)); in testNewEditable_returnsEditable()
68 final Editable editable = EmojiEditableFactory.getInstance().newEditable(str); in testNewEditable_preservesCharSequenceData() local
69 assertNotNull(editable); in testNewEditable_preservesCharSequenceData()
70 assertEquals(string, editable.toString()); in testNewEditable_preservesCharSequenceData()
71 final EmojiSpan[] spans = editable.getSpans(0, 1, EmojiSpan.class); in testNewEditable_preservesCharSequenceData()
88 final Editable editable = EmojiEditableFactory.getInstance().newEditable(""); in testNewEditable_returnsEmojiSpannableIfWatcherClassExists() local
89 assertThat(editable, instanceOf(Editable.class)); in testNewEditable_returnsEmojiSpannableIfWatcherClassExists()
91 final Editable editable = EmojiEditableFactory.getInstance().newEditable(""); in testNewEditable_returnsEmojiSpannableIfWatcherClassExists() local
[all …]
DEmojiKeyListenerTest.java146 Editable editable = new SpannableStringBuilder("abc"); in testOnKeyDown_doesNotDelete_withoutEmojiSpans() local
147 Selection.setSelection(editable, 1); in testOnKeyDown_doesNotDelete_withoutEmojiSpans()
149 assertFalse(mEmojiKeyListener.onKeyDown(null, editable, event.getKeyCode(), event)); in testOnKeyDown_doesNotDelete_withoutEmojiSpans()
150 verify(mKeyListener, times(1)).onKeyDown((View) eq(null), same(editable), in testOnKeyDown_doesNotDelete_withoutEmojiSpans()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiKeyboardTest.java78 Editable editable = editText.getEditableText(); in testAppendWithSoftKeyboard() local
80 assertThat(editable, hasEmojiAt(EMOJI_WITH_ZWJ, string.emojiStartIndex(), in testAppendWithSoftKeyboard()
95 final Editable editable = editText.getEditableText(); in testBackDeleteWithSoftKeyboard() local
96 assertThat(editable, hasEmoji()); in testBackDeleteWithSoftKeyboard()
103 assertThat(editable, not(hasEmoji())); in testBackDeleteWithSoftKeyboard()
117 final Editable editable = editText.getEditableText(); in testForwardDeleteWithSoftKeyboard() local
118 assertThat(editable, hasEmoji()); in testForwardDeleteWithSoftKeyboard()
126 assertThat(editable, not(hasEmoji())); in testForwardDeleteWithSoftKeyboard()
140 final Editable editable = editText.getEditableText(); in testBackDeleteWithHardwareKeyboard() local
141 assertThat(editable, hasEmoji()); in testBackDeleteWithHardwareKeyboard()
[all …]
DEmojiCompatTest.java365 final Editable editable = new SpannableStringBuilder(new TestString('a').withPrefix() in testProcess_withAppend() local
369 editable.insert(start, new TestString(EMOJI_SINGLE_CODEPOINT).toString()); in testProcess_withAppend()
370 EmojiCompat.get().process(editable, start, end); in testProcess_withAppend()
371 assertThat(editable, hasEmojiCount(1)); in testProcess_withAppend()
372 assertThat(editable, hasEmojiAt(EMOJI_SINGLE_CODEPOINT, start, end)); in testProcess_withAppend()
704 final Editable editable = spy(new SpannableStringBuilder(testString.toString())); in testHandleDeleteSurroundingText_pre19() local
706 Selection.setSelection(editable, testString.emojiEndIndex()); in testHandleDeleteSurroundingText_pre19()
708 reset(editable); in testHandleDeleteSurroundingText_pre19()
710 verifyNoMoreInteractions(editable); in testHandleDeleteSurroundingText_pre19()
714 assertFalse(EmojiCompat.handleDeleteSurroundingText(inputConnection, editable, in testHandleDeleteSurroundingText_pre19()
[all …]
DHardDeleteTest.java131 final Editable editable = new SpannableStringBuilder("abc"); in testOnKeyDown_doesNotDelete_withoutEmojiSpans() local
132 Selection.setSelection(editable, 1); in testOnKeyDown_doesNotDelete_withoutEmojiSpans()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java268 static boolean handleOnKeyDown(@NonNull final Editable editable, final int keyCode, in handleOnKeyDown() argument
273 handled = delete(editable, event, false /*forwardDelete*/); in handleOnKeyDown()
276 handled = delete(editable, event, true /*forwardDelete*/); in handleOnKeyDown()
284 MetaKeyKeyListener.adjustMetaAfterKeypress(editable); in handleOnKeyDown()
339 @NonNull final Editable editable, @IntRange(from = 0) final int beforeLength, in handleDeleteSurroundingText() argument
342 if (editable == null || inputConnection == null) { in handleDeleteSurroundingText()
350 final int selectionStart = Selection.getSelectionStart(editable); in handleDeleteSurroundingText()
351 final int selectionEnd = Selection.getSelectionEnd(editable); in handleDeleteSurroundingText()
361 start = CodepointIndexFinder.findIndexBackward(editable, selectionStart, in handleDeleteSurroundingText()
363 end = CodepointIndexFinder.findIndexForward(editable, selectionEnd, in handleDeleteSurroundingText()
[all …]
DEmojiCompat.java433 public static boolean handleOnKeyDown(@NonNull final Editable editable, final int keyCode,
436 return EmojiProcessor.handleOnKeyDown(editable, keyCode, event);
461 @NonNull final InputConnection inputConnection, @NonNull final Editable editable,
465 return EmojiProcessor.handleDeleteSurroundingText(inputConnection, editable,
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java756 Editable editable = getText(); in shrink() local
758 int start = mTokenizer.findTokenStart(editable, end); in shrink()
774 commitChip(start, end, editable); in shrink()
1355 Editable editable = getText(); in handlePendingChips() local
1360 int tokenStart = editable.toString().indexOf(current); in handlePendingChips()
1366 if (tokenEnd < editable.length() - 2 in handlePendingChips()
1367 && editable.charAt(tokenEnd) == COMMIT_CHAR_COMMA) { in handlePendingChips()
1370 createReplacementChip(tokenStart, tokenEnd, editable, i < CHIP_LIMIT in handlePendingChips()
1435 Editable editable = getText(); in sanitizeEnd() local
1436 int length = editable.length(); in sanitizeEnd()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGuidedAction.java352 public B editable(boolean editable) { in editable() argument
353 if (!editable) { in editable()
370 public B descriptionEditable(boolean editable) { in descriptionEditable() argument
371 if (!editable) { in descriptionEditable()
388 public B hasEditableActivatorView(boolean editable) { in hasEditableActivatorView() argument
389 if (!editable) { in hasEditableActivatorView()
DSearchBar.java246 public void afterTextChanged(Editable editable) { in onFinishInflate()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/wizard/
DWizardExample1stStepFragment.java49 .editable(false) in onCreateActions()
57 .editable(false) in onCreateActions()
DWizardExample4thStepFragment.java52 .editable(false) in onCreateActions()
58 .editable(false) in onCreateActions()
DWizardExample2ndStepFragment.java78 .editable(false) in onCreateActions()
112 .editable(false) in onResume()
DWizardNewPaymentStepFragment.java57 .editable(true) in onCreateActions()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DGuidedStepSupportActivity.java131 .editable(true) in addEditableAction()
145 .editable(true) in addEditableAction()
160 .editable(true) in addEditableAction()
DGuidedStepActivity.java128 .editable(true) in addEditableAction()
142 .editable(true) in addEditableAction()
157 .editable(true) in addEditableAction()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java144 actions.add(new GuidedAction.Builder().id(1001).editable(true).title("text") in restoreFragments()
146 actions.add(new GuidedAction.Builder().id(1002).editable(true).title("text") in restoreFragments()
DGuidedStepFragmentTest.java141 actions.add(new GuidedAction.Builder().id(1001).editable(true).title("text") in restoreFragments()
143 actions.add(new GuidedAction.Builder().id(1002).editable(true).title("text") in restoreFragments()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java1082 Editable editable = (Editable) txt; in clearStyles() local
1083 Object[] styles = editable.getSpans(0, len, Object.class); in clearStyles()
1089 int start = editable.getSpanStart(style); in clearStyles()
1090 int end = editable.getSpanEnd(style); in clearStyles()
1091 editable.replace(start, end, ""); in clearStyles()
1093 editable.removeSpan(style); in clearStyles()
/frameworks/support/compat/java/android/support/v4/view/accessibility/
DAccessibilityNodeInfoCompat.java3023 public void setEditable(boolean editable) { in setEditable() argument
3025 mInfo.setEditable(editable); in setEditable()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintActivity.java2927 public void afterTextChanged(Editable editable) { in afterTextChanged() argument
2932 PageRange[] ranges = PageRangeUtils.parsePageRanges(editable, pageCount); in afterTextChanged()
2965 public void afterTextChanged(Editable editable) { in afterTextChanged() argument
2968 if (editable.length() == 0) { in afterTextChanged()
2978 copies = Integer.parseInt(editable.toString()); in afterTextChanged()

12