Home
last modified time | relevance | path

Searched refs:fonts (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/support/compat/tests/java/android/support/v4/provider/
DFontsContractCompatTest.java166 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultOK() local
168 assertNotNull(fonts); in testGetFontFromProvider_resultOK()
169 assertEquals(1, fonts.length); in testGetFontFromProvider_resultOK()
170 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK()
182 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() local
184 assertNotNull(fonts); in testGetFontFromProvider_providerDoesntReturnAllFields()
185 assertEquals(1, fonts.length); in testGetFontFromProvider_providerDoesntReturnAllFields()
186 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields()
195 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() local
197 assertNotNull(fonts); in testGetFontFromProvider_resultFontNotFound()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java35 import android.graphics.fonts.FontVariationAxis;
76 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultOK() local
78 assertNotNull(fonts); in testGetFontFromProvider_resultOK()
79 assertEquals(1, fonts.length); in testGetFontFromProvider_resultOK()
80 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK()
95 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() local
97 assertNotNull(fonts); in testGetFontFromProvider_providerDoesntReturnAllFields()
98 assertEquals(1, fonts.length); in testGetFontFromProvider_providerDoesntReturnAllFields()
99 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields()
111 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() local
[all …]
/frameworks/base/data/fonts/
DAndroid.mk25 $(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)\
88 FONTCHAIN_LINTER := frameworks/base/tools/fonts/fontchain_lint.py
96 fontchain_lint: $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml $(PRODUCT_OUT)/system.img
Dfonts.mk18 frameworks/base/data/fonts/fonts.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/fonts.xml
/frameworks/minikin/libs/minikin/
DFontFamily.cpp100 FontFamily::FontFamily(std::vector<Font>&& fonts) : FontFamily(0 /* variant */, std::move(fonts)) { in FontFamily() argument
103 FontFamily::FontFamily(int variant, std::vector<Font>&& fonts) in FontFamily() argument
104 : FontFamily(FontLanguageListCache::kEmptyListId, variant, std::move(fonts)) { in FontFamily()
107 FontFamily::FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts) in FontFamily() argument
108 : mLangId(langId), mVariant(variant), mFonts(std::move(fonts)) { in FontFamily()
229 std::vector<Font> fonts; in createFamilyWithVariation() local
249 fonts.push_back(Font(std::move(minikinFont), font.style)); in createFamilyWithVariation()
252 return std::shared_ptr<FontFamily>(new FontFamily(mLangId, mVariant, std::move(fonts))); in createFamilyWithVariation()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp51 std::vector<Font> fonts; in getFontFamilies() local
74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); in getFontFamilies()
78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic))); in getFontFamilies()
85 family = std::make_shared<FontFamily>(variant, std::move(fonts)); in getFontFamilies()
89 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts)); in getFontFamilies()
/frameworks/base/tools/layoutlib/rename_font/
Dbuild_font_single.py121 fonts = []
131 fonts.append(font)
146 fonts.append(font)
147 return fonts
150 def update_tag(tag, fonts): argument
152 fonts_iterator = fonts.__iter__()
Dtest.py36 fonts = build_font.get_font_info(name_tag)
39 self.assertEqual(fonts[0].family, "Roboto1200310")
40 self.assertEqual(fonts[0].fullname, "Roboto1200310 Regular")
Dbuild_font.py137 fonts = []
147 fonts.append(font)
162 fonts.append(font)
163 return fonts
166 def update_tag(tag, fonts): argument
168 fonts_iterator = fonts.__iter__()
DREADME3 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/base/tools/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java26 import android.graphics.fonts.FontVariationAxis;
98 List<Font> fonts = new ArrayList<Font>(mFontFamilies.length); in getFonts() local
106 fonts.add(font); in getFonts()
121 fonts.add(font); in getFonts()
123 fonts.add(font2); in getFonts()
130 fonts.add(null); in getFonts()
134 return fonts; in getFonts()
DBidiRenderer.java275 boolean isRtl, List<Font> fonts) { in getScriptRuns() argument
285 setScriptFont(text, run, fonts); in getScriptRuns()
294 List<Font> fonts) { in setScriptFont() argument
295 for (Font font : fonts) { in setScriptFont()
305 run.font = fonts.get(0); in setScriptFont()
/frameworks/base/core/java/android/provider/
DFontsContract.java34 import android.graphics.fonts.FontVariationAxis;
294 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() argument
296 mFonts = fonts; in FontFamilyResult()
535 final FontInfo[] fonts = result.getFonts(); in requestFonts() local
536 if (fonts == null || fonts.length == 0) { in requestFonts()
541 for (final FontInfo font : fonts) { in requestFonts()
558 final Typeface typeface = buildTypeface(context, cancellationSignal, fonts); in requestFonts()
600 FontInfo[] fonts = getFontFromProvider( in fetchFonts() local
602 return new FontFamilyResult(FontFamilyResult.STATUS_OK, fonts); in fetchFonts()
621 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) { in buildTypeface() argument
[all …]
/frameworks/support/compat/java/android/support/v4/provider/
DFontsContractCompat.java373 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() argument
375 mFonts = fonts; in FontFamilyResult()
520 final FontInfo[] fonts = result.getFonts(); in requestFont()
521 if (fonts == null || fonts.length == 0) { in requestFont()
531 for (final FontInfo font : fonts) { in requestFont()
559 fonts); in requestFont()
593 private static Map<Uri, ByteBuffer> prepareFontData(Context context, FontInfo[] fonts, in prepareFontData() argument
598 for (FontInfo font : fonts) { in prepareFontData()
645 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) { in buildTypeface() argument
647 prepareFontData(context, fonts, cancellationSignal); in buildTypeface()
[all …]
/frameworks/base/graphics/java/android/graphics/
DFontListParser.java20 import android.graphics.fonts.FontVariationAxis;
80 List<FontConfig.Font> fonts = new ArrayList<FontConfig.Font>(); in readFamily() local
85 fonts.add(readFont(parser)); in readFamily()
98 return new FontConfig.Family(name, fonts.toArray(new FontConfig.Font[fonts.size()]), lang, in readFamily()
/frameworks/base/core/java/android/text/
DFontConfig.java24 import android.graphics.fonts.FontVariationAxis;
206 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String language, in Family() argument
209 mFonts = fonts; in Family()
/frameworks/support/compat/java/android/support/v4/graphics/
DTypefaceCompatBaseImpl.java48 public Typeface createTypeface(Context context, @NonNull FontInfo[] fonts, in createTypeface() argument
51 if (fonts.length < 1) { in createTypeface()
55 FontInfo font = fonts[0]; in createTypeface()
DTypefaceCompat.java76 Typeface createTypeface(Context context, @NonNull FontInfo[] fonts, in createTypeface() argument
159 public static Typeface createTypeface(Context context, @NonNull FontInfo[] fonts, in createTypeface() argument
161 return sTypefaceCompatImpl.createTypeface(context, fonts, uriBuffer); in createTypeface()
DTypefaceCompatApi24Impl.java125 public Typeface createTypeface(Context context, @NonNull FontInfo[] fonts, in createTypeface() argument
128 for (final FontInfo font : fonts) { in createTypeface()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DFontRequestEmojiCompatConfig.java128 final FontInfo[] fonts = result.getFonts(); in run() local
129 if (fonts == null || fonts.length == 0) { in run()
133 final FontInfo font = fonts[0]; in run()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java178 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() local
185 fonts.add(entry); in readFamily()
191 if (fonts.isEmpty()) { in readFamily()
194 return new FontFamilyFilesResourceEntry(fonts.toArray( in readFamily()
195 new FontFileResourceEntry[fonts.size()])); in readFamily()
/frameworks/support/compat/java/android/support/v4/content/res/
DFontResourcesParserCompat.java190 List<FontFileResourceEntry> fonts = new ArrayList<>(); in readFamily() local
195 fonts.add(readFont(parser, resources)); in readFamily()
200 if (fonts.isEmpty()) { in readFamily()
203 return new FontFamilyFilesResourceEntry(fonts.toArray( in readFamily()
204 new FontFileResourceEntry[fonts.size()])); in readFamily()
/frameworks/minikin/include/minikin/
DFontFamily.h125 explicit FontFamily(std::vector<Font>&& fonts);
126 FontFamily(int variant, std::vector<Font>&& fonts);
127 FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts);
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DFontRequestEmojiCompatConfigTest.java175 final FontInfo[] fonts = new FontInfo[] { in testLoad_success() local
179 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontsContract).fetchFonts( in testLoad_success()
191 final FontInfo[] fonts, String exceptionMessage) throws NameNotFoundException { in verifyLoaderOnFailedCalled() argument
192 doReturn(new FontFamilyResult(statusCode, fonts)).when(mFontsContract).fetchFonts( in verifyLoaderOnFailedCalled()
/frameworks/base/apct-tests/perftests/core/
DAndroid.mk19 LOCAL_ASSET_DIR := $(TOP)/external/google-fonts/dancing-script

12