Home
last modified time | relevance | path

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

12345678

/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/hostsidetests/theme/app/src/android/theme/app/
DTestConfiguration.java31 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material,
33 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog,
35 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog_Alert,
37 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog_MinWidth,
39 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog_NoActionBar,
41 … new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog_NoActionBar_MinWidth,
43 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_Dialog_Presentation,
45 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_DialogWhenLarge,
47 … new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_DialogWhenLarge_NoActionBar,
49 new ThemeInfo(ThemeInfo.MATERIAL, android.R.style.Theme_Material_InputMethod,
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DWidgetAttributeTest.kt77 assertEquals(R.style.MyToolbarStyle, stackToolbar1padding[1]) in testGetAttributeResolutionStack()
78 assertEquals(R.style.MyToolbarStyleParent, stackToolbar1padding[2]) in testGetAttributeResolutionStack()
83 assertEquals(R.style.MyToolbarStyle, stackToolbar1titleMarginEnd[1]) in testGetAttributeResolutionStack()
84 assertEquals(R.style.MyToolbarStyleParent, stackToolbar1titleMarginEnd[2]) in testGetAttributeResolutionStack()
93 assertEquals(R.style.ExplicitStyle1, stackToolbar2padding[1]) in testGetAttributeResolutionStack()
94 assertEquals(R.style.ParentOfExplicitStyle1, stackToolbar2padding[2]) in testGetAttributeResolutionStack()
95 assertEquals(R.style.MyToolbarStyle, stackToolbar2padding[3]) in testGetAttributeResolutionStack()
96 assertEquals(R.style.MyToolbarStyleParent, stackToolbar2padding[4]) in testGetAttributeResolutionStack()
101 assertEquals(R.style.ExplicitStyle1, stackToobar2titleMarginEnd[1]) in testGetAttributeResolutionStack()
102 assertEquals(R.style.ParentOfExplicitStyle1, stackToobar2titleMarginEnd[2]) in testGetAttributeResolutionStack()
[all …]
DCalendarViewTest.java100 new CalendarView(mActivity, null, 0, android.R.style.Widget_DeviceDefault_CalendarView); in testConstructor()
103 android.R.style.Widget_DeviceDefault_Light_CalendarView); in testConstructor()
105 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_CalendarView); in testConstructor()
107 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_Light_CalendarView); in testConstructor()
285 assertEquals(R.style.TextAppearance_WithColor, in testAppearanceMaterial()
287 assertEquals(R.style.TextAppearance_WithColorGreen, in testAppearanceMaterial()
292 mCalendarViewMaterial.setDateTextAppearance(R.style.TextAppearance_WithColorBlue); in testAppearanceMaterial()
293 mCalendarViewMaterial.setWeekDayTextAppearance(R.style.TextAppearance_WithColorMagenta); in testAppearanceMaterial()
296 assertEquals(R.style.TextAppearance_WithColorBlue, in testAppearanceMaterial()
298 assertEquals(R.style.TextAppearance_WithColorMagenta, in testAppearanceMaterial()
[all …]
DRatingBarTest.java85 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar); in testConstructor()
86 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Indicator); in testConstructor()
87 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Small); in testConstructor()
88 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar); in testConstructor()
89 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Indicator); in testConstructor()
90 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Small); in testConstructor()
91 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar); in testConstructor()
92 … new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Indicator); in testConstructor()
93 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Small); in testConstructor()
DImageButtonTest.java65 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_ImageButton); in testConstructor()
66 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_ImageButton); in testConstructor()
67 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_ImageButton); in testConstructor()
68 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_Light_ImageButton); in testConstructor()
DSpinnerTest.java119 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
122 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
125 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
128 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
131 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
134 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
137 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
140 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
143 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
146 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java154 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer()
155 int weight = style.first.intValue(); in testBuilder_buffer()
156 boolean italic = style.second.booleanValue(); in testBuilder_buffer()
175 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_ttc()
176 int weight = style.first.intValue(); in testBuilder_buffer_ttc()
177 boolean italic = style.second.booleanValue(); in testBuilder_buffer_ttc()
197 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_vf()
198 int weight = style.first.intValue(); in testBuilder_buffer_vf()
199 boolean italic = style.second.booleanValue(); in testBuilder_buffer_vf()
221 for (Pair<Integer, Boolean> style : FontTestUtil.getAllStyles()) { in testBuilder_buffer_override()
[all …]
DFontFamilyUpdateRequestTest.java47 FontStyle style = new FontStyle(FONT_WEIGHT_NORMAL, FONT_SLANT_UPRIGHT); in font() local
52 postScriptName, style).setAxes(axes).setIndex(5).build(); in font()
54 assertThat(font.getStyle()).isEqualTo(style); in font()
60 new FontFamilyUpdateRequest.Font.Builder(null, style).setAxes(axes)); in font()
62 new FontFamilyUpdateRequest.Font.Builder("", style).setAxes(axes)); in font()
67 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font()
70 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font()
73 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style).setIndex(-1)); in font()
/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;
DTabStopSpan_StandardTest.java17 package android.text.style.cts;
21 import android.text.style.TabStopSpan;
22 import android.text.style.TabStopSpan.Standard;
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;
DLeadingMarginSpan_StandardTest.java17 package android.text.style.cts;
22 import android.text.style.LeadingMarginSpan;
23 import android.text.style.LeadingMarginSpan.Standard;
DEasyEditSpanTest.java17 package android.text.style.cts;
22 import android.text.style.EasyEditSpan;
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java284 checkValue(res, R.style.bag, in testAllEmptyConfigs()
291 checkValue(res, R.style.bag, in testAllEmptyConfigs()
299 checkValue(res, R.style.bag, in testAllEmptyConfigs()
306 checkValue(res, R.style.bag, in testAllEmptyConfigs()
313 checkValue(res, R.style.bag, in testAllEmptyConfigs()
320 checkValue(res, R.style.bag, in testAllEmptyConfigs()
327 checkValue(res, R.style.bag, in testAllEmptyConfigs()
334 checkValue(res, R.style.bag, in testAllEmptyConfigs()
341 checkValue(res, R.style.bag, in testAllEmptyConfigs()
348 checkValue(res, R.style.bag, in testAllEmptyConfigs()
[all …]
DPrimitiveTest.java62 tryEnum(R.style.TestEnum1, 1); in testEnum()
63 tryEnum(R.style.TestEnum2, 2); in testEnum()
64 tryEnum(R.style.TestEnum10, 10); in testEnum()
65 tryEnum(R.style.TestEnum1_EmptyInherit, 1); in testEnum()
80 tryFlag(R.style.TestFlag1, 0x1); in testFlags()
81 tryFlag(R.style.TestFlag2, 0x2); in testFlags()
82 tryFlag(R.style.TestFlag31, 0x40000000); in testFlags()
83 tryFlag(R.style.TestFlag1And2, 0x3); in testFlags()
84 tryFlag(R.style.TestFlag1And2And31, 0x40000003); in testFlags()
DTypedArrayTest.java87 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
98 R.style.StyleA, R.styleable.style1); in testSourceResourceIdFromStyle()
100 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type1, 0)); in testSourceResourceIdFromStyle()
101 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromStyle()
102 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromStyle()
103 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromStyle()
105 assertEquals(R.style.StyleA, t.getSourceResourceId(R.styleable.style1_type17, 0)); in testSourceResourceIdFromStyle()
125 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type2, 0)); in testSourceResourceIdFromLayout()
126 assertEquals(R.style.StyleC, t.getSourceResourceId(R.styleable.style1_type3, 0)); in testSourceResourceIdFromLayout()
127 assertEquals(R.style.StyleB, t.getSourceResourceId(R.styleable.style1_type4, 0)); in testSourceResourceIdFromLayout()
[all …]
DResources_ThemeTest.java106 mResTheme.applyStyle(R.style.Theme_InlineString, false); in testObtainStyledAttributesWithInlineStringInTheme()
129 theme.applyStyle(R.style.Theme_OrientationDependent, true); in testGetChangingConfigurations()
133 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true); in testGetChangingConfigurations()
157 theme.applyStyle(R.style.Theme_LayoutIsRTL, true); in testRebase()
181 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testGetDrawable()
201 theme.applyStyle(R.style.Theme_Empty, false /*force*/); in testEmptyDoesNotGetOverriden()
209 theme.applyStyle(R.style.Whatever, false /*force*/); in testEmptyDoesNotGetOverriden()
215 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.java95 assertEquals(R.style.ExplicitStyle1, view1.getExplicitStyle()); in testGetExplicitStyle()
98 assertEquals(R.style.ExplicitStyle2, view2.getExplicitStyle()); in testGetExplicitStyle()
104 assertEquals(android.R.style.TextAppearance_Material_Large, view4.getExplicitStyle()); in testGetExplicitStyle()
120 assertEquals(R.style.ExplicitStyle1, stackView1[1]); in testGetAttributeResolutionStack()
121 assertEquals(R.style.ParentOfExplicitStyle1, stackView1[2]); in testGetAttributeResolutionStack()
136 assertEquals(R.style.ExplicitStyle1, in testGetAttributeSourceResourceMap()
138 assertEquals(R.style.ParentOfExplicitStyle1, in testGetAttributeSourceResourceMap()
DContextThemeWrapperTest.java70 new ContextThemeWrapper(mContext, R.style.TextAppearance); in testConstructor()
80 contextThemeWrapper.setTheme(R.style.TextAppearance); in testAccessTheme()
93 theme.applyStyle(R.style.TextAppearance, true); in testSetTheme()
106 new MockContextThemeWrapper(mContext, R.style.TextAppearance); in testGetSystemService()
128 R.style.TextAppearance)); in testAttachBaseContext()
165 expected.applyStyle(R.style.TextAppearance, true); in verifyIdenticalTextAppearanceStyle()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DSensitiveNotificationRedactionTest.kt102 style: Notification.Style? = null, in sendNotification()
126 if (style != null) { in sendNotification()
127 nb.setStyle(style) in sendNotification()
169 val style = InboxStyle() in testTextFieldsRedacted() constant
170 style.addLine(OTP_MESSAGE_BASIC) in testTextFieldsRedacted()
172 sendNotification(style = style) in testTextFieldsRedacted()
222 val style = MessagingStyle(empty).apply { in testMessagesRedacted() constant
226 sendNotification(style = style) in testMessagesRedacted()
245 val style = Notification.BigTextStyle() in testBigTextRedacted() constant
249 style.bigText(bigText) in testBigTextRedacted()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInlineSuggestionsRequestTest.java116 final Bundle style = new Bundle(); in testInlineSuggestionsRequestValues() local
117 style.putString("style", "value"); in testInlineSuggestionsRequestValues()
120 new Size(400, 100)).setStyle(style).build()); in testInlineSuggestionsRequestValues()
126 new Size(400, 100)).setStyle(style).build()) in testInlineSuggestionsRequestValues()
134 assertThat(request.getInlinePresentationSpecs().get(0).getStyle()).isEqualTo(style); in testInlineSuggestionsRequestValues()

12345678