Home
last modified time | relevance | path

Searched refs:getStyle (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java77 assertTrue("style", mFaces[0].getStyle() == Typeface.NORMAL); in testStyles()
78 assertTrue("style", mFaces[1].getStyle() == Typeface.BOLD); in testStyles()
79 assertTrue("style", mFaces[2].getStyle() == Typeface.NORMAL); in testStyles()
80 assertTrue("style", mFaces[3].getStyle() == Typeface.BOLD); in testStyles()
81 assertTrue("style", mFaces[4].getStyle() == Typeface.ITALIC); in testStyles()
82 assertTrue("style", mFaces[5].getStyle() == Typeface.BOLD_ITALIC); in testStyles()
83 assertTrue("style", mFaces[6].getStyle() == Typeface.NORMAL); in testStyles()
143 assertEquals(style, result.getStyle()); in testMultithreadCacheStressTest()
/frameworks/base/core/java/android/text/style/
DStyleSpan.java99 public int getStyle() { in getStyle() method in StyleSpan
120 oldStyle = old.getStyle(); in apply()
132 int fake = want & ~tf.getStyle(); in apply()
DTypefaceSpan.java169 style = old.getStyle(); in applyFontFamily()
172 int fake = style & ~styledTypeface.getStyle(); in applyFontFamily()
DQuoteSpan.java195 Paint.Style style = p.getStyle(); in drawLeadingMargin()
DTextAppearanceSpan.java474 style = tf.getStyle(); in updateMeasureState()
500 int fake = style & ~readyTypeface.getStyle(); in updateMeasureState()
DBulletSpan.java208 Paint.Style style = paint.getStyle(); in drawLeadingMargin()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFamily.java128 return font.getStyle().getWeight() | (font.getStyle().getSlant() << 16); in makeStyleIdentifier()
DFont.java470 public @NonNull FontStyle getStyle() { in getStyle() method in Font
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteRenderResourcesAdapter.java101 public RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) { in getStyle() method in RemoteRenderResourcesAdapter
102 return RemoteResourceValue.fromResourceValue(mDelegate.getStyle(reference)); in getStyle()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteRenderResourcesAdapter.java142 public StyleResourceValue getStyle(ResourceReference reference) { in getStyle() method in RemoteRenderResourcesAdapter
144 return mDelegate.getStyle(reference).toResourceValue(); in getStyle()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawableTest.java39 assertThat(drawable.mOutlinePaint.getStyle()).isEqualTo(Paint.Style.STROKE); in constructor_initPaint()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java199 public @Style int getStyle() { in getStyle() method in Typeface
277 int bestScore = normal.getMatchScore(bestFont.getStyle()); in createFromResources()
280 final int score = normal.getMatchScore(candidate.getStyle()); in createFromResources()
287 .setStyle(bestFont.getStyle()) in createFromResources()
612 ? font.getStyle().getWeight() : mWeight; in build()
614 ? font.getStyle().getSlant() : mItalic; in build()
/frameworks/layoutlib/bridge/src/android/graphics/
DBaseCanvas_Delegate.java222 int style = paintDelegate.getStyle(); in nDrawRect()
245 int style = paintDelegate.getStyle(); in nDrawOval()
279 int style = paintDelegate.getStyle(); in nDrawArc()
306 int style = paintDelegate.getStyle(); in nDrawRoundRect()
351 int style = paintDelegate.getStyle(); in nDrawDoubleRoundRect()
405 int style = paintDelegate.getStyle(); in nDrawPath()
DFontFamily_Delegate.java423 (FontUtilities.getFont2D(font).getStyle() & Font.ITALIC) != 0;
/frameworks/minikin/include/minikin/
DFontFamily.h49 FontStyle getStyle(size_t index) const { return mFonts[index].style(); } in getStyle() function
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteRenderResources.java56 …RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) throws Remo… in getStyle() method
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java205 ((Notification.InboxStyle) (builder.getStyle())).getLines(); in testInbox()
259 (Notification.MessagingStyle) (builder.getStyle()); in testMessaging()
/frameworks/base/core/java/android/provider/
DFontsContract.java673 int bestScore = normal.getMatchScore(bestFont.getStyle()); in buildTypeface()
676 final int score = normal.getMatchScore(candidate.getStyle()); in buildTypeface()
682 return new Typeface.CustomFallbackBuilder(family).setStyle(bestFont.getStyle()).build(); in buildTypeface()
/frameworks/base/core/java/android/text/
DTextLine.java806 final Paint.Style previousStyle = wp.getStyle();
893 Paint.Style previousStyle = wp.getStyle();
1316 && lp.getStyle() == rp.getStyle()
DHtml.java514 int s = ((StyleSpan) style[j]).getStyle(); in withinParagraph()
619 int s = ((StyleSpan) style[j]).getStyle(); in withinParagraph()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DSupportPreferencesUtil.java133 preferenceTheme = resources.getStyle( in getThemedContext()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp715 static jint getStyle(jlong objHandle) { in getStyle() function
717 return static_cast<jint>(obj->getStyle()); in getStyle()
1087 {"nGetStyle","(J)I", (void*) PaintGlue::getStyle},
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java644 style = mRenderResources.getStyle(ref); in internalObtainStyledAttributes()
789 item = mRenderResources.getStyle(value); in internalObtainStyledAttributes()
1091 return mRenderResources.getStyle(reference); in getStyleByDynamicId()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java1348 Paint.Style previousStyle = textPaint.getStyle(); in drawEdgeOutline()
1377 Paint.Style previousStyle = textPaint.getStyle(); in drawEdgeRaisedOrDepressed()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java255 mClockPlugin.setStyle(getPaint().getStyle()); in setClockPlugin()

12