/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...] |
/sdk/traceview/src/com/android/traceview/ |
SelectionController.java | 24 private ArrayList<Selection> mSelections; 26 public void change(ArrayList<Selection> selections, Object arg) { 32 public ArrayList<Selection> getSelections() {
|
Selection.java | 19 public class Selection { 25 public Selection(Action action, String name, Object value) { 31 public static Selection highlight(String name, Object value) { 32 return new Selection(Action.Highlight, name, value); 35 public static Selection include(String name, Object value) { 36 return new Selection(Action.Include, name, value); 39 public static Selection exclude(String name, Object value) { 40 return new Selection(Action.Exclude, name, value);
|
/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) { 54 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); 187 Selection.setSelection(content, selEnd); 217 Selection.setSelection(content, selEnd); 225 selEnd = Selection.getSelectionEnd(content); 233 Selection.setSelection(content, oldStart, selEnd); 279 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 | 28 import android.text.Selection; 66 Selection.setSelection(content, 0, 0); 70 // Delete the first three letters using a selection. 72 Selection.setSelection(content, 0, 3); 80 Selection.setSelection(content, 0, 0); 113 // ALT+DEL deletes the selection only. 131 Selection.setSelection((Editable) mTextView.getText(), selectionStart, 147 * 2. Set a selection and press DEL key, the selection is deleted. 159 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...] |
/frameworks/base/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 | 19 import android.text.Selection; 502 // Verify the selection position. 503 assertEquals(1, Selection.getSelectionStart(textView.getText())); 504 assertEquals(1, Selection.getSelectionEnd(textView.getText())); 536 // Verify the selection position. 537 assertEquals(2, Selection.getSelectionStart(textView.getText())); 538 assertEquals(2, Selection.getSelectionEnd(textView.getText())); 570 // Verify the selection position. 571 assertEquals(3, Selection.getSelectionStart(textView.getText())); 572 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; 135 Selection.setSelection(mEditable, 0); 203 * selection position of the editable text. 215 int a = Selection.getSelectionStart(content); 216 int b = Selection.getSelectionEnd(content); 279 * cursor caps mode for the current selection position in the editable 288 int a = Selection.getSelectionStart(content); 289 int b = Selection.getSelectionEnd(content); 315 int a = Selection.getSelectionStart(content); 316 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 | 158 allButton.addListener(SWT.Selection, this); 159 leftButton.addListener(SWT.Selection, this); 160 rightButton.addListener(SWT.Selection, this); 161 topButton.addListener(SWT.Selection, this); 162 bottomButton.addListener(SWT.Selection, this); 218 } else if (event.type == SWT.Selection) {
|