Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java104 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() local
106 0, theme.getChangingConfigurations()); in testGetChangingConfigurations()
108 theme.applyStyle(R.style.Theme_OrientationDependent, true); in testGetChangingConfigurations()
110 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); in testGetChangingConfigurations()
112 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true); in testGetChangingConfigurations()
115 theme.getChangingConfigurations()); in testGetChangingConfigurations()
118 other.setTo(theme); in testGetChangingConfigurations()
121 theme.getChangingConfigurations()); in testGetChangingConfigurations()
134 Resources.Theme theme = res.newTheme(); in testRebase() local
135 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
69 To obtain reliable results, theme tests should be run against the device's
87 2. Run the theme tests using cts-tradefed:
90 --test android.theme.cts.ThemeHostTest
DAndroid.mk36 LOCAL_CTS_TEST_PACKAGE := android.host.theme
/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/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java60 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate() argument
62 super.inflate(r, parser, attrs, theme); in inflate()
65 if (theme != null) { in inflate()
66 ta = theme.obtainStyledAttributes(attrs, ATTRS, 0, 0); in inflate()
DThemedDrawableTest.java54 final Theme theme = mContext.getResources().newTheme(); in setup() local
55 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in setup()
57 ctxTheme.setTo(theme); in setup()
DDrawableTest.java327 Theme theme = mResources.newTheme(); in testCreateFromXmlThemed() local
328 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlThemed()
329 Drawable drawable = Drawable.createFromXml(mResources, parser, theme); in testCreateFromXmlThemed()
332 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlThemed()
359 Theme theme = mResources.newTheme(); in testCreateFromXmlInnerThemed() local
360 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlInnerThemed()
361 Drawable drawable = Drawable.createFromXmlInner(mResources, parser, attrs, theme); in testCreateFromXmlInnerThemed()
364 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlInnerThemed()
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultActivity.java17 package android.theme.cts;
19 import android.theme.cts.R;
/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()
DDialogStubActivity.java361 public MockAlertDialog(Context context, int theme) { in MockAlertDialog() argument
362 super(context, theme); in MockAlertDialog()
419 public MockDatePickerDialog(Context context, int theme, OnDateSetListener callBack, in MockDatePickerDialog() argument
421 super(context, theme, callBack, year, monthOfYear, dayOfMonth); in MockDatePickerDialog()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java146 Theme theme = getContext().getTheme();
147 setBrandColor(getResources().getColor(R.color.fastlane_background, theme));
149 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));

12