/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
RippleDrawableTest.java | 25 import android.content.res.Resources.Theme; 96 // Ensure theme density is applied correctly. 97 final Theme t = res.newTheme();
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
VectorDrawableCommon.java | 38 * Obtains styled attributes from the theme, if available, or unstyled 39 * resources if the theme is null. 42 Resources res, Resources.Theme theme, AttributeSet set, int[] attrs) { 43 if (theme == null) { 46 return theme.obtainStyledAttributes(set, attrs, 0, 0); 139 public void applyTheme(Resources.Theme t) {
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ |
Utils.java | 26 import android.content.res.Resources.Theme; 110 Theme theme = context.getTheme(); local 112 theme.resolveAttribute(attr, typedValue, true);
|
/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.
|
/packages/apps/Settings/src/com/android/settings/ |
SetupChooseLockPassword.java | 29 * only overload base methods for minor theme and behavior differences specific to Setup Wizard. 81 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 83 super.onApplyThemeResource(theme, resid, first);
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollIntroduction.java | 48 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 50 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); 325 * Obtains styled attributes from the theme, if available, or unstyled 326 * resources if the theme is null. 329 Resources res, Theme theme, AttributeSet set, int[] attrs) { 330 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; 334 public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundException { 338 return createInterpolatorFromXml(res, theme, parser); 356 private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser parser) 379 interpolator = new AccelerateInterpolator(res, theme, attrs); 381 interpolator = new DecelerateInterpolator(res, theme, attrs); 385 interpolator = new CycleInterpolator(res, theme, attrs); 387 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);
|