/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/base/data/fonts/ |
D | Android.mk | 25 $(PRODUCT_OUT)/system/fonts/$(1) : $(PRODUCT_OUT)/system/fonts/$(2) 32 $(ALL_MODULES.$(1).INSTALLED) $(PRODUCT_OUT)/system/fonts/$(1) 56 LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts 72 $(eval LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts)\ 90 LOCAL_MODULE := fonts.xml 92 LOCAL_PREBUILT_MODULE_FILE := frameworks/base/data/fonts/fonts.xml 121 $(fontchain_lint_timestamp): $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.…
|
D | fonts.mk | 20 fonts.xml
|
/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/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() 547 final FontInfo[] fonts = result.getFonts(); in requestFonts() local 548 if (fonts == null || fonts.length == 0) { in requestFonts() 553 for (final FontInfo font : fonts) { in requestFonts() 570 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 | 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 | 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 | 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/libs/hwui/jni/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; 165 @NonNull List<FontConfig.Font> fonts, in createFontFamily() argument 170 if (fonts.size() == 0) { in createFontFamily() 175 for (int i = 0; i < fonts.size(); i++) { in createFontFamily() 176 final FontConfig.Font fontConfig = fonts.get(i); in createFontFamily()
|
/frameworks/base/apct-tests/perftests/core/ |
D | Android.bp | 27 // Use google-fonts/dancing-script for the performance metrics 29 // LOCAL_ASSET_DIR := $(TOP)/external/google-fonts/dancing-script
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 318 …ate static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptRuns() argument 328 getScriptFont(text, scriptStart, scriptLimit, fonts)); in getScriptRuns() 336 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptFont() argument 337 if (fonts.isEmpty()) { in getScriptFont() 344 Font bestFont = fonts.get(0).mFont; in getScriptFont() 346 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 …]
|
/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/libs/hwui/jni/ |
D | FontFamily.cpp | 45 std::vector<minikin::Font> fonts; member 77 if (builder->fonts.empty()) { in FontFamily_create() 81 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create() 138 builder->fonts.push_back(fontBuilder.build()); in addSkTypeface()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 191 std::vector<minikin::Font> fonts; in setRobotoTypefaceForTest() local 192 fonts.push_back(minikin::Font::Builder(font).build()); in setRobotoTypefaceForTest() 195 std::make_shared<minikin::FontFamily>(std::move(fonts))); in setRobotoTypefaceForTest()
|