Home
last modified time | relevance | path

Searched refs:getWeight (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontStyleTest.java42 assertEquals(FontStyle.FONT_WEIGHT_THIN, fs.getWeight()); in testBuilder_construct_withArgs()
46 assertEquals(350, fs.getWeight()); in testBuilder_construct_withArgs()
52 assertEquals(FontStyle.FONT_WEIGHT_NORMAL, new FontStyle().getWeight()); in testBuilder_defaultValues()
DFontTest.java163 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer()
185 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_ttc()
208 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_vf()
230 assertEquals(path, customWeight, font.getStyle().getWeight()); in testBuilder_buffer_override()
246 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer_override()
281 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_file()
308 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_file_ttc()
336 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_file_vf()
363 assertEquals(path, customWeight, font.getStyle().getWeight()); in testBuilder_file_override()
383 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_file_override()
[all …]
DFontManagerTest.java142 assertThat(alias.getWeight()).isAtLeast(0); in fontManager_getFontConfig_checkAlias()
143 assertThat(alias.getWeight()).isAtMost(1000); in fontManager_getFontConfig_checkAlias()
DNativeSystemFontTest.java47 font.mWeight = f.getStyle().getWeight(); in convertToDescriptors()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java704 assertEquals(100, paint.getTypeface().getWeight()); in testFontVariationSettings()
709 assertEquals(300, paint.getTypeface().getWeight()); in testFontVariationSettings()
714 assertEquals(800, paint.getTypeface().getWeight()); in testFontVariationSettings()
719 assertEquals(550, paint.getTypeface().getWeight()); in testFontVariationSettings()
769 assertEquals(400, typeface.getWeight()); in testTypefaceCreate_getWeight()
773 assertEquals(100, typeface.getWeight()); in testTypefaceCreate_getWeight()
777 assertEquals(100, typeface.getWeight()); in testTypefaceCreate_getWeight()
781 assertEquals(400, typeface.getWeight()); in testTypefaceCreate_getWeight()
785 assertEquals(400, typeface.getWeight()); in testTypefaceCreate_getWeight()
789 assertEquals(700, typeface.getWeight()); in testTypefaceCreate_getWeight()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontWeightTest.java60 public int getWeight() { in getWeight() method in TextViewFontWeightTest.FontStyle
105 assertEquals(style.getWeight(), typeface.getWeight()); in assertFontSelected()
127 assertEquals(style.getWeight(), fontStyle.getWeight()); in assertFontSelected()
DTextViewTest.java365 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextEnabled_typefaceNull_textIsBolded()
384 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
395 assertEquals(FontStyle.FONT_WEIGHT_BOLD, forceBoldedPaintTf.getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
396 assertEquals(defaultFontWeight, mTextView.getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_textIsBolded()
402 final int defaultFontWeight = mTextView.getTypeface().getWeight(); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
417 assertEquals(defaultFontWeight, forceUnboldedPaintTf.getWeight()); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
418 assertEquals(defaultFontWeight, mTextView.getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextDisabled_textIsUnbolded()
472 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_forceBoldTextEnabled_boldTypefaceIsBolded()
487 assertEquals(200, mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsLower()
504 mTextView.getPaint().getTypeface().getWeight()); in testFontWeightAdjustment_adjustmentIsNegative_fontWeightIsMinimum()
/cts/tests/tests/text/src/android/text/style/cts/
DStyleSpanTest.java104 assertEquals(tp.getTypeface().getWeight(), FontStyle.FONT_WEIGHT_MAX); in testUpdateMeasureState_withFontWeightAdjustment()
146 assertEquals(tp.getTypeface().getWeight(), FontStyle.FONT_WEIGHT_MAX); in testUpdateDrawState_withFontWeightAdjustment()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java230 assertEquals(400, font.getWeight()); in queryAttributes()
238 assertEquals(700, font.getWeight()); in queryAttributes()
326 assertEquals(400, font.getWeight()); in queryMandatoryFieldsOnly()
DMockFontProvider.java87 public int getWeight() { in getWeight() method in MockFontProvider.Font
198 builder.add(Columns.WEIGHT, font.getWeight()); in buildCursor()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPathTests.java41 typeface.getWeight(), in testTextPathWithOffset()
DFontRenderingTests.java71 typeface.getWeight(), in fontTestBody()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dtest-current.txt3411 method @IntRange(from=0, to=1000) public int getWeight();
Dsystem-current.txt17974 method @IntRange(from=0, to=1000) public int getWeight();
Dcurrent.txt17250 method @IntRange(from=0, to=1000) public int getWeight();
17991 method @IntRange(from=0, to=1000) public int getWeight();
37216 method @Deprecated @IntRange(from=1, to=1000) public int getWeight();