Home
last modified time | relevance | path

Searched refs:fontMap (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java233 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NonExistentFontShouldBeIgnored() local
236 buildSystemFallback(xml, null, fontMap, fallbackMap); in testBuildSystemFallback_NonExistentFontShouldBeIgnored()
238 assertEquals(1, fontMap.size()); in testBuildSystemFallback_NonExistentFontShouldBeIgnored()
239 assertTrue(fontMap.containsKey("sans-serif")); in testBuildSystemFallback_NonExistentFontShouldBeIgnored()
261 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_NamedFamily() local
264 buildSystemFallback(xml, null, fontMap, fallbackMap); in testBuildSystemFallback_NamedFamily()
268 final Typeface sansSerifTypeface = fontMap.get("sans-serif"); in testBuildSystemFallback_NamedFamily()
275 final Typeface testTypeface = fontMap.get("test"); in testBuildSystemFallback_NamedFamily()
282 final Typeface test2Typeface = fontMap.get("test2"); in testBuildSystemFallback_NamedFamily()
307 final ArrayMap<String, Typeface> fontMap = new ArrayMap<>(); in testBuildSystemFallback_defaultFallback() local
[all …]
DTypefaceTest.java223 Map<String, Typeface> fontMap = Map.of( in testSetSystemFontMap() local
229 Typeface.setSystemFontMap(fontMap); in testSetSystemFontMap()
232 assertEquals(fontMap.get("sans-serif"), Typeface.DEFAULT); in testSetSystemFontMap()
234 assertEquals(fontMap.get("sans-serif"), Typeface.SANS_SERIF); in testSetSystemFontMap()
235 assertEquals(fontMap.get("serif"), Typeface.SERIF); in testSetSystemFontMap()
236 assertEquals(fontMap.get("monospace"), Typeface.MONOSPACE); in testSetSystemFontMap()
239 assertEquals(fontMap.get("sans-serif"), Typeface.defaultFromStyle(Typeface.NORMAL)); in testSetSystemFontMap()
247 assertEquals(fontMap.get("sample"), Typeface.create("sample", Typeface.NORMAL)); in testSetSystemFontMap()
249 fontMap.get("sample-italic"), Typeface.create("sample-italic", Typeface.ITALIC)); in testSetSystemFontMap()
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp352 std::unordered_map<const Font*, uint32_t> fontMap; in LayoutPiece() local
361 auto it = fontMap.find(fakedFont.font.get()); in LayoutPiece()
363 if (it == fontMap.end()) { in LayoutPiece()
367 fontMap.insert(std::make_pair(fakedFont.font.get(), font_ix)); in LayoutPiece()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java1224 public static @NonNull SharedMemory serializeFontMap(@NonNull Map<String, Typeface> fontMap)
1226 long[] nativePtrs = new long[fontMap.size()];
1230 for (Map.Entry<String, Typeface> entry : fontMap.entrySet()) {