/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);
|
/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...] |
/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
|
/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/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...] |
/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 | 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...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
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);
|
/external/chromium_org/third_party/skia/src/sfnt/ |
SkOTTable_OS_2_V0.h | 100 union Selection {
|
SkOTTable_OS_2_VA.h | 100 union Selection {
|
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 723 int Selection = 0; 727 Selection = COFF::IMAGE_COMDAT_SELECT_ANY; 735 Selection);
|
/external/llvm/lib/MC/ |
WinCOFFStreamer.cpp | 155 int Selection = COFF::IMAGE_COMDAT_SELECT_LARGEST; 158 SectionName, Characteristics, SectionKind::getBSS(), Selection);
|
/external/llvm/utils/TableGen/ |
CodeGenInstruction.cpp | 393 StringRef Selection = Cur.slice(VariantsStart, VariantsEnd); 395 Selection = Selection.split('|').second; 396 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; 285 Selection.setSelection(lettersText, lettersText.length()); 290 Selection.setSelection(digitsText, digitsText.length());
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewWordLimitsTest.java | 22 import android.text.Selection; 95 Selection.setSelection((Spannable)mTv.getText(), selectionStart, selectionEnd); 193 // Selection of character classes excluded 253 * Selection is used if present and valid word. 263 // Valid selection - Letter, Lower 269 // Valid selection -- Letter, Other 272 // Zero-width selection is interpreted as a cursor and the selection is ignored 275 // Hyphen is part of selection 278 // Ampersand part of selection or no [all...] |
/external/chromium/chrome/browser/autocomplete/ |
autocomplete.h | 470 // The "Selection" struct is the information we need to select the same match 472 struct Selection { 473 Selection() 478 // Clear the selection entirely. 481 // True when the selection is empty. 496 // keystroke, so if this is set, we'll preserve the selection by simply [all...] |
/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...] |