Home
last modified time | relevance | path

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

12345

/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 …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java204 new Theme(Theme.HOLO, android.R.style.Theme_Holo,
206 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog,
208 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_MinWidth,
210 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar,
212 new Theme(Theme.HOLO, android.R.style.Theme_Holo_Dialog_NoActionBar_MinWidth,
214 new Theme(Theme.HOLO, android.R.style.Theme_Holo_DialogWhenLarge,
216 new Theme(Theme.HOLO, android.R.style.Theme_Holo_DialogWhenLarge_NoActionBar,
218 new Theme(Theme.HOLO, android.R.style.Theme_Holo_InputMethod,
220 new Theme(Theme.HOLO, android.R.style.Theme_Holo_NoActionBar,
222 new Theme(Theme.HOLO, android.R.style.Theme_Holo_NoActionBar_Fullscreen,
[all …]
/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()
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()
DTypedArrayTest.java66 .obtainStyledAttributes(R.style.Whatever, R.styleable.style1); in setUp()
77 R.style.Whatever, R.styleable.style1); in testGetType()
103 R.style.Whatever, R.styleable.style1); in testBasics()
117 R.style.Whatever, R.styleable.style1); in testGetAttributes()
201 R.style.Whatever, R.styleable.style1); in testPeekValue()
213 R.style.Whatever, R.styleable.style1); in testHasValue()
230 contextThemeWrapper.setTheme(R.style.TextAppearance); in testRecycle()
257 theme.applyStyle(R.style.Whatever, false); in testEmptyXmlAttributeDoesNotFallbackToTheme()
/cts/tests/tests/text/src/android/text/style/cts/
DMetricAffectingSpanTest.java17 package android.text.style.cts;
26 import android.text.style.CharacterStyle;
27 import android.text.style.MetricAffectingSpan;
28 import android.text.style.SuperscriptSpan;
DTabStopSpan_StandardTest.java17 package android.text.style.cts;
23 import android.text.style.TabStopSpan;
24 import android.text.style.TabStopSpan.Standard;
DCharacterStyleTest.java17 package android.text.style.cts;
27 import android.text.style.CharacterStyle;
28 import android.text.style.MetricAffectingSpan;
29 import android.text.style.SuperscriptSpan;
DLeadingMarginSpan_StandardTest.java17 package android.text.style.cts;
24 import android.text.style.LeadingMarginSpan;
25 import android.text.style.LeadingMarginSpan.Standard;
DReplacementSpanTest.java17 package android.text.style.cts;
24 import android.text.style.ReplacementSpan;
DEasyEditSpanTest.java17 package android.text.style.cts;
25 import android.text.style.EasyEditSpan;
DTextAppearanceSpanTest.java17 package android.text.style.cts;
33 import android.text.style.TextAppearanceSpan;
211 android.text.cts.R.style.customFont); in testCreateFromStyle_FontResource()
221 android.text.cts.R.style.customFont); in testWriteReadParcel_FontResource()
238 android.text.cts.R.style.customFontWithStyle); in testWriteReadParcel_FontResource_WithStyle()
257 android.text.cts.R.style.customFont); in testRestrictContext()
DClickableSpanTest.java17 package android.text.style.cts;
27 import android.text.style.ClickableSpan;
DMaskFilterSpanTest.java17 package android.text.style.cts;
26 import android.text.style.MaskFilterSpan;
/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java87 new CalendarView(mActivity, null, 0, android.R.style.Widget_DeviceDefault_CalendarView); in testConstructor()
90 android.R.style.Widget_DeviceDefault_Light_CalendarView); in testConstructor()
92 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_CalendarView); in testConstructor()
94 new CalendarView(mActivity, null, 0, android.R.style.Widget_Material_Light_CalendarView); in testConstructor()
273 assertEquals(R.style.TextAppearance_WithColor, in testAppearanceMaterial()
275 assertEquals(R.style.TextAppearance_WithColorGreen, in testAppearanceMaterial()
280 mCalendarViewMaterial.setDateTextAppearance(R.style.TextAppearance_WithColorBlue); in testAppearanceMaterial()
281 mCalendarViewMaterial.setWeekDayTextAppearance(R.style.TextAppearance_WithColorMagenta); in testAppearanceMaterial()
284 assertEquals(R.style.TextAppearance_WithColorBlue, in testAppearanceMaterial()
286 assertEquals(R.style.TextAppearance_WithColorMagenta, in testAppearanceMaterial()
[all …]
DRatingBarTest.java65 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar); in testConstructor()
66 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Indicator); in testConstructor()
67 new RatingBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_RatingBar_Small); in testConstructor()
68 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar); in testConstructor()
69 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Indicator); in testConstructor()
70 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_RatingBar_Small); in testConstructor()
71 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar); in testConstructor()
72 … new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Indicator); in testConstructor()
73 new RatingBar(mActivity, null, 0, android.R.style.Widget_Material_Light_RatingBar_Small); in testConstructor()
DImageButtonTest.java55 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_ImageButton); in testConstructor()
56 new ImageButton(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_ImageButton); in testConstructor()
57 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_ImageButton); in testConstructor()
58 new ImageButton(mActivity, null, 0, android.R.style.Widget_Material_Light_ImageButton); in testConstructor()
DProgressBarTest.java99 new ProgressBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_ProgressBar); in testConstructor()
102 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Horizontal); in testConstructor()
105 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Inverse); in testConstructor()
108 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Large); in testConstructor()
111 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Large_Inverse); in testConstructor()
114 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small); in testConstructor()
117 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small_Inverse); in testConstructor()
120 android.R.style.Widget_DeviceDefault_Light_ProgressBar_Small_Title); in testConstructor()
122 new ProgressBar(mActivity, null, 0, android.R.style.Widget_Material_Light_ProgressBar); in testConstructor()
125 android.R.style.Widget_Material_Light_ProgressBar_Horizontal); in testConstructor()
[all …]
DSpinnerTest.java97 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
100 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Spinner, in testConstructor()
103 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
106 new Spinner(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_Spinner, in testConstructor()
109 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
112 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner, in testConstructor()
115 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
118 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Spinner_Underlined, in testConstructor()
121 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
124 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor()
[all …]
DSeekBarTest.java71 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_SeekBar); in testConstructor()
73 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_SeekBar); in testConstructor()
75 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_SeekBar); in testConstructor()
77 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_Light_SeekBar); in testConstructor()
DRadioButtonTest.java68 android.R.style.Widget_DeviceDefault_CompoundButton_RadioButton); in testConstructor()
70 android.R.style.Widget_DeviceDefault_Light_CompoundButton_RadioButton); in testConstructor()
72 android.R.style.Widget_Material_CompoundButton_RadioButton); in testConstructor()
74 android.R.style.Widget_Material_Light_CompoundButton_RadioButton); in testConstructor()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java67 new ContextThemeWrapper(mContext, R.style.TextAppearance); in testConstructor()
77 contextThemeWrapper.setTheme(R.style.TextAppearance); in testAccessTheme()
90 new MockContextThemeWrapper(mContext, R.style.TextAppearance); in testGetSystemService()
112 R.style.TextAppearance)); in testAttachBaseContext()
149 expected.applyStyle(R.style.TextAppearance, true); in verifyIdenticalTextAppearanceStyle()
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DTranslucentTopActivity.java23 setTheme(R.style.TranslucentWallpaperTheme); in setWallpaperTheme()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureLibraryTest.java75 public void setOrientationStyle(int style) { in setOrientationStyle() argument
76 mGestureLibrary.setOrientationStyle(style); in setOrientationStyle()
/cts/tests/tests/text/src/android/text/cts/
DSpannedTest.java29 import android.text.style.LocaleSpan;
30 import android.text.style.QuoteSpan;
31 import android.text.style.UnderlineSpan;

12345