Searched refs:theme (Results 1 - 25 of 81) sorted by relevance

1234

/frameworks/support/v4/api21/android/support/v4/content/res/
H A DResourcesCompatApi21.java25 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 DAssetManager_Delegate.java37 /*package*/ static void deleteTheme(AssetManager manager, long theme) { argument
38 Resources_Theme_Delegate.getDelegateManager().removeJavaReferenceFor(theme);
H A DResources_Theme_Delegate.java111 // Key is a space-separated list of theme ids applied that have been merged into the
112 // BridgeContext's theme to make thisTheme.
148 ResourceReference theme = context.resolveId(nativeResid);
149 if (theme.isFramework()) {
151 .getFrameworkResource(ResourceType.STYLE, theme.getName());
154 .getProjectResource(ResourceType.STYLE, theme.getName());
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperSettingsActivity.java26 * 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 DResourcesCompat.java32 * 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/tools/layoutlib/bridge/src/android/animation/
H A DAnimatorInflater_Delegate.java39 /*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/base/services/core/java/com/android/server/wm/
H A DStartingData.java23 final int theme; field in class:StartingData
35 theme = _theme;
/frameworks/base/core/java/android/content/res/
H A DConstantState.java56 * implemented for resources that can have a theme applied.
58 public T newInstance(Resources res, Resources.Theme theme) { argument
H A DConfigurationBoundResourceCache.java47 * @param theme The Theme instance where this resource was loaded.
51 public void put(long key, Resources.Theme theme, ConstantState<T> constantState) { argument
55 final String themeKey = theme == null ? "" : theme.getKey();
71 * @param theme The The Theme instance where we want to load this resource.
76 public T get(long key, Resources.Theme theme) { argument
77 final String themeKey = theme != null ? theme.getKey() : "";
92 return (T) entry.newInstance(mResources, theme);
H A DAssetManager.java227 /*package*/ final boolean getThemeValue(long theme, int ident, argument
229 int block = loadThemeAttributeValue(theme, ident, outValue, resolveRefs);
512 /*package*/ final void releaseTheme(long theme) { argument
514 deleteTheme(theme);
515 decRefsLocked(theme);
732 /*package*/ native static final boolean applyStyle(long theme, argument
735 /*package*/ native static final boolean resolveAttrs(long theme, argument
771 private native final void deleteTheme(long theme); argument
772 /*package*/ native static final void applyThemeStyle(long theme, int styleRes, boolean force); argument
774 /*package*/ native static final int loadThemeAttributeValue(long theme, in argument
777 dumpTheme(long theme, int priority, String tag, String prefix) argument
[all...]
/frameworks/base/core/java/android/view/
H A DContextThemeWrapper.java25 * A ContextWrapper that allows you to modify the theme from what is in the
117 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme
122 * @param theme The Theme object being modified.
123 * @param resid The theme style resource being applied to <var>theme</var>.
125 * applied to <var>theme</var>.
127 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { argument
128 theme.applyStyle(resid, true);
135 Resources.Theme theme = getBaseContext().getTheme();
136 if (theme !
[all...]
/frameworks/base/core/java/android/view/animation/
H A DAccelerateInterpolator.java63 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 DAnticipateInterpolator.java55 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 DCycleInterpolator.java46 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 DDecelerateInterpolator.java56 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 DOvershootInterpolator.java56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
58 if (theme != null) {
59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
H A DAnticipateOvershootInterpolator.java72 public AnticipateOvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
74 if (theme != null) {
75 a = theme.obtainStyledAttributes(attrs, AnticipateOvershootInterpolator, 0, 0);
H A DAnimationUtils.java299 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { argument
303 return createInterpolatorFromXml(res, theme, parser);
321 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) argument
344 interpolator = new AccelerateInterpolator(res, theme, attrs);
346 interpolator = new DecelerateInterpolator(res, theme, attrs);
350 interpolator = new CycleInterpolator(res, theme, attrs);
352 interpolator = new AnticipateInterpolator(res, theme, attrs);
354 interpolator = new OvershootInterpolator(res, theme, attrs);
356 interpolator = new AnticipateOvershootInterpolator(res, theme, attrs);
360 interpolator = new PathInterpolator(res, theme, attr
[all...]
/frameworks/base/core/java/android/app/
H A DPresentation.java151 * 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
287 createPresentationContext( Context outerContext, Display display, int theme) argument
[all...]
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java94 * @param theme The theme
100 public static Animator loadAnimator(Resources resources, Theme theme, int id) argument
102 return loadAnimator(resources, theme, id, 1);
106 public static Animator loadAnimator(Resources resources, Theme theme, int id, argument
110 Animator animator = animatorCache.get(id, theme);
122 animator = createAnimatorFromXml(resources, theme, parser, pathErrorScale);
130 animatorCache.put(id, theme, constantState);
132 animator = constantState.newInstance(resources, theme);
158 final Theme theme
548 createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, float pixelSize) argument
555 createAnimatorFromXml(Resources res, Theme theme, XmlPullParser parser, AttributeSet attrs, AnimatorSet parent, int sequenceOrdering, float pixelSize) argument
618 loadObjectAnimator(Resources res, Theme theme, AttributeSet attrs, float pathErrorScale) argument
636 loadAnimator(Resources res, Theme theme, AttributeSet attrs, ValueAnimator anim, float pathErrorScale) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DActivityInfo.java38 * activity's theme. From the "theme" attribute or, if not set, 0.
40 public int theme; field in class:ActivityInfo
619 * the mode from the theme will be used.
649 theme = orig.theme;
664 * Return the theme resource identifier to use for this activity. If
665 * the activity defines a theme, that is used; else, the application
666 * theme is used.
668 * @return The theme associate
[all...]
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp69 ResTable::Theme theme(table);
70 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme1));
74 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags);
79 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags);
89 ResTable::Theme theme(table);
90 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme2));
94 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags);
99 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags);
109 ResTable::Theme theme(table);
110 ASSERT_EQ(NO_ERROR, theme
[all...]
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationBoundResourceCacheTest.java160 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null;
161 mCache.put(R.dimen.resource_cache_test_generic, theme,
163 mCache.put(R.dimen.resource_cache_test_orientation_dependent, theme,
174 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null;
175 assertEquals(staticDim, mCache.get(R.dimen.resource_cache_test_generic, theme));
177 mCache.get(R.dimen.resource_cache_test_orientation_dependent, theme));
181 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null;
182 assertEquals(staticDim, mCache.get(R.dimen.resource_cache_test_generic, theme));
183 assertNull(mCache.get(R.dimen.resource_cache_test_orientation_dependent, theme));
/frameworks/opt/setupwizard/navigationbar/src/com/android/setupwizard/navigationbar/
H A DSetupWizardNavBar.java123 // Normally we can automatically guess the theme by comparing the foreground color against
131 int theme = attributes.getResourceId(0, 0);
132 if (theme == 0) {
134 // theme is light-on-dark or dark-on-light.
140 theme = isDarkBg ? R.style.setup_wizard_navbar_theme_dark :
144 return theme;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DStateListDrawable.java120 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument
122 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.StateListDrawable);
127 inflateChildElements(r, parser, attrs, theme);
141 // Extract the theme attributes, if any.
162 Theme theme) throws XmlPullParserException, IOException {
180 final TypedArray a = obtainAttributes(r, theme, attrs,
199 dr = Drawable.createFromXmlInner(r, parser, attrs, theme);
390 public void applyTheme(Theme theme) { argument
391 super.applyTheme(theme);
161 inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument

Completed in 240 milliseconds

1234