Home
last modified time | relevance | path

Searched refs:defaultTheme (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DThemeResolver.java17 @StyleRes private final int defaultTheme; field in ThemeResolver
46 int defaultTheme, @Nullable String oldestSupportedTheme, boolean useDayNight) { in ThemeResolver() argument
47 this.defaultTheme = defaultTheme; in ThemeResolver()
81 return defaultTheme; in resolve()
85 return defaultTheme; in resolve()
188 @StyleRes private int defaultTheme = R.style.SuwThemeGlif_DayNight; field in ThemeResolver.Builder
195 this.defaultTheme = themeResolver.defaultTheme; in Builder()
200 public Builder setDefaultTheme(@StyleRes int defaultTheme) { in setDefaultTheme() argument
201 this.defaultTheme = defaultTheme; in setDefaultTheme()
216 return new ThemeResolver(defaultTheme, oldestSupportedTheme, useDayNight); in build()
DWizardManagerHelper.java291 public static @StyleRes int getThemeRes(Intent intent, @StyleRes int defaultTheme) { in getThemeRes() argument
293 .setDefaultTheme(defaultTheme) in getThemeRes()
314 Intent intent, @StyleRes int defaultTheme, @Nullable String oldestSupportedTheme) { in getThemeRes() argument
316 .setDefaultTheme(defaultTheme) in getThemeRes()
346 String theme, @StyleRes int defaultTheme, @Nullable String oldestSupportedTheme) { in getThemeRes() argument
348 .setDefaultTheme(defaultTheme) in getThemeRes()
377 public static @StyleRes int getThemeRes(@Nullable String theme, @StyleRes int defaultTheme) { in getThemeRes() argument
379 .setDefaultTheme(defaultTheme) in getThemeRes()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/
DThemeResolverTest.java44 @StyleRes int defaultTheme = 12345; in resolve_nonDayNight_shouldReturnCorrespondingTheme() local
46 new ThemeResolver.Builder().setDefaultTheme(defaultTheme).setUseDayNight(false).build(); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
55 assertThat(themeResolver.resolve("unknown_theme")).isEqualTo(defaultTheme); in resolve_nonDayNight_shouldReturnCorrespondingTheme()
60 @StyleRes int defaultTheme = 12345; in resolve_dayNight_shouldReturnDayNightTheme() local
61 ThemeResolver themeResolver = new ThemeResolver.Builder().setDefaultTheme(defaultTheme).build(); in resolve_dayNight_shouldReturnDayNightTheme()
71 assertThat(themeResolver.resolve("unknown_theme")).isEqualTo(defaultTheme); in resolve_dayNight_shouldReturnDayNightTheme()
88 @StyleRes int defaultTheme = 12345; in resolve_olderThanOldestSupportedTheme_shouldReturnDefault() local
91 .setDefaultTheme(defaultTheme) in resolve_olderThanOldestSupportedTheme_shouldReturnDefault()
94 assertThat(themeResolver.resolve("material")).isEqualTo(defaultTheme); in resolve_olderThanOldestSupportedTheme_shouldReturnDefault()
95 assertThat(themeResolver.resolve("material_light")).isEqualTo(defaultTheme); in resolve_olderThanOldestSupportedTheme_shouldReturnDefault()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java554 StyleResourceValue defaultTheme = mRenderResources.getDefaultTheme(); in isAppCompatTheme() local
560 if (defaultTheme == null) { in isAppCompatTheme()
564 if (defaultTheme.getName().startsWith(PREFIX_THEME_APPCOMPAT)) { in isAppCompatTheme()
568 defaultTheme = mRenderResources.getParent(defaultTheme); in isAppCompatTheme()