/cts/tests/tests/text/src/android/text/cts/ |
SelectionTest.java | 21 import android.text.Selection; 30 assertEquals(-1, Selection.getSelectionStart(builder)); 32 Selection.setSelection(builder, 3, 8); 33 assertEquals(3, Selection.getSelectionStart(builder)); 35 Selection.setSelection(builder, 3, 9); 36 assertEquals(3, Selection.getSelectionStart(builder)); 38 Selection.setSelection(builder, 5, 7); 39 assertEquals(5, Selection.getSelectionStart(builder)); 41 assertEquals(-1, Selection.getSelectionStart(null)); 47 assertEquals(-1, Selection.getSelectionEnd(builder)) [all...] |
/external/llvm/include/llvm/MC/ |
MCSectionCOFF.h | 35 /// Selection - This is the Selection field for the section symbol, if 37 mutable int Selection; 41 /// associative Selection (IMAGE_COMDAT_SELECT_ASSOCIATIVE). 47 int Selection, const MCSectionCOFF *Assoc, SectionKind K) 49 Characteristics(Characteristics), Selection(Selection), Assoc(Assoc) { 52 assert ((Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) == 71 int getSelection() const { return Selection; } 74 void setSelection(int Selection, const MCSectionCOFF *Assoc = 0) const [all...] |
/frameworks/base/core/java/android/text/method/ |
ArrowKeyMovementMethod.java | 21 import android.text.Selection; 29 * A movement method that provides cursor movement and selection. 39 return layout.getLineTop(layout.getLineForOffset(Selection.getSelectionEnd(buffer))); 72 return Selection.extendLeft(buffer, layout); 74 return Selection.moveLeft(buffer, layout); 82 return Selection.extendRight(buffer, layout); 84 return Selection.moveRight(buffer, layout); 92 return Selection.extendUp(buffer, layout); 94 return Selection.moveUp(buffer, layout); 102 return Selection.extendDown(buffer, layout) [all...] |
NumberKeyListener.java | 23 import android.text.Selection; 101 int a = Selection.getSelectionStart(content); 102 int b = Selection.getSelectionEnd(content); 110 Selection.setSelection(content, 0); 118 Selection.setSelection(content, selEnd);
|
MultiTapKeyListener.java | 95 int a = Selection.getSelectionStart(content); 96 int b = Selection.getSelectionEnd(content); 154 // that the selection is our fault but the key has changed 155 // or the text no longer matches, so move the selection over 161 Selection.setSelection(content, selEnd, selEnd); 169 // We have a valid key. Replace the selection or insertion point 187 Selection.setSelection(content, selEnd); 196 selEnd = Selection.getSelectionEnd(content); 199 Selection.setSelection(content, oldStart, selEnd); 236 if (what == Selection.SELECTION_END) [all...] |
BaseKeyListener.java | 42 * a {@link TextView}. If there is a selection, deletes the selection; otherwise, 54 * key in a {@link TextView}. If there is a selection, deletes the selection; otherwise, 72 // If there is a current selection, delete it. 85 final int start = Selection.getSelectionEnd(content); 101 int selectionStart = Selection.getSelectionStart(content); 102 int selectionEnd = Selection.getSelectionEnd(content); 119 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); 183 int selectionStart = Selection.getSelectionStart(content) [all...] |
LinkMovementMethod.java | 21 import android.text.Selection; 112 int a = Selection.getSelectionStart(buffer); 113 int b = Selection.getSelectionEnd(buffer); 161 Selection.setSelection(buffer, bestend, beststart); 183 Selection.setSelection(buffer, beststart, bestend); 219 Selection.setSelection(buffer, 226 Selection.removeSelection(buffer); 235 Selection.removeSelection(text); 241 Selection.removeSelection(text);
|
QwertyKeyListener.java | 94 int a = Selection.getSelectionStart(content); 95 int b = Selection.getSelectionEnd(content); 102 Selection.setSelection(content, 0, 0); 158 Selection.setSelection(content, selStart, selEnd); 188 Selection.setSelection(content, selEnd); 218 Selection.setSelection(content, selEnd); 226 selEnd = Selection.getSelectionEnd(content); 234 Selection.setSelection(content, oldStart, selEnd); 280 selEnd = Selection.getSelectionEnd(content);
|
/external/llvm/lib/MC/ |
MCSectionCOFF.cpp | 31 void MCSectionCOFF::setSelection(int Selection, 33 assert(Selection != 0 && "invalid COMDAT selection type"); 34 assert((Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) == 37 this->Selection = Selection; 64 switch (Selection) { 87 assert (0 && "unsupported COFF selection type");
|
/cts/tests/tests/text/src/android/text/method/cts/ |
MetaKeyKeyListenerTest.java | 20 import android.text.Selection; 41 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 42 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 47 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); 48 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); 53 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); 54 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); 66 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 67 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 72 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT) [all...] |
ArrowKeyMovementMethodTest.java | 24 import android.text.Selection; 111 Selection.removeSelection(mEditable); 120 Selection.removeSelection(mEditable); 139 Selection.removeSelection(mEditable); 147 Selection.removeSelection(mEditable); 181 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); 192 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); 201 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable)); 202 int correspondingIn1stLine = Selection.getSelectionEnd(mEditable); 215 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE) [all...] |
CharacterPickerDialogTest.java | 25 import android.text.Selection; 74 Selection.setSelection(text, 0, 0); 84 Selection.setSelection(text, 2, 2); 95 Selection.setSelection(text, 2, 2);
|
TextKeyListenerTest.java | 23 import android.text.Selection; 133 textKeyListener.onSpanChanged(text, Selection.SELECTION_END, 0, 0, 0, 0); 136 textKeyListener.onSpanChanged(null, Selection.SELECTION_END, 0, 0, 0, 0); 187 Selection.setSelection((Editable) mTextView.getText(), 0, 0); 219 Selection.setSelection((Editable) mTextView.getText(), 0, 0);
|
LinkMovementMethodTest.java | 23 import android.text.Selection; 100 Selection.setSelection(spannable, 0, spannable.length()); 113 Selection.setSelection(spannable, 0, spannable.length()); 123 Selection.setSelection(spannable, 0, spannable.length()); 141 // no selection 151 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), 161 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), 171 Selection.selectAll(mSpannable); 179 // part of selection is clickable 180 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0) [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneNumberWatcherTest.java | 21 import android.text.Selection; 34 Selection.setSelection(number, number.length()); 38 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); 45 Selection.setSelection(number, number.length()); 49 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); 61 Selection.setSelection(number, number.length()); 65 assertEquals(result1.length(), Selection.getSelectionEnd(number)); 70 Selection.setSelection(number, number.length()); 74 assertEquals(result2.length(), Selection.getSelectionEnd(number)); 86 Selection.setSelection(number, 4); // make the cursor at right of [all...] |
/frameworks/base/core/java/android/widget/ |
EditText.java | 21 import android.text.Selection; 84 * Convenience for {@link Selection#setSelection(Spannable, int, int)}. 87 Selection.setSelection(getText(), start, stop); 91 * Convenience for {@link Selection#setSelection(Spannable, int)}. 94 Selection.setSelection(getText(), index); 98 * Convenience for {@link Selection#selectAll}. 101 Selection.selectAll(getText()); 105 * Convenience for {@link Selection#extendSelection}. 108 Selection.extendSelection(getText(), index);
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityTextTraversalTest.java | 20 import android.text.Selection; 526 // Verify the selection position. 527 assertEquals(1, Selection.getSelectionStart(textView.getText())); 528 assertEquals(1, Selection.getSelectionEnd(textView.getText())); 560 // Verify the selection position. 561 assertEquals(2, Selection.getSelectionStart(textView.getText())); 562 assertEquals(2, Selection.getSelectionEnd(textView.getText())); 594 // Verify the selection position. 595 assertEquals(3, Selection.getSelectionStart(textView.getText())); 596 assertEquals(3, Selection.getSelectionEnd(textView.getText())) [all...] |
/external/chromium/chrome/browser/autocomplete/ |
autocomplete_popup_model.h | 60 // |reset_to_default| is true when the selection is being reset back to the 87 // current selection down (|count| > 0) or up (|count| < 0), clamping to the 88 // first or last result if necessary. If |count| == 0, the selection will be 102 const AutocompleteResult::Selection& manually_selected_match() const { 131 AutocompleteResult::Selection manually_selected_match_;
|
/external/chromium_org/chrome/browser/ui/omnibox/ |
omnibox_popup_model.h | 59 // |reset_to_default| is true when the selection is being reset back to the 73 // current selection down (|count| > 0) or up (|count| < 0), clamping to the 74 // first or last result if necessary. If |count| == 0, the selection will be 81 // selected line does not have both matches (or there is no selection). 93 const AutocompleteResult::Selection& manually_selected_match() const { 128 AutocompleteResult::Selection manually_selected_match_;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
AdapterInputConnection.java | 9 import android.text.Selection; 29 * Selection value should be -1 if not known. See EditorInfo.java for details. 107 * its selection and composition properties. The resulting Editable is accessible through the 112 * @param selectionStart The character offset of the selection start, or the caret position if 113 * there is no selection. 114 * @param selectionEnd The character offset of the selection end, or the caret position if there 115 * is no selection. 119 * selection. 146 Selection.setSelection(editable, selectionStart, selectionEnd); 157 * Sends selection update to the InputMethodManager unless we are currently in a batch edit o [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberFormattingTextWatcher.java | 24 import android.text.Selection; 110 String formatted = reformat(s, Selection.getSelectionEnd(s)); 118 Selection.setSelection(s, rememberedPos);
|
/frameworks/base/core/java/android/view/inputmethod/ |
BaseInputConnection.java | 25 import android.text.Selection; 136 Selection.setSelection(mEditable, 0); 204 * selection position of the editable text. 216 int a = Selection.getSelectionStart(content); 217 int b = Selection.getSelectionEnd(content); 281 * cursor caps mode for the current selection position in the editable 290 int a = Selection.getSelectionStart(content); 291 int b = Selection.getSelectionEnd(content); 317 int a = Selection.getSelectionStart(content); 318 int b = Selection.getSelectionEnd(content) [all...] |
/external/chromium_org/chrome/browser/autocomplete/ |
autocomplete_result.h | 29 // The "Selection" struct is the information we need to select the same match 31 struct Selection { 32 Selection() 37 // Clear the selection entirely. 40 // True when the selection is empty. 55 // keystroke, so if this is set, we'll preserve the selection by simply
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
MarginChooser.java | 154 allButton.addListener(SWT.Selection, this); 155 leftButton.addListener(SWT.Selection, this); 156 rightButton.addListener(SWT.Selection, this); 157 topButton.addListener(SWT.Selection, this); 158 bottomButton.addListener(SWT.Selection, this); 214 } else if (event.type == SWT.Selection) {
|
/external/chromium_org/third_party/WebKit/Source/core/dom/shadow/ |
ShadowRoot.idl | 38 Selection getSelection();
|