/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/ |
D | Display.kt | 41 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()
|
D | DisplayProperties.kt | 22 enum class Theme { class
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/display/ |
D | DisplayTest.kt | 51 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/ |
D | Resources_ThemeTest.java | 31 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()
|
D | ColorStateListTest.java | 29 import android.content.res.Resources.Theme; 79 final Theme theme = res.newTheme(); in testCreateFromXmlThemed()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ContextThemeWrapperTest.java | 27 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/ |
D | TestThemeHelper.java | 92 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/ |
D | CustomDrawableTest.java | 23 import android.content.res.Resources.Theme; 61 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate()
|
D | ThemedDrawableTest.java | 24 import android.content.res.Resources.Theme; 58 final Theme theme = mContext.getResources().newTheme(); in setup() 60 final Theme ctxTheme = mContext.getTheme(); in setup()
|
D | GradientDrawableTest.java | 30 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()
|
D | RippleDrawableTest.java | 28 import android.content.res.Resources.Theme; 138 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
|
D | VectorDrawableTest.java | 25 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/ |
D | EnsureUsingDisplayTheme.kt | 34 val theme: DisplayProperties.Theme,
|
/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() 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/ |
D | IncludeDarkMode.kt | 33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.DARK)
|
D | IncludeLightMode.kt | 33 @EnsureUsingDisplayTheme(theme = DisplayProperties.Theme.LIGHT)
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AutoCompleteTextViewNoIme.java | 49 int defStyleRes, Resources.Theme popupTheme) { in AutoCompleteTextViewNoIme()
|
D | SpinnerTest.java | 37 import android.content.res.Resources.Theme; 155 final Resources.Theme popupTheme = mActivity.getResources().newTheme(); in testConstructor() 335 Theme theme = mActivity.getResources().newTheme(); in testGetPopupContext()
|
D | CursorAdapterTest.java | 28 import android.content.res.Resources.Theme; 282 Theme theme = mContext.getResources().newTheme(); in testAccessDropDownViewTheme()
|
D | SimpleAdapterTest.java | 35 import android.content.res.Resources.Theme; 298 Theme theme = mContext.getResources().newTheme(); in testAccessDropDownViewTheme()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapDrawableTest.java | 25 import android.content.res.Resources.Theme; 121 final Theme t = res.newTheme(); in verifyPreloadDensityInner()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
D | MainFragment.java | 19 import android.content.res.Resources.Theme; 148 Theme theme = getContext().getTheme();
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 42 private Resources.Theme mTheme;
|
/cts/tests/app/app/src/android/app/stubs/ |
D | AppStubActivity.java | 135 public void onApplyThemeResource( Resources.Theme theme, in onApplyThemeResource()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | DeviceStateTest.java | 1102 @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()
|