Home
last modified time | relevance | path

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

12

/frameworks/support/compat/src/main/java/androidx/core/graphics/
DTypefaceCompatBaseImpl.java47 int getWeight(T t); in getWeight() method
59 final int score = (Math.abs(extractor.getWeight(font) - targetWeight) * 2) in findBestFont()
73 public int getWeight(FontInfo info) { in findBestInfo()
74 return info.getWeight(); in findBestInfo()
126 public int getWeight(FontFileResourceEntry entry) {
127 return entry.getWeight();
DTypefaceCompatApi24Impl.java144 if (!addFontWeightStyle(family, buffer, font.getTtcIndex(), font.getWeight(), in createFromFontInfo()
163 if (!addFontWeightStyle(family, buffer, e.getTtcIndex(), e.getWeight(), e.isItalic())) { in createFromFontFamilyFilesResourceEntry()
DTypefaceCompatApi26Impl.java212 fontFile.getTtcIndex(), fontFile.getWeight(), fontFile.isItalic() ? 1 : 0, in createFromFontFamilyFilesResourceEntry()
242 .setWeight(bestFont.getWeight()) in createFromFontInfo()
259 font.getTtcIndex(), font.getWeight(), font.isItalic() ? 1 : 0); in createFromFontInfo()
/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/
DFontResourcesParserCompatTest.java76 assertEquals(400, font1.getWeight()); in testParse()
82 assertEquals(400, font2.getWeight()); in testParse()
88 assertEquals(700, font3.getWeight()); in testParse()
94 assertEquals(700, font4.getWeight()); in testParse()
119 assertEquals(400, font1.getWeight()); in testParseAndroidAttrs()
125 assertEquals(400, font2.getWeight()); in testParseAndroidAttrs()
131 assertEquals(700, font3.getWeight()); in testParseAndroidAttrs()
137 assertEquals(700, font4.getWeight()); in testParseAndroidAttrs()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java86 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultOK()
102 assertEquals(400, font.getWeight()); in testGetFontFromProvider_providerDoesntReturnAllFields()
135 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultFontUnavailable()
155 assertEquals(TestFontsProvider.NORMAL_WEIGHT, font.getWeight()); in testGetFontFromProvider_resultMalformedQuery()
179 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
187 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundSecondRow()
212 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
220 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
228 assertEquals(400, font.getWeight()); in testGetFontFromProvider_resultFontNotFoundOtherRow()
DMockFontProvider.java124 public int getWeight() { in getWeight() method in MockFontProvider.Font
186 builder.add(Columns.WEIGHT, font.getWeight()); in buildCursor()
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java70 assertEquals(400, font1.getWeight()); in testParse()
76 assertEquals(400, font2.getWeight()); in testParse()
82 assertEquals(800, font3.getWeight()); in testParse()
88 assertEquals(800, font4.getWeight()); in testParse()
/frameworks/base/core/java/android/text/
DFontConfig.java106 public int getWeight() { in getWeight() method in FontConfig.Font
167 public int getWeight() { in getWeight() method in FontConfig.Alias
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
DAvgWeightByAge.java47 public float getWeight() { in getWeight() method in AvgWeightByAge
DUser.java94 public float getWeight() { in getWeight() method in User
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/
DMockFontProvider.java93 public int getWeight() { in getWeight() method in MockFontProvider.Font
206 font.getWeight(), font.getItalic(), font.getResultCode(), font.getFileId() }); in buildCursor()
DFontsContractCompatTest.java149 assertEquals(700, font.getWeight()); in testGetFontFromProvider_resultOK()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java171 public @IntRange(from = 0, to = 1000) int getWeight() { in getWeight() method in Typeface
262 fontFile.getWeight(), fontFile.getItalic(), in createFromResources()
646 font.getTtcIndex(), font.getAxes(), font.getWeight(), in build()
983 font.getWeight(), font.isItalic() ? STYLE_ITALIC : STYLE_NORMAL)) { in createFontFamily()
1113 int weight = alias.getWeight(); in buildSystemFallback()
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
DPreviewProgram.java102 public int getWeight() { in getWeight() method in PreviewProgram
/frameworks/support/tv-provider/src/androidTest/java/androidx/tvprovider/media/tv/
DPreviewProgramTest.java347 assertEquals(programA.getWeight(), programB.getWeight()); in compareProgram()
DPreviewChannelHelperTest.java144 assertEquals(programA.getWeight(), programB.getWeight()); in compareProgram()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java150 assertEquals(weight, result.getWeight()); in testMultithreadCacheStressTest()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java99 public int getWeight() { in getWeight() method in FontResourcesParser.FontFileResourceEntry
/frameworks/support/compat/src/main/java/androidx/core/content/res/
DFontResourcesParserCompat.java124 public int getWeight() { in getWeight() method in FontResourcesParserCompat.FontFileResourceEntry
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DSimpleEntityReadWriteTest.java546 assertThat(mUserDao.loadByIds(3)[0].getWeight(), is(10f)); in multipleInParamsFollowedByASingleParam_update()
548 assertThat(mUserDao.loadByIds(3)[0].getWeight(), is(3f)); in multipleInParamsFollowedByASingleParam_update()
/frameworks/layoutlib/bridge/src/android/graphics/
DTypeface_Delegate.java240 FontFamily_Delegate.addFont(fontFamily.mBuilderPtr, fullPathName, font.getWeight(), in createFontFamily()
/frameworks/base/core/java/android/provider/
DFontsContract.java234 public @IntRange(from = 1, to = 1000) int getWeight() { in getWeight() method in FontsContract.FontInfo
/frameworks/support/compat/src/main/java/androidx/core/provider/
DFontsContractCompat.java372 public @IntRange(from = 1, to = 1000) int getWeight() { in getWeight() method in FontsContractCompat.FontInfo
/frameworks/support/tv-provider/api_legacy/
D27.0.0.txt80 method public int getWeight();
D26.0.0.txt80 method public int getWeight();

12