/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/libs/hwui/hwui/ |
D | Typeface.cpp | 37 static void resolveStyle(Typeface* typeface) { in resolveStyle() 49 Typeface* gDefaultTypeface = NULL; 91 gDefaultTypeface = new Typeface; in getDefaultTypefaceOnce() 99 Typeface* Typeface::resolveDefault(Typeface* src) { in resolveDefault() 108 Typeface* Typeface::createFromTypeface(Typeface* src, SkTypeface::Style style) { in createFromTypeface() 109 Typeface* resolvedFace = Typeface::resolveDefault(src); in createFromTypeface() 110 Typeface* result = new Typeface; in createFromTypeface() 121 Typeface* Typeface::createWeightAlias(Typeface* src, int weight) { in createWeightAlias() 122 Typeface* resolvedFace = Typeface::resolveDefault(src); in createWeightAlias() 123 Typeface* result = new Typeface; in createWeightAlias() [all …]
|
D | Typeface.h | 29 struct ANDROID_API Typeface { struct 42 static Typeface* resolveDefault(Typeface* src); argument 44 static Typeface* createFromTypeface(Typeface* src, SkTypeface::Style style); 46 static Typeface* createWeightAlias(Typeface* src, int baseweight); 48 static Typeface* createFromFamilies(const std::vector<FontFamily*>& families); 50 static void setDefault(Typeface* face);
|
D | MinikinUtils.cpp | 28 const Paint* paint, Typeface* typeface) { in prepareMinikinPaint() 29 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in prepareMinikinPaint() 54 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, in doLayout() 63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, in measureText() 72 bool MinikinUtils::hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs) { in hasVariationSelector() 73 const Typeface* resolvedFace = Typeface::resolveDefault(typeface); in hasVariationSelector()
|
D | MinikinUtils.h | 38 const Paint* paint, Typeface* typeface); 41 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, 44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface, 47 … ANDROID_API static bool hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs);
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 44 public class Typeface { class 49 public static final Typeface DEFAULT; 55 public static final Typeface DEFAULT_BOLD; 57 public static final Typeface SANS_SERIF; 59 public static final Typeface SERIF; 61 public static final Typeface MONOSPACE; 63 static Typeface[] sDefaults; 64 private static final LongSparseArray<SparseArray<Typeface>> sTypefaceCache = 65 new LongSparseArray<SparseArray<Typeface>>(3); 70 private static final LruCache<String, Typeface> sDynamicTypefaceCache = new LruCache<>(16); [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Typeface.cpp | 30 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); in Typeface_createFromTypeface() 31 Typeface* face = Typeface::createFromTypeface(family, (SkTypeface::Style)style); in Typeface_createFromTypeface() 35 … face = Typeface::createFromTypeface(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_createFromTypeface() 38 face = Typeface::createFromTypeface(family, (SkTypeface::Style)i); in Typeface_createFromTypeface() 44 Typeface* family = reinterpret_cast<Typeface*>(familyHandle); in Typeface_createWeightAlias() 45 Typeface* face = Typeface::createWeightAlias(family, weight); in Typeface_createWeightAlias() 50 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_unref() 57 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_getStyle() 68 return reinterpret_cast<jlong>(Typeface::createFromFamilies(familyVec)); in Typeface_createFromArray() 72 Typeface* face = reinterpret_cast<Typeface*>(faceHandle); in Typeface_setDefault() [all …]
|
D | Paint.cpp | 405 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getMetricsInternal() 406 typeface = Typeface::resolveDefault(typeface); in getMetricsInternal() 477 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, in doTextAdvances() 513 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextAdvances___CIIIII_FI() 526 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextAdvances__StringIIIII_FI() 593 static void getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, in getTextPath() 616 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextPath___C() 627 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in getTextPath__String() 651 static int breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], in breakText() 688 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in breakTextC() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | StyleSpan.java | 20 import android.graphics.Typeface; 94 Typeface old = paint.getTypeface(); in apply() 103 Typeface tf; in apply() 105 tf = Typeface.defaultFromStyle(want); in apply() 107 tf = Typeface.create(old, want); in apply() 112 if ((fake & Typeface.BOLD) != 0) { in apply() 116 if ((fake & Typeface.ITALIC) != 0) { in apply()
|
D | TypefaceSpan.java | 20 import android.graphics.Typeface; 86 Typeface old = paint.getTypeface(); in apply() 93 Typeface tf = Typeface.create(family, oldStyle); in apply() 96 if ((fake & Typeface.BOLD) != 0) { in apply() 100 if ((fake & Typeface.ITALIC) != 0) { in apply()
|
D | TextAppearanceSpan.java | 22 import android.graphics.Typeface; 230 Typeface tf = ds.getTypeface(); in updateMeasureState() 240 tf = Typeface.create(mTypeface, style); in updateMeasureState() 242 tf = Typeface.defaultFromStyle(style); in updateMeasureState() 244 tf = Typeface.create(tf, style); in updateMeasureState() 249 if ((fake & Typeface.BOLD) != 0) { in updateMeasureState() 253 if ((fake & Typeface.ITALIC) != 0) { in updateMeasureState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | SegmentedButtons.java | 20 import android.graphics.Typeface; 34 private static final Typeface REGULAR = Typeface.create("sans-serif", Typeface.NORMAL); 35 private static final Typeface MEDIUM = Typeface.create("sans-serif-medium", Typeface.NORMAL);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/ |
D | LinkSpan.java | 20 import android.graphics.Typeface; 49 private static final Typeface TYPEFACE_MEDIUM = 50 Typeface.create("sans-serif-medium", Typeface.NORMAL);
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 26 import android.graphics.Typeface; 75 private Typeface mCollapsedTypeface; 76 private Typeface mExpandedTypeface; 77 private Typeface mCurrentTypeface; 256 private Typeface readFontFamilyTypeface(int resId) { in readFontFamilyTypeface() 262 return Typeface.create(family, Typeface.NORMAL); in readFontFamilyTypeface() 270 void setCollapsedTypeface(Typeface typeface) { in setCollapsedTypeface() 277 void setExpandedTypeface(Typeface typeface) { in setExpandedTypeface() 284 void setTypefaces(Typeface typeface) { in setTypefaces() 289 Typeface getCollapsedTypeface() { in getCollapsedTypeface() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UserDetailItemView.java | 23 import android.graphics.Typeface; 45 private Typeface mRegularTypeface; 46 private Typeface mActivatedTypeface; 72 mRegularTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView() 75 mActivatedTypeface = Typeface.create(a.getString(attr), 0 /* style */); in UserDetailItemView()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
D | RadialTextsView.java | 28 import android.graphics.Typeface; 46 private Typeface mTypefaceLight; 47 private Typeface mTypefaceRegular; 93 mTypefaceLight = Typeface.create(typefaceFamily, Typeface.NORMAL); in initialize() 95 mTypefaceRegular = Typeface.create(typefaceFamilyRegular, Typeface.NORMAL); in initialize() 268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, in drawTexts()
|
D | AmPmCirclesView.java | 23 import android.graphics.Typeface; 82 Typeface tf = Typeface.create(typefaceFamily, Typeface.NORMAL); in initialize()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 77 final Typeface fontTypeface = Typeface.createFromAsset( in testHintingWidth() 120 final Typeface fontTypeface = Typeface.createFromAsset( in testHasGlyph_variationSelectors()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 26 import android.graphics.Typeface; 91 mTextPaint.setTypeface(Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)); in Watermark()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 25 import android.graphics.Typeface; 357 private Typeface mParsedTypeface; 468 public Typeface getTypeface() { in getTypeface() 470 mParsedTypeface = Typeface.create(mRawTypeface, Typeface.NORMAL); in getTypeface()
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 481 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextChars() 492 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextString() 504 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextRunChars() 518 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextRunString() 535 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextOnPathChars() 550 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); in drawTextOnPathString()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SwitchCompat.java | 29 import android.graphics.Typeface; 327 Typeface tf = null; in setSwitchTypefaceByIndex() 330 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 334 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 338 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 351 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() 354 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 356 tf = Typeface.create(tf, style); in setSwitchTypeface() 363 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface() 364 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 33 import android.graphics.Typeface; 348 Typeface tf = null; in setSwitchTypefaceByIndex() 351 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 355 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 359 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 372 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() 375 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 377 tf = Typeface.create(tf, style); in setSwitchTypeface() 384 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setSwitchTypeface() 385 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface() [all …]
|
/frameworks/base/core/java/android/text/ |
D | Html.java | 34 import android.graphics.Typeface; 527 if ((s & Typeface.BOLD) != 0) { in withinParagraph() 530 if ((s & Typeface.ITALIC) != 0) { in withinParagraph() 632 if ((s & Typeface.BOLD) != 0) { in withinParagraph() 635 if ((s & Typeface.ITALIC) != 0) { in withinParagraph() 868 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag() 870 end(mSpannableStringBuilder, Bold.class, new StyleSpan(Typeface.BOLD)); in handleEndTag() 872 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() 874 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() 876 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionInfo.java | 27 import android.graphics.Typeface; 228 paint.setTypeface(Typeface.create("sans-serif", Typeface.NORMAL)); in createIconBitmap()
|