Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/fonts/
DFontStyle.java223 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in FontStyle
243 return Math.abs((getWeight() - o.getWeight())) / 100 + (getSlant() == o.getSlant() ? 0 : 2); in getMatchScore()
DFontFamily.java128 return font.getStyle().getWeight() | (font.getStyle().getSlant() << 16); in makeStyleIdentifier()
DSystemFonts.java194 .setWeight(fontConfig.getWeight()) in createFontFamily()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java88 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultOK()
104 assertEquals(400, font.getWeight()); in testGetFontFromProvider_providerDoesntReturnAllFields()
137 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultFontUnavailable()
157 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultMalformedQuery()
181 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
189 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
214 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
222 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
230 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.java72 assertEquals(400, font1.getWeight()); in testParse()
78 assertEquals(400, font2.getWeight()); in testParse()
84 assertEquals(800, font3.getWeight()); in testParse()
90 assertEquals(800, font4.getWeight()); in testParse()
/frameworks/base/core/java/android/text/
DFontConfig.java111 public int getWeight() { in getWeight() method in FontConfig.Font
173 public int getWeight() { in getWeight() method in FontConfig.Alias
/frameworks/base/graphics/java/android/graphics/
DTypeface.java194 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in Typeface
256 if (fontFile.getWeight() != Typeface.RESOLVE_BY_FONT_TABLE) { in createFromResources()
257 fontBuilder.setWeight(fontFile.getWeight()); in createFromResources()
612 ? font.getStyle().getWeight() : mWeight; in build()
791 final int weight = mStyle == null ? 400 : mStyle.getWeight();
1125 final int weight = alias.getWeight();
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java149 assertEquals(weight, result.getWeight()); in testMultithreadCacheStressTest()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java103 public int getWeight() { in getWeight() method in FontResourcesParser.FontFileResourceEntry
/frameworks/base/core/java/android/provider/
DFontsContract.java231 public @IntRange(from = 1, to = 1000) int getWeight() { in getWeight() method in FontsContract.FontInfo
645 .setWeight(fontInfo.getWeight()) in buildTypeface()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java417 fontInfo.mWeight = FontUtilities.getFont2D(font).getWeight();
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...