| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| D | TypefaceTest.java | 84 private static float measureText(String text, Typeface typeface) { in measureText() 128 Typeface typeface = createTypeface(Typeface.BOLD); in testIsBold() local 195 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); in testCreate() local 210 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); in testDefaultFromStyle() local 249 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset() local 263 Typeface typeface = Typeface.createFromFile(file); in testCreateFromFileByFileReference() local 287 Typeface typeface = Typeface.createFromFile(obtainPath()); in testCreateFromFileByFileName() local 314 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont() local 325 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2() local 345 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints() local [all …]
|
| D | TypefaceCustomFallbackBuilderTest.java | 115 final Typeface typeface = createFullFamilyTypeface(); in testFamily_defaultStyle() local 123 final Typeface typeface = createFullFamilyTypeface(); in testFamily_selectStyle() local 149 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()) in testFamily_selectStyleByBuilder() local 166 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()).build(); in testFamily_closestDefault() local 187 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallback() local 244 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallbackOverLocaleFallback() local
|
| D | Paint_TextBoundsTest.java | 65 Typeface typeface = Typeface.createFromAsset(am, "fonts/measurement/bbox.ttf"); in getPaint() local
|
| D | PaintTest.java | 2330 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_Cached() local 2344 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_Cached_EquivalentFontVariationSettings() local 2358 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_NotCachedForOtherConfig() local
|
| /cts/tests/tests/text/src/android/text/cts/ |
| D | BoringLayoutFallbackLineSpacingTest.java | 55 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing_Metrics() local 89 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing_Layout() local
|
| D | StaticLayoutFallbackLineSpacingTest.java | 52 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing() local
|
| D | FallbackLineSpacingTest.java | 50 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing() local
|
| D | TextRunAdvancesTest.java | 41 Typeface typeface = Typeface.createFromAsset(am, "fonts/textrunadvances.ttf"); in getPaint() local
|
| D | PrecomputedTextTest.java | 785 Typeface typeface = new Typeface.CustomFallbackBuilder( in getTestPaint() local
|
| /cts/tests/tests/graphics/src/android/graphics/fonts/ |
| D | FontTestUtil.java | 226 private static float measureChar(Typeface typeface, char c) { in measureChar() 302 private static int getSelectedFontStyle(Typeface typeface) { in getSelectedFontStyle() 319 public static Pair<Integer, Boolean> getSelectedStyle(Typeface typeface) { in getSelectedStyle() 329 public static String getSelectedFontPathInAsset(Typeface typeface) { in getSelectedFontPathInAsset() 339 public static int getSelectedTtcIndex(Typeface typeface) { in getSelectedTtcIndex() 349 public static String getSelectedVariationSettings(Typeface typeface) { in getSelectedVariationSettings()
|
| D | SystemFontsTest.java | 197 Typeface typeface = Typeface.create("sans-serif-condensed", Typeface.NORMAL); in testAdjustmentPreserveWidth() local
|
| D | FontTest.java | 1195 Typeface typeface = new Typeface.CustomFallbackBuilder( in fontIdentifier() local
|
| /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
| D | PathTests.java | 38 Typeface typeface = paint.getTypeface(); in testTextPathWithOffset() local
|
| D | TextViewHighContrastTextTests.kt | 62 private val typeface: Typeface by lazy { in <lambda>() constant in android.uirendering.cts.testclasses.TextViewHighContrastTextTests 63 var typeface = Typeface.create("sans-serif", Typeface.NORMAL) in <lambda>() variable
|
| D | FontRenderingTests.java | 58 final Typeface typeface = Typeface.create(family, style); in fontTestBody() local
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| D | TextViewFontWeightTest.java | 103 Typeface typeface = tv.getTypeface(); in assertFontSelected() local
|
| D | TextViewWithTransformationHandwritingTest.java | 105 Typeface typeface = Typeface.createFromAsset( in setupEditText() local
|
| D | TextViewHandwritingGestureTest.java | 134 Typeface typeface = Typeface.createFromAsset( in setup() local
|
| D | TextViewTest.java | 3802 Typeface typeface = Typeface.createFromAsset(context.getAssets(), "multiaxis.ttf"); in testSetGetFontVariationSettings_Api35() local 3872 Typeface typeface = Typeface.createFromAsset(context.getAssets(), "multiaxis.ttf"); in testSetGetFontVariationSettings() local
|
| /cts/tests/tests/text/src/android/text/style/cts/ |
| D | TypefaceSpanTest.java | 41 Typeface typeface = Typeface.create(FAMILY, Typeface.BOLD); in testConstructorFromTypeface() local
|
| /cts/tests/tests/graphics/src/android/graphics/text/cts/ |
| D | TextRunShaperTest.java | 199 Typeface typeface = new Typeface.CustomFallbackBuilder( in shapeText_FontCreateFromNative() local 228 Typeface typeface = in shapeText_FontCreateFromNative_Override() local
|
| D | MeasuredTextTest.java | 201 Typeface typeface = Typeface.createFromAsset(am, "fonts/measurement/bbox.ttf"); in testGetBounds_RTL() local
|
| /cts/tests/tests/provider/src/android/provider/cts/ |
| D | FontsContractTest.java | 112 public void onTypefaceRetrieved(Typeface typeface) { in onTypefaceRetrieved()
|
| /cts/tests/tests/content/src/android/content/res/cts/ |
| D | ResourcesTest.java | 1242 Typeface typeface = mResources.getFont(R.font.sample_downloadable_font); in testSystemFontFamilyReturnsSystemFont() local
|