/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountPreferenceBase.java | 27 import android.content.res.Resources.Theme; 150 // base Settings theme (no references to local resources) 151 // and create a context theme wrapper so that we get the 157 final Theme baseTheme = getResources().newTheme();
|
/frameworks/base/core/java/android/widget/ |
ResourceCursorAdapter.java | 103 * Sets the {@link android.content.res.Resources.Theme} against which drop-down views are 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) { 115 super.setDropDownViewTheme(theme); 117 if (theme == null) { 119 } else if (theme == mInflater.getContext().getTheme()) [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
StateListDrawable.java | 31 import android.content.res.Resources.Theme; 108 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 110 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.StateListDrawable); 116 inflateChildElements(r, parser, attrs, theme); 130 // Extract the theme attributes, if any. 151 Theme theme) throws XmlPullParserException, IOException { 169 final TypedArray a = obtainAttributes(r, theme, attrs, 188 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); [all...] |
AnimatedRotateDrawable.java | 25 import android.content.res.Resources.Theme; 126 @NonNull AttributeSet attrs, @Nullable Theme theme) 128 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.AnimatedRotateDrawable); 131 super.inflate(r, parser, attrs, theme); 141 public void applyTheme(@NonNull Theme t) { 166 // If we're not waiting on a theme, verify required attributes. 184 // Extract the theme attributes, if any.
|
AnimationDrawable.java | 29 import android.content.res.Resources.Theme; 289 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 291 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.AnimationDrawable); 297 inflateChildElements(r, parser, attrs, theme); 303 Theme theme) throws XmlPullParserException, IOException { 318 final TypedArray a = obtainAttributes(r, theme, attrs, 340 dr = Drawable.createFromXmlInner(r, parser, attrs, theme);
|
ClipDrawable.java | 28 import android.content.res.Resources.Theme; 87 @NonNull AttributeSet attrs, @Nullable Theme theme) 89 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ClipDrawable); 92 super.inflate(r, parser, attrs, theme); 100 public void applyTheme(@NonNull Theme t) { 122 // If we're not waiting on a theme, verify required attributes. 140 // Extract the theme attributes, if any.
|
ColorDrawable.java | 26 import android.content.res.Resources.Theme; 232 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 234 super.inflate(r, parser, attrs, theme); 236 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorDrawable); 252 // Extract the theme attributes, if any. 265 public void applyTheme(Theme t) { 345 * after inflating or applying a theme.
|
LevelListDrawable.java | 27 import android.content.res.Resources.Theme; 88 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 90 super.inflate(r, parser, attrs, theme); 93 inflateChildElements(r, parser, attrs, theme); 97 Theme theme) throws XmlPullParserException, IOException { 115 TypedArray a = obtainAttributes(r, theme, attrs, 134 dr = r.getDrawable(drawableRes, theme); 144 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); [all...] |
RotateDrawable.java | 30 import android.content.res.Resources.Theme; 68 @NonNull AttributeSet attrs, @Nullable Theme theme) 70 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.RotateDrawable); 73 super.inflate(r, parser, attrs, theme); 81 public void applyTheme(@NonNull Theme t) { 103 // If we're not waiting on a theme, verify required attributes. 121 // Extract the theme attributes, if any.
|
ScaleDrawable.java | 27 import android.content.res.Resources.Theme; 99 @NonNull AttributeSet attrs, @Nullable Theme theme) 101 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ScaleDrawable); 104 super.inflate(r, parser, attrs, theme); 114 public void applyTheme(@NonNull Theme t) { 138 // If we're not waiting on a theme, verify required attributes. 156 // Extract the theme attributes, if any.
|
Drawable.java | 32 import android.content.res.Resources.Theme; 845 * Applies the specified theme to this Drawable and its children. 847 * @param t the theme to apply 849 public void applyTheme(@NonNull @SuppressWarnings("unused") Theme t) { [all...] |
AnimatedStateListDrawable.java | 24 import android.content.res.Resources.Theme; 376 @NonNull AttributeSet attrs, @Nullable Theme theme) 379 r, theme, attrs, R.styleable.AnimatedStateListDrawable); 385 inflateChildElements(r, parser, attrs, theme); 391 public void applyTheme(@Nullable Theme theme) { 392 super.applyTheme(theme); 399 final TypedArray a = theme.resolveAttributes( 413 // Extract the theme attributes, if any [all...] |
InsetDrawable.java | 27 import android.content.res.Resources.Theme; 100 @NonNull AttributeSet attrs, @Nullable Theme theme) 102 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.InsetDrawable); 105 super.inflate(r, parser, attrs, theme); 113 public void applyTheme(@NonNull Theme t) { 135 // If we're not waiting on a theme, verify required attributes. 153 // Extract the theme attributes, if any.
|
DrawableWrapper.java | 29 import android.content.res.Resources.Theme; 73 * after inflating or applying a theme. 122 @NonNull AttributeSet attrs, @Nullable Theme theme) 124 super.inflate(r, parser, attrs, theme); 137 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.DrawableWrapper); 141 inflateChildDrawable(r, parser, attrs, theme); 145 public void applyTheme(@NonNull Theme t) { 149 // array, it will already be themed correctly. So, we can theme the 188 // Extract the theme attributes, if any [all...] |
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollFindSensor.java | 51 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 53 super.onApplyThemeResource(theme, resid, first);
|
SetupFingerprintEnrollFinish.java | 47 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 49 super.onApplyThemeResource(theme, resid, first);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowResources.java | 209 public final android.content.res.Resources.Theme newTheme() { 210 return newInstanceOf(Resources.Theme.class); 213 @Implements(Resources.Theme.class)
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
PreloadIconDrawable.java | 4 import android.content.res.Resources.Theme; 49 public PreloadIconDrawable(Drawable icon, Theme theme) { 57 applyPreloaderTheme(theme); 61 public void applyPreloaderTheme(Theme t) {
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
AnimatedVectorDrawableCompat.java | 26 import android.content.res.Resources.Theme; 154 * {@link Theme}. Called on a parser positioned at a tag in an XML 159 XmlPullParser parser, AttributeSet attrs, Theme theme) 162 drawable.inflate(r, parser, attrs, theme); 320 * Obtains styled attributes from the theme, if available, or unstyled 321 * resources if the theme is null. 324 Resources res, Theme theme, AttributeSet set, int[] attrs) { 325 if (theme == null) [all...] |
/frameworks/base/core/java/android/animation/ |
AnimatorInflater.java | 27 import android.content.res.Resources.Theme; 98 * @param theme The theme 104 public static Animator loadAnimator(Resources resources, Theme theme, int id) 106 return loadAnimator(resources, theme, id, 1); 110 public static Animator loadAnimator(Resources resources, Theme theme, int id, 114 Animator animator = animatorCache.getInstance(id, resources, theme); 126 animator = createAnimatorFromXml(resources, theme, parser, pathErrorScale) 162 final Theme theme = context.getTheme(); local [all...] |
/frameworks/base/core/java/android/view/animation/ |
AnimationUtils.java | 26 import android.content.res.Resources.Theme; 302 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { 306 return createInterpolatorFromXml(res, theme, parser); 324 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) 347 interpolator = new AccelerateInterpolator(res, theme, attrs); 349 interpolator = new DecelerateInterpolator(res, theme, attrs); 353 interpolator = new CycleInterpolator(res, theme, attrs); 355 interpolator = new AnticipateInterpolator(res, theme, attrs) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/res/ |
ConfigurationBoundResourceCacheTest.java | 171 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; local 172 mCache.put(R.dimen.resource_cache_test_generic, theme, 174 mCache.put(R.dimen.resource_cache_test_orientation_dependent, theme, 185 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null; local 187 mCache.getInstance(R.dimen.resource_cache_test_generic, res, theme)); 190 theme)); 194 final Resources.Theme theme = i == 0 ? getActivity().getTheme() : null local [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
AppStubActivity.java | 135 public void onApplyThemeResource( Resources.Theme theme, 138 super.onApplyThemeResource(theme,resid,first);
|
/frameworks/base/core/java/android/content/res/ |
ResourcesImpl.java | 519 Drawable loadDrawable(Resources wrapper, TypedValue value, int id, Resources.Theme theme, 547 // that was inflated against the specified theme. Skip the cache if 550 final Drawable cachedDrawable = caches.getInstance(key, wrapper, theme); 557 // unresolved theme attributes. 574 // Determine if the drawable has unresolved theme attributes. If it 575 // does, we'll need to apply a theme and store it in a theme-specific 578 if (canApplyTheme && theme != null) { 580 dr.applyTheme(theme); [all...] |
/frameworks/base/libs/androidfw/tests/ |
ResTable_test.cpp | 85 ResTable::Theme theme(table); 86 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme1)); 90 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); 95 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags); 105 ResTable::Theme theme(table); 106 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme2)); 110 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); 115 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags) [all...] |