/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 | 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;
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
MultiSelectManager_SelectionTest.java | 22 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 31 private Selection selection; field in class:MultiSelectManager_SelectionTest 41 selection = new Selection(); 42 selection.add(ids[0]); 43 selection.add(ids[1]); 44 selection.add(ids[2]); 49 assertEquals(3, selection.size()); 56 selection.remove(ids[0]) [all...] |
MultiSelectManagerTest.java | 25 import com.android.documentsui.dirlist.MultiSelectManager.Selection; 58 // Check selection. 67 // Selection should notify. 241 Selection s = mManager.getSelection(); 252 Selection s = mManager.getSelection(); 267 Selection s = mManager.getSelection(); 281 Selection s = mManager.getSelection(); 294 Selection s = mManager.getSelection(); 302 // Original selection should remain. 309 Selection s = mManager.getSelection() 351 Selection selection = mManager.getSelection(); local 375 Selection selection = mManager.getSelection(); local [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/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...] |
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);
|
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/text/src/android/text/method/cts/ |
MetaKeyKeyListenerTest.java | 20 import android.text.Selection; 41 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 42 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 47 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT); 48 content.setSpan(Selection.SELECTION_END, 1, 1, Spanned.SPAN_POINT_POINT); 53 content.setSpan(Selection.SELECTION_START, 3, 3, Spanned.SPAN_POINT_POINT); 54 content.setSpan(Selection.SELECTION_END, 3, 3, Spanned.SPAN_POINT_POINT); 66 content.setSpan(Selection.SELECTION_START, 0, 0, Spanned.SPAN_POINT_POINT); 67 content.setSpan(Selection.SELECTION_END, 0, 0, Spanned.SPAN_POINT_POINT); 72 content.setSpan(Selection.SELECTION_START, 1, 1, Spanned.SPAN_POINT_POINT) [all...] |
ArrowKeyMovementMethodTest.java | 24 import android.text.Selection; 116 Selection.removeSelection(mEditable); 125 Selection.removeSelection(mEditable); 144 Selection.removeSelection(mEditable); 152 Selection.removeSelection(mEditable); 190 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); 203 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE); 210 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable)); 211 int correspondingIn1stLine = Selection.getSelectionEnd(mEditable); 227 Selection.setSelection(mEditable, SPACE_IN_2ND_LINE) [all...] |
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);
|
TextKeyListenerTest.java | 24 import android.text.Selection; 139 textKeyListener.onSpanChanged(text, Selection.SELECTION_END, 0, 0, 0, 0); 142 textKeyListener.onSpanChanged(null, Selection.SELECTION_END, 0, 0, 0, 0); 193 Selection.setSelection((Editable) mTextView.getText(), 0, 0); 225 Selection.setSelection((Editable) mTextView.getText(), 0, 0);
|
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/lib/MC/ |
MCSectionCOFF.cpp | 34 void MCSectionCOFF::setSelection(int Selection) const { 35 assert(Selection != 0 && "invalid COMDAT selection type"); 36 this->Selection = Selection; 71 switch (Selection) { 94 assert (0 && "unsupported COFF selection type");
|
/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...] |
/frameworks/base/core/java/android/widget/ |
EditText.java | 22 import android.text.Selection; 93 * Convenience for {@link Selection#setSelection(Spannable, int, int)}. 96 Selection.setSelection(getText(), start, stop); 100 * Convenience for {@link Selection#setSelection(Spannable, int)}. 103 Selection.setSelection(getText(), index); 107 * Convenience for {@link Selection#selectAll}. 110 Selection.selectAll(getText()); 114 * Convenience for {@link Selection#extendSelection}. 117 Selection.extendSelection(getText(), index);
|
/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);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityTextTraversalTest.java | 21 import android.text.Selection; 533 // Verify the selection position. 534 assertEquals(1, Selection.getSelectionStart(textView.getText())); 535 assertEquals(1, Selection.getSelectionEnd(textView.getText())); 567 // Verify the selection position. 568 assertEquals(2, Selection.getSelectionStart(textView.getText())); 569 assertEquals(2, Selection.getSelectionEnd(textView.getText())); 601 // Verify the selection position. 602 assertEquals(3, Selection.getSelectionStart(textView.getText())); 603 assertEquals(3, Selection.getSelectionEnd(textView.getText())) [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/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...] |
/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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
MultiSelectManager.java | 56 * MultiSelectManager provides support traditional multi-item selection support to RecyclerView. 57 * Additionally it can be configured to restrict selection to a single element, @see 73 private final Selection mSelection = new Selection(); 86 * @param mode Selection single or multiple selection mode. 87 * @param initialSelection selection state probably preserved in external state. 93 @Nullable Selection initialSelection) { 132 @Nullable Selection initialSelection) { 154 // Update the selection to remove any disappeared IDs 705 ArrayList<String> selection = new ArrayList<String>(mSelection); local [all...] |
/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) {
|