HomeSort by relevance Sort by last modified time
    Searched refs:Selection (Results 1 - 25 of 91) sorted by null

1 2 3 4

  /cts/tests/tests/text/src/android/text/cts/
SelectionTest.java 25 import android.text.Selection;
30 @TestTargetClass(Selection.class)
40 assertEquals(-1, Selection.getSelectionStart(builder));
42 Selection.setSelection(builder, 3, 8);
43 assertEquals(3, Selection.getSelectionStart(builder));
45 Selection.setSelection(builder, 3, 9);
46 assertEquals(3, Selection.getSelectionStart(builder));
48 Selection.setSelection(builder, 5, 7);
49 assertEquals(5, Selection.getSelectionStart(builder));
51 assertEquals(-1, Selection.getSelectionStart(null))
    [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;
97 int a = Selection.getSelectionStart(content);
98 int b = Selection.getSelectionEnd(content);
106 Selection.setSelection(content, 0);
114 Selection.setSelection(content, selEnd);
MultiTapKeyListener.java 91 int a = Selection.getSelectionStart(content);
92 int b = Selection.getSelectionEnd(content);
150 // that the selection is our fault but the key has changed
151 // or the text no longer matches, so move the selection over
157 Selection.setSelection(content, selEnd, selEnd);
165 // We have a valid key. Replace the selection or insertion point
183 Selection.setSelection(content, selEnd);
192 selEnd = Selection.getSelectionEnd(content);
195 Selection.setSelection(content, oldStart, selEnd);
232 if (what == Selection.SELECTION_END)
    [all...]
BaseKeyListener.java 38 * a {@link TextView}. If there is a selection, deletes the selection; otherwise,
50 * key in a {@link TextView}. If there is a selection, deletes the selection; otherwise,
68 // If there is a current selection, delete it.
81 final int start = Selection.getSelectionEnd(content);
97 int selectionStart = Selection.getSelectionStart(content);
98 int selectionEnd = Selection.getSelectionEnd(content);
115 final int line = layout.getLineForOffset(Selection.getSelectionStart(content));
179 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 90 int a = Selection.getSelectionStart(content);
91 int b = Selection.getSelectionEnd(content);
98 Selection.setSelection(content, 0, 0);
154 Selection.setSelection(content, selStart, selEnd);
183 Selection.setSelection(content, selEnd);
213 Selection.setSelection(content, selEnd);
221 selEnd = Selection.getSelectionEnd(content);
229 Selection.setSelection(content, oldStart, selEnd);
275 selEnd = Selection.getSelectionEnd(content);
WordIterator.java 20 import android.text.Selection;
34 public class WordIterator implements Selection.PositionIterator {
  /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, 5); // make the cursor at right of
    [all...]
  /frameworks/base/core/java/android/widget/
EditText.java 21 import android.text.Selection;
82 * Convenience for {@link Selection#setSelection(Spannable, int, int)}.
85 Selection.setSelection(getText(), start, stop);
89 * Convenience for {@link Selection#setSelection(Spannable, int)}.
92 Selection.setSelection(getText(), index);
96 * Convenience for {@link Selection#selectAll}.
99 Selection.selectAll(getText());
103 * Convenience for {@link Selection#extendSelection}.
106 Selection.extendSelection(getText(), index);
  /cts/tests/tests/text/src/android/text/method/cts/
MetaKeyKeyListenerTest.java 27 import android.text.Selection;
54 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
55 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
60 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT);
61 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT);
66 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT);
67 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT);
85 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT);
86 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT);
91 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT)
    [all...]
ArrowKeyMovementMethodTest.java 28 import android.text.Selection;
145 Selection.removeSelection(mEditable);
154 Selection.removeSelection(mEditable);
173 Selection.removeSelection(mEditable);
181 Selection.removeSelection(mEditable);
243 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE);
253 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE);
261 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable));
262 int correspondingIn1stLine = Selection.getSelectionEnd(mEditable);
275 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE)
    [all...]
BaseKeyListenerTest.java 33 import android.text.Selection;
72 Selection.setSelection(content, 0, 0);
76 // Delete the first three letters using a selection.
78 Selection.setSelection(content, 0, 3);
86 Selection.setSelection(content, 0, 0);
119 // ALT+DEL deletes the selection only.
137 Selection.setSelection((Editable) mTextView.getText(), selectionStart,
153 * 2. Set a selection and press DEL key, the selection is deleted.
179 Selection.setSelection((Editable) mTextView.getText(), 0, 0)
    [all...]
CharacterPickerDialogTest.java 29 import android.text.Selection;
97 Selection.setSelection(text, 0, 0);
107 Selection.setSelection(text, 2, 2);
118 Selection.setSelection(text, 2, 2);
LinkMovementMethodTest.java 28 import android.text.Selection;
129 Selection.setSelection(spannable, 0, spannable.length());
142 Selection.setSelection(spannable, 0, spannable.length());
152 Selection.setSelection(spannable, 0, spannable.length());
179 // no selection
189 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0),
199 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0),
209 Selection.selectAll(mSpannable);
217 // part of selection is clickable
218 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0)
    [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;
150 String formatted = reformat(s, Selection.getSelectionEnd(s));
158 Selection.setSelection(s, rememberedPos);
  /frameworks/base/core/java/android/view/inputmethod/
BaseInputConnection.java 26 import android.text.Selection;
136 Selection.setSelection(mEditable, 0);
195 * selection position of the editable text.
205 int a = Selection.getSelectionStart(content);
206 int b = Selection.getSelectionEnd(content);
269 * cursor caps mode for the current selection position in the editable
278 int a = Selection.getSelectionStart(content);
279 int b = Selection.getSelectionEnd(content);
305 int a = Selection.getSelectionStart(content);
306 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 141 allButton.addListener(SWT.Selection, this);
142 leftButton.addListener(SWT.Selection, this);
143 rightButton.addListener(SWT.Selection, this);
144 topButton.addListener(SWT.Selection, this);
145 bottomButton.addListener(SWT.Selection, this);
194 } 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());

Completed in 1198 milliseconds

1 2 3 4