Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/fonts/
DFontStyle.java227 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in FontStyle
247 return Math.abs((getWeight() - o.getWeight())) / 100 + (getSlant() == o.getSlant() ? 0 : 2); in getMatchScore()
DFontFamily.java195 return font.getStyle().getWeight() | (font.getStyle().getSlant() << 16); in makeStyleIdentifier()
DFont.java245 mWeight = font.getStyle().getWeight(); in Builder()
DSystemFonts.java255 .setWeight(fontConfig.getStyle().getWeight()) in createFontFamily()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java89 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultOK()
105 assertEquals(400, font.getWeight()); in testGetFontFromProvider_providerDoesntReturnAllFields()
138 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultFontUnavailable()
158 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultMalformedQuery()
182 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
190 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
215 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
223 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
231 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
DMockFontProvider.java120 public int getWeight() { in getWeight() method in MockFontProvider.Font
182 builder.add(Columns.WEIGHT, font.getWeight()); in buildCursor()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java74 assertEquals(400, font1.getWeight()); in testParse()
80 assertEquals(400, font2.getWeight()); in testParse()
86 assertEquals(800, font3.getWeight()); in testParse()
92 assertEquals(800, font4.getWeight()); in testParse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationLayoutParamsTest.java150 assertThat(copy.getWeight() == params.getWeight()).isTrue(); in testCopyConstruction()
173 assertThat(copy.getWeight() == params.getWeight()).isTrue(); in testCopyConstructionWithUnspecifiedMargin()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java172 assertEquals(weight, result.getWeight()); in testMultithreadCacheStressTest()
215 assertEquals(original.getWeight(), copied.getWeight()); in testSerialize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationLayoutEngine.java296 if (viewEntry.mLayoutParams.getWeight() != mLayoutParams.getWeight()) { in compareTo()
297 return mLayoutParams.getWeight() > viewEntry.mLayoutParams.getWeight() ? 1 : -1; in compareTo()
DComplicationLayoutParams.java300 public int getWeight() { in getWeight() method in ComplicationLayoutParams
/frameworks/base/core/java/android/text/
DFontConfig.java289 dest.writeInt(mStyle.getWeight()); in writeToParcel()
415 public int getWeight() { in getWeight() method in FontConfig.Font
416 return getStyle().getWeight(); in getWeight()
512 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in FontConfig.Alias
/frameworks/base/core/java/android/text/style/
DStyleSpan.java169 Math.max(tf.getWeight() + fontWeightAdjustment, FontStyle.FONT_WEIGHT_MIN), in apply()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java257 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in Typeface
347 if (fontFile.getWeight() != Typeface.RESOLVE_BY_FONT_TABLE) { in createFromResources()
348 fontBuilder.setWeight(fontFile.getWeight()); in createFromResources()
703 ? font.getStyle().getWeight() : mWeight; in build()
879 final int weight = mStyle == null ? 400 : mStyle.getWeight();
1241 final int weight = alias.getWeight();
/frameworks/base/core/java/android/graphics/fonts/
DFontUpdateRequest.java100 dest.writeInt(mFontStyle.getWeight()); in writeToParcel()
134 out.attributeInt(null, ATTR_WEIGHT, font.getFontStyle().getWeight()); in writeToXml()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java110 public int getWeight() { in getWeight() method in FontResourcesParser.FontFileResourceEntry
/frameworks/base/core/java/android/provider/
DFontsContract.java243 public @IntRange(from = 1, to = 1000) int getWeight() { in getWeight() method in FontsContract.FontInfo
676 .setWeight(fontInfo.getWeight()) in buildTypeface()
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java249 assertThat(family.getFontList().get(0).getStyle().getWeight()) in updateFontFamily()
255 assertThat(family.getFontList().get(1).getStyle().getWeight()).isEqualTo(FONT_WEIGHT_BOLD); in updateFontFamily()
/frameworks/base/core/java/android/view/inputmethod/
DTextAppearanceInfo.java223 textWeight = typeface.getWeight(); in createFromTextView()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerShellCommand.java237 + ", width = " + alias.getWeight()); in dumpFontConfig()
/frameworks/base/config/
Dboot-profile.txt28 Landroid/text/FontConfig$Font;->getWeight()I
41 Landroid/graphics/fonts/FontStyle;->getWeight()I
Dboot-image-profile.txt7879 HSPLandroid/graphics/fonts/FontStyle;->getWeight()I
13205 HSPLandroid/provider/FontsContract$FontInfo;->getWeight()I
14671 HSPLandroid/text/FontConfig$Font;->getWeight()I
/frameworks/base/core/api/
Dtest-current.txt3429 method @IntRange(from=0, to=1000) public int getWeight();
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/boot/
Dboot-image-profile.txt7876 HSPLandroid/graphics/fonts/FontStyle;->getWeight()I
13202 HSPLandroid/provider/FontsContract$FontInfo;->getWeight()I
14607 HSPLandroid/text/FontConfig$Font;->getWeight()I

12