/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/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);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/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 | 41 * @param theme the theme where the resource will be used 45 public T getInstance(long key, Resources.Theme theme) { argument 46 final ConstantState<T> entry = get(key, theme); 48 return entry.newInstance(mResources, theme);
|
H A D | DrawableCache.java | 22 * Class which can be used to cache Drawable resources against a theme. 40 * @param theme the theme where the resource will be used 44 public Drawable getInstance(long key, Resources.Theme theme) { argument 45 final Drawable.ConstantState entry = get(key, theme); 47 return entry.newDrawable(mResources, theme);
|
H A D | ConstantState.java | 56 * implemented for resources that can have a theme applied. 58 public T newInstance(Resources res, Resources.Theme theme) { argument
|
H A D | ThemedResourceCache.java | 39 * Adds a new theme-dependent entry to the cache. 42 * @param theme the theme against which this entry was inflated, or 43 * {@code null} if the entry has no theme applied 46 public void put(long key, @Nullable Theme theme, @NonNull T entry) { argument 47 put(key, theme, entry, true); 54 * @param theme the theme against which this entry was inflated, or 55 * {@code null} if the entry has no theme applied 57 * @param usesTheme {@code true} if the entry is affected theme change 60 put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) argument 86 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/support/v4/java/android/support/v4/content/res/ |
H A D | ResourcesCompat.java | 32 * styled for the specified theme. Various types of objects will be 36 * Prior to API level 21, the theme will not be applied and this method 42 * @param theme The theme used to style the drawable attributes, may be 49 public static Drawable getDrawable(Resources res, int id, Theme theme) argument 53 return ResourcesCompatApi21.getDrawable(res, id, theme); 62 * the given screen density in DPI and styled for the specified theme. 64 * Prior to API level 15, the theme and density will not be applied and 67 * Prior to API level 21, the theme will not be applied and this method 75 * @param theme Th 82 getDrawableForDensity(Resources res, int id, int density, Theme theme) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ContextThemeWrapper.java | 26 * A ContextWrapper that allows you to modify the theme from what is in the 45 public ContextThemeWrapper(Context base, Resources.Theme theme) { argument 47 mTheme = theme; 127 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme 132 * @param theme The Theme object being modified. 133 * @param resid The theme style resource being applied to <var>theme</var>. 135 * applied to <var>theme</var>. 137 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument 138 theme [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/animation/ |
H A D | AnimatorInflater_Delegate.java | 39 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id) argument 41 return loadAnimator(resources, theme, id, 1); 45 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id, argument 54 /*package*/ static ValueAnimator loadAnimator(Resources res, Theme theme, argument 57 return AnimatorInflater.loadAnimator_Original(res, theme, attrs, anim, pathErrorScale);
|
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelper.java | 34 public static final String EXTRA_THEME = "theme"; 133 * Checks the intent whether the extra indicates that the light theme should be used or not. If 134 * the theme is not specified in the intent, or the theme specified is unknown, the value def 137 * @param intent The intent used to start the activity, which the theme extra will be read from. 138 * @param def The default value if the theme is not specified. 139 * @return True if the activity started by the given intent should use light theme. 142 final String theme = intent.getStringExtra(EXTRA_THEME); 143 if (THEME_HOLO_LIGHT.equals(theme) || THEME_MATERIAL_LIGHT.equals(theme) [all...] |
/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...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | ActivityInfo.java | 38 * activity's theme. From the "theme" attribute or, if not set, 0. 40 public int theme; field in class:ActivityInfo 638 * the mode from the theme will be used. 706 theme = orig.theme; 723 * Return the theme resource identifier to use for this activity. If 724 * the activity defines a theme, that is used; else, the application 725 * theme is used. 727 * @return The theme associate [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | NavigationBar.java | 43 // Normally we can automatically guess the theme by comparing the foreground color against 50 int theme = attributes.getResourceId(0, 0); 51 if (theme == 0) { 53 // theme is light-on-dark or dark-on-light. 59 theme = isDarkBg ? R.style.SuwNavBarThemeDark : R.style.SuwNavBarThemeLight; 62 return theme; 66 final int theme = getNavbarTheme(context); 67 return new ContextThemeWrapper(context, theme);
|