HomeSort by relevance Sort by last modified time
    Searched defs:getSpanStart (Results 1 - 25 of 31) sorted by null

1 2

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHtml.java 38 public int getSpanStart(Object tag) {
ShadowSpannableString.java 56 public int getSpanStart(Object what) {
  /frameworks/base/core/java/android/text/
AlteredCharSequence.java 70 public int getSpanStart(Object span) {
71 return mSpanned.getSpanStart(span);
Spanned.java 174 public int getSpanStart(Object tag);
SpannableStringInternal.java 41 int st = sp.getSpanStart(spans[i]);
163 public int getSpanStart(Object what) {
375 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) ||
381 getSpanStart(thisSpan) != other.getSpanStart(otherSpan) ||
403 hash = hash * 31 + getSpanStart(span);
Layout.java 281 int startLine = getLineForOffset(sp.getSpanStart(margin));
    [all...]
SpannableStringBuilder.java 79 int st = sp.getSpanStart(spans[i]) - start;
364 int st = sp.getSpanStart(spans[i]);
371 if (getSpanStart(spans[i]) < 0) {
707 public int getSpanStart(Object what) {
    [all...]
TextUtils.java 659 p.writeInt(sp.getSpanStart(o));
809 printer.println(prefix + cs.subSequence(sp.getSpanStart(o),
813 + " (" + sp.getSpanStart(o) + "-" + sp.getSpanEnd(o)
839 int start = tb.getSpanStart(sources[i]);
936 int start = ((Spanned) text).getSpanStart(spans[i]);
973 int start = ((Spanned) text).getSpanStart(spans[i]);
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SpannableStringTest.java 98 assertThat(spanStr.getSpanStart(s1), equalTo(-1));
99 assertThat(spanStr.getSpanStart(s2), equalTo(-1));
102 assertThat(spanStr.getSpanStart(s1), equalTo(0));
105 assertThat(spanStr.getSpanStart(s2), equalTo(2));
  /frameworks/base/core/java/android/text/method/
ReplacementTransformationMethod.java 187 public int getSpanStart(Object tag) {
188 return mSpanned.getSpanStart(tag);
  /packages/apps/Email/tests/src/com/android/emailcommon/utility/
TextUtilitiesTests.java 205 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span));
216 assertEquals(text.indexOf("search word"), ssb.getSpanStart(span));
219 assertEquals(text.indexOf("search result"), ssb.getSpanStart(span));
232 assertEquals(text.indexOf("should"), ssb.getSpanStart(span));
235 assertEquals(text.indexOf("visi"), ssb.getSpanStart(span));
248 assertEquals(text.indexOf("should"), ssb.getSpanStart(span));
260 assertEquals(text.indexOf("should"), ssb.getSpanStart(span));
273 assertEquals(text.indexOf("shoulder"), ssb.getSpanStart(span));
277 assertEquals(text.indexOf("s are visible"), ssb.getSpanStart(span));
  /cts/tests/tests/text/src/android/text/cts/
AlteredCharSequenceTest.java 149 public int getSpanStart(Object tag) {
TextUtilsTest.java 164 assertEquals(0, strResult.getSpanStart(urlSpan));
166 assertEquals(string1.length() + comma.length(), strResult.getSpanStart(bgColorSpan));
204 assertEquals(0, dest1.getSpanStart(urlSpan));
207 assertEquals(midPos - 1, dest1.getSpanStart(bgColorSpan));
219 assertEquals(0, dest2.getSpanStart(urlSpan));
241 assertEquals(0, dest4.getSpanStart(spans[0]));
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/widget/
TextHighlightingAnimation.java 96 public int getSpanStart(Object tag) {
  /cts/tests/tests/text/src/android/text/method/cts/
MetaKeyKeyListenerTest.java 380 public int getSpanStart(Object tag) {
  /frameworks/base/core/tests/coretests/src/android/text/
TextUtilsTest.java 59 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo"));
61 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo"));
62 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar"));
64 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo"));
65 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar"));
66 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz"));
140 assertEquals(start, text.getSpanStart(i));
502 public int getSpanStart(Object tag) {
  /frameworks/ex/chips/tests/src/com/android/ex/chips/
ChipsTest.java 212 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), firstStart
257 assertEquals(mEditable.getSpanStart(moreChip), thirdStart);
287 assertEquals(view.getText().getSpanStart(moreChip), secondStart);
317 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart);
318 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart);
321 assertEquals(mEditable.getSpanStart(moreChip), thirdStart);
326 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 3]), firstStart);
328 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 2]), secondStart);
329 assertEquals(mEditable.getSpanStart(mMockRecips[mMockRecips.length - 1]), thirdStart);
332 assertEquals(mEditable.getSpanStart(moreChip), -1)
    [all...]
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/15/
android.jar 
  /prebuilts/sdk/16/
android.jar 
  /prebuilts/sdk/17/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 

Completed in 375 milliseconds

1 2