Searched refs:fontMap (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 134 FontCustomizationParser.Result oemCustomization, ArrayMap<String, Typeface> fontMap, in buildSystemFallback() argument 144 Typeface.initSystemDefaultTypefaces(fontMap, fallbackMap, aliases); in buildSystemFallback() 157 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback() local 169 Typeface.initSystemDefaultTypefaces(fontMap, fallbackMap, aliases); in testBuildSystemFallback() 170 assertFalse(fontMap.isEmpty()); in testBuildSystemFallback() 188 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() local 193 buildSystemFallback(xml, oemCustomization, fontMap, fallbackMap); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 195 assertEquals(1, fontMap.size()); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 196 assertTrue(fontMap.containsKey("sans-serif")); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 218 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NamedFamily() local [all …]
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 379 std::unordered_map<const Font*, uint32_t> fontMap; in LayoutPiece() local 388 auto it = fontMap.find(fakedFont.font); in LayoutPiece() 390 if (it == fontMap.end()) { in LayoutPiece() 394 fontMap.insert(std::make_pair(fakedFont.font, font_ix)); in LayoutPiece()
|