Home
last modified time | relevance | path

Searched refs:getFont (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp241 EXPECT_TRUE(layout.getFont(0)); in TEST()
254 EXPECT_TRUE(layout.getFont(0) && layout.getFont(0) == layout.getFont(1)); in TEST()
270 EXPECT_TRUE(layout.getFont(0)); in TEST()
283 EXPECT_TRUE(layout.getFont(0)); in TEST()
285 EXPECT_EQ(layout.getFont(0), layout.getFont(i)) << i; in TEST()
329 EXPECT_TRUE(layout.getFont(0)); in TEST()
342 EXPECT_TRUE(layout.getFont(0) && layout.getFont(0) == layout.getFont(1)); in TEST()
358 EXPECT_TRUE(layout.getFont(0)); in TEST()
377 EXPECT_TRUE(layout.getFont(0)); in TEST()
415 EXPECT_TRUE(layout.getFont(0)); in TEST()
[all …]
DFontCollectionItemizeTest.cpp1535 EXPECT_EQ(familyA->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1538 EXPECT_EQ(familyB->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1558 EXPECT_EQ(hasCmapFormat14Family->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1561 EXPECT_EQ(noCmapFormat14Family->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1575 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1577 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1580 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1582 EXPECT_EQ(colorEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1585 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
1587 EXPECT_EQ(textEmojiFamily->getFont(0), runs[0].fakedFont.font.get()); in TEST()
[all …]
DLayoutTest.cpp350 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(nGlyphs - i - 1)); in TEST_F()
378 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(i)); in TEST_F()
380 EXPECT_EQ(ltrLayout.getFont(i), defaultRtlLayout.getFont(i)); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java143 res.getFont(R.font.samplefont), in testMultithreadCacheStressTest()
144 res.getFont(R.font.samplefont2), in testMultithreadCacheStressTest()
145 res.getFont(R.font.samplefont3), in testMultithreadCacheStressTest()
146 res.getFont(R.font.samplefont4), in testMultithreadCacheStressTest()
147 res.getFont(R.font.samplexmlfont), in testMultithreadCacheStressTest()
235 "sans-serif", Typeface.create(res.getFont(R.font.samplefont), Typeface.NORMAL), in testSetSystemFontMap()
236 "serif", Typeface.create(res.getFont(R.font.samplefont2), Typeface.NORMAL), in testSetSystemFontMap()
237 "monospace", Typeface.create(res.getFont(R.font.samplefont3), Typeface.NORMAL), in testSetSystemFontMap()
238 "sample", Typeface.create(res.getFont(R.font.samplefont4), Typeface.NORMAL), in testSetSystemFontMap()
239 "sample-italic", Typeface.create(res.getFont(R.font.samplefont4), Typeface.ITALIC)); in testSetSystemFontMap()
/frameworks/base/graphics/java/android/graphics/text/
DPositionedGlyphs.java133 public Font getFont(@IntRange(from = 0) int index) { in getFont() method in PositionedGlyphs
307 if (!getFont(i).equals(that.getFont(i))) return false; in equals()
318 getGlyphId(i), getGlyphX(i), getGlyphY(i), getFont(i)); in hashCode()
332 + " font = " + getFont(i) + " ]"); in toString()
/frameworks/base/core/tests/coretests/src/android/text/
DTextShaperTest.java41 Font font = glyphs.getFont(0); in testFontWithPath()
44 assertWithMessage(message).that(glyphs.getFont(0).getFile()) in testFontWithPath()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DTextInterpolator.kt299 var baseFont = base.getFont(start) in <lambda>()
300 var targetFont = target.getFont(start) in <lambda>()
306 val nextBaseFont = base.getFont(i) in <lambda>()
307 val nextTargetFont = target.getFont(i) in <lambda>()
439 val newFont = newGlyphs.getFont(run.start) in <lambda>()
444 require(newFont === newGlyphs.getFont(i)) { in <lambda>()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp43 hb_font_t* hbFont = family->getFont(0)->baseFont().get(); in TEST_P()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DResourcesPerfTest.java115 public void getFont() { in getFont() method in ResourcesPerfTest
118 mRes.getFont(R.font.samplefont); in getFont()
/frameworks/minikin/include/minikin/
DFontFamily.h69 const Font* getFont(size_t index) const { return mFonts[index].get(); } in getFont() function
DLayout.h133 const Font* getFont(int i) const { return mGlyphs[i].font.font.get(); } in getFont() function
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DFontInterpolatorTest.kt35 .getFont(0) in <lambda>()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceCreatePerfTest.java144 Typeface face = r.getFont(R.font.samplefont); in testCreate_fromResources()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFamily.java350 public @NonNull Font getFont(@IntRange(from = 0) int index) { in getFont() method in FontFamily
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp186 … Typeface::resolveDefault(nullptr)->fFontCollection->getFamilyAt(0)->getFont(0)->baseTypeface(); in defaultFont()
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp59 const minikin::Font* font = layout.getFont(i); in shapeTextRun()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java482 public static Typeface getFont(String fontName, BridgeContext context, Theme theme, boolean in getFont() method in ResourceHelper
502 public static Typeface getFont(ResourceValue value, BridgeContext context, Theme theme) { in getFont() method in ResourceHelper
507 return getFont(value.getValue(), context, theme, value.isFramework()); in getFont()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java867 static Typeface getFont(Resources resources, int id) throws in getFont() method in Resources_Delegate
871 return ResourceHelper.getFont(value.second, getContext(resources), null); in getFont()
881 static Typeface getFont(Resources resources, TypedValue outValue, int id) throws in getFont() method in Resources_Delegate
885 return ResourceHelper.getFont(resVal, getContext(resources), null); in getFont()
DBridgeTypedArray.java717 public Typeface getFont(int index) { in getFont() method in BridgeTypedArray
723 return ResourceHelper.getFont(value, mContext, mTheme); in getFont()
/frameworks/rs/
DrsContext.h142 Font * getFont() {return mFont.get();} in getFont() function
DrsContext.cpp78 mFont.set(con->getFont()); in PushState()
219 ObjectBaseRef<Font> lastFont(getFont()); in displayDebugStats()
/frameworks/base/core/java/android/provider/
DFontsContract.java703 Font bestFont = family.getFont(0); in buildTypeface()
706 final Font candidate = family.getFont(i); in buildTypeface()
/frameworks/base/core/java/android/content/res/
DTypedArray.java1040 public Typeface getFont(@StyleableRes int index) { in getFont() method in TypedArray
1052 return mResources.getFont(value, value.resourceId); in getFont()
DResources.java481 @NonNull public Typeface getFont(@FontRes int id) throws NotFoundException { in getFont() method in Resources
498 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { in getFont() method in Resources
510 array.getFont(i); in preloadFonts()
/frameworks/base/core/java/android/text/style/
DTextAppearanceSpan.java118 mTypeface = a.getFont(com.android.internal.R.styleable.TextAppearance_fontFamily); in TextAppearanceSpan()

12