Home
last modified time | relevance | path

Searched refs:FontInfo (Results 1 – 14 of 14) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java80 private static final Map<String, FontInfo> sCache =
81 new LinkedHashMap<String, FontInfo>(CACHE_SIZE) {
83 protected boolean removeEldestEntry(Map.Entry<String, FontInfo> eldest) {
88 public FontInfo put(String key, FontInfo value) {
90 FontInfo removed = remove(key);
99 public static final class FontInfo { class in FontFamily_Delegate
113 FontInfo fontInfo = (FontInfo) o; in equals()
144 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>();
209 FontInfo desiredStyle = new FontInfo(); in getFont()
218 FontInfo bestFont = null; in getFont()
[all …]
DBidiRenderer.java24 import android.graphics.Paint_Delegate.FontInfo;
171 List<FontInfo> fontInfos = mPaint.getFonts(); in renderScript()
317 …private static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fon… in getScriptRuns()
335 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptFont()
345 for (FontInfo fontInfo : fonts) { in getScriptFont()
DPaint_Delegate.java67 /*package*/ static final class FontInfo { class in Paint_Delegate
71 FontInfo(@NonNull Font font, @NonNull java.awt.FontMetrics fontMetrics) { in FontInfo() method in Paint_Delegate.FontInfo
86 private List<FontInfo> mFonts;
129 public List<FontInfo> getFonts() { in getFonts()
148 List<FontInfo> infoList = StreamSupport.stream(typeface.getFonts(mFontVariant).spliterator in getFonts()
572 List<FontInfo> fonts = delegate.getFonts(); in nAscent()
590 List<FontInfo> fonts = delegate.getFonts(); in nDescent()
620 List<FontInfo> fonts = delegate.getFonts(); in nGetFontMetricsInt()
1308 private static FontInfo getFontInfo(@Nullable Font font, float textSize, in getFontInfo()
1321 return new FontInfo(transformedFont, in getFontInfo()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java26 import android.graphics.FontFamily_Delegate.FontInfo;
61 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>();
116 FontInfo desiredStyle = new FontInfo();
125 FontInfo bestFont = null;
133 for (FontInfo font : mFonts.keySet()) {
172 FontInfo fontInfo = new FontInfo();
179 private void addFont(@NonNull FontInfo fontInfo) {
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java37 import android.provider.FontsContract.FontInfo;
78 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultOK()
82 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK()
97 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields()
101 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields()
113 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound()
117 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFound()
126 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontUnavailable()
131 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontUnavailable()
146 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultMalformedQuery()
[all …]
/frameworks/base/core/java/android/provider/
DFontsContract.java178 public static class FontInfo { class in FontsContract
196 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo() method in FontsContract.FontInfo
292 private final FontInfo[] mFonts;
295 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult()
304 public @NonNull FontInfo[] getFonts() { in getFonts()
540 final FontInfo[] fonts = result.getFonts(); in requestFonts()
546 for (final FontInfo font : fonts) { in requestFonts()
605 FontInfo[] fonts = getFontFromProvider( in fetchFonts()
626 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) { in buildTypeface()
638 for (FontInfo fontInfo : fonts) { in buildTypeface()
[all …]
/frameworks/layoutlib/rename_font/
Dbuild_font_single.py41 class FontInfo(object): class
142 font = FontInfo()
Dbuild_font.py43 class FontInfo(object): class
151 font = FontInfo()
/frameworks/av/media/libstagefright/timedtext/test/
DTimedTextUnitTest.cpp65 struct FontInfo { struct
172 FontInfo fontInfo; in TEST_P()
/frameworks/base/config/
Dpreloaded-classes3008 android.provider.FontsContract$FontInfo
Dboot-image-profile.txt12730 …roid/provider/FontsContract$FontFamilyResult;->getFonts()[Landroid/provider/FontsContract$FontInfo;
12732 HSPLandroid/provider/FontsContract$FontInfo;->getAxes()[Landroid/graphics/fonts/FontVariationAxis;
12733 HSPLandroid/provider/FontsContract$FontInfo;->getResultCode()I
12734 HSPLandroid/provider/FontsContract$FontInfo;->getTtcIndex()I
12735 HSPLandroid/provider/FontsContract$FontInfo;->getUri()Landroid/net/Uri;
12736 HSPLandroid/provider/FontsContract$FontInfo;->getWeight()I
12737 HSPLandroid/provider/FontsContract$FontInfo;->isItalic()Z
12739 …Context;Landroid/os/CancellationSignal;[Landroid/provider/FontsContract$FontInfo;)Landroid/graphic…
12741 …equest;Ljava/lang/String;Landroid/os/CancellationSignal;)[Landroid/provider/FontsContract$FontInfo;
12745 …epareFontData(Landroid/content/Context;[Landroid/provider/FontsContract$FontInfo;Landroid/os/Cance…
[all …]
Dhiddenapi-greylist-max-o.txt21338 Landroid/graphics/Typeface$Builder;-><init>([Landroid/provider/FontsContract$FontInfo;Ljava/util/Ma…
21346 Landroid/graphics/Typeface$Builder;->mFonts:[Landroid/provider/FontsContract$FontInfo;
55889 …roid/provider/FontsContract$FontFamilyResult;-><init>(I[Landroid/provider/FontsContract$FontInfo;)V
55890 Landroid/provider/FontsContract$FontFamilyResult;->mFonts:[Landroid/provider/FontsContract$FontInfo;
55892 Landroid/provider/FontsContract$FontInfo;-><init>(Landroid/net/Uri;I[Landroid/graphics/fonts/FontVa…
55893 Landroid/provider/FontsContract$FontInfo;->mAxes:[Landroid/graphics/fonts/FontVariationAxis;
55894 Landroid/provider/FontsContract$FontInfo;->mItalic:Z
55895 Landroid/provider/FontsContract$FontInfo;->mResultCode:I
55896 Landroid/provider/FontsContract$FontInfo;->mTtcIndex:I
55897 Landroid/provider/FontsContract$FontInfo;->mUri:Landroid/net/Uri;
[all …]
/frameworks/base/non-updatable-api/
Dcurrent.txt38488 …text, @Nullable android.os.CancellationSignal, @NonNull android.provider.FontsContract.FontInfo[]);
38507 method @NonNull public android.provider.FontsContract.FontInfo[] getFonts();
38515 public static class FontsContract.FontInfo {
/frameworks/base/api/
Dcurrent.txt38632 …text, @Nullable android.os.CancellationSignal, @NonNull android.provider.FontsContract.FontInfo[]);
38651 method @NonNull public android.provider.FontsContract.FontInfo[] getFonts();
38659 public static class FontsContract.FontInfo {