/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
D | FontRequestEmojiCompatConfigTest.java | 59 import androidx.core.provider.FontsContractCompat.FontInfo; 167 verifyLoaderOnFailedCalled(STATUS_OK, new FontInfo[] {}, in testLoad_resultNotFound() 191 final FontInfo[] fonts = new FontInfo[] { in testLoad_success() 192 new FontInfo(Uri.fromFile(file), 0 /* ttc index */, 400 /* weight */, in testLoad_success() 210 final FontInfo[] fonts = new FontInfo[] { in testLoad_retryPolicy() 211 new FontInfo(Uri.fromFile(file), 0 /* ttc index */, 400 /* weight */, in testLoad_retryPolicy() 232 final FontInfo[] fonts = new FontInfo[] { in testLoad_keepRetryingAndGiveUp() 233 new FontInfo(Uri.fromFile(file), 0 /* ttc index */, 400 /* weight */, in testLoad_keepRetryingAndGiveUp() 260 final FontInfo[] fonts = new FontInfo[] { in testLoad_keepRetryingAndFail() 261 new FontInfo(uri, 0 /* ttc index */, 400 /* weight */, in testLoad_keepRetryingAndFail() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | FontFamily_Delegate.java | 76 private static final Map<String, FontInfo> sCache = 77 new LinkedHashMap<String, FontInfo>(CACHE_SIZE) { 79 protected boolean removeEldestEntry(Map.Entry<String, FontInfo> eldest) { 84 public FontInfo put(String key, FontInfo value) { 86 FontInfo removed = remove(key); 95 private static final class FontInfo { class in FontFamily_Delegate 109 FontInfo fontInfo = (FontInfo) o; in equals() 139 private Map<FontInfo, Font> mFonts = new LinkedHashMap<>(); 204 FontInfo desiredStyle = new FontInfo(); in getFont() 213 FontInfo bestFont = null; in getFont() [all …]
|
D | BidiRenderer.java | 24 import android.graphics.Paint_Delegate.FontInfo; 174 List<FontInfo> fontInfos = mPaint.getFonts(); in renderScript() 297 …private static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fon… in getScriptRuns() 315 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { in getScriptFont() 316 for (FontInfo fontInfo : fonts) { in getScriptFont()
|
D | Paint_Delegate.java | 66 /*package*/ static final class FontInfo { class in Paint_Delegate 70 FontInfo(@NonNull Font font, @NonNull java.awt.FontMetrics fontMetrics) { in FontInfo() method in Paint_Delegate.FontInfo 85 private List<FontInfo> mFonts; 127 public List<FontInfo> getFonts() { in getFonts() 146 List<FontInfo> infoList = StreamSupport.stream(typeface.getFonts(mFontVariant).spliterator in getFonts() 582 List<FontInfo> fonts = delegate.getFonts(); in nAscent() 600 List<FontInfo> fonts = delegate.getFonts(); in nDescent() 630 List<FontInfo> fonts = delegate.getFonts(); in nGetFontMetricsInt() 1300 private static FontInfo getFontInfo(@Nullable Font font, float textSize, in getFontInfo() 1313 return new FontInfo(transformedFont, in getFontInfo() [all …]
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
D | TypefaceCompatBaseImpl.java | 31 import androidx.core.provider.FontsContractCompat.FontInfo; 70 protected FontInfo findBestInfo(FontInfo[] fonts, int style) { in findBestInfo() 71 return findBestFont(fonts, style, new StyleExtractor<FontInfo>() { in findBestInfo() 73 public int getWeight(FontInfo info) { in findBestInfo() 78 public boolean isItalic(FontInfo info) { in findBestInfo() 106 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) { 111 FontInfo font = findBestInfo(fonts, style);
|
D | TypefaceCompatApi21Impl.java | 33 import androidx.core.provider.FontsContractCompat.FontInfo; 65 @NonNull FontInfo[] fonts, int style) { in createFromFontInfo() 69 final FontInfo bestFont = findBestInfo(fonts, style); in createFromFontInfo()
|
D | TypefaceCompatApi24Impl.java | 35 import androidx.core.provider.FontsContractCompat.FontInfo; 133 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) { in createFromFontInfo() 137 for (final FontInfo font : fonts) { in createFromFontInfo()
|
D | TypefaceCompat.java | 39 import androidx.core.provider.FontsContractCompat.FontInfo; 155 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) { in createFromFontInfo()
|
D | TypefaceCompatApi26Impl.java | 227 @NonNull FontsContractCompat.FontInfo[] fonts, int style) { in createFromFontInfo() 234 final FontsContractCompat.FontInfo bestFont = findBestInfo(fonts, style); in createFromFontInfo() 253 for (FontsContractCompat.FontInfo font : fonts) { in createFromFontInfo()
|
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/ |
D | FontsContractCompatTest.java | 51 import androidx.core.provider.FontsContractCompat.FontInfo; 143 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultOK() 147 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK() 159 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() 163 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields() 172 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() 176 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFound() 184 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultFontUnavailable() 189 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontUnavailable() 197 FontInfo[] fonts = FontsContractCompat.getFontFromProvider( in testGetFontFromProvider_resultMalformedQuery() [all …]
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | FontsContractTest.java | 36 import android.provider.FontsContract.FontInfo; 76 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultOK() 80 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK() 95 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_providerDoesntReturnAllFields() 99 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields() 111 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontNotFound() 115 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFound() 124 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultFontUnavailable() 129 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontUnavailable() 144 FontInfo[] fonts = FontsContract.getFontFromProvider( in testGetFontFromProvider_resultMalformedQuery() [all …]
|
D | FontsContractE2ETest.java | 35 import android.provider.FontsContract.FontInfo;
|
/frameworks/base/core/java/android/provider/ |
D | FontsContract.java | 181 public static class FontInfo { class in FontsContract 199 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo() method in FontsContract.FontInfo 295 private final FontInfo[] mFonts; 298 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() 307 public @NonNull FontInfo[] getFonts() { in getFonts() 543 final FontInfo[] fonts = result.getFonts(); in requestFonts() 549 for (final FontInfo font : fonts) { in requestFonts() 608 FontInfo[] fonts = getFontFromProvider( in fetchFonts() 629 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) { in buildTypeface() 652 private static Map<Uri, ByteBuffer> prepareFontData(Context context, FontInfo[] fonts, in prepareFontData() [all …]
|
/frameworks/support/compat/src/main/java/androidx/core/provider/ |
D | FontsContractCompat.java | 327 public static class FontInfo { class in FontsContractCompat 345 public FontInfo(@NonNull Uri uri, @IntRange(from = 0) int ttcIndex, in FontInfo() method in FontsContractCompat.FontInfo 424 private final FontInfo[] mFonts; 428 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { in FontFamilyResult() 437 public FontInfo[] getFonts() { in getFonts() 584 final FontInfo[] fonts = result.getFonts(); in requestFont() 595 for (final FontInfo font : fonts) { in requestFont() 661 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) { in buildTypeface() 679 public static Map<Uri, ByteBuffer> prepareFontData(Context context, FontInfo[] fonts, in prepareFontData() 683 for (FontInfo font : fonts) { in prepareFontData() [all …]
|
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/ |
D | FontRequestEmojiCompatConfig.java | 225 private FontsContractCompat.FontInfo retrieveFontInfo() { in retrieveFontInfo() 235 final FontsContractCompat.FontInfo[] fonts = result.getFonts(); in retrieveFontInfo() 291 final FontsContractCompat.FontInfo font = retrieveFontInfo(); in createMetadata() 340 @NonNull FontsContractCompat.FontInfo font) throws NameNotFoundException { in buildTypeface() 342 new FontsContractCompat.FontInfo[] { font }); in buildTypeface()
|
/frameworks/layoutlib/rename_font/ |
D | build_font_single.py | 41 class FontInfo(object): class 135 font = FontInfo()
|
D | build_font.py | 43 class FontInfo(object): class 151 font = FontInfo()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 346 private FontsContract.FontInfo[] mFonts; 408 public Builder(@NonNull FontsContract.FontInfo[] fonts, in Builder() 640 for (FontsContract.FontInfo font : mFonts) { in build()
|
/frameworks/support/compat/api_legacy/ |
D | 28.0.0-alpha1.txt | 1166 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 1186 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 1193 public static class FontsContractCompat.FontInfo {
|
D | 26.1.0.txt | 946 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 966 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 973 public static class FontsContractCompat.FontInfo {
|
D | current.txt | 1168 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 1188 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 1195 public static class FontsContractCompat.FontInfo {
|
D | 27.1.0.txt | 982 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 1002 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 1009 public static class FontsContractCompat.FontInfo {
|
D | 27.0.0.txt | 934 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 954 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 961 public static class FontsContractCompat.FontInfo {
|
D | 26.0.0.txt | 946 …ontext, android.os.CancellationSignal, android.support.v4.provider.FontsContractCompat.FontInfo[]); 966 method public android.support.v4.provider.FontsContractCompat.FontInfo[] getFonts(); 973 public static class FontsContractCompat.FontInfo {
|
/frameworks/support/compat/api/ |
D | current.txt | 1213 …ent.Context, android.os.CancellationSignal, androidx.core.provider.FontsContractCompat.FontInfo[]); 1233 method public androidx.core.provider.FontsContractCompat.FontInfo[] getFonts(); 1240 public static class FontsContractCompat.FontInfo {
|