/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 94 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 …]
|
D | ColorStateListTest.java | 64 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/ |
D | README | 18 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
|
D | Android.mk | 32 LOCAL_CTS_TEST_PACKAGE := android.host.theme
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | CustomDrawableTest.java | 51 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()
|
D | ThemedDrawableTest.java | 45 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()
|
D | DrawableTest.java | 317 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/ |
D | ActivityInfoTest.java | 59 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()
|
D | ApplicationInfoTest.java | 62 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel()
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateImagesActivity.java | 17 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()
|
D | ReferenceViewGroup.java | 17 package android.theme.app; 19 import android.theme.app.R;
|
D | LayoutModifier.java | 17 package android.theme.app;
|
D | ReferenceImagesTest.java | 17 package android.theme.app;
|
D | ThemeDeviceActivity.java | 17 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/ |
D | AbstractLayoutModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.LayoutModifier;
|
D | DatePickerModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.LayoutModifier;
|
D | SearchViewModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.R;
|
D | ViewPressedModifier.java | 17 package android.theme.app.modifiers;
|
D | ViewCheckedModifier.java | 17 package android.theme.app.modifiers;
|
D | TimePickerModifier.java | 17 package android.theme.app.modifiers;
|
D | ProgressBarModifier.java | 17 package android.theme.app.modifiers;
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | DeviceDefaultActivity.java | 17 package android.theme.cts; 19 import android.theme.cts.R;
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SpinnerTest.java | 174 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/ |
D | AppStubActivity.java | 135 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/ |
D | MainFragment.java | 147 Theme theme = getContext().getTheme(); 148 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); 150 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
|