/frameworks/support/v4/api21/android/support/v4/content/res/ |
H A D | ResourcesCompatApi21.java | 25 public static Drawable getDrawable(Resources res, int id, Theme theme) argument 27 return res.getDrawable(id, theme); 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) argument 32 return res.getDrawableForDensity(id, density, theme);
|
/frameworks/support/v4/api23/android/support/v4/content/res/ |
H A D | ResourcesCompatApi23.java | 25 public static int getColor(Resources res, int id, Theme theme) throws NotFoundException { argument 26 return res.getColor(id, theme); 29 public static ColorStateList getColorStateList(Resources res, int id, Theme theme) argument 31 return res.getColorStateList(id, theme);
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
H A D | AssetManager_Delegate.java | 37 /*package*/ static void deleteTheme(AssetManager manager, long theme) { argument 38 Resources_Theme_Delegate.getDelegateManager().removeJavaReferenceFor(theme);
|
H A D | ComplexColor_Accessor.java | 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); 35 createGradientColorFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 41 createColorStateListFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
H A D | ContextThemeWrapper.java | 27 * A ContextWrapper that allows you to modify the theme from what is in the 42 public ContextThemeWrapper(Context base, Resources.Theme theme) { argument 44 mTheme = theme; 85 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme 90 * @param theme The Theme object being modified. 91 * @param resid The theme style resource being applied to <var>theme</var>. 93 * applied to <var>theme</var>. 95 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument 96 theme [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | ConfigurationBoundResourceCache.java | 33 * @param theme the theme where the resource will be used 37 public T getInstance(long key, Resources resources, Resources.Theme theme) { argument 38 final ConstantState<T> entry = get(key, theme); 40 return entry.newInstance(resources, theme);
|
H A D | 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) { argument 35 final Drawable.ConstantState entry = get(key, theme); 37 return entry.newDrawable(resources, theme);
|
H A D | ConstantState.java | 58 * implemented for resources that can have a theme applied. 60 public T newInstance(Resources res, Resources.Theme theme) { argument
|
H A D | ThemedResourceCache.java | 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) { argument 48 put(key, theme, entry, true); 55 * @param theme the theme against which this entry was inflated, or 56 * {@code null} if the entry has no theme applied 58 * @param usesTheme {@code true} if the entry is affected theme change 61 put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) argument 87 get(long key, @Nullable Theme theme) argument [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | WallpaperSettingsActivity.java | 26 * proper theme of the activity depending on how it is being used. 40 Resources.Theme theme = getTheme(); 42 theme.applyStyle(com.android.internal.R.style.PreviewWallpaperSettings, true); 44 theme.applyStyle(com.android.internal.R.style.ActiveWallpaperSettings, true);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelper.java | 42 public static final String EXTRA_THEME = "theme"; 69 * theme used in setup wizard for NYC. 74 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in 184 * Checks the intent whether the extra indicates that the light theme should be used or not. If 185 * the theme is not specified in the intent, or the theme specified is unknown, the value def 188 * @param intent The intent used to start the activity, which the theme extra will be read from. 189 * @param def The default value if the theme is not specified. 190 * @return True if the activity started by the given intent should use light theme. 193 final String theme 205 isLightTheme(String theme, boolean def) argument [all...] |
/frameworks/support/v4/java/android/support/v4/content/res/ |
H A D | ResourcesCompat.java | 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 and 74 * Prior to API level 21, the theme will not be applied and this method 82 * @param theme Th 57 getDrawable(@onNull Resources res, @DrawableRes int id, @Nullable Theme theme) argument 90 getDrawableForDensity(@onNull Resources res, @DrawableRes int id, int density, @Nullable Theme theme) argument 120 getColor(@onNull Resources res, @ColorRes int id, @Nullable Theme theme) argument 150 getColorStateList(@onNull Resources res, @ColorRes int id, @Nullable Theme theme) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ThemedSpinnerAdapter.java | 33 * against a different theme than normal views. 35 * Classes that implement this interface should use the theme provided to 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); argument 92 * public void setDropDownViewTheme(@Nullable Resources.Theme theme) { 93 * // Pass the new theme to the helper 94 * mDropDownHelper.setDropDownViewTheme(theme); 119 * @param theme the theme passe 122 setDropDownViewTheme(@ullable Resources.Theme theme) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StartingData.java | 23 final int theme; field in class:StartingData 35 theme = _theme;
|
/frameworks/base/core/java/android/widget/ |
H A D | ThemedSpinnerAdapter.java | 27 * against a different theme than normal views. 29 * Classes that implement this interface should use the theme provided to 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); argument
|
H A D | ResourceCursorAdapter.java | 106 * By default, drop-down views are inflated against the theme of the 109 * @param theme the theme against which to inflate drop-down views or 110 * {@code null} to use the theme from the adapter's context 114 public void setDropDownViewTheme(Resources.Theme theme) { argument 115 super.setDropDownViewTheme(theme); 117 if (theme == null) { 119 } else if (theme == mInflater.getContext().getTheme()) { 122 final Context context = new ContextThemeWrapper(mContext, theme);
|
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
H A D | PressedButton.java | 17 package com.android.tools.idea.editors.theme.widgets;
|
/frameworks/base/core/java/android/view/ |
H A D | ContextThemeWrapper.java | 27 * A context wrapper that allows you to modify or replace the theme of the 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. 67 * Unlike {@link #ContextThemeWrapper(Context, int)}, the theme passe 73 ContextThemeWrapper(Context base, Resources.Theme theme) argument 185 onApplyThemeResource(Resources.Theme theme, int resId, boolean first) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | NavigationBar.java | 51 // Normally we can automatically guess the theme by comparing the foreground color against 58 int theme = attributes.getResourceId(0, 0); 59 if (theme == 0) { 61 // theme is light-on-dark or dark-on-light. 67 theme = isDarkBg ? R.style.SuwNavBarThemeDark : R.style.SuwNavBarThemeLight; 70 return theme; 74 final int theme = getNavbarTheme(context); 75 return new ContextThemeWrapper(context, theme);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | AccelerateInterpolator.java | 63 public AccelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 65 if (theme != null) { 66 a = theme.obtainStyledAttributes(attrs, R.styleable.AccelerateInterpolator, 0, 0);
|
H A D | AnticipateInterpolator.java | 55 public AnticipateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 57 if (theme != null) { 58 a = theme.obtainStyledAttributes(attrs, R.styleable.AnticipateInterpolator, 0, 0);
|
H A D | CycleInterpolator.java | 46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) { argument 48 if (theme != null) { 49 a = theme.obtainStyledAttributes(attrs, R.styleable.CycleInterpolator, 0, 0);
|
H A D | DecelerateInterpolator.java | 56 public DecelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 58 if (theme != null) { 59 a = theme.obtainStyledAttributes(attrs, R.styleable.DecelerateInterpolator, 0, 0);
|
H A D | OvershootInterpolator.java | 56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument 58 if (theme != null) { 59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
|
/frameworks/base/core/java/android/app/ |
H A D | Presentation.java | 151 * using the default theme. 164 * using the optionally specified theme. 170 * @param theme A style resource describing the theme to use for the window. 173 * styles. This theme is applied on top of the current theme in 174 * <var>outerContext</var>. If 0, the default presentation theme will be used. 176 public Presentation(Context outerContext, Display display, int theme) { argument 177 super(createPresentationContext(outerContext, display, theme), theme, fals 289 createPresentationContext( Context outerContext, Display display, int theme) argument [all...] |