/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...] |
/frameworks/base/libs/androidfw/tests/data/lib/ |
R.h | 32 Theme = 0x02020000, // default
|
/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/support/compat/api21/android/support/v4/content/res/ |
ResourcesCompatApi21.java | 21 import android.content.res.Resources.Theme; 25 public static Drawable getDrawable(Resources res, int id, Theme theme) 27 return res.getDrawable(id, theme); 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) 32 return res.getDrawableForDensity(id, density, theme);
|
/frameworks/support/compat/api23/android/support/v4/content/res/ |
ResourcesCompatApi23.java | 22 import android.content.res.Resources.Theme; 25 public static int getColor(Resources res, int id, Theme theme) throws NotFoundException { 26 return res.getColor(id, theme); 29 public static ColorStateList getColorStateList(Resources res, int id, Theme theme) 31 return res.getColorStateList(id, theme);
|
/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);
|
ThemedResourceCache.java | 22 import android.content.res.Resources.Theme; 40 * Adds a new theme-dependent entry to the cache. 43 * @param theme the theme against which this entry was inflated, or 44 * {@code null} if the entry has no theme applied 47 public void put(long key, @Nullable Theme theme, @NonNull T entry) { 48 put(key, theme, entry, true); 55 * @param theme the theme against which this entry was inflated, o [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
ContextThemeWrapper.java | 27 * A ContextWrapper that allows you to modify the theme from what is in the 34 private Resources.Theme mTheme; 42 public ContextThemeWrapper(Context base, Resources.Theme theme) { 44 mTheme = theme; 60 public Resources.Theme getTheme() { 85 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme 86 * resource to the current Theme object. Can override to change the 90 * @param theme The Theme object being modified 103 Resources.Theme theme = getBaseContext().getTheme(); local [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/support/compat/java/android/support/v4/content/res/ |
ResourcesCompat.java | 22 import android.content.res.Resources.Theme; 39 * styled for the specified theme. Various types of objects will be 43 * Prior to API level 21, the theme will not be applied and this method 49 * @param theme The theme used to style the drawable attributes, may be 58 @Nullable Theme theme) throws NotFoundException { 60 return ResourcesCompatApi21.getDrawable(res, id, theme); 69 * the given screen density in DPI and styled for the specified theme. 71 * Prior to API level 15, the theme and density will not be applied an [all...] |
/frameworks/support/compat/ics-mr1/android/support/v4/content/res/ |
ResourcesCompatIcsMr1.java | 21 import android.content.res.Resources.Theme;
|
/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/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);
|
/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(); 94 Resources.Theme theme = getContext().getResources().newTheme(); local 96 0, theme.getChangingConfigurations()); 98 theme.applyStyle(R.style.Theme_OrientationDependent, true); 99 assertEquals("First call to Theme.applyStyle() sets changing configuration", 100 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); 102 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true) 124 Resources.Theme theme = res.newTheme(); local 147 final Theme theme = res.newTheme(); local 157 final Theme theme = res.newTheme(); local [all...] |
/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 | 22 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 | 22 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 | 22 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);
|