HomeSort by relevance Sort by last modified time
    Searched refs:Spanned (Results 1 - 25 of 122) sorted by null

1 2 3 4 5

  /packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/
Spanned.java 19 public interface Spanned extends CharSequence {
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
HtmlifyBeginResult.java 18 import android.text.Spanned;
25 public final Spanned result;
28 public HtmlifyBeginResult(Spanned result, Object extras) {
  /packages/apps/ContactsCommon/src/com/android/contacts/common/format/
SpannedTestUtils.java 22 import android.text.Spanned;
30 * Utility class to check the value of spanned text in text views.
41 String actualHtmlText = Html.toHtml((Spanned) textView.getText());
59 Assert.assertTrue(seq instanceof Spanned);
60 Spanned spannable = (Spanned) seq;
70 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) {
75 * Asserts that the given character sequence is not a Spanned object and text is correct.
81 Assert.assertFalse(seq instanceof Spanned);
  /frameworks/ex/common/java/com/android/common/
Rfc822InputFilter.java 20 import android.text.Spanned;
33 public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
59 if (source instanceof Spanned) {
  /cts/tests/tests/text/src/android/text/method/cts/
MetaKeyKeyListenerTest.java 22 import android.text.Spanned;
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...]
  /frameworks/base/core/java/android/text/
InputFilter.java 37 * Note: If <var>source</var> is an instance of {@link Spanned} or
43 Spanned dest, int dstart, int dend);
51 Spanned dest, int dstart, int dend) {
58 if (source instanceof Spanned) {
60 TextUtils.copySpansFrom((Spanned) source,
84 public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
Spannable.java 25 extends Spanned
30 * attached elsewhere. See {@link Spanned} for an explanation of
SpannedString.java 27 implements CharSequence, GetChars, Spanned
AlteredCharSequence.java 36 if (source instanceof Spanned)
58 implements Spanned
63 mSpanned = (Spanned) source;
86 private Spanned mSpanned;
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
TextInfoCompatUtilsTests.java 24 import android.text.Spanned;
42 final private static int TEST_STYLE_SPAN_FLAGS = Spanned.SPAN_EXCLUSIVE_INCLUSIVE;
46 final private static int TEST_URL_SPAN_FLAGS = Spanned.SPAN_EXCLUSIVE_EXCLUSIVE;
58 final Spanned expectedSpanned = (Spanned) text.subSequence(TEST_CHAR_SEQUENCE_START,
68 assertTrue("should be Spanned", actualCharSequence instanceof Spanned);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
SpannableStringUtils.java 21 import android.text.Spanned;
43 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end,
85 boolean spanned = false;
87 if (text[i] instanceof Spanned) {
88 spanned = true;
98 if (!spanned) {
107 if (text[i] instanceof Spanned) {
108 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off);
119 if (!(text instanceof Spanned)) {
120 return false; // Not spanned, so no lin
122 final Spanned spanned = (Spanned)text; local
    [all...]
TextRange.java 19 import android.text.Spanned;
54 if (!(mTextAtCursor instanceof Spanned && mWord instanceof Spanned)) {
57 final Spanned text = (Spanned)mTextAtCursor;
  /frameworks/base/core/java/android/text/method/
ReplacementTransformationMethod.java 23 import android.text.Spanned;
82 if (source instanceof Spanned) {
84 (Spanned) source,
94 if (source instanceof Spanned) {
95 return new SpannedReplacementCharSequence((Spanned) source,
171 implements Spanned
173 public SpannedReplacementCharSequence(Spanned source, char[] original,
203 private Spanned mSpanned;
  /packages/apps/Dialer/src/com/android/dialer/dialpad/
UnicodeDialerKeyListener.java 20 import android.text.Spanned;
33 Spanned dest, int dstart, int dend) {
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
StyleUtils.java 21 import android.text.Spanned;
46 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /developers/build/prebuilts/gradle/TextLinkify/Application/src/main/java/com/example/android/textlinkify/
MainActivity.java 24 import android.text.Spanned;
122 Spanned.SPAN_INCLUSIVE_INCLUSIVE);
124 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /developers/samples/android/views/TextLinkify/Application/src/main/java/com/example/android/textlinkify/
MainActivity.java 24 import android.text.Spanned;
122 Spanned.SPAN_INCLUSIVE_INCLUSIVE);
124 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /development/samples/ApiDemos/src/com/example/android/apis/text/
Link.java 26 import android.text.Spanned;
76 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
78 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /development/samples/browseable/TextLinkify/src/com.example.android.textlinkify/
MainActivity.java 24 import android.text.Spanned;
122 Spanned.SPAN_INCLUSIVE_INCLUSIVE);
124 Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowHtml.java 4 import android.text.Spanned;
13 public static Spanned fromHtml(String source) {
25 private static class SpannedThatActsLikeString implements Spanned {
  /frameworks/base/core/java/android/text/style/
IconMarginSpan.java 22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this);
57 if (end == ((Spanned) text).getSpanEnd(this)) {
DrawableMarginSpan.java 22 import android.text.Spanned;
45 int st = ((Spanned) text).getSpanStart(this);
60 if (end == ((Spanned) text).getSpanEnd(this)) {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
SpannableStringUtilsTests.java 25 import android.text.Spanned;
47 final Spanned result =
48 (Spanned)SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(a, b);
  /cts/tests/tests/text/src/android/text/cts/
SpannableStringBuilderTest.java 24 import android.text.Spanned;
88 builder.setSpan(mUnderlineSpan, 2, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
89 builder.setSpan(mUnderlineSpan, 0, 1, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
90 builder.setSpan(mStrikethroughSpan, 5, 7, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
92 assertEquals(Spanned.SPAN_EXCLUSIVE_INCLUSIVE, builder.getSpanFlags(mUnderlineSpan));
93 assertEquals(Spanned.SPAN_INCLUSIVE_EXCLUSIVE, builder.getSpanFlags(mStrikethroughSpan));
100 builder.setSpan(mUnderlineSpan, 1, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
101 builder.setSpan(mUnderlineSpan, 3, 4, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
102 builder.setSpan(mStrikethroughSpan, 5, 6, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
103 builder.setSpan(mStrikethroughSpan, 8, 9, Spanned.SPAN_INCLUSIVE_INCLUSIVE)
    [all...]
HtmlTest.java 24 import android.text.Spanned;
43 Spanned spanned = Html.fromHtml(source); local
44 assertSingleTagOnWhileString(spanned);
45 spanned = Html.fromHtml(source, null, null);
46 assertSingleTagOnWhileString(spanned);
49 private void assertSingleTagOnWhileString(Spanned spanned) {
56 Object[] spans = spanned.getSpans(start, end, Object.class);
58 assertEquals(expectStart, spanned.getSpanStart(spans[0]))
65 Spanned spanned = Html.fromHtml(source); local
84 String spanned = Html.fromHtml(source).toString(); local
    [all...]

Completed in 836 milliseconds

1 2 3 4 5