Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java81 assertEquals(msg, style, Typeface.defaultFromStyle(style).getStyle()); in testDefaults()
99 assertTrue("style", mFaces[0].getStyle() == Typeface.NORMAL); in testStyles()
100 assertTrue("style", mFaces[1].getStyle() == Typeface.BOLD); in testStyles()
101 assertTrue("style", mFaces[2].getStyle() == Typeface.NORMAL); in testStyles()
102 assertTrue("style", mFaces[3].getStyle() == Typeface.BOLD); in testStyles()
103 assertTrue("style", mFaces[4].getStyle() == Typeface.ITALIC); in testStyles()
104 assertTrue("style", mFaces[5].getStyle() == Typeface.BOLD_ITALIC); in testStyles()
105 assertTrue("style", mFaces[6].getStyle() == Typeface.NORMAL); in testStyles()
165 assertEquals(style, result.getStyle()); in testMultithreadCacheStressTest()
212 assertEquals(original.getStyle(), copied.getStyle()); in testSerialize()
[all …]
/frameworks/base/core/java/android/text/style/
DStyleSpan.java121 public int getStyle() { in getStyle() method in StyleSpan
152 oldStyle = old.getStyle(); in apply()
176 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/
DFont.java243 mWeight = font.getStyle().getWeight(); in Builder()
244 mItalic = font.getStyle().getSlant(); in Builder()
592 public @NonNull FontStyle getStyle() { in getStyle() method in Font
809 return f.getStyle().equals(getStyle()) in paramEquals()
843 getStyle(), in hashCode()
857 + ", style=" + getStyle() in toString()
DFontFamily.java134 return font.getStyle().getWeight() | (font.getStyle().getSlant() << 16); in makeStyleIdentifier()
DSystemFonts.java176 .setWeight(fontConfig.getStyle().getWeight()) in createFontFamily()
177 .setSlant(fontConfig.getStyle().getSlant()) in createFontFamily()
/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/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/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/tests/UpdatableSystemFontTest/EmojiRenderingTestApp/src/com/android/emojirenderingtestapp/
DGetAvailableFontsTestActivity.java40 font.getStyle(); in onCreate()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordLogger.java392 public int getStyle() { in getStyle() method in NotificationRecordLogger.NotificationRecordPair
393 return getStyle(r.getSbn().getNotification().extras); in getStyle()
396 private int getStyle(@Nullable Bundle extras) { in getStyle() method in NotificationRecordLogger.NotificationRecordPair
DNotificationRecordLoggerImpl.java69 /* int32 style = 11 */ p.getStyle(), in writeNotificationReportedAtom()
/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/autofill/java/com/android/server/autofill/ui/
DInlineSuggestionFactory.java153 specFromHost.getStyle()).build(); in mergedInlinePresentation()
177 spec.getStyle()).build(); in createInlineSuggestionTooltip()
/frameworks/base/core/java/android/text/
DFontConfig.java284 public @NonNull FontStyle getStyle() { in getStyle() method in FontConfig.Font
346 return getStyle().getWeight(); in getWeight()
357 return getStyle().getSlant() == FontStyle.FONT_SLANT_ITALIC; in isItalic()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java258 public @Style int getStyle() { in getStyle() method in Typeface
356 int bestScore = normal.getMatchScore(bestFont.getStyle()); in createFromResources()
359 final int score = normal.getMatchScore(candidate.getStyle()); in createFromResources()
366 .setStyle(bestFont.getStyle()) in createFromResources()
691 ? font.getStyle().getWeight() : mWeight; in build()
693 ? font.getStyle().getSlant() : mItalic; in build()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java206 ((Notification.InboxStyle) (builder.getStyle())).getLines(); in testInbox()
254 (Notification.MessagingStyle) (builder.getStyle()); in testMessaging()
/frameworks/minikin/include/minikin/
DFontFamily.h72 FontStyle getStyle(size_t index) const { return mFonts[index]->style(); } in getStyle() function
/frameworks/base/core/java/android/provider/
DFontsContract.java704 int bestScore = normal.getMatchScore(bestFont.getStyle()); in buildTypeface()
707 final int score = normal.getMatchScore(candidate.getStyle()); in buildTypeface()
713 return new Typeface.CustomFallbackBuilder(family).setStyle(bestFont.getStyle()).build(); in buildTypeface()
/frameworks/base/core/java/android/graphics/fonts/
DFontFamilyUpdateRequest.java261 public FontStyle getStyle() { in getStyle() method in FontFamilyUpdateRequest.Font
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerShellCommand.java130 sb.append(font.getStyle()); in dumpSingleFontConfig()
273 sb.append(font.getStyle()); in dumpFont()
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java143 public @NonNull Bundle getStyle() { in getStyle() method in InlinePresentationSpec

12