Home
last modified time | relevance | path

Searched refs:fontConfig (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java159 final FontConfig.Font fontConfig = fonts.get(i); in createFontFamily() local
160 final String fullPath = fontConfig.getFile().getAbsolutePath(); in createFontFamily()
176 .setWeight(fontConfig.getStyle().getWeight()) in createFontFamily()
177 .setSlant(fontConfig.getStyle().getSlant()) in createFontFamily()
178 .setTtcIndex(fontConfig.getTtcIndex()) in createFontFamily()
179 .setFontVariationSettings(fontConfig.getFontVariationSettings()) in createFontFamily()
260 public static Map<String, FontFamily[]> buildSystemFallback(FontConfig fontConfig) { in buildSystemFallback() argument
261 return buildSystemFallback(fontConfig, new ArrayMap<>()); in buildSystemFallback()
266 public static Map<String, FontFamily[]> buildSystemFallback(FontConfig fontConfig, in buildSystemFallback() argument
269 final List<FontConfig.FontFamily> xmlFamilies = fontConfig.getFontFamilies(); in buildSystemFallback()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DFontFallbackSetup.java80 FontConfig fontConfig; in FontFallbackSetup() local
82 fontConfig = FontListParser.parse(testFontsXml, mTestFontsDir, null, null, null, 0, 0); in FontFallbackSetup()
87 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in FontFallbackSetup()
88 mFontMap = SystemFonts.buildSystemTypefaces(fontConfig, fallbackMap); in FontFallbackSetup()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DUpdatableFontDir.java180 FontConfig fontConfig = null; in loadFontFileMap() local
197 if (fontConfig == null) { in loadFontFileMap()
198 fontConfig = getSystemFontConfig(); in loadFontFileMap()
200 addFileToMapIfSameOrNewer(fontFileInfo, fontConfig, true /* deleteOldFile */); in loadFontFileMap()
375 FontConfig fontConfig = getSystemFontConfig(); in installFontFile() local
376 if (!addFileToMapIfSameOrNewer(fontFileInfo, fontConfig, false)) { in installFontFile()
420 private boolean addFileToMapIfSameOrNewer(FontFileInfo fontFileInfo, FontConfig fontConfig, in addFileToMapIfSameOrNewer() argument
428 long preInstalledRev = getPreinstalledFontRevision(fontFileInfo, fontConfig); in addFileToMapIfSameOrNewer()
446 private long getPreinstalledFontRevision(FontFileInfo info, FontConfig fontConfig) { in getPreinstalledFontRevision() argument
449 for (int i = 0; i < fontConfig.getFontFamilies().size(); i++) { in getPreinstalledFontRevision()
[all …]
DFontManagerShellCommand.java120 FontConfig fontConfig = mService.getSystemFontConfig(); in dumpAll() local
121 dumpFontConfig(w, fontConfig); in dumpAll()
156 @NonNull FontConfig fontConfig in dumpFontConfig() argument
159 List<FontConfig.FontFamily> families = fontConfig.getFontFamilies(); in dumpFontConfig()
222 List<FontConfig.Alias> aliases = fontConfig.getAliases(); in dumpFontConfig()
309 FontConfig fontConfig = mService.getSystemFontConfig(); in dump() local
311 dumpFontConfig(writer, fontConfig); in dump()
314 SystemFonts.buildSystemFallback(fontConfig); in dump()
DFontManagerService.java325 private static SharedMemory serializeFontMap(FontConfig fontConfig) { in serializeFontMap() argument
329 SystemFonts.buildSystemFallback(fontConfig, bufferCache); in serializeFontMap()
331 SystemFonts.buildSystemTypefaces(fontConfig, fallback); in serializeFontMap()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java171 FontConfig fontConfig; in buildSystemFallback() local
173 fontConfig = FontListParser.parse( in buildSystemFallback()
180 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in buildSystemFallback()
182 fontConfig, fallbackMap); in buildSystemFallback()
200 FontConfig fontConfig; in testBuildSystemFallback() local
202 fontConfig = FontListParser.parse( in testBuildSystemFallback()
207 assertFalse(fontConfig.getAliases().isEmpty()); in testBuildSystemFallback()
208 assertFalse(fontConfig.getFontFamilies().isEmpty()); in testBuildSystemFallback()
210 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in testBuildSystemFallback()
214 fontConfig, fallbackMap); in testBuildSystemFallback()
DTypefaceTest.java199 FontConfig fontConfig = SystemFonts.getSystemPreinstalledFontConfig(); in testSerialize() local
200 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in testSerialize()
201 Map<String, Typeface> systemFontMap = SystemFonts.buildSystemTypefaces(fontConfig, in testSerialize()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DUpdatableFontDirTest.java914 FontConfig fontConfig = dir.getSystemFontConfig(); in getSystemFontConfig() local
915 assertNamedFamilyExists(fontConfig, "monospace"); in getSystemFontConfig()
916 FontConfig.FontFamily monospace = getLastFamily(fontConfig, "monospace"); in getSystemFontConfig()
920 assertNamedFamilyExists(fontConfig, "test"); in getSystemFontConfig()
921 assertThat(getLastFamily(fontConfig, "test").getFontList()) in getSystemFontConfig()
940 FontConfig fontConfig = dir.getSystemFontConfig(); in getSystemFontConfig_preserveFirstFontFamily() local
942 assertThat(fontConfig.getFontFamilies().get(0)).isEqualTo(firstFontFamily); in getSystemFontConfig_preserveFirstFontFamily()
943 FontConfig.FontFamily updated = getLastFamily(fontConfig, firstFontFamily.getName()); in getSystemFontConfig_preserveFirstFontFamily()
1012 private static FontConfig.FontFamily getLastFamily(FontConfig fontConfig, String familyName) { in getLastFamily() argument
1013 List<FontConfig.FontFamily> fontFamilies = fontConfig.getFontFamilies(); in getLastFamily()
[all …]
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java345 FontConfig fontConfig = mFontManager.getFontConfig(); in getFontPath()
346 for (FontConfig.FontFamily family : fontConfig.getFontFamilies()) { in getFontPath()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java1441 final FontConfig fontConfig = SystemFonts.getSystemPreinstalledFontConfig();
1442 final Map<String, FontFamily[]> fallback = SystemFonts.buildSystemFallback(fontConfig);
1444 SystemFonts.buildSystemTypefaces(fontConfig, fallback);