/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/ |
D | FontResourcesParserCompatTest.java | 21 import static androidx.core.content.res.FontResourcesParserCompat.FontFileResourceEntry; 73 FontFileResourceEntry[] fileEntries = filesEntry.getEntries(); in testParse() 75 FontFileResourceEntry font1 = fileEntries[0]; in testParse() 81 FontFileResourceEntry font2 = fileEntries[1]; in testParse() 87 FontFileResourceEntry font3 = fileEntries[2]; in testParse() 93 FontFileResourceEntry font4 = fileEntries[3]; in testParse() 116 FontFileResourceEntry[] fileEntries = filesEntry.getEntries(); in testParseAndroidAttrs() 118 FontFileResourceEntry font1 = fileEntries[0]; in testParseAndroidAttrs() 124 FontFileResourceEntry font2 = fileEntries[1]; in testParseAndroidAttrs() 130 FontFileResourceEntry font3 = fileEntries[2]; in testParseAndroidAttrs() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | FontResourcesParser.java | 78 public static final class FontFileResourceEntry { class in FontResourcesParser 86 public FontFileResourceEntry(@NonNull String fileName, int weight, int italic, in FontFileResourceEntry() method in FontResourcesParser.FontFileResourceEntry 118 private final @NonNull FontFileResourceEntry[] mEntries; 120 public FontFamilyFilesResourceEntry(@NonNull FontFileResourceEntry[] entries) { in FontFamilyFilesResourceEntry() 124 public @NonNull FontFileResourceEntry[] getEntries() { in getEntries() 192 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() 197 final FontFileResourceEntry entry = readFont(parser, resources); in readFamily() 209 new FontFileResourceEntry[fonts.size()])); in readFamily() 212 private static FontFileResourceEntry readFont(XmlPullParser parser, Resources resources) in readFont() 231 return new FontFileResourceEntry(filename, weight, italic, variationSettings, ttcIndex); in readFont()
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
D | TypefaceCompatBaseImpl.java | 30 import androidx.core.content.res.FontResourcesParserCompat.FontFileResourceEntry; 123 private FontFileResourceEntry findBestEntry(FontFamilyFilesResourceEntry entry, int style) { 124 return findBestFont(entry.getEntries(), style, new StyleExtractor<FontFileResourceEntry>() { 126 public int getWeight(FontFileResourceEntry entry) { 131 public boolean isItalic(FontFileResourceEntry entry) { 140 FontFileResourceEntry best = findBestEntry(entry, style);
|
D | TypefaceCompatApi24Impl.java | 34 import androidx.core.content.res.FontResourcesParserCompat.FontFileResourceEntry; 157 for (final FontFileResourceEntry e : entry.getEntries()) { in createFromFontFamilyFilesResourceEntry()
|
D | TypefaceCompatApi26Impl.java | 37 import androidx.core.content.res.FontResourcesParserCompat.FontFileResourceEntry; 210 for (final FontFileResourceEntry fontFile : entry.getEntries()) { in createFromFontFamilyFilesResourceEntry()
|
/frameworks/support/compat/src/main/java/androidx/core/content/res/ |
D | FontResourcesParserCompat.java | 102 public static final class FontFileResourceEntry { class in FontResourcesParserCompat 110 public FontFileResourceEntry(@NonNull String fileName, int weight, boolean italic, in FontFileResourceEntry() method in FontResourcesParserCompat.FontFileResourceEntry 149 private final @NonNull FontFileResourceEntry[] mEntries; 151 public FontFamilyFilesResourceEntry(@NonNull FontFileResourceEntry[] entries) { in FontFamilyFilesResourceEntry() 155 public @NonNull FontFileResourceEntry[] getEntries() { in getEntries() 210 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() 224 new FontFileResourceEntry[fonts.size()])); in readFamily() 264 private static FontFileResourceEntry readFont(XmlPullParser parser, Resources resources) in readFont() 294 return new FontFileResourceEntry(filename, weight, isItalic, variationSettings, ttcIndex, in readFont()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | FontResourcesParserTest.java | 20 import static android.content.res.FontResourcesParser.FontFileResourceEntry; 67 FontFileResourceEntry[] fileEntries = filesEntry.getEntries(); in testParse() 69 FontFileResourceEntry font1 = fileEntries[0]; in testParse() 75 FontFileResourceEntry font2 = fileEntries[1]; in testParse() 81 FontFileResourceEntry font3 = fileEntries[2]; in testParse() 87 FontFileResourceEntry font4 = fileEntries[3]; in testParse()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 21 import static android.content.res.FontResourcesParser.FontFileResourceEntry; 259 for (final FontFileResourceEntry fontFile : filesEntry.getEntries()) { in createFromResources()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 19099 …ser;Landroid/content/res/Resources;)Landroid/content/res/FontResourcesParser$FontFileResourceEntry; 54810 Landroid/content/res/FontResourcesParser$FontFileResourceEntry;
|