/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/ |
H A D | ResourcesCompatTest.java | 301 ResourcesCompat.getFont(mContext, -1); 306 Typeface font = ResourcesCompat.getFont(mContext, R.font.samplefont); 338 ResourcesCompat.getFont(mContext, R.font.samplefont, callback, null); 348 Typeface font = ResourcesCompat.getFont(mContext, R.font.samplexmlfont); 359 ResourcesCompat.getFont(mContext, R.font.samplexmlfont, callback, null); 369 Typeface font = ResourcesCompat.getFont(mContext, R.font.samplexmldownloadedfont); 385 ResourcesCompat.getFont(mContext, R.font.samplexmldownloadedfont, callback, null); 399 ResourcesCompat.getFont(mContext, R.font.invalid_xmlfamily)); 405 assertNull(ResourcesCompat.getFont(mContext, R.font.invalid_xmlempty)); 413 Typeface font = ResourcesCompat.getFont(mContex [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | TypefaceTest.java | 121 res.getFont(R.font.samplefont), 122 res.getFont(R.font.samplefont2), 123 res.getFont(R.font.samplefont3), 124 res.getFont(R.font.samplefont4), 125 res.getFont(R.font.samplexmlfont),
|
/frameworks/minikin/tests/stresstest/ |
H A D | FontFamilyTest.cpp | 43 hb_font_t* hbFont = family->getFont(0)->baseFont().get();
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
H A D | AppCompatRadioButtonTest.java | 56 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont);
|
H A D | AppCompatTextViewTest.java | 213 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); 221 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplexmlfont); 245 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); 253 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplexmlfont); 261 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont); 269 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplexmlfont);
|
H A D | AppCompatButtonTest.java | 102 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont);
|
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionItemizeTest.cpp | 1530 EXPECT_EQ(familyA->getFont(0), runs[0].fakedFont.font); 1533 EXPECT_EQ(familyB->getFont(0), runs[0].fakedFont.font); 1554 EXPECT_EQ(hasCmapFormat14Family->getFont(0), runs[0].fakedFont.font); 1557 EXPECT_EQ(noCmapFormat14Family->getFont(0), runs[0].fakedFont.font); 1572 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); 1574 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); 1577 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); 1579 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font); 1582 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font); 1584 EXPECT_EQ(textEmojiFamily->getFont( [all...] |
H A D | LayoutTest.cpp | 398 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(nGlyphs - i - 1)); 429 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(i)); 431 EXPECT_EQ(ltrLayout.getFont(i), defaultRtlLayout.getFont(i));
|
/frameworks/support/compat/src/main/java/androidx/core/content/res/ |
H A D | ResourcesCompat.java | 186 * {@link #getFont(Context, int, FontCallback, Handler)} instead. 199 * @see #getFont(Context, int, FontCallback, Handler) 202 public static Typeface getFont(@NonNull Context context, @FontRes int id) method in class:ResourcesCompat 292 public static void getFont(@NonNull Context context, @FontRes int id, method in class:ResourcesCompat 311 public static Typeface getFont(@NonNull Context context, @FontRes int id, TypedValue value, method in class:ResourcesCompat
|
/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinUtils.h | 71 const minikin::MinikinFont* nextFont = layout.getFont(i);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 344 Font font = ffd.getFont(weight, isItalic); 358 Font font2 = ffd2.getFont(weight, isItalic); 430 Font font = ffd.getFont(weight, isItalic); 456 Font font2 = ffd2.getFont(weight, isItalic);
|
H A D | BidiRenderer.java | 325 return Font.getFont(Font.SERIF);
|
H A D | FontFamily_Delegate.java | 203 public Font getFont(int desiredWeight, boolean isItalic) { method in class:FontFamily_Delegate 251 * {@link #getFont(int, boolean)} returns an empty list, it means that an error occurred while
|
/frameworks/support/core/ktx/src/main/java/androidx/core/content/res/ |
H A D | TypedArray.kt | 141 * @see TypedArray.getFont 146 return getFont(index)
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | TintTypedArray.java | 110 public Typeface getFont(@StyleableRes int index, int style, method in class:TintTypedArray 119 return ResourcesCompat.getFont(mContext, resourceId, mTypedValue, style, fontCallback);
|
H A D | AppCompatTextHelper.java | 258 mFontTypeface = a.getFont(fontFamilyId, mStyle, replyCallback);
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 146 const Font* getFont(size_t index) const { return &mFonts[index]; } function in class:minikin::FontFamily
|
H A D | Layout.h | 110 const MinikinFont* getFont(int i) const;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 379 public static Typeface getFont(String fontName, BridgeContext context, Theme theme, boolean method in class:ResourceHelper 399 public static Typeface getFont(ResourceValue value, BridgeContext context, Theme theme) { method in class:ResourceHelper 404 return getFont(value.getValue(), context, theme, value.isFramework());
|
/frameworks/base/core/java/android/text/style/ |
H A D | TextAppearanceSpan.java | 74 mTypeface = a.getFont(com.android.internal.R.styleable.TextAppearance_fontFamily);
|
/frameworks/rs/ |
H A D | rsContext.h | 142 Font * getFont() {return mFont.get();} function in class:android::renderscript::Context
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | BridgeTypedArray.java | 735 public Typeface getFont(int index) { method in class:BridgeTypedArray 741 return ResourceHelper.getFont(value, mContext, mTheme);
|
H A D | Resources_Delegate.java | 824 static Typeface getFont(Resources resources, int id) throws method in class:Resources_Delegate 828 return ResourceHelper.getFont(value.getSecond(), getContext(resources), null); 838 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws method in class:Resources_Delegate 842 return ResourceHelper.getFont(outValue.string.toString(), getContext(resources), null,
|
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 363 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { method in class:Resources 380 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { method in class:Resources 392 array.getFont(i);
|
H A D | TypedArray.java | 974 public Typeface getFont(@StyleableRes int index) { method in class:TypedArray 985 return mResources.getFont(value, value.resourceId);
|