Home
last modified time | relevance | path

Searched refs:ITALIC (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp114 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
120 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
145 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
153 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
178 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
186 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
211 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
220 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
247 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
256 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
[all …]
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp712 if (slant == FontStyle::Slant::ITALIC) { in slantToString()
737 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F() local
742 FontStyle(NORMAL, ITALIC), // 2 in TEST_F()
743 FontStyle(BOLD, ITALIC), // 3 in TEST_F()
753 FontStyle(THIN, ITALIC), // 6 in TEST_F()
754 FontStyle(LIGHT, ITALIC), // 7 in TEST_F()
755 FontStyle(NORMAL, ITALIC), // 8 in TEST_F()
756 FontStyle(MEDIUM, ITALIC), // 9 in TEST_F()
757 FontStyle(BOLD, ITALIC), // 10 in TEST_F()
758 FontStyle(BLACK, ITALIC), // 11 in TEST_F()
[all …]
DFontCollectionItemizeTest.cpp128 const FontStyle kItalicStyle = FontStyle(FontStyle::Slant::ITALIC); in TEST()
130 const FontStyle kBoldItalicStyle = FontStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST()
700 FontStyle kItalicStyle(FontStyle::Slant::ITALIC); in TEST()
701 FontStyle kBoldItalicStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST()
/frameworks/base/core/java/android/text/style/
DStyleSpan.java171 boolean italic = (want & Typeface.ITALIC) != 0; in apply()
182 if ((fake & Typeface.ITALIC) != 0) { in apply()
DTypefaceSpan.java178 if ((fake & Typeface.ITALIC) != 0) { in applyFontFamily()
DTextAppearanceSpan.java494 final boolean italic = (style & Typeface.ITALIC) != 0; in updateMeasureState()
506 if ((fake & Typeface.ITALIC) != 0) { in updateMeasureState()
/frameworks/base/core/tests/coretests/src/android/provider/
DTestFontsProvider.java41 static final boolean ITALIC = false; field in TestFontsProvider
85 FontsContract.Columns.WEIGHT, FontsContract.Columns.ITALIC, in query()
DFontsContractTest.java89 assertEquals(TestFontsProvider.ITALIC, font.isItalic()); in testGetFontFromProvider_resultOK()
138 assertEquals(TestFontsProvider.ITALIC, font.isItalic()); in testGetFontFromProvider_resultFontUnavailable()
158 assertEquals(TestFontsProvider.ITALIC, font.isItalic()); in testGetFontFromProvider_resultMalformedQuery()
166 FontsContract.Columns.WEIGHT, FontsContract.Columns.ITALIC, in testGetFontFromProvider_resultFontNotFoundSecondRow()
198 FontsContract.Columns.WEIGHT, FontsContract.Columns.ITALIC, in testGetFontFromProvider_resultFontNotFoundOtherRow()
DMockFontProvider.java175 Columns.ITALIC, Columns.RESULT_CODE, Columns.FILE_ID}); in buildCursor()
183 builder.add(Columns.ITALIC, font.getItalic()); in buildCursor()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java62 Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC, Typeface.BOLD_ITALIC,
103 assertTrue("style", mFaces[4].getStyle() == Typeface.ITALIC); in testStyles()
228 "sample-italic", Typeface.create(res.getFont(R.font.samplefont4), Typeface.ITALIC)); in testSetSystemFontMap()
249 fontMap.get("sample-italic"), Typeface.create("sample-italic", Typeface.ITALIC)); in testSetSystemFontMap()
/frameworks/base/rs/java/android/renderscript/
DFont.java91 ITALIC, enumConstant
144 case ITALIC: in getFontFileName()
/frameworks/minikin/include/minikin/
DFontStyle.h41 ITALIC = true, enumerator
/frameworks/base/graphics/java/android/graphics/
DTypeface.java199 @IntDef(value = {NORMAL, BOLD, ITALIC, BOLD_ITALIC})
206 public static final int ITALIC = 2; field in Typeface
269 return (mStyle & ITALIC) != 0; in isItalic()
339 fontBuilder.setSlant(fontFile.getItalic() == FontFileResourceEntry.ITALIC in createFromResources()
661 (mItalic == RESOLVE_BY_FONT_TABLE) ? (base.mStyle & ITALIC) != 0 : mItalic == 1; in resolveFallbackTypeface()
1371 create((String) null, Typeface.ITALIC),
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java50 Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC, Typeface.BOLD_ITALIC
/frameworks/base/core/java/android/text/
DHtml.java522 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
627 if ((s & Typeface.ITALIC) != 0) { in withinParagraph()
873 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
875 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
877 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
879 end(mSpannableStringBuilder, Italic.class, new StyleSpan(Typeface.ITALIC)); in handleEndTag()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java75 Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC, Typeface.BOLD_ITALIC
/frameworks/base/core/java/android/provider/
DFontsContract.java128 public static final String ITALIC = "font_italic"; field in FontsContract.Columns
850 Columns.WEIGHT, Columns.ITALIC, Columns.RESULT_CODE }, in getFontFromProvider() argument
862 final int italicColumnIndex = cursor.getColumnIndex(Columns.ITALIC); in getFontFromProvider()
/frameworks/base/native/android/
Dsystem_fonts.cpp268 font->style().slant() == minikin::FontStyle::Slant::ITALIC, in ASystemFontIterator_open()
340 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java88 public static final int ITALIC = 1; field in FontResourcesParser.FontFileResourceEntry
DStringBlock.java249 buffer.setSpan(new StyleSpan(Typeface.ITALIC), in applyStyles()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp148 bool isFakeItalic = wanted.slant() == FontStyle::Slant::ITALIC && in computeFakery()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp262 uint32_t isItalic = font->font->style().slant() == minikin::FontStyle::Slant::ITALIC ? 1 : 0; in Font_getPackedStyle()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java608 spannableString.setSpan(new StyleSpan(Typeface.ITALIC), start, end, in applyStyles()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java697 new StyleSpan(android.graphics.Typeface.ITALIC), in applyStyleSpan()
/frameworks/base/core/java/android/widget/
DSwitch.java424 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setSwitchTypeface()

12