Searched refs:fontMap (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 250 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() local 253 buildSystemFallback(xml, null, fontMap, fallbackMap); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 255 assertEquals(1, fontMap.size()); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 256 assertTrue(fontMap.containsKey("sans-serif")); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() 278 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NamedFamily() local 281 buildSystemFallback(xml, null, fontMap, fallbackMap); in testBuildSystemFallback_NamedFamily() 285 final Typeface sansSerifTypeface = fontMap.get("sans-serif"); in testBuildSystemFallback_NamedFamily() 292 final Typeface testTypeface = fontMap.get("test"); in testBuildSystemFallback_NamedFamily() 299 final Typeface test2Typeface = fontMap.get("test2"); in testBuildSystemFallback_NamedFamily() 324 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_defaultFallback() local [all …]
|
D | TypefaceTest.java | 234 Map<String, Typeface> fontMap = Map.of( in testSetSystemFontMap() local 242 Typeface.setSystemFontMap(fontMap); in testSetSystemFontMap() 245 assertEquals(fontMap.get("sans-serif"), Typeface.DEFAULT); in testSetSystemFontMap() 247 assertEquals(fontMap.get("sans-serif"), Typeface.SANS_SERIF); in testSetSystemFontMap() 248 assertEquals(fontMap.get("serif"), Typeface.SERIF); in testSetSystemFontMap() 249 assertEquals(fontMap.get("monospace"), Typeface.MONOSPACE); in testSetSystemFontMap() 252 assertEquals(fontMap.get("sans-serif"), Typeface.defaultFromStyle(Typeface.NORMAL)); in testSetSystemFontMap() 260 assertEquals(fontMap.get("sample"), Typeface.create("sample", Typeface.NORMAL)); in testSetSystemFontMap() 262 fontMap.get("sample-italic"), in testSetSystemFontMap()
|
/frameworks/minikin/libs/minikin/ |
D | LayoutCore.cpp | 305 std::unordered_map<const MinikinFont*, uint32_t> fontMap; in LayoutPiece() local 321 auto it = fontMap.find(typeface.get()); in LayoutPiece() 323 if (it == fontMap.end()) { in LayoutPiece() 327 fontMap.insert(std::make_pair(typeface.get(), font_ix)); in LayoutPiece()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 1261 public static @NonNull SharedMemory serializeFontMap(@NonNull Map<String, Typeface> fontMap) 1263 long[] nativePtrs = new long[fontMap.size()]; 1267 for (Map.Entry<String, Typeface> entry : fontMap.entrySet()) {
|