Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java87 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations() local
89 0, theme.getChangingConfigurations()); in testGetChangingConfigurations()
91 theme.applyStyle(R.style.Theme_OrientationDependent, true); in testGetChangingConfigurations()
93 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); in testGetChangingConfigurations()
95 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true); in testGetChangingConfigurations()
98 theme.getChangingConfigurations()); in testGetChangingConfigurations()
101 other.setTo(theme); in testGetChangingConfigurations()
104 theme.getChangingConfigurations()); in testGetChangingConfigurations()
114 Resources.Theme theme = res.newTheme(); in testRebase() local
115 theme.applyStyle(R.style.Theme_LayoutIsRTL, true); in testRebase()
[all …]
/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
51 II. Building theme tests
57 2. Subsequent changes to the theme tests, including changes to the reference
60 mmm cts/hostsidetests/theme -j32
63 III. Running theme tests
69 2. Run the theme tests using cts-tradefed:
71 cts-tradefed run cts -c android.theme.cts.ThemeHostTest
DAndroid.mk30 LOCAL_CTS_TEST_PACKAGE := android.host.theme
/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/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java17 package android.theme.app;
155 final ThemeDeviceActivity.Theme theme = ThemeDeviceActivity.THEMES[mCurrentTheme]; in generateNextImage() local
156 if (theme.apiLevel > VERSION.SDK_INT) { in generateNextImage()
157 Log.v(TAG, "Skipping theme \"" + theme.name in generateNextImage()
158 + "\" (requires API " + theme.apiLevel + ")"); in generateNextImage()
162 Log.v(TAG, "Generating images for theme \"" + theme.name + "\"..."); in generateNextImage()
DDisplayInfoActivity.java17 package android.theme.app;
20 import android.theme.app.R;
DLayoutModifier.java17 package android.theme.app;
DReferenceViewGroup.java17 package android.theme.app;
19 import android.theme.app.R;
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/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/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultActivity.java17 package android.theme.cts;
19 import com.android.cts.theme.R;
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
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()
/cts/tests/app/src/android/app/cts/
DAppStubActivity.java137 public void onApplyThemeResource( Resources.Theme theme, in onApplyThemeResource() argument
140 super.onApplyThemeResource(theme,resid,first); in onApplyThemeResource()
DDialogStubActivity.java336 public MockAlertDialog(Context context, int theme) { in MockAlertDialog() argument
337 super(context, theme); in MockAlertDialog()
394 public MockDatePickerDialog(Context context, int theme, OnDateSetListener callBack, in MockDatePickerDialog() argument
396 super(context, theme, callBack, year, monthOfYear, dayOfMonth); in MockDatePickerDialog()
/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/leanbackjank/app/src/android/cts/jank/leanback/ui/
DMainFragment.java108 Theme theme = getContext().getTheme(); in setupUIElements() local
109 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); in setupUIElements()
111 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme)); in setupUIElements()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java39 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource() argument
41 super.onApplyThemeResource(theme, resid, first); in onApplyThemeResource()

12