/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | TypefaceTest.java | 20 import android.graphics.Typeface; 29 private final Typeface[] mFaces = new Typeface[] { 30 Typeface.create(Typeface.SANS_SERIF, 0), 31 Typeface.create(Typeface.SANS_SERIF, 1), 32 Typeface.create(Typeface.SERIF, 0), 33 Typeface.create(Typeface.SERIF, 1), 34 Typeface.create(Typeface.SERIF, 2), 35 Typeface.create(Typeface.SERIF, 3), 36 Typeface.create(Typeface.MONOSPACE, 0) 41 assertTrue("basic", Typeface.DEFAULT != null); in testBasic() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 29 public class Typeface { class 32 public static final Typeface DEFAULT; 38 public static final Typeface DEFAULT_BOLD; 40 public static final Typeface SANS_SERIF; 42 public static final Typeface SERIF; 44 public static final Typeface MONOSPACE; 46 /* package */ static Typeface[] sDefaults; 82 public static Typeface create(String familyName, int style) { in create() 83 return new Typeface(nativeCreate(familyName, style)); in create() 97 public static Typeface create(Typeface family, int style) { in create() [all …]
|
D | Paint.java | 40 private Typeface mTypeface; 943 public Typeface getTypeface() { in getTypeface() 956 public Typeface setTypeface(Typeface typeface) { in setTypeface()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | FontLoader.java | 23 import android.graphics.Typeface; 70 Typeface.ITALIC, Typeface.BOLD, Typeface.NORMAL 72 private static int[] DERIVE_ITALIC = new int[] { Typeface.NORMAL }; 73 private static int[] DERIVE_BOLD = new int[] { Typeface.NORMAL }; 237 if (mFontInfo.font[Typeface.NORMAL] != null) { in endElement() 241 if (mFontInfo.font[Typeface.BOLD_ITALIC] == null) { in endElement() 242 computeDerivedFont(Typeface.BOLD_ITALIC, DERIVE_BOLD_ITALIC); in endElement() 244 if (mFontInfo.font[Typeface.ITALIC] == null) { in endElement() 245 computeDerivedFont(Typeface.ITALIC, DERIVE_ITALIC); in endElement() 247 if (mFontInfo.font[Typeface.BOLD] == null) { in endElement() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | StyleSpan.java | 20 import android.graphics.Typeface; 84 Typeface old = paint.getTypeface(); in apply() 93 Typeface tf; in apply() 95 tf = Typeface.defaultFromStyle(want); in apply() 97 tf = Typeface.create(old, want); in apply() 102 if ((fake & Typeface.BOLD) != 0) { in apply() 106 if ((fake & Typeface.ITALIC) != 0) { in apply()
|
D | TypefaceSpan.java | 20 import android.graphics.Typeface; 76 Typeface old = paint.getTypeface(); in apply() 83 Typeface tf = Typeface.create(family, oldStyle); in apply() 86 if ((fake & Typeface.BOLD) != 0) { in apply() 90 if ((fake & Typeface.ITALIC) != 0) { in apply()
|
D | TextAppearanceSpan.java | 22 import android.graphics.Typeface; 215 Typeface tf = ds.getTypeface(); in updateMeasureState() 225 tf = Typeface.create(mTypeface, style); in updateMeasureState() 227 tf = Typeface.defaultFromStyle(style); in updateMeasureState() 229 tf = Typeface.create(tf, style); in updateMeasureState() 234 if ((fake & Typeface.BOLD) != 0) { in updateMeasureState() 238 if ((fake & Typeface.ITALIC) != 0) { in updateMeasureState()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DigitalClock.java | 26 import android.graphics.Typeface; 62 private static final Typeface sBackgroundFont; 63 private static final Typeface sForegroundFont; 66 sBackgroundFont = Typeface.createFromFile(SYSTEM_FONT_TIME_BACKGROUND); 67 sForegroundFont = Typeface.createFromFile(SYSTEM_FONT_TIME_FOREGROUND); 108 AmPm(View parent, Typeface tf) { in AmPm()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
D | HoloClock.java | 27 import android.graphics.Typeface; 60 private static Typeface sBackgroundType, sForegroundType, sSolidType; 80 sSolidType = Typeface.createFromFile(CLOCK_FONT); in onFinishInflate() 81 sBackgroundType = Typeface.createFromFile(CLOCK_BG_FONT); in onFinishInflate() 82 sForegroundType = Typeface.createFromFile(CLOCK_FG_FONT); in onFinishInflate()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 26 import android.graphics.Typeface; 211 Typeface tf = null; in setSwitchTypefaceByIndex() 214 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 218 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 222 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 235 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() 238 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 240 tf = Typeface.create(tf, style); in setSwitchTypeface() 247 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface() 248 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface() [all …]
|
D | TextView.java | 36 import android.graphics.Typeface; 1127 Typeface tf = null; in setTypefaceByIndex() 1130 tf = Typeface.SANS_SERIF; in setTypefaceByIndex() 1134 tf = Typeface.SERIF; in setTypefaceByIndex() 1138 tf = Typeface.MONOSPACE; in setTypefaceByIndex() 1212 public void setTypeface(Typeface tf, int style) { in setTypeface() 1215 tf = Typeface.defaultFromStyle(style); in setTypeface() 1217 tf = Typeface.create(tf, style); in setTypeface() 1224 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setTypeface() 1225 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setTypeface() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | HtmlTest.java | 21 import android.graphics.Typeface; 60 assertEquals(Typeface.ITALIC, ((StyleSpan) spans[0]).getStyle()); in testBadHtml() 63 assertEquals(Typeface.BOLD, ((StyleSpan) spans[1]).getStyle()); in testBadHtml() 66 assertEquals(Typeface.ITALIC, ((StyleSpan) spans[2]).getStyle()); in testBadHtml() 188 s.setSpan(new StyleSpan(Typeface.BOLD), 6, s.length() - 6, in testMarkup() 193 s.setSpan(new StyleSpan(Typeface.ITALIC), 6, s.length() - 6, in testMarkup()
|
D | SpannedTest.java | 19 import android.graphics.Typeface; 66 CharacterStyle mark = new StyleSpan(Typeface.BOLD); in testWrapParcel()
|
/frameworks/base/services/java/com/android/server/wm/ |
D | Watermark.java | 24 import android.graphics.Typeface; 87 mTextPaint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)); in Watermark()
|
/frameworks/base/core/java/android/text/ |
D | Html.java | 30 import android.graphics.Typeface; 243 if ((s & Typeface.BOLD) != 0) { in withinParagraph() 246 if ((s & Typeface.ITALIC) != 0) { in withinParagraph() 333 if ((s & Typeface.BOLD) != 0) { in withinParagraph() 336 if ((s & Typeface.ITALIC) != 0) { in withinParagraph() 503 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag() 505 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag() 507 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() 509 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() 511 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Typeface_Accessor.java | 25 Typeface.sDefaults = null; in resetDefaults()
|
D | Typeface_Delegate.java | 82 public static List<Font> getFonts(Typeface typeface) { in getFonts() 205 mStyle = Typeface.NORMAL; in Typeface_Delegate()
|
D | Paint_Delegate.java | 1135 mTypeface = Typeface_Delegate.getDelegate(Typeface.sDefaults[0].native_instance); in reset()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 25 import android.graphics.Typeface; 174 buffer.setSpan(new StyleSpan(Typeface.BOLD), in applyStyles() 178 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 26 import android.graphics.Typeface;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | IconUtilities.java | 35 import android.graphics.Typeface;
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 26 import android.graphics.Typeface; 700 paint.setTypeface(Typeface.DEFAULT_BOLD); in onBufferDraw() 703 paint.setTypeface(Typeface.DEFAULT); in onBufferDraw() 905 mPreviewText.setTypeface(Typeface.DEFAULT_BOLD); in showKey() 908 mPreviewText.setTypeface(Typeface.DEFAULT); in showKey()
|
/frameworks/base/core/java/android/app/ |
D | ProgressDialog.java | 148 tmp.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), in onCreate()
|
/frameworks/base/core/jni/ |
D | Android.mk | 120 android/graphics/Typeface.cpp \
|
/frameworks/base/docs/html/sdk/api_diff/4/ |
D | missingSinces.txt | 36 NO DOC BLOCK: android.graphics.Typeface Method createFromFile(java.io.File) 37 NO DOC BLOCK: android.graphics.Typeface Method createFromFile(java.lang.String)
|