Home
last modified time | relevance | path

Searched refs:style (Results 1 – 25 of 141) sorted by relevance

123456

/cts/hostsidetests/theme/app/src/android/theme/app/
DTestConfiguration.java34 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo,
36 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_Dialog,
38 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_Dialog_MinWidth,
40 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar,
42 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar_MinWidth,
44 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_DialogWhenLarge,
46 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_DialogWhenLarge_NoActionBar,
48 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_InputMethod,
50 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_NoActionBar,
52 new ThemeInfo(ThemeInfo.HOLO, android.R.style.Theme_Holo_NoActionBar_Fullscreen,
[all …]
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultTest.java34 assertActionBar(android.R.style.Theme_DeviceDefault); in testGetActionBar_DeviceDefault()
38 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog); in testGetActionBar_DeviceDefault_Dialog()
42 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_MinWidth); in testGetActionBar_DeviceDefault_MinWidth()
46 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar); in testGetActionBar_DeviceDefault_Dialog_NoActionBar()
50 assertNoActionBar(android.R.style.Theme_DeviceDefault_Dialog_NoActionBar_MinWidth); in testGetActionBar_DeviceDefault_Dialog_NoActionBar_MinWidth()
54 assertActionBarWhenLarge(android.R.style.Theme_DeviceDefault_DialogWhenLarge); in testGetActionBar_DeviceDefault_DialogWhenLarge()
58 assertNoActionBar(android.R.style.Theme_DeviceDefault_DialogWhenLarge_NoActionBar); in testGetActionBar_DeviceDefault_DialogWhenLarge_NoActionBar()
63 assertNoActionBar(android.R.style.Theme_DeviceDefault_InputMethod); in testGetActionBar_DeviceDefault_InputMethod()
67 assertActionBar(android.R.style.Theme_DeviceDefault_Light); in testGetActionBar_DeviceDefault_Light()
71 assertActionBar(android.R.style.Theme_DeviceDefault_Light_DarkActionBar); in testGetActionBar_DeviceDefault_Light_DarkActionBar()
[all …]
DThemeRebaseTest.java70 mTheme.applyStyle(R.style.RebaseTestThemeBase, false); in testConfigChangeAndRebase()
74 mTheme.applyStyle(R.style.RebaseTestThemeOverlay, true); in testConfigChangeAndRebase()
94 mTheme.applyStyle(R.style.RebaseTestThemeBase, false); in testNoConfigChangeDoesNothing()
98 mTheme.applyStyle(R.style.RebaseTestThemeOverlay, true); in testNoConfigChangeDoesNothing()
/cts/tests/tests/widget/src/android/widget/cts/
DWidgetAttributeTest.kt76 assertEquals(R.style.MyToolbarStyle, stackToolbar1padding[1]) in testGetAttributeResolutionStack()
77 assertEquals(R.style.MyToolbarStyleParent, stackToolbar1padding[2]) in testGetAttributeResolutionStack()
82 assertEquals(R.style.MyToolbarStyle, stackToolbar1titleMarginEnd[1]) in testGetAttributeResolutionStack()
83 assertEquals(R.style.MyToolbarStyleParent, stackToolbar1titleMarginEnd[2]) in testGetAttributeResolutionStack()
92 assertEquals(R.style.ExplicitStyle1, stackToolbar2padding[1]) in testGetAttributeResolutionStack()
93 assertEquals(R.style.ParentOfExplicitStyle1, stackToolbar2padding[2]) in testGetAttributeResolutionStack()
94 assertEquals(R.style.MyToolbarStyle, stackToolbar2padding[3]) in testGetAttributeResolutionStack()
95 assertEquals(R.style.MyToolbarStyleParent, stackToolbar2padding[4]) in testGetAttributeResolutionStack()
100 assertEquals(R.style.ExplicitStyle1, stackToobar2titleMarginEnd[1]) in testGetAttributeResolutionStack()
101 assertEquals(R.style.ParentOfExplicitStyle1, stackToobar2titleMarginEnd[2]) in testGetAttributeResolutionStack()
[all …]
DCalendarViewTest.java89 new CalendarView(mActivity, null, 0, android.R.style.Widget_DeviceDefault_CalendarView); in testConstructor()
92 android.R.style.Widget_DeviceDefault_Light_CalendarView); in testConstructor()
94 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_CalendarView); in testConstructor()
96 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_Light_CalendarView); in testConstructor()
274 assertEquals(R.style.TextAppearance_WithColor, in testAppearanceMaterial()
276 assertEquals(R.style.TextAppearance_WithColorGreen, in testAppearanceMaterial()
281 mCalendarViewMaterial.setDateTextAppearance(R.style.TextAppearance_WithColorBlue); in testAppearanceMaterial()
282 mCalendarViewMaterial.setWeekDayTextAppearance(R.style.TextAppearance_WithColorMagenta); in testAppearanceMaterial()
285 assertEquals(R.style.TextAppearance_WithColorBlue, in testAppearanceMaterial()
287 assertEquals(R.style.TextAppearance_WithColorMagenta, in testAppearanceMaterial()
[all …]
DRatingBarTest.java66 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar); in testConstructor()
67 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Indicator); in testConstructor()
68 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Small); in testConstructor()
69 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar); in testConstructor()
70 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Indicator); in testConstructor()
71 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Small); in testConstructor()
72 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar); in testConstructor()
73 … new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Indicator); in testConstructor()
74 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Small); in testConstructor()
DSpinnerTest.java99 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
102 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
105 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
108 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
111 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
114 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
117 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
120 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
123 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
126 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
[all …]
DImageButtonTest.java56 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_ImageButton); in testConstructor()
57 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_ImageButton); in testConstructor()
58 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_ImageButton); in testConstructor()
59 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_Light_ImageButton); in testConstructor()
DProgressBarTest.java104 new ProgressBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_ProgressBar); in testConstructor()
107 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Horizontal); in testConstructor()
110 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Inverse); in testConstructor()
113 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Large); in testConstructor()
116 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Large_Inverse); in testConstructor()
119 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small); in testConstructor()
122 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small_Inverse); in testConstructor()
125 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small_Title); in testConstructor()
127 new ProgressBar(mActivity, null, 0, android.R.style.Widget_Material_Light_ProgressBar); in testConstructor()
130 android.R.style.Widget_Material_Light_ProgressBar_Horizontal); in testConstructor()
[all …]
DSeekBarTest.java74 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_SeekBar); in testConstructor()
76 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_SeekBar); in testConstructor()
78 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_SeekBar); in testConstructor()
80 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_Light_SeekBar); in testConstructor()
DRadioButtonTest.java69 android.R.style.Widget_DeviceDefault_CompoundButton_RadioButton); in testConstructor()
71 android.R.style.Widget_DeviceDefault_Light_CompoundButton_RadioButton); in testConstructor()
73 android.R.style.Widget_Material_CompoundButton_RadioButton); in testConstructor()
75 android.R.style.Widget_Material_Light_CompoundButton_RadioButton); in testConstructor()
DTextViewFontWeightTest.java97 private static void assertFontSelected(TextView tv, FontStyle style) { in assertFontSelected() argument
105 assertEquals(style.getWeight(), typeface.getWeight()); in assertFontSelected()
106 assertEquals(style.isItalic(), typeface.isItalic()); in assertFontSelected()
127 assertEquals(style.getWeight(), fontStyle.getWeight()); in assertFontSelected()
128 assertEquals(style.isItalic(), fontStyle.isItalic()); in assertFontSelected()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java128 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer()
129 int weight = style.first.intValue(); in testBuilder_buffer()
130 boolean italic = style.second.booleanValue(); in testBuilder_buffer()
149 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_ttc()
150 int weight = style.first.intValue(); in testBuilder_buffer_ttc()
151 boolean italic = style.second.booleanValue(); in testBuilder_buffer_ttc()
171 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_vf()
172 int weight = style.first.intValue(); in testBuilder_buffer_vf()
173 boolean italic = style.second.booleanValue(); in testBuilder_buffer_vf()
195 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_override()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DTextAppearanceSpanTest.java17 package android.text.style.cts;
36 import android.text.style.TextAppearanceSpan;
171 android.text.cts.R.style.textAppearanceWithFontWeight); in testGetTextFontWeight()
175 android.text.cts.R.style.textAppearanceWithNoAttributes); in testGetTextFontWeight()
182 android.text.cts.R.style.textAppearanceWithTextLocales); in testGetTextLocales()
190 android.text.cts.R.style.textAppearanceWithShadow); in testGetShadowColor()
194 android.text.cts.R.style.textAppearanceWithNoAttributes); in testGetShadowColor()
201 android.text.cts.R.style.textAppearanceWithShadow); in testGetShadowDx()
205 android.text.cts.R.style.textAppearanceWithNoAttributes); in testGetShadowDx()
212 android.text.cts.R.style.textAppearanceWithShadow); in testGetShadowDy()
[all …]
DMetricAffectingSpanTest.java17 package android.text.style.cts;
24 import android.text.style.CharacterStyle;
25 import android.text.style.MetricAffectingSpan;
26 import android.text.style.SuperscriptSpan;
DCharacterStyleTest.java17 package android.text.style.cts;
25 import android.text.style.CharacterStyle;
26 import android.text.style.MetricAffectingSpan;
27 import android.text.style.SuperscriptSpan;
DTabStopSpan_StandardTest.java17 package android.text.style.cts;
21 import android.text.style.TabStopSpan;
22 import android.text.style.TabStopSpan.Standard;
DLeadingMarginSpan_StandardTest.java17 package android.text.style.cts;
22 import android.text.style.LeadingMarginSpan;
23 import android.text.style.LeadingMarginSpan.Standard;
/cts/tests/tests/content/src/android/content/res/cts/
DPrimitiveTest.java46 tryEnum(R.style.TestEnum1, 1); in testEnum()
47 tryEnum(R.style.TestEnum2, 2); in testEnum()
48 tryEnum(R.style.TestEnum10, 10); in testEnum()
49 tryEnum(R.style.TestEnum1_EmptyInherit, 1); in testEnum()
63 tryFlag(R.style.TestFlag1, 0x1); in testFlags()
64 tryFlag(R.style.TestFlag2, 0x2); in testFlags()
65 tryFlag(R.style.TestFlag31, 0x40000000); in testFlags()
66 tryFlag(R.style.TestFlag1And2, 0x3); in testFlags()
67 tryFlag(R.style.TestFlag1And2And31, 0x40000003); in testFlags()
DTypedArrayTest.java68 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
79 R.style.StyleA, R.styleable.style1); in testSourceResourceIdFromStyle()
81 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromStyle()
82 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromStyle()
83 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromStyle()
84 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromStyle()
86 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type17, 0)); in testSourceResourceIdFromStyle()
105 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromLayout()
106 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromLayout()
107 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromLayout()
[all …]
DResources_ThemeTest.java87 mResTheme.applyStyle(R.style.Theme_InlineString, false); in testObtainStyledAttributesWithInlineStringInTheme()
108 theme.applyStyle(R.style.Theme_OrientationDependent, true); in testGetChangingConfigurations()
112 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true); in testGetChangingConfigurations()
135 theme.applyStyle(R.style.Theme_LayoutIsRTL, true); in testRebase()
158 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testGetDrawable()
176 theme.applyStyle(R.style.Theme_Empty, false /*force*/); in testEmptyDoesNotGetOverriden()
184 theme.applyStyle(R.style.Whatever, false /*force*/); in testEmptyDoesNotGetOverriden()
190 theme.applyStyle(R.style.Whatever, true /*force*/); in testEmptyDoesNotGetOverriden()
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java52 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in createFullFamilyTypeface()
53 final int weight = style.first.intValue(); in createFullFamilyTypeface()
54 final boolean italic = style.second.booleanValue(); in createFullFamilyTypeface()
70 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testSingleFont_path()
71 final int weight = style.first.intValue(); in testSingleFont_path()
72 final boolean italic = style.second.booleanValue(); in testSingleFont_path()
85 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testSingleFont_ttc()
86 final int weight = style.first.intValue(); in testSingleFont_ttc()
87 final boolean italic = style.second.booleanValue(); in testSingleFont_ttc()
101 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testSingleFont_vf()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java77 assertEquals(R.style.ExplicitStyle1, view1.getExplicitStyle()); in testGetExplicitStyle()
80 assertEquals(R.style.ExplicitStyle2, view2.getExplicitStyle()); in testGetExplicitStyle()
86 assertEquals(android.R.style.TextAppearance_Material_Large, view4.getExplicitStyle()); in testGetExplicitStyle()
102 assertEquals(R.style.ExplicitStyle1, stackView1[1]); in testGetAttributeResolutionStack()
103 assertEquals(R.style.ParentOfExplicitStyle1, stackView1[2]); in testGetAttributeResolutionStack()
118 assertEquals(R.style.ExplicitStyle1, in testGetAttributeSourceResourceMap()
120 assertEquals(R.style.ParentOfExplicitStyle1, in testGetAttributeSourceResourceMap()
DContextThemeWrapperTest.java68 new ContextThemeWrapper(mContext, R.style.TextAppearance); in testConstructor()
78 contextThemeWrapper.setTheme(R.style.TextAppearance); in testAccessTheme()
91 theme.applyStyle(R.style.TextAppearance, true); in testSetTheme()
104 new MockContextThemeWrapper(mContext, R.style.TextAppearance); in testGetSystemService()
126 R.style.TextAppearance)); in testAttachBaseContext()
163 expected.applyStyle(R.style.TextAppearance, true); in verifyIdenticalTextAppearanceStyle()
/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java30 import android.text.style.AlignmentSpan;
31 import android.text.style.BackgroundColorSpan;
32 import android.text.style.BulletSpan;
33 import android.text.style.ForegroundColorSpan;
34 import android.text.style.QuoteSpan;
35 import android.text.style.StrikethroughSpan;
36 import android.text.style.StyleSpan;
37 import android.text.style.SubscriptSpan;
38 import android.text.style.SuperscriptSpan;
39 import android.text.style.TypefaceSpan;
[all …]

123456