/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
AnimatorInflaterCompat.java | 34 import android.content.res.Resources.Theme; 111 * @param theme The theme 116 public static Animator loadAnimator(Context context, Resources resources, Theme theme, 118 return loadAnimator(context, resources, theme, id, 1); 124 public static Animator loadAnimator(Context context, Resources resources, Theme theme, 131 animator = createAnimatorFromXml(context, resources, theme, parser, pathErrorScale); 497 private static Animator createAnimatorFromXml(Context context, Resources res, Theme theme [all...] |
AnimatedVectorDrawableCompat.java | 25 import android.content.res.Resources.Theme; 242 * {@link Theme}. Called on a parser positioned at a tag in an XML 247 XmlPullParser parser, AttributeSet attrs, Theme theme) 250 drawable.inflate(r, parser, attrs, theme); 430 public void inflate(Resources res, XmlPullParser parser, AttributeSet attrs, Theme theme) 433 DrawableCompat.inflate(mDelegateDrawable, res, parser, attrs, theme); 449 TypedArrayUtils.obtainAttributes(res, theme, attrs, 459 drawableRes, theme); [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
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...] |
DrawableWrapper.java | 29 import android.content.res.Resources.Theme; 71 * after inflating or applying a theme. 120 @NonNull AttributeSet attrs, @Nullable Theme theme) 122 super.inflate(r, parser, attrs, theme); 136 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.DrawableWrapper); 140 inflateChildDrawable(r, parser, attrs, theme); 144 public void applyTheme(@NonNull Theme t) { 148 // array, it will already be themed correctly. So, we can theme the 187 // Extract the theme attributes, if any [all...] |
VectorDrawable.java | 24 import android.content.res.Resources.Theme; 281 * after inflating or applying a theme. 514 public void applyTheme(Theme t) { 542 // Apply theme to contained color state list. 606 @NonNull AttributeSet attrs, @Nullable Theme theme) 628 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.VectorDrawable); 635 inflateChildElements(r, parser, attrs, theme); 648 // Extract the theme attributes, if any. 713 Theme theme) throws XmlPullParserException, IOException [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 | 24 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...] |
PathInterpolator.java | 20 import android.content.res.Resources.Theme; 97 public PathInterpolator(Resources res, Theme theme, AttributeSet attrs) { 99 if (theme != null) { 100 a = theme.obtainStyledAttributes(attrs, R.styleable.PathInterpolator, 0, 0);
|
/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...] |
/frameworks/base/libs/androidfw/tests/ |
AttributeResolution_test.cpp | 68 TEST_F(AttributeResolutionTest, Theme) { 69 ResTable::Theme theme(table_); 70 ASSERT_EQ(NO_ERROR, theme.applyStyle(R::style::StyleTwo)); 76 ASSERT_TRUE(ResolveAttrs(&theme, 0 /*def_style_attr*/, 0 /*def_style_res*/, 113 // @empty comes from the theme, so it has the same asset cookie and changing configurations flags 114 // as the theme. 174 ResTable::Theme theme(table_); 175 ASSERT_EQ(NO_ERROR, theme.applyStyle(R::style::StyleTwo)) [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
AppStubActivity.java | 135 public void onApplyThemeResource( Resources.Theme theme, 138 super.onApplyThemeResource(theme,resid,first);
|
/external/universal-tween-engine/java/applets/src/aurelienribon/tweenengine/applets/ |
Theme.java | 15 public class Theme {
|
/frameworks/base/libs/androidfw/ |
AssetManager2.cpp | 702 std::unique_ptr<Theme> AssetManager2::NewTheme() { return std::unique_ptr<Theme>(new Theme(this)); } 704 bool Theme::ApplyStyle(uint32_t resid, bool force) { 788 ApkAssetsCookie Theme::GetAttribute(uint32_t resid, Res_value* out_value, 875 ApkAssetsCookie Theme::ResolveAttributeReference(ApkAssetsCookie cookie, Res_value* in_out_value, 894 void Theme::Clear() { 901 bool Theme::SetTo(const Theme& o) { [all...] |
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
VectorDrawableCommon.java | 101 public void applyTheme(Resources.Theme t) {
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollIntroduction.java | 49 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 51 super.onApplyThemeResource(theme, resid, first);
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
MainFragment.java | 18 import android.content.res.Resources.Theme; 146 Theme theme = getContext().getTheme(); 147 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); 149 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
|
/frameworks/base/core/java/android/text/style/ |
TextAppearanceSpan.java | 99 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme, 100 com.android.internal.R.styleable.Theme);
|
/frameworks/base/core/java/android/widget/ |
CursorAdapter.java | 196 * Sets the {@link Resources.Theme} against which drop-down views are 199 * By default, drop-down views are inflated against the theme of the 202 * @param theme the theme against which to inflate drop-down views or 203 * {@code null} to use the theme from the adapter's context 207 public void setDropDownViewTheme(Resources.Theme theme) { 208 if (theme == null) { 210 } else if (theme == mContext.getTheme()) { 213 mDropDownContext = new ContextThemeWrapper(mContext, theme); [all...] |
SimpleAdapter.java | 149 * Sets the {@link android.content.res.Resources.Theme} against which drop-down views are 152 * By default, drop-down views are inflated against the theme of the 155 * @param theme the theme against which to inflate drop-down views or 156 * {@code null} to use the theme from the adapter's context 160 public void setDropDownViewTheme(Resources.Theme theme) { 161 if (theme == null) { 163 } else if (theme == mInflater.getContext().getTheme()) { 166 final Context context = new ContextThemeWrapper(mInflater.getContext(), theme); [all...] |
/frameworks/base/libs/androidfw/include/androidfw/ |
ResourceTypes.h | [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ResourcesWrapper.java | 134 public Drawable getDrawable(int id, Theme theme) throws NotFoundException { 135 return mResources.getDrawable(id, theme); 146 public Drawable getDrawableForDensity(int id, int density, Theme theme) { 147 return mResources.getDrawableForDensity(id, density, theme);
|
/packages/apps/Email/tests/src/com/android/email/ |
DBTestHelper.java | 25 import android.content.res.Resources.Theme; 201 public Theme getTheme() {
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ |
Utils.java | 26 import android.content.res.Resources.Theme; 114 Theme theme = context.getTheme(); local 116 theme.resolveAttribute(attr, typedValue, true);
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountTypePreferenceLoader.java | 30 import android.content.res.Resources.Theme; 84 // base Settings theme (no references to local resources) 85 // and create a context theme wrapper so that we get the 91 final Theme baseTheme = mFragment.getResources().newTheme();
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ResourceHelper.java | 43 import android.content.res.Resources.Theme; 89 "Attribute '%s' not found. Are you using the right theme?", value)); 140 * @param theme the theme to use when resolving the complex color 146 @NonNull BridgeContext context, @Nullable Theme theme, boolean allowGradients) { 197 theme); 202 theme); 276 * @param theme the theme to be used to inflate the drawable [all...] |