/cts/hostsidetests/theme/app/src/android/theme/app/ |
ThemeDeviceActivity.java | 17 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; 41 public static final String EXTRA_THEME = "theme"; 52 private Theme mTheme; 65 Log.e(TAG, "No theme specified") [all...] |
/frameworks/base/core/java/android/widget/ |
ThemedSpinnerAdapter.java | 21 import android.content.res.Resources.Theme; 27 * against a different theme than normal views. 29 * Classes that implement this interface should use the theme provided to 30 * {@link #setDropDownViewTheme(Theme)} when creating views in 35 * Sets the {@link Resources.Theme} against which drop-down views are 38 * @param theme the context against which to inflate drop-down views, or 39 * {@code null} to use the default theme 42 void setDropDownViewTheme(@Nullable Resources.Theme theme); 46 * {@link #setDropDownViewTheme(Theme)} [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ThemeUtils.java | 19 import android.content.res.Resources.Theme; 23 * Provides static functions to more easily resolve attributes of the current theme 27 * Resolves the given attribute id of the theme to a resource id 29 public static int getAttribute(Theme theme, int attrId) { 31 theme.resolveAttribute(attrId, outValue, true); 38 public static int getSelectableItemBackground(Theme theme) { 39 return getAttribute(theme, android.R.attr.selectableItemBackground); 45 public static int getActivatedBackground(Theme theme) [all...] |
/frameworks/base/core/java/android/content/res/ |
ComplexColor.java | 20 import android.content.res.Resources.Theme; 57 public abstract ComplexColor obtainForTheme(Theme t);
|
ConstantState.java | 22 * depending on the current {@link Resources.Theme} or {@link Configuration}. 58 * implemented for resources that can have a theme applied. 60 public T newInstance(Resources res, Resources.Theme theme) {
|
ConfigurationBoundResourceCache.java | 33 * @param theme the theme where the resource will be used 37 public T getInstance(long key, Resources resources, Resources.Theme theme) { 38 final ConstantState<T> entry = get(key, theme); 40 return entry.newInstance(resources, theme);
|
DrawableCache.java | 22 * Class which can be used to cache Drawable resources against a theme. 30 * @param theme the theme where the resource will be used 34 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { 35 final Drawable.ConstantState entry = get(key, theme); 37 return entry.newDrawable(resources, theme);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
FallbackThemeWrapper.java | 20 import android.content.res.Resources.Theme; 25 * Same as {@link ContextThemeWrapper}, but the base context's theme attributes take precedence 26 * over the wrapper context's. This is used to provide default values for theme attributes 28 * theme. 33 * Creates a new context wrapper with the specified theme. 35 * The specified theme will be applied as fallbacks to the base context's theme. Any attributes 36 * defined in the base context's theme will retain their original values. Otherwise values in 40 * @param themeResId The theme to use as fallback. 50 protected void onApplyThemeResource(Theme theme, int resId, boolean first) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ThemedSpinnerAdapter.java | 22 import android.content.res.Resources.Theme; 33 * against a different theme than normal views. 35 * Classes that implement this interface should use the theme provided to 36 * {@link #setDropDownViewTheme(Theme)} when creating views in 44 * Sets the {@link Resources.Theme} against which drop-down views are 47 * @param theme the context against which to inflate drop-down views, or 48 * {@code null} to use the default theme 51 void setDropDownViewTheme(@Nullable Resources.Theme theme); 55 * {@link #setDropDownViewTheme(Theme)} [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
ComplexColor_Accessor.java | 24 import android.content.res.Resources.Theme; 31 * XmlPullParser, AttributeSet, Theme)} and {@link ColorStateList#createFromXmlInner(Resources, 32 * XmlPullParser, AttributeSet, Theme)} methods 36 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) 38 return GradientColor.createFromXmlInner(r, parser, attrs, theme); 42 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) 44 return ColorStateList.createFromXmlInner(r, parser, attrs, theme);
|
Resources_Theme_Delegate.java | 29 import android.content.res.Resources.Theme; 35 * Delegate used to provide new implementation of a select few methods of {@link Resources.Theme} 37 * Through the layoutlib_create tool, the original methods of Theme have been replaced 56 Resources thisResources, Theme thisTheme, 67 Resources thisResources, Theme thisTheme, 80 Resources thisResources, Theme thisTheme, 92 Resources thisResources, Theme thisTheme, 103 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, 111 private static boolean setupResources(Theme thisTheme) { 112 // Key is a space-separated list of theme ids applied that have been merged into th 143 ResourceReference theme = context.resolveId(nativeResid); local [all...] |
/frameworks/base/libs/androidfw/tests/data/lib_one/ |
R.h | 36 Theme = 0x02020000, // default
|
/frameworks/base/libs/androidfw/tests/data/libclient/ |
R.h | 36 Theme = 0x7f020000, // default
|
/frameworks/base/libs/androidfw/include/androidfw/ |
AttributeResolution.h | 45 bool ResolveAttrs(ResTable::Theme* theme, uint32_t def_style_attr, uint32_t def_style_res, 51 void ApplyStyle(ResTable::Theme* theme, ResXMLParser* xml_parser, uint32_t def_style_attr,
|
/frameworks/base/libs/androidfw/tests/ |
Theme_bench.cpp | 27 constexpr const static uint32_t kStyleId = 0x01030237u; // android:style/Theme.Material.Light 41 auto theme = assets.NewTheme(); local 42 theme->ApplyStyle(kStyleId, false /* force */); 58 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)}; 59 theme->applyStyle(kStyleId, false /* force */); 70 auto theme = assets.NewTheme(); local 71 theme->ApplyStyle(kStyleId, false /* force */); 77 theme->GetAttribute(kAttrId, &value, &flags) [all...] |
/frameworks/base/core/java/android/view/ |
ContextThemeWrapper.java | 27 * A context wrapper that allows you to modify or replace the theme of the 32 private Resources.Theme mTheme; 38 * Creates a new context wrapper with no theme and no base context. 49 * Creates a new context wrapper with the specified theme. 51 * The specified theme will be applied on top of the base context's theme. 52 * Any attributes not explicitly defined in the theme identified by 56 * @param themeResId the resource ID of the theme to be applied on top of 57 * the base context's theme 65 * Creates a new context wrapper with the specified theme 193 final Resources.Theme theme = getBaseContext().getTheme(); local [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
ContextThemeWrapper.java | 33 * A ContextWrapper that allows you to modify the theme from what is in the 41 private Resources.Theme mTheme; 47 * Creates a new context wrapper with no theme and no base context. 58 * Creates a new context wrapper with the specified theme. 60 * The specified theme will be applied on top of the base context's theme. 61 * Any attributes not explicitly defined in the theme identified by 65 * @param themeResId the resource ID of the theme to be applied on top of 66 * the base context's theme 74 * Creates a new context wrapper with the specified theme 195 Resources.Theme theme = getBaseContext().getTheme(); local [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
Resources_ThemeTest.java | 25 import android.content.res.Resources.Theme; 42 private Resources.Theme mResTheme; 57 final Theme other = getContext().getTheme(); 104 Resources.Theme theme = getContext().getResources().newTheme(); local 106 0, theme.getChangingConfigurations()); 108 theme.applyStyle(R.style.Theme_OrientationDependent, true); 109 assertEquals("First call to Theme.applyStyle() sets changing configuration", 110 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); 112 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true) 134 Resources.Theme theme = res.newTheme(); local 157 final Theme theme = res.newTheme(); local 167 final Theme theme = res.newTheme(); local 174 final Theme theme = res.newTheme(); local [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
WallpaperSettingsActivity.java | 26 * proper theme of the activity depending on how it is being used. 40 Resources.Theme theme = getTheme(); local 42 theme.applyStyle(com.android.internal.R.style.PreviewWallpaperSettings, true); 44 theme.applyStyle(com.android.internal.R.style.ActiveWallpaperSettings, true);
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollEnrolling.java | 35 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 37 super.onApplyThemeResource(theme, resid, first);
|
/frameworks/base/core/java/android/view/animation/ |
AccelerateInterpolator.java | 21 import android.content.res.Resources.Theme; 63 public AccelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { 65 if (theme != null) { 66 a = theme.obtainStyledAttributes(attrs, R.styleable.AccelerateInterpolator, 0, 0);
|
AnticipateInterpolator.java | 21 import android.content.res.Resources.Theme; 55 public AnticipateInterpolator(Resources res, Theme theme, AttributeSet attrs) { 57 if (theme != null) { 58 a = theme.obtainStyledAttributes(attrs, R.styleable.AnticipateInterpolator, 0, 0);
|
CycleInterpolator.java | 21 import android.content.res.Resources.Theme; 46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) { 48 if (theme != null) { 49 a = theme.obtainStyledAttributes(attrs, R.styleable.CycleInterpolator, 0, 0);
|
DecelerateInterpolator.java | 21 import android.content.res.Resources.Theme; 56 public DecelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { 58 if (theme != null) { 59 a = theme.obtainStyledAttributes(attrs, R.styleable.DecelerateInterpolator, 0, 0);
|
OvershootInterpolator.java | 21 import android.content.res.Resources.Theme; 56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { 58 if (theme != null) { 59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
|