Searched refs:getFont (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/
H A DResourcesCompatTest.java301 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 DTypefaceTest.java121 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 DFontFamilyTest.cpp43 hb_font_t* hbFont = family->getFont(0)->baseFont().get();
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
H A DAppCompatRadioButtonTest.java56 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont);
H A DAppCompatTextViewTest.java213 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 DAppCompatButtonTest.java102 Typeface expected = ResourcesCompat.getFont(mActivity, R.font.samplefont);
/frameworks/minikin/tests/unittest/
H A DFontCollectionItemizeTest.cpp1530 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 DLayoutTest.cpp398 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 DResourcesCompat.java186 * {@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 DMinikinUtils.h71 const minikin::MinikinFont* nextFont = layout.getFont(i);
/frameworks/layoutlib/bridge/src/android/graphics/
H A DTypeface_Delegate.java344 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 DBidiRenderer.java325 return Font.getFont(Font.SERIF);
H A DFontFamily_Delegate.java203 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 DTypedArray.kt141 * @see TypedArray.getFont
146 return getFont(index)
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DTintTypedArray.java110 public Typeface getFont(@StyleableRes int index, int style, method in class:TintTypedArray
119 return ResourcesCompat.getFont(mContext, resourceId, mTypedValue, style, fontCallback);
H A DAppCompatTextHelper.java258 mFontTypeface = a.getFont(fontFamilyId, mStyle, replyCallback);
/frameworks/minikin/include/minikin/
H A DFontFamily.h146 const Font* getFont(size_t index) const { return &mFonts[index]; } function in class:minikin::FontFamily
H A DLayout.h110 const MinikinFont* getFont(int i) const;
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java379 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 DTextAppearanceSpan.java74 mTypeface = a.getFont(com.android.internal.R.styleable.TextAppearance_fontFamily);
/frameworks/rs/
H A DrsContext.h142 Font * getFont() {return mFont.get();} function in class:android::renderscript::Context
/frameworks/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java735 public Typeface getFont(int index) { method in class:BridgeTypedArray
741 return ResourceHelper.getFont(value, mContext, mTheme);
H A DResources_Delegate.java824 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 DResources.java363 @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 DTypedArray.java974 public Typeface getFont(@StyleableRes int index) { method in class:TypedArray
985 return mResources.getFont(value, value.resourceId);

Completed in 500 milliseconds

12