HomeSort by relevance Sort by last modified time
    Searched refs:SpannedString (Results 1 - 20 of 20) sorted by null

  /frameworks/base/core/java/android/text/
SpannedString.java 25 public final class SpannedString
29 public SpannedString(CharSequence source) {
33 private SpannedString(CharSequence source, int start, int end) {
38 return new SpannedString(this, start, end);
41 public static SpannedString valueOf(CharSequence source) {
42 if (source instanceof SpannedString) {
43 return (SpannedString) source;
45 return new SpannedString(source);
TextUtils.java 414 if (source instanceof SpannedString)
417 return new SpannedString(source);
    [all...]
  /cts/tests/tests/text/src/android/text/cts/
SpannedStringTest.java 20 import android.text.SpannedString;
27 @TestTargetClass(SpannedString.class)
31 notes = "Test constructor(s) of {@link SpannedString}",
32 method = "SpannedString",
36 " constructor SpannedString(CharSequence) when param CharSequence is null")
38 new SpannedString("test");
41 new SpannedString(null);
49 notes = "Test {@link SpannedString#valueOf(CharSequence)}",
54 "SpannedString#valueOf(CharSequence) when param CharSequence is null")
57 SpannedString spanned = SpannedString.valueOf(text)
    [all...]
LoginFilterTest.java 23 import android.text.SpannedString;
52 Spanned dest1 = new SpannedString("dest_without_invalid_char");
53 Spanned dest2 = new SpannedString("&*dest_with_invalid_char#$");
56 Spanned spannedSource = new SpannedString("&*spanned_source_with_invalid_char#$");
TextUtilsTest.java 38 import android.text.SpannedString;
    [all...]
  /frameworks/base/core/java/android/text/method/
HideReturnsTransformationMethod.java 22 import android.text.SpannedString;
SingleLineTransformationMethod.java 24 import android.text.SpannedString;
ReplacementTransformationMethod.java 24 import android.text.SpannedString;
83 return new SpannedString(new SpannedReplacementCharSequence(
180 return new SpannedString(this).subSequence(start, end);
  /frameworks/base/core/tests/coretests/src/android/widget/
TextViewPerformanceTest.java 26 import android.text.SpannedString;
80 CharSequence charSeq = new SpannedString(mString);
  /cts/tests/tests/view/src/android/view/cts/
WindowManager_LayoutParamsTest.java 24 import android.text.SpannedString;
254 SpannedString spannedTitle = new SpannedString(title);
  /frameworks/base/core/java/android/text/format/
DateFormat.java 23 import android.text.SpannedString;
525 return new SpannedString(s);
  /frameworks/base/core/tests/coretests/src/android/text/
TextUtilsTest.java 25 import android.text.SpannedString;
75 assertTrue(TextUtils.concat(foo, bar) instanceof SpannedString);
  /frameworks/base/graphics/java/android/graphics/
Paint.java 21 import android.text.SpannedString;
    [all...]
Canvas.java 20 import android.text.SpannedString;
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Paint.java 21 import android.text.SpannedString;
886 if (text instanceof SpannedString ||
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
PaintTest.java 36 import android.text.SpannedString;
952 // CharSequence of SpannedString
953 SpannedString spannedString = new SpannedString("HIJKLMN");
955 assertEquals(7, p.getTextWidths(spannedString, 0, 7, f));
956 for (int i = 0; i < spannedString.length(); i++) {
960 assertEquals(4, p.getTextWidths(spannedString, 3, 7, f));
961 for (int i = 3; i < spannedString.length(); i++) {
965 assertEquals(1, p.getTextWidths(spannedString, 6, 7, f))
    [all...]
CanvasTest.java 41 import android.text.SpannedString;
    [all...]
  /frameworks/base/core/java/android/content/res/
StringBlock.java 262 return new SpannedString(buffer);
  /frameworks/base/core/java/android/widget/
TextView.java 59 import android.text.SpannedString;
    [all...]
  /prebuilt/sdk/6/
android.jar 

Completed in 167 milliseconds