/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 104 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 …]
|
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/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/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 | 89 assertEquals(mApplicationInfo.theme, info.theme); in testWriteToParcel() 164 assertEquals(0, mApplicationInfo.theme); in verifyDefaultValues()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | CustomDrawableTest.java | 60 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()
|
D | ThemedDrawableTest.java | 54 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()
|
D | DrawableTest.java | 360 Theme theme = mResources.newTheme(); in testCreateFromXmlThemed() local 361 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlThemed() 362 Drawable drawable = Drawable.createFromXml(mResources, parser, theme); in testCreateFromXmlThemed() 365 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlThemed() 392 Theme theme = mResources.newTheme(); in testCreateFromXmlInnerThemed() local 393 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlInnerThemed() 394 Drawable drawable = Drawable.createFromXmlInner(mResources, parser, attrs, theme); in testCreateFromXmlInnerThemed() 397 Drawable expected = mResources.getDrawable(R.drawable.gradientdrawable_theme, theme); in testCreateFromXmlInnerThemed()
|
/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 | LayoutModifier.java | 17 package android.theme.app;
|
D | ReferenceViewGroup.java | 17 package android.theme.app; 19 import android.theme.app.R;
|
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;
|
D | ThemeTestUtils.java | 17 package android.theme.app;
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | DeviceDefaultActivity.java | 17 package android.theme.cts; 19 import android.theme.cts.R;
|
/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 57 ./cts/hostsidetests/theme/generate_images.py theme_emulator 68 ./cts/hostsidetests/theme/generate_images.py 84 ./cts/hostsidetests/theme/generate_images.py local 94 II. Building theme tests 100 2. Subsequent changes to the theme tests, including changes to the reference 103 mmm cts/hostsidetests/theme -j32 106 III. Running theme tests 108 To obtain reliable results, theme tests should be run against the device's [all …]
|
D | Android.mk | 36 LOCAL_CTS_TEST_PACKAGE := android.host.theme
|
/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 | 148 Theme theme = getContext().getTheme(); 149 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); 151 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
|