/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...] |
/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);
|
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);
|
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...] |
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);
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/util/ |
InputConnectionTestUtils.java | 19 import android.text.Selection; 30 * <dl>{@code [}</dl><dd>The text selection starts from here.</dd> 31 * <dl>{@code ]}</dl><dd>The text selection ends at here.</dd> 41 * @return A {@link CharSequence} object with text selection specified by the meta characters. 69 throw new UnsupportedOperationException("Selection marker '[' must be specified."); 72 throw new UnsupportedOperationException("Selection marker ']' must be specified."); 74 Selection.setSelection(builder, selectionStart, selectionEnd);
|
/external/llvm/include/llvm/MC/ |
MCSectionCOFF.h | 39 /// This is the Selection field for the section symbol, if it is a COMDAT 41 mutable int Selection; 46 MCSymbol *COMDATSymbol, int Selection, SectionKind K, 50 Selection(Selection) { 65 int getSelection() const { return Selection; } 67 void setSelection(int Selection) const;
|
/external/clang/unittests/Driver/ |
MultilibTest.cpp | 293 << "Flag set was {\"+m64\"}, but selection not found"; 295 << "Selection picked " << SelectionM64 << " which was not expected"; 301 << "Flag set was {\"-m64\"}, but selection not found"; 303 << "Selection picked " << SelectionNoM64 << " which was not expected"; 325 Multilib Selection; 326 ASSERT_TRUE(MS2.select(Flags, Selection)) << "Selection failed for " 336 ASSERT_EQ(Selection.gccSuffix(), Suffix) << "Selection picked " << Selection [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
Selection.java | 10 public final class Selection { 28 public Selection set(Selection other) { 35 public Selection set(int anchor, int caret, boolean clickAfter) { 43 Selection other2 = (Selection)other; 49 public boolean isLessThan(Selection other) { 53 public Selection pin(String text) { 69 public Selection swap(Selection after) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewTest.java | 24 import android.text.Selection; 73 Selection.setSelection((Spannable) tv.getText(), 0, tv.getText().length()); 98 Selection.setSelection(tv.getText(), 0, tv.getText().length()); 115 Selection.setSelection(tv.getText(), 0, tv.getText().length()); 132 Selection.setSelection(tv.getText(), 0, tv.getText().length());
|
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberFormattingTextWatcher.java | 24 import android.text.Selection; 108 String formatted = reformat(s, Selection.getSelectionEnd(s)); 116 Selection.setSelection(s, rememberedPos);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
PhoneNumberWatcherTest.java | 22 import android.text.Selection; 38 Selection.setSelection(number, number.length()); 42 assertEquals(formatted1.length(), Selection.getSelectionEnd(number)); 49 Selection.setSelection(number, number.length()); 53 assertEquals(formatted2.length(), Selection.getSelectionEnd(number)); 66 Selection.setSelection(number, number.length()); 70 assertEquals(result1.length(), Selection.getSelectionEnd(number)); 75 Selection.setSelection(number, number.length()); 79 assertEquals(result2.length(), Selection.getSelectionEnd(number)); 92 Selection.setSelection(number, 4); // make the cursor at right of [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ShortcutNameActivity.java | 24 import android.text.Selection; 66 Selection.setSelection(editableText, editableText.length());
|
/frameworks/base/core/java/android/view/inputmethod/ |
BaseInputConnection.java | 27 import android.text.Selection; 138 Selection.setSelection(mEditable, 0); 204 * The default implementation performs the deletion around the current selection position of the 224 int a = Selection.getSelectionStart(content); 225 int b = Selection.getSelectionEnd(content); 362 * The default implementation performs the deletion around the current selection position of the 381 int a = Selection.getSelectionStart(content); 382 int b = Selection.getSelectionEnd(content); 450 * cursor caps mode for the current selection position in the editable 459 int a = Selection.getSelectionStart(content) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
CharacterPickerDialogTest.java | 24 import android.text.Selection; 73 Selection.setSelection(text, 0, 0); 83 Selection.setSelection(text, 2, 2); 94 Selection.setSelection(text, 2, 2);
|
LinkMovementMethodTest.java | 23 import android.text.Selection; 102 Selection.setSelection(spannable, 0, spannable.length()); 115 Selection.setSelection(spannable, 0, spannable.length()); 125 Selection.setSelection(spannable, 0, spannable.length()); 143 // no selection 153 Selection.setSelection(mSpannable, mSpannable.getSpanStart(mClickable0), 163 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0), 173 Selection.selectAll(mSpannable); 181 // part of selection is clickable 182 Selection.setSelection(mSpannable, mSpannable.getSpanEnd(mClickable0) [all...] |
/external/llvm/utils/TableGen/ |
CodeGenInstruction.cpp | 414 StringRef Selection = Cur.slice(VariantsStart, VariantsEnd); 416 Selection = Selection.split('|').second; 417 Res += Selection.split('|').first;
|
/external/skia/src/sfnt/ |
SkOTTable_OS_2_V0.h | 100 union Selection {
|
SkOTTable_OS_2_VA.h | 100 union Selection {
|
/frameworks/base/core/java/android/text/ |
Selection.java | 24 * A cursor is a selection where the start and end are at the same offset. 26 public class Selection { 27 private Selection() { /* cannot be instantiated */ } 30 * Retrieving the selection 34 * Return the offset of the selection anchor or cursor, or -1 if 35 * there is no selection or cursor. 45 * Return the offset of the selection edge or cursor, or -1 if 46 * there is no selection or cursor. 56 * Setting the selection 64 * Set the selection anchor to <code>start</code> and the selection edg [all...] |
/frameworks/base/core/java/android/widget/ |
DialerFilter.java | 23 import android.text.Selection; 283 Selection.setSelection(lettersText, lettersText.length()); 288 Selection.setSelection(digitsText, digitsText.length());
|
/frameworks/base/core/java/android/webkit/ |
FindActionModeCallback.java | 25 import android.text.Selection; 80 // Ideally, we would like to set the selection to the whole field, 81 // but this brings up the Text selection CAB, which dismisses this 83 Selection.setSelection(span, length, length); 211 Selection.setSelection(edit, edit.length());
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
BaseInputConnectionTest.java | 25 import android.text.Selection; 114 * selection position of the editable text. 116 * cursor caps mode for the current selection position in the editable text. 120 * around the current selection position of the editable text. 121 * setSelection: changes the selection position in the current editable text. 264 * an initial text and selection range. 268 * selection range from {@code selectionStart} to {@code selectionEnd} 272 final int selectionStart = Selection.getSelectionStart(source); 273 final int selectionEnd = Selection.getSelectionEnd(source); 275 Selection.setSelection(editable, selectionStart, selectionEnd) [all...] |
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 867 int Selection = 0; 872 Selection = getSelectionForCOFF(GV); 874 if (Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) 884 Selection = 0; 891 Selection); 922 int Selection = getSelectionForCOFF(GV); 923 if (!Selection) 924 Selection = COFF::IMAGE_COMDAT_SELECT_NODUPLICATES; 935 COMDATSymName, Selection); [all...] |