/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
VectorDrawableCompat.java | 25 import android.content.res.Resources.Theme; 356 // Don't support re-applying themes. The initial theme loading is working. 393 * @param theme the theme of this vector drawable, it can be null. 398 @Nullable Theme theme) { 401 drawable.mDelegateDrawable = ResourcesCompat.getDrawable(res, resId, theme); 418 return createFromXmlInner(res, parser, attrs, theme); 429 * {@link Theme}. Called on a parser positioned at a tag in an XML 434 AttributeSet attrs, Theme theme) throws XmlPullParserException, IOException [all...] |
/frameworks/base/core/java/android/widget/ |
ArrayAdapter.java | 426 * Sets the {@link Resources.Theme} against which drop-down views are 429 * By default, drop-down views are inflated against the theme of the 432 * @param theme the theme against which to inflate drop-down views or 433 * {@code null} to use the theme from the adapter's context 437 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { 438 if (theme == null) { 440 } else if (theme == mInflater.getContext().getTheme()) { 443 final Context context = new ContextThemeWrapper(mContext, theme); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
PendingAppWidgetHostView.java | 22 import android.content.res.Resources.Theme; 42 private static Theme sPreloaderTheme;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimatedVectorDrawable.java | 33 import android.content.res.Resources.Theme; 358 public void inflate(Resources res, XmlPullParser parser, AttributeSet attrs, Theme theme) 368 final TypedArray a = obtainAttributes(res, theme, attrs, 374 drawableRes, theme).mutate(); 385 final TypedArray a = obtainAttributes(res, theme, attrs, 392 if (theme != null) { 394 res, theme, animResId, pathErrorScale); 397 // The animation may be theme-dependent. As a 400 // until we have a theme in applyTheme() [all...] |
NinePatchDrawable.java | 24 import android.content.res.Resources.Theme; 397 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 399 super.inflate(r, parser, attrs, theme); 401 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.NinePatchDrawable); 418 // Extract the theme attributes, if any. 475 public void applyTheme(@NonNull Theme t) {
|
RippleDrawable.java | 29 import android.content.res.Resources.Theme; 416 @NonNull AttributeSet attrs, @Nullable Theme theme) 418 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.RippleDrawable); 424 super.inflate(r, parser, attrs, theme); 475 // Extract the theme attributes, if any. 496 public void applyTheme(@NonNull Theme t) { [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
Resources_Delegate.java | 44 import android.content.res.Resources.Theme; 138 static Drawable getDrawable(Resources resources, int id, Theme theme) { 142 return ResourceHelper.getDrawable(value.getSecond(), resources.mContext, theme); 158 static int getColor(Resources resources, int id, Theme theme) throws NotFoundException { 184 return getColorStateList(resources, id, theme).getDefaultColor(); 193 static ColorStateList getColorStateList(Resources resources, int id, Theme theme) 202 return stateList.obtainForTheme(theme); [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
VectorDrawableTest.java | 23 import android.content.res.Resources.Theme; 248 Theme theme = mResources.newTheme(); local 249 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); 250 vectorDrawable.inflate(mResources, parser, attrs, theme); 472 // Ensure theme density is applied correctly. 473 final Theme t = res.newTheme();
|
InsetDrawableTest.java | 23 import android.content.res.Resources.Theme; 404 // Ensure theme density is applied correctly. 405 final Theme t = res.newTheme();
|
GradientDrawableTest.java | 24 import android.content.res.Resources.Theme; 560 // Ensure theme density is applied correctly. 561 final Theme t = res.newTheme();
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ResourceHelper.java | 42 import android.content.res.Resources.Theme; 83 "Attribute '%s' not found. Are you using the right theme?", value)); 134 * @param theme the theme to use when resolving the complex color 140 @NonNull BridgeContext context, @Nullable Theme theme, boolean allowGradients) { 190 theme); 195 theme); 269 * @param theme the theme to be used to inflate the drawable [all...] |
/packages/apps/TV/src/com/android/tv/util/ |
Utils.java | 29 import android.content.res.Resources.Theme; 575 * @see #getColor(android.content.res.Resources,int,Theme) 585 * {@link android.content.res.Resources#getColor(int,Theme)} was newly added. 589 public static int getColor(Resources res, int id, @Nullable Theme theme) { 591 return res.getColor(id, theme); 600 * @see #getColorStateList(android.content.res.Resources,int,Theme) 610 * and {@link android.content.res.Resources#getColorStateList(int,Theme)} was newly added. 614 public static ColorStateList getColorStateList(Resources res, int id, @Nullable Theme theme) { [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContextTest.java | 23 import android.content.res.Resources.Theme; 193 final Theme testTheme = mContext.getTheme();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ArrayAdapterTest.java | 24 import android.content.res.Resources.Theme; 209 Theme theme = mContext.getResources().newTheme(); local 210 mArrayAdapter.setDropDownViewTheme(theme); 211 assertSame(theme, mArrayAdapter.getDropDownViewTheme());
|
CursorAdapterTest.java | 22 import android.content.res.Resources.Theme; 257 Theme theme = mContext.getResources().newTheme(); local 258 cursorAdapter.setDropDownViewTheme(theme); 259 assertSame(theme, cursorAdapter.getDropDownViewTheme());
|
SimpleAdapterTest.java | 23 import android.content.res.Resources.Theme; 265 Theme theme = mContext.getResources().newTheme(); local 266 mSimpleAdapter.setDropDownViewTheme(theme); 267 assertSame(theme, mSimpleAdapter.getDropDownViewTheme());
|
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
VectorDrawableTest.java | 21 import android.content.res.Resources.Theme; 119 private Theme mTheme;
|
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
DrawerLayoutActivity.java | 127 // your activity theme to have attribute named "drawerArrowStyle" that points 148 // from the theme makes the status bar slightly darker. 164 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); 165 final TypedArray a = theme.obtainStyledAttributes(
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContextWrapper.java | 52 public Resources.Theme getTheme() {
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
SetupWizardLayoutTest.java | 152 // Test the error message when using the wrong theme 154 android.R.style.Theme); 159 assertEquals("Exception message should mention correct theme to use", 161 + "(or its descendant) as your theme?", e.getMessage());
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
LayoutInflaterFactoryTestCase.java | 193 private static TypedValue getColorAccentValue(final Resources.Theme theme) { 195 theme.resolveAttribute(R.attr.colorAccent, typedValue, true);
|
/packages/apps/Settings/src/com/android/settings/ |
SetupChooseLockGeneric.java | 46 * only overload base methods for minor theme and behavior differences specific to Setup Wizard. 65 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 67 super.onApplyThemeResource(theme, resid, first);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ImportanceSeekBarPreference.java | 64 context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.Theme, 0, 0);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiSetupActivity.java | 181 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 183 super.onApplyThemeResource(theme, resid, first);
|
/cts/tests/tests/view/src/android/view/cts/ |
LayoutInflaterTest.java | 29 import android.content.res.Resources.Theme; 380 Theme theme = view.getContext().getTheme(); local 381 boolean resolved = theme.resolveAttribute(R.attr.themeType, outValue, true);
|