Searched refs:fontFile (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 64 for (String fontFile : mTestFontFiles) { in FontFallbackSetup() 65 final String sourceInAsset = "fonts/" + fontFile; in FontFallbackSetup() 66 final File outInCache = new File(mTestFontsDir, fontFile); in FontFallbackSetup() 105 for (String fontFile : mTestFontFiles) { in close() 106 final File outInCache = new File(mTestFontsDir, fontFile); in close()
|
/frameworks/base/core/java/android/graphics/fonts/ |
D | FontManager.java | 281 FontFileUpdateRequest fontFile = fontFileUpdateRequests.get(i); in updateFontFamily() local 282 requests.add(new FontUpdateRequest(fontFile.getParcelFileDescriptor(), in updateFontFamily() 283 fontFile.getSignature())); in updateFontFamily()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 110 for (final String fontFile : TEST_FONT_FILES) { in setUp() 111 final String sourceInAsset = "fonts/" + fontFile; in setUp() 112 copyAssetToFile(sourceInAsset, new File(TEST_FONT_DIR, fontFile)); in setUp() 113 copyAssetToFile(sourceInAsset, new File(TEST_OEM_DIR, fontFile)); in setUp() 115 for (final File fontFile : new File(TEST_UPDATABLE_FONT_DIR).listFiles()) { in setUp() 116 fontFile.delete(); in setUp() 122 for (final String fontFile : TEST_FONT_FILES) { in tearDown() 123 final File outInCache = new File(TEST_FONT_DIR, fontFile); in tearDown() 125 final File outOemInCache = new File(TEST_OEM_DIR, fontFile); in tearDown() 128 for (final File fontFile : new File(TEST_UPDATABLE_FONT_DIR).listFiles()) { in tearDown() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 330 for (final FontFileResourceEntry fontFile : filesEntry.getEntries()) { in createFromResources() 331 final Font.Builder fontBuilder = new Font.Builder(mgr, fontFile.getFileName(), in createFromResources() 333 .setTtcIndex(fontFile.getTtcIndex()) in createFromResources() 334 .setFontVariationSettings(fontFile.getVariationSettings()); in createFromResources() 335 if (fontFile.getWeight() != Typeface.RESOLVE_BY_FONT_TABLE) { in createFromResources() 336 fontBuilder.setWeight(fontFile.getWeight()); in createFromResources() 338 if (fontFile.getItalic() != Typeface.RESOLVE_BY_FONT_TABLE) { in createFromResources() 339 fontBuilder.setSlant(fontFile.getItalic() == FontFileResourceEntry.ITALIC in createFromResources()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
D | UpdatableFontDirTest.java | 404 File fontFile = dir.getPostScriptMap().get("test"); in loadFontFileMap_twice() local 406 assertThat(dir.getPostScriptMap().get("test")).isEqualTo(fontFile); in loadFontFileMap_twice() 420 File fontFile = dir.getPostScriptMap().get("test"); in installFontFile() local 421 assertThat(Os.stat(fontFile.getAbsolutePath()).st_mode & 0777).isEqualTo(0644); in installFontFile() 422 File fontDir = fontFile.getParentFile(); in installFontFile() 475 File fontFile = dir.getPostScriptMap().get("bar"); in installFontFile_systemFontHasPSNameDifferentFromFileName() local 476 assertThat(Os.stat(fontFile.getAbsolutePath()).st_mode & 0777).isEqualTo(0644); in installFontFile_systemFontHasPSNameDifferentFromFileName() 477 File fontDir = fontFile.getParentFile(); in installFontFile_systemFontHasPSNameDifferentFromFileName()
|