/cts/tests/tests/text/src/android/text/cts/ |
SelectionTest.java | 34 method = "getSelectionStart", 40 assertEquals(-1, Selection.getSelectionStart(builder)); 43 assertEquals(3, Selection.getSelectionStart(builder)); 46 assertEquals(3, Selection.getSelectionStart(builder)); 49 assertEquals(5, Selection.getSelectionStart(builder)); 51 assertEquals(-1, Selection.getSelectionStart(null)); 73 assertEquals(-1, Selection.getSelectionStart(null)); 86 assertEquals(-1, Selection.getSelectionStart(builder)); 90 assertEquals(3, Selection.getSelectionStart(builder)); 94 assertEquals(3, Selection.getSelectionStart(builder)) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
EditTextTest.java | 145 assertEquals(position, editText.getSelectionStart()); 150 assertEquals(position, editText.getSelectionStart()); 182 assertEquals(start, editText.getSelectionStart()); 188 assertEquals(start, editText.getSelectionStart()); 194 assertEquals(start, editText.getSelectionStart()); 224 assertEquals(0, editText.getSelectionStart()); 229 assertEquals(0, editText.getSelectionStart()); 234 assertEquals(0, editText.getSelectionStart()); 251 assertEquals(start, editText.getSelectionStart()); 256 assertEquals(start, editText.getSelectionStart()); [all...] |
TextViewTest.java | 296 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 301 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 315 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 320 assertEquals(selectionStart, Selection.getSelectionStart(mTextView.getText())); 674 assertEquals(-1, mTextView.getSelectionStart()); 685 assertEquals(0, mTextView.getSelectionStart()); 696 assertEquals(0, mTextView.getSelectionStart()); 707 assertEquals(0, mTextView.getSelectionStart()); 718 assertEquals(0, mTextView.getSelectionStart()); [all...] |
/frameworks/base/core/java/android/text/method/ |
BaseKeyListener.java | 97 int selectionStart = Selection.getSelectionStart(content); 115 final int line = layout.getLineForOffset(Selection.getSelectionStart(content)); 179 int selectionStart = Selection.getSelectionStart(content);
|
NumberKeyListener.java | 97 int a = Selection.getSelectionStart(content);
|
MultiTapKeyListener.java | 91 int a = Selection.getSelectionStart(content); 266 int st = Selection.getSelectionStart(buf);
|
LinkMovementMethod.java | 107 int a = Selection.getSelectionStart(buffer);
|
QwertyKeyListener.java | 90 int a = Selection.getSelectionStart(content);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
CalculatorDisplay.java | 117 int cursor = editor.getSelectionStart(); 153 int getSelectionStart() { 155 return text.getSelectionStart();
|
Logic.java | 92 int cursorPos = editText.getSelectionStart(); 144 mDisplay.getSelectionStart() != text.length());
|
/frameworks/base/core/java/android/text/ |
Selection.java | 37 public static final int getSelectionStart(CharSequence text) { 72 int ostart = getSelectionStart(text); 122 int start = getSelectionStart(text); 163 int start = getSelectionStart(text); 205 int start = getSelectionStart(text); 230 int start = getSelectionStart(text);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
PersistentState.java | 122 editor.putInt("selection-start", mSaved.getSelectionStart());
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
EditStyledText.java | 227 int oldSelStart = Selection.getSelectionStart(getText()); 235 mManager.showSoftKey(Selection.getSelectionStart(getText()), 280 boolean selection = getSelectionStart() != getSelectionEnd(); [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
BaseInputConnection.java | 205 int a = Selection.getSelectionStart(content); 278 int a = Selection.getSelectionStart(content); 305 int a = Selection.getSelectionStart(content); 336 int a = Selection.getSelectionStart(content); 361 int a = Selection.getSelectionStart(content); 608 a = Selection.getSelectionStart(content);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
ArrowKeyMovementMethodTest.java | 261 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable)); 336 assertEquals(SPACE_IN_2ND_LINE, Selection.getSelectionStart(mEditable)); [all...] |
LinkMovementMethodTest.java | 621 assertEquals(start, Selection.getSelectionStart(spannable));
|
/packages/apps/Browser/src/com/android/browser/autocomplete/ |
SuggestedTextController.java | 135 ss.mSelStart = Selection.getSelectionStart(buffer); 364 mStart = Selection.getSelectionStart(text);
|
/frameworks/base/core/java/android/webkit/ |
WebTextView.java | 244 int oldStart = Selection.getSelectionStart(text); 336 int newStart = Selection.getSelectionStart(span); [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewWordLimitsTest.java | 100 assertEquals(correctStart, mTv.getSelectionStart());
|
/frameworks/base/core/java/android/widget/ |
TextView.java | [all...] |
SpellChecker.java | 170 final int selectionStart = Selection.getSelectionStart(editable);
|
/packages/apps/Browser/tests/src/com/android/browser/autocomplete/ |
SuggestedTextControllerTest.java | 67 int selStart = Selection.getSelectionStart(string); 103 mString.replace(Selection.getSelectionStart(mString),
|
/packages/apps/Contacts/src/com/android/contacts/dialpad/ |
DialpadFragment.java | 614 selectionStart = mDigits.getSelectionStart(); 660 if (length == mDigits.getSelectionStart() && length == mDigits.getSelectionEnd()) { [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
MessageCompose.java | [all...] |