Home
last modified time | relevance | path

Searched refs:Theme (Results 1 – 25 of 42) sorted by relevance

12

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/
DDisplay.kt41 fun setDisplayTheme(displayTheme: DisplayProperties.Theme) { in display()
51 fun getDisplayTheme(): DisplayProperties.Theme { in display()
57 UiModeManager.MODE_NIGHT_NO -> DisplayProperties.Theme.LIGHT in display()
58 UiModeManager.MODE_NIGHT_YES -> DisplayProperties.Theme.DARK in display()
88 private fun getUiModeNightValue(displayTheme: DisplayProperties.Theme): Int { in display()
90 DisplayProperties.Theme.DARK -> UiModeManager.MODE_NIGHT_YES in display()
91 DisplayProperties.Theme.LIGHT -> UiModeManager.MODE_NIGHT_NO in display()
DDisplayProperties.kt22 enum class Theme { class
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/display/
DDisplayTest.kt51 TestApis.display().setDisplayTheme(DisplayProperties.Theme.DARK) in setDisplayTheme_setDark_themeIsSet()
53 assertThat(TestApis.display().getDisplayTheme()).isEqualTo(DisplayProperties.Theme.DARK) in setDisplayTheme_setDark_themeIsSet()
58 TestApis.display().setDisplayTheme(DisplayProperties.Theme.LIGHT) in setDisplayTheme_setLight_themeIsSet()
60 assertThat(TestApis.display().getDisplayTheme()).isEqualTo(DisplayProperties.Theme.LIGHT) in setDisplayTheme_setLight_themeIsSet()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java31 import android.content.res.Resources.Theme;
59 private Resources.Theme mResTheme;
74 final Theme other = getContext().getTheme(); in testSetMethods()
125 Resources.Theme theme = getContext().getResources().newTheme(); in testGetChangingConfigurations()
138 Resources.Theme other = getContext().getResources().newTheme(); in testGetChangingConfigurations()
156 Resources.Theme theme = res.newTheme(); in testRebase()
180 final Theme theme = res.newTheme(); in testGetDrawable()
191 final Theme theme = res.newTheme(); in testGetResources()
199 final Theme theme = res.newTheme(); in testEmptyDoesNotGetOverriden()
DColorStateListTest.java29 import android.content.res.Resources.Theme;
79 final Theme theme = res.newTheme(); in testCreateFromXmlThemed()
/cts/tests/tests/view/src/android/view/cts/
DContextThemeWrapperTest.java27 import android.content.res.Resources.Theme;
55 protected void onApplyThemeResource(Theme theme, int resid, boolean first) { in onApplyThemeResource()
92 Theme theme = mContext.getResources().newTheme(); in testSetTheme()
163 Resources.Theme expected = mContext.getResources().newTheme(); in verifyIdenticalTextAppearanceStyle()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DTestThemeHelper.java92 final Resources.Theme theme = new ContextThemeWrapper(context, themeResId).getTheme(); in TestThemeHelper()
134 private int getColor(Resources.Theme theme, int resourceId) { in getColor()
141 private int getDrawableColor(Resources.Theme theme, int resourceId) { in getDrawableColor()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java23 import android.content.res.Resources.Theme;
61 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate()
DThemedDrawableTest.java24 import android.content.res.Resources.Theme;
58 final Theme theme = mContext.getResources().newTheme(); in setup()
60 final Theme ctxTheme = mContext.getTheme(); in setup()
DGradientDrawableTest.java30 import android.content.res.Resources.Theme;
698 final Theme theme = context.getResources().newTheme(); in testInflationWithThemeAndNonThemeResources()
700 final Theme ctxTheme = context.getTheme(); in testInflationWithThemeAndNonThemeResources()
720 final Theme theme = context.getResources().newTheme(); in testGradientColorInflationWithThemeAndNonThemeResources()
722 final Theme ctxTheme = context.getTheme(); in testGradientColorInflationWithThemeAndNonThemeResources()
739 final Theme theme = context.getResources().newTheme(); in testGradientColorInflationWithAllThemeResources()
741 final Theme ctxTheme = context.getTheme(); in testGradientColorInflationWithAllThemeResources()
758 final Theme theme = context.getResources().newTheme(); in testGradientColorNoCenterColorInflationWithThemeAndNonThemeResources()
760 final Theme ctxTheme = context.getTheme(); in testGradientColorNoCenterColorInflationWithThemeAndNonThemeResources()
927 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
DRippleDrawableTest.java28 import android.content.res.Resources.Theme;
138 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
DVectorDrawableTest.java25 import android.content.res.Resources.Theme;
267 Theme theme = mResources.newTheme(); in verifyVectorDrawables()
479 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DEnsureUsingDisplayTheme.kt34 val theme: DisplayProperties.Theme,
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DTestTheme.java198 final Resources.Theme theme = new ContextThemeWrapper(context, themeId).getTheme(); in setTheme()
214 private String getString(Resources.Theme theme, int resourceId) { in getString()
221 private int getColor(Resources.Theme theme, int resourceId) { in getColor()
231 private int getDrawableColor(Resources.Theme theme, int resourceId) { in getDrawableColor()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/parameterized/
DIncludeDarkMode.kt33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
DIncludeLightMode.kt33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewNoIme.java49 int defStyleRes, Resources.Theme popupTheme) { in AutoCompleteTextViewNoIme()
DSpinnerTest.java37 import android.content.res.Resources.Theme;
155 final Resources.Theme popupTheme = mActivity.getResources().newTheme(); in testConstructor()
335 Theme theme = mActivity.getResources().newTheme(); in testGetPopupContext()
DCursorAdapterTest.java28 import android.content.res.Resources.Theme;
282 Theme theme = mContext.getResources().newTheme(); in testAccessDropDownViewTheme()
DSimpleAdapterTest.java35 import android.content.res.Resources.Theme;
298 Theme theme = mContext.getResources().newTheme(); in testAccessDropDownViewTheme()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java25 import android.content.res.Resources.Theme;
121 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java19 import android.content.res.Resources.Theme;
148 Theme theme = getContext().getTheme();
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java42 private Resources.Theme mTheme;
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java135 public void onApplyThemeResource( Resources.Theme theme, in onApplyThemeResource()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java1102 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
1104 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.DARK); in ensureUsingDisplayTheme_setDark_themeIsSet()
1108 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
1110 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.LIGHT); in ensureUsingDisplayTheme_setLight_themeIsSet()
1131 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.DARK); in includeRunOnDarkModeDevice_themeIsSet()
1137 assertThat(Display.INSTANCE.getDisplayTheme()).isEqualTo(DisplayProperties.Theme.LIGHT); in includeRunOnLightModeDevice_themeIsSet()

12