/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 | 32 /// Selection - This is the Selection field for the section symbol, if 34 int Selection; 39 int Selection, SectionKind K) 41 Characteristics(Characteristics), Selection (Selection) { 60 int getSelection () const { return Selection; }
|
/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; 107 int a = Selection.getSelectionStart(buffer); 108 int b = Selection.getSelectionEnd(buffer); 156 Selection.setSelection(buffer, bestend, beststart); 178 Selection.setSelection(buffer, beststart, bestend); 214 Selection.setSelection(buffer, 221 Selection.removeSelection(buffer); 230 Selection.removeSelection(text); 236 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);
|
WordIterator.java | 20 import android.text.Selection; 34 public class WordIterator implements Selection.PositionIterator {
|
/cts/tests/tests/text/src/android/text/method/cts/ |
MetaKeyKeyListenerTest.java | 22 import android.text.Selection; 42 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 43 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 48 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); 49 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); 54 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); 55 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); 67 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 68 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 73 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); 191 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); 199 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable)); 200 int correspondingIn1stLine = Selection.getSelectionEnd(mEditable); 213 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);
|
BaseKeyListenerTest.java | 29 import android.text.Selection; 73 Selection.setSelection(content, 0, 0); 77 // Delete the first three letters using a selection. 79 Selection.setSelection(content, 0, 3); 87 Selection.setSelection(content, 0, 0); 120 // ALT+DEL deletes the selection only. 138 Selection.setSelection((Editable) mTextView.getText(), selectionStart, 154 * 2. Set a selection and press DEL key, the selection is deleted. 166 Selection.setSelection((Editable) mTextView.getText(), 0, 0) [all...] |
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...] |
MultiTapKeyListenerTest.java | 26 import android.text.Selection; 88 multiTapKeyListener.onSpanChanged(text, Selection.SELECTION_END, 0, 0, 0, 0); 91 multiTapKeyListener.onSpanChanged(null, Selection.SELECTION_END, 0, 0, 0, 0); 196 Selection.setSelection(mTextView.getEditableText(), 0, 0);
|
/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/webkit/Source/WebCore/platform/qt/ |
PasteboardQt.cpp | 77 QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::Clipboard); 95 return QApplication::clipboard()->text(m_selectionMode ? QClipboard::Selection : QClipboard::Clipboard); 106 m_selectionMode ? QClipboard::Selection : QClipboard::Clipboard); 136 QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::Clipboard); 149 QApplication::clipboard()->setMimeData(md, m_selectionMode ? QClipboard::Selection : QClipboard::Clipboard);
|
/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); 280 * cursor caps mode for the current selection position in the editable 289 int a = Selection.getSelectionStart(content); 290 int b = Selection.getSelectionEnd(content); 316 int a = Selection.getSelectionStart(content); 317 int b = Selection.getSelectionEnd(content) [all...] |
/external/llvm/lib/MC/ |
MCSectionCOFF.cpp | 52 switch (Selection) { 67 // comdat selection value. 72 assert (0 && "unsupported COFF selection type");
|
/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) {
|
/packages/apps/Settings/src/com/android/settings/ |
DebugIntentSender.java | 27 import android.text.Selection; 74 Selection.selectAll((Spannable) mIntentField.getText());
|