Searched defs:fonts (Results 1 - 16 of 16) sorted by relevance

/frameworks/support/compat/java/android/support/v4/graphics/
H A DTypefaceCompatApi21Impl.java64 @NonNull FontInfo[] fonts, int style) {
65 if (fonts.length < 1) {
68 final FontInfo bestFont = findBestInfo(fonts, style);
63 createFromFontInfo(Context context, CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompat.java71 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts,
143 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) {
144 return sTypefaceCompatImpl.createFromFontInfo(context, cancellationSignal, fonts, style);
70 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
142 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompatBaseImpl.java52 private static <T> T findBestFont(T[] fonts, int style, StyleExtractor<T> extractor) { argument
59 for (final T font : fonts) {
71 protected FontInfo findBestInfo(FontInfo[] fonts, int style) { argument
72 return findBestFont(fonts, style, new StyleExtractor<FontInfo>() {
108 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) {
110 if (fonts.length < 1) {
113 FontInfo font = findBestInfo(fonts, style);
107 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompatApi24Impl.java132 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) {
136 for (final FontInfo font : fonts) {
131 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompatApi26Impl.java26 import android.graphics.fonts.FontVariationAxis;
233 @NonNull FontsContractCompat.FontInfo[] fonts, int style) {
234 if (fonts.length < 1) {
240 final FontsContractCompat.FontInfo bestFont = findBestInfo(fonts, style);
253 context, fonts, cancellationSignal);
256 for (FontsContractCompat.FontInfo font : fonts) {
231 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontsContractCompat.FontInfo[] fonts, int style) argument
/frameworks/base/graphics/java/android/graphics/fonts/
H A DFontVariationAxis.java17 package android.graphics.fonts;
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp51 std::vector<Font> fonts; local
74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
85 family = std::make_shared<FontFamily>(variant, std::move(fonts));
89 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts));
/frameworks/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java68 * @param paint The Paint to use to get the fonts. Should not be null.
166 // fonts to check which one can draw it.
200 "Some fonts could not be loaded. The rendering may not be perfect. " +
268 private static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fonts) { argument
278 getScriptFont(text, scriptStart, scriptLimit, fonts));
286 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { argument
287 for (FontInfo fontInfo : fonts) {
297 return fonts.get(0).mFont;
/frameworks/base/core/java/android/text/
H A DFontConfig.java24 import android.graphics.fonts.FontVariationAxis;
31 * Font configuration descriptions for System fonts.
44 * Returns the ordered list of families included in the system fonts.
51 * Returns the list of aliases defined for the font families in the system fonts.
206 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String language, argument
209 mFonts = fonts;
222 * Returns the list of fonts included in this family.
/frameworks/base/core/jni/android/graphics/
H A DFontFamily.cpp50 std::vector<minikin::Font> fonts; member in struct:android::NativeFamilyBuilder
73 builder->langId, builder->variant, std::move(builder->fonts));
142 builder->fonts.push_back(minikin::Font(minikinFont, minikin::FontStyle(weight, italic)));
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp100 FontFamily::FontFamily(std::vector<Font>&& fonts) : FontFamily(0 /* variant */, std::move(fonts)) { argument
103 FontFamily::FontFamily(int variant, std::vector<Font>&& fonts) argument
104 : FontFamily(FontLanguageListCache::kEmptyListId, variant, std::move(fonts)) {
107 FontFamily::FontFamily(uint32_t langId, int variant, std::vector<Font>&& fonts) argument
108 : mLangId(langId), mVariant(variant), mFonts(std::move(fonts)) {
229 std::vector<Font> fonts; local
249 fonts.push_back(Font(std::move(minikinFont), font.style));
252 return std::shared_ptr<FontFamily>(new FontFamily(mLangId, mVariant, std::move(fonts)));
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
H A DFontRequestEmojiCompatConfigTest.java138 verifyLoaderOnFailedCalled(STATUS_WRONG_CERTIFICATES, null /* fonts */,
179 verifyLoaderOnFailedCalled(STATUS_OK, null /* fonts */,
198 final FontInfo[] fonts = new FontInfo[] {
202 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
218 final FontInfo[] fonts = new FontInfo[] {
222 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
241 final FontInfo[] fonts = new FontInfo[] {
245 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
270 final FontInfo[] fonts = new FontInfo[] {
274 doReturn(new FontFamilyResult(STATUS_OK, fonts))
493 verifyLoaderOnFailedCalled(final int statusCode, final FontInfo[] fonts, String exceptionMessage) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DFontsContract.java34 import android.graphics.fonts.FontVariationAxis;
136 * Constant used to represent a result was retrieved successfully. The given fonts will be
261 * is set and {@link #getFonts} returns an empty array, it means there were no fonts
294 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { argument
296 mFonts = fonts;
341 sThread = new HandlerThread("fonts", Process.THREAD_PRIORITY_BACKGROUND);
535 final FontInfo[] fonts = result.getFonts();
536 if (fonts == null || fonts.length == 0) {
541 for (final FontInfo font : fonts) {
620 buildTypeface(@onNull Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) argument
644 prepareFontData(Context context, FontInfo[] fonts, CancellationSignal cancellationSignal) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java32 import android.graphics.fonts.FontVariationAxis;
86 * bold, depending on what fonts are installed. Call getStyle() to know
112 static final String FONTS_CONFIG = "fonts.xml";
382 public Builder(@NonNull FontsContract.FontInfo[] fonts, argument
384 mFonts = fonts;
649 // No fonts are avaialble. No need to create new Typeface and returns fallback
857 * family has multiple fonts, the closest to the regular weight and upright font
861 * If the first family has multiple fonts, the closest to the regular weight and
892 String fullPathName = "/system/fonts/" + font.getFontName();
/frameworks/support/compat/java/android/support/v4/provider/
H A DFontsContractCompat.java131 * Constant used to represent a result was retrieved successfully. The given fonts will be
179 new SelfDestructiveThread("fonts", Process.THREAD_PRIORITY_BACKGROUND,
352 * is set and {@link #getFonts} returns an empty array, it means there were no fonts
381 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { argument
383 mFonts = fonts;
528 final FontInfo[] fonts = result.getFonts();
529 if (fonts == null || fonts.length == 0) {
539 for (final FontInfo font : fonts) {
567 fonts);
603 buildTypeface(@onNull Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) argument
622 prepareFontData(Context context, FontInfo[] fonts, CancellationSignal cancellationSignal) argument
[all...]
/frameworks/base/tools/aapt/
H A DResource.cpp1302 sp<ResourceTypeSet> fonts; local
1338 !applyFileOverlay(bundle, assets, &fonts, "font") ||
1373 if (fonts != NULL) {
1374 err = makeFileResources(bundle, assets, &table, fonts, "font");
1654 if (fonts != NULL) {
1655 ResourceDirIterator it(fonts, String8("font"));
1657 // fonts can be resources other than xml.

Completed in 1622 milliseconds