/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 | 59 final Theme theme = res.newTheme(); in testCreateFromXmlThemed() local 60 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in testCreateFromXmlThemed() 61 final ColorStateList c = ColorStateList.createFromXml(res, res.getXml(xmlId), theme); in testCreateFromXmlThemed()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/ |
D | TestTheme.java | 198 final Resources.Theme theme = new ContextThemeWrapper(context, themeId).getTheme(); in setTheme() local 199 mName = getString(theme, R.attr.themeName); in setTheme() 200 mBaseColor = getColor(theme, R.attr.themeBaseColor); in setTheme() 201 mPrimaryColor = getColor(theme, resolveResourceId(context, ATTR_THEME_PRIMARY_COLOR)); in setTheme() 202 mSecondaryColor = getColor(theme, resolveResourceId(context, ATTR_THEME_SECONDARY_COLOR)); in setTheme() 203 mTertiaryColor = getColor(theme, resolveResourceId(context, ATTR_THEME_TERTIARY_COLOR)); in setTheme() 204 mColorBackground = getColor(theme, android.R.attr.colorBackground); in setTheme() 205 mNavigationBarColor = getColor(theme, android.R.attr.navigationBarColor); in setTheme() 206 mStatusBarColor = getColor(theme, android.R.attr.statusBarColor); in setTheme() 207 mWindowBackground = getDrawableColor(theme, android.R.attr.windowBackground); in setTheme() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | TestThemeHelper.java | 92 final Resources.Theme theme = new ContextThemeWrapper(context, themeResId).getTheme(); in TestThemeHelper() local 93 mCustomColor = getColor(theme, R.attr.customColor); in TestThemeHelper() 94 mColorBackground = getColor(theme, android.R.attr.colorBackground); in TestThemeHelper() 95 mNavigationBarColor = getColor(theme, android.R.attr.navigationBarColor); in TestThemeHelper() 96 mStatusBarColor = getColor(theme, android.R.attr.statusBarColor); in TestThemeHelper() 97 mWindowBackground = getDrawableColor(theme, android.R.attr.windowBackground); in TestThemeHelper() 134 private int getColor(Resources.Theme theme, int resourceId) { in getColor() argument 135 final TypedArray ta = theme.obtainStyledAttributes(new int[] {resourceId}); in getColor() 141 private int getDrawableColor(Resources.Theme theme, int resourceId) { in getDrawableColor() argument 142 final TypedArray ta = theme.obtainStyledAttributes(new int[] {resourceId}); in getDrawableColor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsThemeColorsTest.java | 84 SparseIntArray theme = new SparseIntArray(ALL_COLORS.size()); in apply_setAllColorsInTheme_shouldAllChange() local 86 theme.put(ALL_COLORS.get(i), 0xffffff00 + i); in apply_setAllColorsInTheme_shouldAllChange() 89 View result = setUpView(theme); in apply_setAllColorsInTheme_shouldAllChange() 101 SparseIntArray theme = new SparseIntArray(); in apply_setSomeColorsInTheme_shouldChangeThoseColorsOnly() local 103 theme.put(changedColors.get(i), 0xffffff00 + i); in apply_setSomeColorsInTheme_shouldChangeThoseColorsOnly() 106 View result = setUpView(theme); in apply_setSomeColorsInTheme_shouldChangeThoseColorsOnly() 111 assertEquals(theme.get(color), resultContext.getColor(color)); in apply_setSomeColorsInTheme_shouldChangeThoseColorsOnly() 120 SparseIntArray theme = new SparseIntArray(3); in apply_setNonThemeColors_shouldNotChangeContext() local 121 theme.put(android.R.dimen.app_icon_size, 12); in apply_setNonThemeColors_shouldNotChangeContext() 122 theme.put(android.R.integer.config_longAnimTime, 5); in apply_setNonThemeColors_shouldNotChangeContext() [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | GenerateImagesActivity.java | 17 package android.theme.app; 19 import static android.theme.app.TestConfiguration.THEMES; 148 final ThemeInfo theme = THEMES[mCurrentTheme]; in launchThemeDeviceActivity() local 149 if (theme.apiLevel > VERSION.SDK_INT) { in launchThemeDeviceActivity() 150 Log.v(TAG, "Skipping theme \"" + theme.name in launchThemeDeviceActivity() 151 + "\" (requires API " + theme.apiLevel + ")"); in launchThemeDeviceActivity() 155 Log.v(TAG, "Generating images for theme \"" + theme.name + "\"..."); in launchThemeDeviceActivity()
|
D | LayoutInfo.java | 17 package android.theme.app; 19 import android.theme.app.modifiers.AbstractLayoutModifier;
|
D | ThemeDeviceActivity.java | 17 package android.theme.app; 19 import static android.theme.app.TestConfiguration.LAYOUTS; 20 import static android.theme.app.TestConfiguration.THEMES; 29 import android.theme.app.modifiers.AbstractLayoutModifier;
|
D | ReferenceViewGroup.java | 17 package android.theme.app; 19 import android.theme.app.R;
|
D | TestConfiguration.java | 17 package android.theme.app; 20 import android.theme.app.modifiers.DatePickerModifier; 21 import android.theme.app.modifiers.ProgressBarModifier; 22 import android.theme.app.modifiers.SearchViewModifier; 23 import android.theme.app.modifiers.ViewCheckedModifier; 24 import android.theme.app.modifiers.ViewPressedModifier; 25 import android.theme.app.modifiers.TimePickerModifier;
|
D | ThemeInfo.java | 17 package android.theme.app;
|
/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()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | CustomDrawableTest.java | 61 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate() argument 63 super.inflate(r, parser, attrs, theme); in inflate() 66 if (theme != null) { in inflate() 67 ta = theme.obtainStyledAttributes(attrs, ATTRS, 0, 0); in inflate()
|
D | ThemedDrawableTest.java | 58 final Theme theme = mContext.getResources().newTheme(); in setup() local 59 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); in setup() 61 ctxTheme.setTo(theme); in setup()
|
/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 …]
|
/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/app/src/android/theme/app/modifiers/ |
D | SearchViewModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.R;
|
D | AbstractLayoutModifier.java | 17 package android.theme.app.modifiers;
|
D | ViewPressedModifier.java | 17 package android.theme.app.modifiers;
|
D | ViewCheckedModifier.java | 17 package android.theme.app.modifiers;
|
D | DatePickerModifier.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/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 53 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument 55 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource() 90 Theme theme = mContext.getResources().newTheme(); in testSetTheme() local 91 theme.applyStyle(R.style.TextAppearance, true); in testSetTheme() 92 contextThemeWrapper.setTheme(theme); in testSetTheme()
|
/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()
|