Searched refs:fallbackMap (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 180 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in buildSystemFallback() local 182 fontConfig, fallbackMap); in buildSystemFallback() 187 outFallbackMap.putAll(fallbackMap); in buildSystemFallback() 210 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in testBuildSystemFallback() local 211 assertFalse(fallbackMap.isEmpty()); in testBuildSystemFallback() 214 fontConfig, fallbackMap); in testBuildSystemFallback() 234 final ArrayMap<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() local 236 buildSystemFallback(xml, null, fontMap, fallbackMap); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 240 assertEquals(1, fallbackMap.size()); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 241 assertTrue(fallbackMap.containsKey("sans-serif")); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() [all …]
|
D | TypefaceTest.java | 200 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in testSerialize() local 202 fallbackMap); in testSerialize()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | SystemFonts.java | 95 @NonNull ArrayMap<String, ArrayList<FontFamily>> fallbackMap, in pushFamilyToFallback() argument 124 for (int i = 0; i < fallbackMap.size(); i++) { in pushFamilyToFallback() 125 String name = fallbackMap.keyAt(i); in pushFamilyToFallback() 132 fallbackMap.valueAt(i).add(defaultFamily); in pushFamilyToFallback() 138 fallbackMap.valueAt(i).add(family); in pushFamilyToFallback() 140 fallbackMap.valueAt(i).add(defaultFamily); in pushFamilyToFallback() 268 final Map<String, FontFamily[]> fallbackMap = new ArrayMap<>(); in buildSystemFallback() local 295 fallbackMap.put(fallbackName, familyList.toArray(new FontFamily[0])); in buildSystemFallback() 298 return fallbackMap; in buildSystemFallback() 308 Map<String, FontFamily[]> fallbackMap) { in buildSystemTypefaces() argument [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 87 Map<String, FontFamily[]> fallbackMap = SystemFonts.buildSystemFallback(fontConfig); in FontFallbackSetup() local 88 mFontMap = SystemFonts.buildSystemTypefaces(fontConfig, fallbackMap); in FontFallbackSetup()
|
/frameworks/base/services/core/java/com/android/server/graphics/fonts/ |
D | FontManagerShellCommand.java | 313 final Map<String, FontFamily[]> fallbackMap = in dump() local 315 FontFamily[] families = fallbackMap.get(nextArg); in dump()
|