/frameworks/base/graphics/java/android/graphics/drawable/ |
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; 282 * after inflating or applying a theme. 515 public void applyTheme(Theme t) { 543 // Apply theme to contained color state list. 607 @NonNull AttributeSet attrs, @Nullable Theme theme) 632 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.VectorDrawable); 639 inflateChildElements(r, parser, attrs, theme); 655 // Extract the theme attributes, if any. 720 Theme theme) throws XmlPullParserException, IOException [all...] |
InsetDrawable.java | 27 import android.content.res.Resources.Theme; 133 @NonNull AttributeSet attrs, @Nullable Theme theme) 135 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.InsetDrawable); 138 super.inflate(r, parser, attrs, theme); 146 public void applyTheme(@NonNull Theme t) { 168 // If we're not waiting on a theme, verify required attributes. 186 // Extract the theme attributes, if any.
|
ShapeDrawable.java | 25 import android.content.res.Resources.Theme; 401 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 403 super.inflate(r, parser, attrs, theme); 405 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ShapeDrawable); 430 public void applyTheme(Theme t) { 444 // Apply theme to contained color state list. 460 // Extract the theme attributes, if any. 625 * after inflating or applying a 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) {
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/ |
MainFragment.java | 19 import android.content.res.Resources.Theme; 148 Theme theme = getContext().getTheme(); 149 setBrandColor(getResources().getColor(R.color.fastlane_background, theme)); 151 setSearchAffordanceColor(getResources().getColor(R.color.search_opaque, theme));
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
BitmapDrawableTest.java | 27 import android.content.res.Resources.Theme; 128 // Ensure theme density is applied correctly. Unlike most 133 final Theme t = res.newTheme();
|
/frameworks/base/core/java/android/text/style/ |
TextAppearanceSpan.java | 110 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme, 111 com.android.internal.R.styleable.Theme);
|
/frameworks/base/core/java/android/view/animation/ |
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/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/compat/java/android/support/v4/graphics/drawable/ |
DrawableCompat.java | 184 * Applies the specified theme to this Drawable and its children. 186 public static void applyTheme(@NonNull Drawable drawable, @NonNull Resources.Theme theme) { 188 drawable.applyTheme(theme); 193 * Whether a theme can be applied to this Drawable and its children. 254 * Inflate this Drawable from an XML resource optionally styled by a theme. 259 * @param theme Theme to apply, may be null 265 @Nullable Resources.Theme theme) [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/Launcher3/src/com/android/launcher3/graphics/ |
ShadowDrawable.java | 111 public void applyTheme(Resources.Theme t) { 135 // Do not draw shadow on dark theme 157 Resources.Theme theme) throws XmlPullParserException, IOException { 158 super.inflate(r, parser, attrs, theme); 160 final TypedArray a = theme == null 162 : theme.obtainStyledAttributes(attrs, R.styleable.ShadowDrawable, 0, 0);
|
/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/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
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/core/java/android/content/res/ |
ResourcesImpl.java | 548 int density, @Nullable Resources.Theme theme) 594 // that was inflated against the specified theme. Skip the cache if 597 final Drawable cachedDrawable = caches.getInstance(key, wrapper, theme); 605 // unresolved theme attributes. 639 // Determine if the drawable has unresolved theme attributes. If it 640 // does, we'll need to apply a theme and store it in a theme-specific 643 if (canApplyTheme && theme != null) { 645 dr.applyTheme(theme); [all...] |
/cts/hostsidetests/theme/app/src/android/theme/app/ |
GenerateImagesActivity.java | 17 package android.theme.app; 44 private static final String OUT_DIR = "cts-theme-assets"; 149 final ThemeDeviceActivity.Theme theme = ThemeDeviceActivity.THEMES[mCurrentTheme]; local 150 if (theme.apiLevel > VERSION.SDK_INT) { 151 Log.v(TAG, "Skipping theme \"" + theme.name 152 + "\" (requires API " + theme.apiLevel + ")"); 156 Log.v(TAG, "Generating images for theme \"" + theme.name + "\"...") [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContext.java | 60 abstract public Resources.Theme getTheme();
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
ListViewTest.java | 103 public Resources.Theme getTheme() {
|
/frameworks/base/libs/androidfw/tests/ |
ResTable_test.cpp | 108 ResTable::Theme theme(table); 109 ASSERT_EQ(NO_ERROR, theme.applyStyle(basic::R::style::Theme1)); 113 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags); 118 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags); 132 ResTable::Theme theme(table); 133 ASSERT_EQ(NO_ERROR, theme.applyStyle(basic::R::style::Theme2)); 137 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags); 142 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags) [all...] |