Home
last modified time | relevance | path

Searched refs:FontFileUtil (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java26 import android.graphics.fonts.FontFileUtil;
113 int packed = FontFileUtil.analyzeStyle(buffer, 0, null); in testRegularFonts()
114 assertEquals(path, weight, FontFileUtil.unpackWeight(packed)); in testRegularFonts()
115 assertEquals(path, italic, FontFileUtil.unpackItalic(packed)); in testRegularFonts()
129 int packed = FontFileUtil.analyzeStyle(buffer, ttcIndex, null); in testTtcFont()
130 assertEquals(path + "#" + ttcIndex, weight, FontFileUtil.unpackWeight(packed)); in testTtcFont()
131 assertEquals(path + "#" + ttcIndex, italic, FontFileUtil.unpackItalic(packed)); in testTtcFont()
145 int packed = FontFileUtil.analyzeStyle(buffer, 0, in testVariationFont()
147 assertEquals(path + "#" + axes, weight, FontFileUtil.unpackWeight(packed)); in testVariationFont()
148 assertEquals(path + "#" + axes, italic, FontFileUtil.unpackItalic(packed)); in testVariationFont()
[all …]
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DOtfFontFileParser.java24 import android.graphics.fonts.FontFileUtil;
43 return FontFileUtil.getPostScriptName(buffer, 0); in getPostScriptName()
53 String psName = FontFileUtil.getPostScriptName(buffer, 0); in buildFontFileName()
54 int isType1Font = FontFileUtil.isPostScriptType1Font(buffer, 0); in buildFontFileName()
55 int isCollection = FontFileUtil.isCollectionFont(buffer); in buildFontFileName()
78 return FontFileUtil.getRevision(buffer, 0); in getRevision()
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java451 final int packed = FontFileUtil.analyzeStyle(mBuffer, mTtcIndex, mAxes); in build()
452 if (FontFileUtil.isSuccess(packed)) { in build()
454 mWeight = FontFileUtil.unpackWeight(packed); in build()
457 mItalic = FontFileUtil.unpackItalic(packed) ? STYLE_ITALIC : STYLE_NORMAL; in build()
597 FontFileUtil.unpackWeight(packedStyle), in getStyle()
598 FontFileUtil.unpackItalic(packedStyle) in getStyle()
DFontFileUtil.java32 public class FontFileUtil { class
34 private FontFileUtil() {} // Do not instanciate in FontFileUtil() method in FontFileUtil
/frameworks/base/boot/
Dpreloaded-classes2105 android.graphics.fonts.FontFileUtil
Dboot-image-profile.txt8222 HSPLandroid/graphics/fonts/FontFileUtil;->analyzeStyle(Ljava/nio/ByteBuffer;I[Landroid/graphics/fon…
25049 Landroid/graphics/fonts/FontFileUtil;
/frameworks/base/config/
Dpreloaded-classes2104 android.graphics.fonts.FontFileUtil
Dboot-image-profile.txt8218 HSPLandroid/graphics/fonts/FontFileUtil;->analyzeStyle(Ljava/nio/ByteBuffer;I[Landroid/graphics/fon…
34686 Landroid/graphics/fonts/FontFileUtil;