Searched refs:style (Results 26 - 50 of 256) sorted by relevance

1234567891011

/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperSettingsActivity.java42 theme.applyStyle(com.android.internal.R.style.PreviewWallpaperSettings, true);
44 theme.applyStyle(com.android.internal.R.style.ActiveWallpaperSettings, true);
/frameworks/base/core/java/android/text/style/
H A DClickableSpan.java17 package android.text.style;
H A DLineBackgroundSpan.java17 package android.text.style;
H A DMaskFilterSpan.java17 package android.text.style;
H A DRasterizerSpan.java17 package android.text.style;
H A DLineHeightSpan.java17 package android.text.style;
H A DQuoteSpan.java17 package android.text.style;
82 Paint.Style style = p.getStyle();
90 p.setStyle(style);
H A DTextAppearanceSpan.java17 package android.text.style;
29 * Sets the text color, size, style, and typeface to match a TextAppearance
42 * <code>android.R.style.TextAppearance_Small</code>.
52 * for example, <code>android.R.style.TextAppearance_Small</code>,
99 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme,
110 * Makes text be drawn with the specified typeface, size, style,
113 public TextAppearanceSpan(String family, int style, int size, argument
116 mStyle = style;
207 * Returns the text style specified by this span, or <code>0</code>
231 int style
[all...]
H A DCharacterStyle.java17 package android.text.style;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBlurMaskFilter_Delegate.java58 /*package*/ static long nativeConstructor(float radius, int style) { argument
H A DTypeface_Delegate.java72 * Return a list of fonts that match the style and variant. The list is ordered according to
86 // Calculate the required weight based on style and weight of this typeface.
146 /*package*/ static synchronized long nativeCreateFromTypeface(long native_instance, int style) { argument
155 return sManager.addNewDelegate(new Typeface_Delegate(delegate.mFontFamilies, style,
210 private Typeface_Delegate(@NonNull FontFamily_Delegate[] fontFamilies, int style) { argument
211 this(fontFamilies, style, FontFamily_Delegate.DEFAULT_FONT_WEIGHT);
214 public Typeface_Delegate(@NonNull FontFamily_Delegate[] fontFamilies, int style, int weight) { argument
216 mStyle = style;
/frameworks/base/tools/aapt2/
H A DLinker_test.cpp80 std::unique_ptr<Style> style = util::make_unique<Style>(); local
81 style->entries.push_back(Style::Entry{
85 const Style* result = style.get();
87 std::move(style)));
96 std::unique_ptr<Style> style = util::make_unique<Style>(); local
97 style->entries.push_back(Style::Entry{
102 std::move(style)));
108 std::unique_ptr<Style> style = util::make_unique<Style>(); local
109 style->entries.push_back(Style::Entry{
114 const Style* result = style
127 std::unique_ptr<Style> style = util::make_unique<Style>(); local
[all...]
H A DDebug.cpp47 void visit(const Style& style, ValueVisitorArgs&) override {
48 std::cout << "(style)";
49 if (style.parent.name.isValid() || style.parent.id.isValid()) {
51 if (style.parent.name.isValid()) {
52 std::cout << style.parent.name << " ";
55 if (style.parent.id.isValid()) {
56 std::cout << style.parent.id;
60 for (const auto& entry : style.entries) {
149 // We've already visited this style
[all...]
H A DResourceParser_test.cpp100 EXPECT_TRUE(ResourceParser::parseStyleParentReference(u"@android:style/foo", &ref, &errStr));
103 EXPECT_TRUE(ResourceParser::parseStyleParentReference(u"@style/foo", &ref, &errStr));
106 EXPECT_TRUE(ResourceParser::parseStyleParentReference(u"?android:style/foo", &ref, &errStr));
109 EXPECT_TRUE(ResourceParser::parseStyleParentReference(u"?style/foo", &ref, &errStr));
112 EXPECT_TRUE(ResourceParser::parseStyleParentReference(u"android:style/foo", &ref, &errStr));
327 std::string input = "<style name=\"foo\" parent=\"@style/fu\">\n"
331 "</style>";
334 const Style* style = findResource<Style>(ResourceName{ local
336 ASSERT_NE(style, nullpt
352 const Style* style = findResource<Style>( local
363 const Style* style = findResource<Style>(ResourceName{ local
376 const Style* style = findResource<Style>(ResourceName{ local
388 const Style* style = findResource<Style>(ResourceName{ local
399 const Style* style = findResource<Style>(ResourceName{ local
[all...]
/frameworks/minikin/include/minikin/
H A DFontFamily.h63 // FontStyle represents all style information needed to select an actual font
98 inline hash_t hash_type(const FontStyle &style) { argument
99 return style.hash();
130 // Add font to family, extracting style information from the font
133 void addFont(MinikinFont* typeface, FontStyle style);
134 FakedFont getClosestMatch(FontStyle style) const;
148 void addFontLocked(MinikinFont* typeface, FontStyle style);
152 Font(MinikinFont* typeface, FontStyle style) : argument
153 typeface(typeface), style(style) { }
155 FontStyle style; member in class:android::FontFamily::Font
[all...]
H A DFontCollection.h40 void itemize(const uint16_t *string, size_t string_length, FontStyle style,
43 // Get the base font for the given style, useful for font-wide metrics.
44 MinikinFont* baseFont(FontStyle style);
47 FakedFont baseFontFaked(FontStyle style);
/frameworks/base/core/jni/
H A Dandroid_view_PointerIcon.cpp45 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument
47 gPointerIconClassInfo.getSystemIcon, contextObj, style);
49 ALOGW("An exception occurred while getting a pointer icon with style %d.", style);
74 outPointerIcon->style = env->GetIntField(loadedPointerIconObj,
92 int32_t style, PointerIcon* outPointerIcon) {
93 jobject pointerIconObj = android_view_PointerIcon_getSystemIcon(env, contextObj, style);
91 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument
/frameworks/base/core/java/android/view/
H A DPointerIcon.java78 private PointerIcon(int style) { argument
79 mStyle = style;
106 * Gets a system pointer icon for the given style.
107 * If style is not recognized, returns the default pointer icon.
110 * @param style The pointer icon style.
115 public static PointerIcon getSystemIcon(Context context, int style) { argument
120 if (style == STYLE_NULL) {
124 int styleIndex = getSystemIconStyleIndex(style);
136 Log.w(TAG, "Missing theme resources for pointer icon style "
427 getSystemIconStyleIndex(int style) argument
[all...]
/frameworks/base/core/java/android/text/
H A DHtml.java34 import android.text.style.AbsoluteSizeSpan;
35 import android.text.style.AlignmentSpan;
36 import android.text.style.CharacterStyle;
37 import android.text.style.ForegroundColorSpan;
38 import android.text.style.ImageSpan;
39 import android.text.style.ParagraphStyle;
40 import android.text.style.QuoteSpan;
41 import android.text.style.RelativeSizeSpan;
42 import android.text.style.StrikethroughSpan;
43 import android.text.style
[all...]
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp116 FontStyle style(weight, italic);
117 addFontLocked(typeface, style);
120 ALOGD("failed to analyze style");
125 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { argument
127 addFontLocked(typeface, style);
130 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { typeface->RefLocked(); argument
131 mFonts.push_back(Font(typeface, style));
155 FakedFont FontFamily::getClosestMatch(FontStyle style) const {
160 int match = computeMatch(font.style, style);
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DSpannedTest.java23 import android.text.style.*;
81 StyleSpan[] style;
83 style = s2.getSpans(1, 2, StyleSpan.class);
84 assertEquals(1, style.length);
85 assertEquals(1, s2.getSpanStart(style[0]));
86 assertEquals(2, s2.getSpanEnd(style[0]));
88 style = s2.getSpans(3, 7, StyleSpan.class);
89 assertEquals(1, style.length);
90 assertEquals(3, s2.getSpanStart(style[0]));
91 assertEquals(7, s2.getSpanEnd(style[
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java37 * The Typeface class specifies the typeface and intrinsic style of a font.
54 /** The NORMAL style of the default sans serif typeface. */
56 /** The NORMAL style of the default serif typeface. */
58 /** The NORMAL style of the default monospace typeface. */
89 /** Returns the typeface's intrinsic style attributes */
105 * Create a typeface object given a family name, and option style information.
108 * its "real" style characteristics are.
111 * @param style The style (normal, bold, italic) of the typeface.
115 public static Typeface create(String familyName, int style) { argument
133 create(Typeface family, int style) argument
172 defaultFromStyle(int style) argument
388 nativeCreateFromTypeface(long native_instance, int style) argument
[all...]
/frameworks/base/tools/layoutlib/rename_font/
H A Dbuild_font_single.py43 style = None variable in class:FontInfo
139 font.style = namerecord.text.strip()
171 style. If the style is 'Regular', it is appended only if the original font
173 if font.family is None or font.style is None:
174 raise InvalidFontException('Font doesn\'t have proper family name or style')
179 if font.style is 'Regular' and not font.ends_in_regular:
182 font.fullname = new_family + ' ' + font.style
190 keep the style info, to minimize the diff. """
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java119 // TODO: Move these to a default style.
267 final CaptionStyle style;
269 style = CaptionStyle.getCustomStyle(cr);
271 style = CaptionStyle.PRESETS[styleId];
275 mForegroundColor = style.hasForegroundColor() ?
276 style.foregroundColor : defStyle.foregroundColor;
277 mBackgroundColor = style.hasBackgroundColor() ?
278 style.backgroundColor : defStyle.backgroundColor;
279 mEdgeType = style.hasEdgeType() ? style
[all...]
/frameworks/base/core/jni/android/graphics/
H A DTypeface.cpp29 static jlong Typeface_createFromTypeface(JNIEnv* env, jobject, jlong familyHandle, jint style) { argument
31 TypefaceImpl* face = TypefaceImpl_createFromTypeface(family, (SkTypeface::Style)style);
35 face = TypefaceImpl_createFromTypeface(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic));

Completed in 664 milliseconds

1234567891011