/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | TestConfiguration.java | 34 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/ |
D | DeviceDefaultTest.java | 34 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 …]
|
D | ThemeRebaseTest.java | 70 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/ |
D | WidgetAttributeTest.kt | 77 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 …]
|
D | CalendarViewTest.java | 89 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 …]
|
D | RatingBarTest.java | 66 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()
|
D | ImageButtonTest.java | 56 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()
|
D | SpinnerTest.java | 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_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_DeviceDefault_Light_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, 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_Spinner_Underlined, in testConstructor() 124 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor() 127 new Spinner(mActivity, null, 0, android.R.style.Widget_Material_Light_Spinner, in testConstructor() [all …]
|
D | SeekBarTest.java | 107 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_SeekBar); in testConstructor() 109 new SeekBar(mActivity, null, 0, android.R.style.Widget_DeviceDefault_Light_SeekBar); in testConstructor() 111 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_SeekBar); in testConstructor() 113 new SeekBar(mActivity, null, 0, android.R.style.Widget_Material_Light_SeekBar); in testConstructor()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TextAppearanceSpanTest.java | 17 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 …]
|
D | TabStopSpan_StandardTest.java | 17 package android.text.style.cts; 21 import android.text.style.TabStopSpan; 22 import android.text.style.TabStopSpan.Standard;
|
D | LeadingMarginSpan_StandardTest.java | 17 package android.text.style.cts; 22 import android.text.style.LeadingMarginSpan; 23 import android.text.style.LeadingMarginSpan.Standard;
|
D | EasyEditSpanTest.java | 17 package android.text.style.cts; 22 import android.text.style.EasyEditSpan;
|
D | ReplacementSpanTest.java | 17 package android.text.style.cts; 24 import android.text.style.ReplacementSpan;
|
D | ClickableSpanTest.java | 17 package android.text.style.cts; 25 import android.text.style.ClickableSpan;
|
D | MaskFilterSpanTest.java | 17 package android.text.style.cts; 24 import android.text.style.MaskFilterSpan;
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 154 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 …]
|
D | FontFamilyUpdateRequestTest.java | 47 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/content/src/android/content/res/cts/ |
D | PrimitiveTest.java | 46 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()
|
D | TypedArrayTest.java | 68 .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 …]
|
D | Resources_ThemeTest.java | 87 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/ |
D | TypefaceCustomFallbackBuilderTest.java | 52 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/ |
D | ViewAttributeTest.java | 77 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()
|
D | ContextThemeWrapperTest.java | 68 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/inputmethod/src/android/view/inputmethod/cts/ |
D | InlineSuggestionsRequestTest.java | 114 final Bundle style = new Bundle(); in testInlineSuggestionsRequestValues() local 115 style.putString("style", "value"); in testInlineSuggestionsRequestValues() 118 new Size(400, 100)).setStyle(style).build()); in testInlineSuggestionsRequestValues() 124 new Size(400, 100)).setStyle(style).build()) in testInlineSuggestionsRequestValues() 132 assertThat(request.getInlinePresentationSpecs().get(0).getStyle()).isEqualTo(style); in testInlineSuggestionsRequestValues()
|