Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java94 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() local
96 0, theme.getChangingConfigurations()); in testGetChangingConfigurations()
98 theme.applyStyle(R.style.Theme_OrientationDependent, true); in testGetChangingConfigurations()
100 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); in testGetChangingConfigurations()
102 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true); in testGetChangingConfigurations()
105 theme.getChangingConfigurations()); in testGetChangingConfigurations()
108 other.setTo(theme); in testGetChangingConfigurations()
111 theme.getChangingConfigurations()); in testGetChangingConfigurations()
124 Resources.Theme theme = res.newTheme(); in testRebase() local
125 theme.applyStyle(R.style.Theme_LayoutIsRTL, true); in testRebase()
[all …]
DColorStateListTest.java64 final Theme theme = res.newTheme(); in testCreateFromXmlThemed() local
65 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlThemed()
66 final ColorStateList c = ColorStateList.createFromXml(res, res.getXml(xmlId), theme); in testCreateFromXmlThemed()
/cts/hostsidetests/theme/
DREADME18 The Android theme tests ensure that the Holo and Material themes have not been
21 theme tests, a device must be able to generate images that are identical to the
45 ./cts/hostsidetests/theme/generate_images.sh
55 II. Building theme tests
61 2. Subsequent changes to the theme tests, including changes to the reference
64 mmm cts/hostsidetests/theme -j32
67 III. Running theme tests
73 2. Run the theme tests using cts-tradefed:
77 --test android.theme.cts.ThemeHostTest
DAndroid.mk32 LOCAL_CTS_TEST_PACKAGE := android.host.theme
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java51 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate() argument
53 super.inflate(r, parser, attrs, theme); in inflate()
56 if (theme != null) { in inflate()
57 ta = theme.obtainStyledAttributes(attrs, ATTRS, 0, 0); in inflate()
DThemedDrawableTest.java45 final Theme theme = mContext.getResources().newTheme(); in setUp() local
46 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in setUp()
48 ctxTheme.setTo(theme); in setUp()
DDrawableTest.java317 Theme theme = mResources.newTheme(); in testCreateFromXmlThemed() local
318 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlThemed()
319 Drawable drawable = Drawable.createFromXml(mResources, parser, theme); in testCreateFromXmlThemed()
322 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlThemed()
347 Theme theme = mResources.newTheme(); in testCreateFromXmlInnerThemed() local
348 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlInnerThemed()
349 Drawable drawable = Drawable.createFromXmlInner(mResources, parser, attrs, theme); in testCreateFromXmlInnerThemed()
352 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlInnerThemed()
/cts/tests/tests/content/src/android/content/pm/cts/
DActivityInfoTest.java59 assertEquals(mActivityInfo.theme, info.theme); in testWriteToParcel()
82 assertEquals(mActivityInfo.applicationInfo.theme, mActivityInfo.getThemeResource()); in testGetThemeResource()
83 mActivityInfo.theme = 1; in testGetThemeResource()
84 assertEquals(mActivityInfo.theme, mActivityInfo.getThemeResource()); in testGetThemeResource()
DApplicationInfoTest.java62 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java17 package android.theme.app;
149 final ThemeDeviceActivity.Theme theme = ThemeDeviceActivity.THEMES[mCurrentTheme]; in generateNextImage() local
150 if (theme.apiLevel > VERSION.SDK_INT) { in generateNextImage()
151 Log.v(TAG, "Skipping theme \"" + theme.name in generateNextImage()
152 + "\" (requires API " + theme.apiLevel + ")"); in generateNextImage()
156 Log.v(TAG, "Generating images for theme \"" + theme.name + "\"..."); in generateNextImage()
DReferenceViewGroup.java17 package android.theme.app;
19 import android.theme.app.R;
DLayoutModifier.java17 package android.theme.app;
DReferenceImagesTest.java17 package android.theme.app;
DThemeDeviceActivity.java17 package android.theme.app;
23 import android.theme.app.modifiers.DatePickerModifier;
24 import android.theme.app.modifiers.ProgressBarModifier;
25 import android.theme.app.modifiers.SearchViewModifier;
26 import android.theme.app.modifiers.TimePickerModifier;
27 import android.theme.app.modifiers.ViewCheckedModifier;
28 import android.theme.app.modifiers.ViewPressedModifier;
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
DAbstractLayoutModifier.java17 package android.theme.app.modifiers;
19 import android.theme.app.LayoutModifier;
DDatePickerModifier.java17 package android.theme.app.modifiers;
19 import android.theme.app.LayoutModifier;
DSearchViewModifier.java17 package android.theme.app.modifiers;
19 import android.theme.app.R;
DViewPressedModifier.java17 package android.theme.app.modifiers;
DViewCheckedModifier.java17 package android.theme.app.modifiers;
DTimePickerModifier.java17 package android.theme.app.modifiers;
DProgressBarModifier.java17 package android.theme.app.modifiers;
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultActivity.java17 package android.theme.cts;
19 import android.theme.cts.R;
/cts/tests/tests/widget/src/android/widget/cts/
DSpinnerTest.java174 Theme theme = mTargetContext.getResources().newTheme(); in testGetPopupContext() local
176 android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, theme); in testGetPopupContext()
178 assertSame(theme, themeSpinner.getPopupContext().getTheme()); in testGetPopupContext()
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java135 public void onApplyThemeResource( Resources.Theme theme, in onApplyThemeResource() argument
138 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java147 Theme theme = getContext().getTheme();
148 setBrandColor(getResources().getColor(R.color.fastlane_background, theme));
150 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));

12