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

1 2 3 4 5 6

  /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/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
LocaleSpanCompatUtilsTests.java 24 import android.text.Spanned;
43 private static void assertLocaleSpan(final Spanned spanned, final int index,
46 final Object span = spanned.getSpans(0, spanned.length(), Object.class)[index];
48 assertEquals(expectedStart, spanned.getSpanStart(span));
49 assertEquals(expectedEnd, spanned.getSpanEnd(span));
50 assertEquals(expectedSpanFlags, spanned.getSpanFlags(span));
53 private static void assertSpanEquals(final Object expectedSpan, final Spanned spanned,
    [all...]
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);
SuggestionSpanUtilsTest.java 23 import android.text.Spanned;
56 if (!(actualText instanceof Spanned)) {
59 final Spanned spanned = (Spanned)actualText; local
60 final SuggestionSpan[] suggestionSpans = spanned.getSpans(0, spanned.length(),
70 assertTrue(actualText instanceof Spanned);
71 final Spanned spanned = (Spanned)actualText local
    [all...]
  /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) {
  /packages/apps/Settings/src/com/android/settings/widget/
LinkAccessibilityHelper.java 22 import android.text.Spanned;
49 if (text instanceof Spanned) {
50 final Spanned spannedText = (Spanned) text;
64 if (text instanceof Spanned) {
65 final Spanned spannedText = (Spanned) text;
124 if (text instanceof Spanned) {
125 Spanned spannedText = (Spanned) text
    [all...]
  /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/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/
RichTextViewTest.java 23 import android.text.Spanned;
43 assertTrue("Text should be spanned", text instanceof Spanned);
45 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class);
48 spans = ((Spanned) text).getSpans(0, text.length(), LinkSpan.class);
65 assertTrue("Text should be spanned", text instanceof Spanned);
67 Object[] spans = ((Spanned) text).getSpans(0, text.length(), Annotation.class);
70 spans = ((Spanned) text).getSpans(0, text.length(), TextAppearanceSpan.class);
  /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
  /frameworks/base/core/java/com/android/internal/widget/
TextViewInputDisabler.java 20 import android.text.Spanned;
34 public CharSequence filter(CharSequence source, int start, int end, Spanned dest,
  /frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/
LinkAccessibilityHelper.java 24 import android.text.Spanned;
72 if (text instanceof Spanned) {
73 final Spanned spannedText = (Spanned) text;
87 if (text instanceof Spanned) {
88 final Spanned spannedText = (Spanned) text;
148 if (text instanceof Spanned) {
149 Spanned spannedText = (Spanned) text
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
SpannableStringUtils.java 21 import android.text.Spanned;
49 public static void copyNonParagraphSuggestionSpansFrom(Spanned source, int start, int end,
60 fl &= ~Spanned.SPAN_PARAGRAPH;
91 boolean spanned = false;
93 if (text[i] instanceof Spanned) {
94 spanned = true;
104 if (!spanned) {
113 if (text[i] instanceof Spanned) {
114 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off);
125 if (!(text instanceof Spanned)) {
128 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;
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
UtilsTest.java 21 import android.text.Spanned;
34 final Spanned actual = Utils.insertStringWithStyle(
46 final Spanned actual = Utils.insertStringWithStyle(
53 public static void assertSpannedEquals(Spanned expected, Spanned actual) {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
SpannableStringUtilsTests.java 25 import android.text.Spanned;
38 new String[] {"" + i}, Spanned.SPAN_PARAGRAPH),
39 i * 12, i * 12 + 12, Spanned.SPAN_PARAGRAPH);
48 final Spanned result =
49 (Spanned)SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(a, b);
55 flags & Spanned.SPAN_PARAGRAPH, 0);
62 if (cs instanceof Spanned) {
63 final Spanned spanned = (Spanned) cs local
74 final Spanned spanned = (Spanned) cs; local
    [all...]
  /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;
55 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);

Completed in 840 milliseconds

1 2 3 4 5 6