/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 36 import android.graphics.fonts.FontVariationAxis; 78 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultOK() local 80 assertNotNull(fonts); in testGetFontFromProvider_resultOK() 81 assertEquals(1, fonts.length); in testGetFontFromProvider_resultOK() 82 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK() 97 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() local 99 assertNotNull(fonts); in testGetFontFromProvider_providerDoesntReturnAllFields() 100 assertEquals(1, fonts.length); in testGetFontFromProvider_providerDoesntReturnAllFields() 101 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields() 113 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() local [all …]
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 70 std::vector<Font> fonts; in getFontFamilies() local 97 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); in getFontFamilies() 102 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build()); in getFontFamilies() 109 family = std::make_shared<FontFamily>(variant, std::move(fonts)); in getFontFamilies() 112 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts), in getFontFamilies() 127 std::vector<Font> fonts; in buildFontFamily() local 128 fonts.push_back(Font::Builder(font).build()); in buildFontFamily() 129 return std::make_shared<FontFamily>(std::move(fonts)); in buildFontFamily() 135 std::vector<Font> fonts; in buildFontFamily() local 136 fonts.push_back(Font::Builder(font).build()); in buildFontFamily() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 36 static LayoutPiece buildLayout(const std::string& text, const std::vector<std::string>& fonts) { in buildLayout() argument 38 for (const auto& fontPath : fonts) { in buildLayout() 47 static LayoutPiece buildLayout(const std::string& text, const std::vector<std::string>& fonts, in buildLayout() argument 50 for (const auto& fontPath : fonts) { in buildLayout() 79 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 92 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 108 EXPECT_EQ(1u, layout.fonts().size()); in TEST() 135 EXPECT_EQ(2u, layout.fonts().size()); in TEST() 151 EXPECT_EQ(2u, layout.fonts().size()); in TEST() 173 EXPECT_EQ(1u, layout.fonts().size()); in TEST() [all …]
|
/frameworks/base/data/fonts/ |
D | Android.bp | 32 // Copies the font configuration file into system/etc for the product as fonts.xml. 33 // Additional fonts should be installed to /product/fonts/ alongside a corresponding 36 name: "fonts.xml", 37 src: "fonts.xml",
|
D | fonts.mk | 20 fonts.xml
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 107 FontFamily::FontFamily(std::vector<Font>&& fonts) in FontFamily() argument 108 : FontFamily(FamilyVariant::DEFAULT, std::move(fonts)) {} in FontFamily() 110 FontFamily::FontFamily(FamilyVariant variant, std::vector<Font>&& fonts) in FontFamily() argument 111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts), in FontFamily() 114 FontFamily::FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts, in FontFamily() argument 118 mFonts(std::move(fonts)), in FontFamily() 219 std::vector<Font> fonts; in createFamilyWithVariation() local 238 fonts.push_back(Font::Builder(minikinFont).setStyle(font.style()).build()); in createFamilyWithVariation() 242 new FontFamily(mLocaleListId, mVariant, std::move(fonts), mIsCustomFallback)); in createFamilyWithVariation()
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 32 import android.graphics.fonts.Font; 33 import android.graphics.fonts.FontFamily; 34 import android.graphics.fonts.FontStyle; 35 import android.graphics.fonts.FontVariationAxis; 295 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() argument 297 mFonts = fonts; in FontFamilyResult() 540 final FontInfo[] fonts = result.getFonts(); in requestFonts() local 541 if (fonts == null || fonts.length == 0) { in requestFonts() 546 for (final FontInfo font : fonts) { in requestFonts() 563 final Typeface typeface = buildTypeface(context, cancellationSignal, fonts); in requestFonts() [all …]
|
/frameworks/layoutlib/rename_font/ |
D | build_font_single.py | 125 fonts = [] 138 fonts.append(font) 153 fonts.append(font) 154 return fonts 157 def update_tag(tag, fonts): argument 159 fonts_iterator = fonts.__iter__()
|
D | build_font.py | 137 fonts = [] 147 fonts.append(font) 162 fonts.append(font) 163 return fonts 166 def update_tag(tag, fonts): argument 168 fonts_iterator = fonts.__iter__()
|
D | test.py | 36 fonts = build_font.get_font_info(name_tag) 39 self.assertEqual(fonts[0].family, "Roboto1200310") 40 self.assertEqual(fonts[0].fullname, "Roboto1200310 Regular")
|
D | README | 3 java.awt.Font#layoutGlyphVector() if two fonts with same name but differnt 4 versions are loaded. As a workaround, we rename all the fonts that we ship with
|
/frameworks/minikin/include/minikin/ |
D | FontFamily.h | 36 explicit FontFamily(std::vector<Font>&& fonts); 37 FontFamily(FamilyVariant variant, std::vector<Font>&& fonts); 38 FontFamily(uint32_t localeListId, FamilyVariant variant, std::vector<Font>&& fonts,
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | FontFallbackSetup.java | 23 import android.graphics.fonts.Font; 24 import android.graphics.fonts.FontCustomizationParser; 25 import android.graphics.fonts.FontFamily; 26 import android.graphics.fonts.SystemFonts;
|
/frameworks/minikin/tests/stresstest/ |
D | FontFamilyTest.cpp | 39 std::vector<Font> fonts; in TEST_P() local 40 fonts.push_back(Font::Builder(font).build()); in TEST_P() 41 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(std::move(fonts)); in TEST_P()
|
/frameworks/base/core/jni/android/graphics/fonts/ |
D | FontFamily.cpp | 33 std::vector<minikin::Font> fonts; member 55 toBuilder(builderPtr)->fonts.push_back(toFontWrapper(fontPtr)->font); in FontFamily_Builder_addFont() 70 localeId, static_cast<minikin::FamilyVariant>(variant), std::move(builder->fonts), in FontFamily_Builder_build()
|
/frameworks/base/graphics/java/android/graphics/ |
D | FontListParser.java | 20 import android.graphics.fonts.FontVariationAxis; 90 final List<FontConfig.Font> fonts = new ArrayList<FontConfig.Font>(); in readFamily() local 95 fonts.add(readFont(parser, fontDir)); in readFamily() 108 return new FontConfig.Family(name, fonts.toArray(new FontConfig.Font[fonts.size()]), lang, in readFamily()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFamily.java | 17 package android.graphics.fonts; 144 private FontFamily(@NonNull ArrayList<Font> fonts, long ptr) { in FontFamily() argument 145 mFonts = fonts; in FontFamily()
|
D | SystemFonts.java | 17 package android.graphics.fonts; 166 @NonNull List<FontConfig.Font> fonts, in createFontFamily() argument 171 if (fonts.size() == 0) { in createFontFamily() 176 for (int i = 0; i < fonts.size(); i++) { in createFontFamily() 177 final FontConfig.Font fontConfig = fonts.get(i); in createFontFamily()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 317 …ate static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptRuns() argument 327 getScriptFont(text, scriptStart, scriptLimit, fonts)); in getScriptRuns() 335 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptFont() argument 336 if (fonts.isEmpty()) { in getScriptFont() 343 Font bestFont = fonts.get(0).mFont; in getScriptFont() 345 for (FontInfo fontInfo : fonts) { in getScriptFont()
|
D | Paint_Delegate.java | 572 List<FontInfo> fonts = delegate.getFonts(); in nAscent() local 573 if (fonts.size() > 0) { in nAscent() 574 java.awt.FontMetrics javaMetrics = fonts.get(0).mMetrics; in nAscent() 590 List<FontInfo> fonts = delegate.getFonts(); in nDescent() local 591 if (fonts.size() > 0) { in nDescent() 592 java.awt.FontMetrics javaMetrics = fonts.get(0).mMetrics; in nDescent() 620 List<FontInfo> fonts = delegate.getFonts(); in nGetFontMetricsInt() local 621 if (fonts.size() > 0) { in nGetFontMetricsInt() 622 java.awt.FontMetrics javaMetrics = fonts.get(0).mMetrics; in nGetFontMetricsInt() 1338 List<FontInfo> fonts = getFonts(); in getFontMetrics() local [all …]
|
D | Typeface_Builder_Delegate.java | 24 import android.graphics.fonts.FontVariationAxis;
|
/frameworks/base/core/java/android/content/res/ |
D | FontResourcesParser.java | 196 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() local 203 fonts.add(entry); in readFamily() 209 if (fonts.isEmpty()) { in readFamily() 212 return new FontFamilyFilesResourceEntry(fonts.toArray( in readFamily() 213 new FontFileResourceEntry[fonts.size()])); in readFamily()
|
/frameworks/base/core/java/android/text/ |
D | FontConfig.java | 25 import android.graphics.fonts.FontVariationAxis; 223 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String languages, in Family() argument 226 mFonts = fonts; in Family()
|
/frameworks/base/core/jni/android/graphics/ |
D | FontFamily.cpp | 50 std::vector<minikin::Font> fonts; member 82 if (builder->fonts.empty()) { in FontFamily_create() 86 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create() 143 builder->fonts.push_back(fontBuilder.build()); in addSkTypeface()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 188 std::vector<minikin::Font> fonts; in setRobotoTypefaceForTest() local 189 fonts.push_back(minikin::Font::Builder(font).build()); in setRobotoTypefaceForTest() 192 std::make_shared<minikin::FontFamily>(std::move(fonts))); in setRobotoTypefaceForTest()
|