/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimationDrawable.java | 289 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument 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); 302 inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument
|
H A D | AnimatedStateListDrawable.java | 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) { argument 392 super.applyTheme(theme); 399 final TypedArray a = theme.resolveAttributes( 413 // Extract the theme attributes, if any. 436 Theme theme) throws XmlPullParserException, IOException { 453 parseItem(r, parser, attrs, theme); 455 parseTransition(r, parser, attrs, theme); 375 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 435 inflateChildElements(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument 460 parseTransition(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 496 parseItem(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument [all...] |
H A D | Drawable.java | 888 * Applies the specified theme to this Drawable and its children. 890 * @param t the theme to apply 1228 @Nullable Theme theme) throws XmlPullParserException, IOException { 1229 return createFromXmlForDensity(r, parser, 0, theme); 1239 @NonNull XmlPullParser parser, int density, @Nullable Theme theme) 1254 Drawable drawable = createFromXmlInnerForDensity(r, parser, attrs, density, theme); 1282 @NonNull AttributeSet attrs, @Nullable Theme theme) 1284 return createFromXmlInnerForDensity(r, parser, attrs, 0, theme); 1294 @Nullable Theme theme) throws XmlPullParserException, IOException { 1296 density, theme); 1227 createFromXml(@onNull Resources r, @NonNull XmlPullParser parser, @Nullable Theme theme) argument 1238 createFromXmlForDensity(@onNull Resources r, @NonNull XmlPullParser parser, int density, @Nullable Theme theme) argument 1281 createFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 1292 createFromXmlInnerForDensity(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, int density, @Nullable Theme theme) argument 1343 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 1432 newDrawable(@ullable Resources res, @Nullable @SuppressWarnings(�) Theme theme) argument 1497 obtainAttributes(@onNull Resources res, @Nullable Theme theme, @NonNull AttributeSet set, @NonNull int[] attrs) argument [all...] |
H A D | DrawableWrapper.java | 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); 148 // array, it will already be themed correctly. So, we can theme the 187 // Extract the theme attributes, if any. 432 @NonNull AttributeSet attrs, @Nullable Theme theme) 442 mState.mSrcDensityOverride, theme); 119 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 431 inflateChildDrawable(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 47 * theme. 49 * The theme which will be applied on top of the parent {@code context}'s theme is determined 54 * {@code 0} to use the parent {@code context}'s default theme. 60 int theme; 63 theme = R.style.Theme_MediaRouter_Light; 65 theme = R.style.Theme_MediaRouter_Light_DarkControlPanel; 69 theme = R.style.Theme_MediaRouter_LightControlPanel; 71 theme = R.style.Theme_MediaRouter; 75 Context themedContext = new ContextThemeWrapper(context, theme); [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | ActivityInfo.java | 47 * activity's theme. From the "theme" attribute or, if not set, 0. 49 public int theme; field in class:ActivityInfo 857 * the mode from the theme will be used. 935 theme = orig.theme; 958 * Return the theme resource identifier to use for this activity. If 959 * the activity defines a theme, that is used; else, the application 960 * theme is used. 962 * @return The theme associate [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 270 * resource identifier for the current configuration. Resolves theme 271 * attributes against the specified theme. 273 * @param theme the native pointer of the theme 281 final boolean getThemeValue(long theme, @AnyRes int resId, @NonNull TypedValue outValue, argument 283 final int block = loadThemeAttributeValue(theme, resId, outValue, resolveRefs); 573 /*package*/ final void releaseTheme(long theme) { argument 575 deleteTheme(theme); 576 decRefsLocked(theme); 832 /*package*/ native static final void applyStyle(long theme, argument 835 resolveAttrs(long theme, int defStyleAttr, int defStyleRes, int[] inValues, int[] inAttrs, int[] outValues, int[] outIndices) argument 871 deleteTheme(long theme) argument 872 applyThemeStyle(long theme, int styleRes, boolean force) argument 874 clearTheme(long theme) argument 875 loadThemeAttributeValue(long theme, int ident, TypedValue outValue, boolean resolve) argument 878 dumpTheme(long theme, int priority, String tag, String prefix) argument 879 getThemeChangingConfigurations(long theme) argument [all...] |
H A D | ColorStateList.java | 101 * an HTML-style hex color, a reference to a color resource, or -- in API 23 and above -- a theme 106 * between 0 and 1 or a theme attribute that resolves as such. The item's overall color is 108 * example, the following item represents the theme's accent color at 50% opacity: 235 * @param theme Optional theme to apply to the color state list, may be 241 @Nullable Theme theme) throws XmlPullParserException, IOException { 254 return createFromXmlInner(r, parser, attrs, theme); 266 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) 275 colorStateList.inflate(r, parser, attrs, theme); 301 @NonNull AttributeSet attrs, @Nullable Theme theme) 240 createFromXml(@onNull Resources r, @NonNull XmlPullParser parser, @Nullable Theme theme) argument 265 createFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 300 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument 695 newInstance(Resources res, Theme theme) argument [all...] |
H A D | ResourcesImpl.java | 528 int density, @Nullable Resources.Theme theme) 574 // that was inflated against the specified theme. Skip the cache if 577 final Drawable cachedDrawable = caches.getInstance(key, wrapper, theme); 585 // unresolved theme attributes. 609 // Determine if the drawable has unresolved theme attributes. If it 610 // does, we'll need to apply a theme and store it in a theme-specific 613 if (canApplyTheme && theme != null) { 615 dr.applyTheme(theme); 620 // cache: preload, not themed, null theme, o 527 loadDrawable(@onNull Resources wrapper, @NonNull TypedValue value, int id, int density, @Nullable Resources.Theme theme) argument 655 cacheDrawable(TypedValue value, boolean isColorDrawable, DrawableCache caches, Resources.Theme theme, boolean usesTheme, long key, Drawable dr) argument 727 loadDrawableForCookie(@onNull Resources wrapper, @NonNull TypedValue value, int id, int density, @Nullable Resources.Theme theme) argument 830 loadComplexColorFromName(Resources wrapper, Resources.Theme theme, TypedValue value, int id) argument 865 loadComplexColor(Resources wrapper, @NonNull TypedValue value, int id, Resources.Theme theme) argument 906 loadColorStateList(Resources wrapper, TypedValue value, int id, Resources.Theme theme) argument 966 loadComplexColorForCookie(Resources wrapper, TypedValue value, int id, Resources.Theme theme) argument [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | 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); 156 ResTable::Theme theme(table); 157 ASSERT_EQ(NO_ERROR, theme [all...] |
H A D | AttributeResolution_test.cpp | 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)); 182 ApplyStyle(&theme, &xml_parser_, 0 /*def_style_attr*/, 0 /*def_style_res*/, attrs.data(), 225 // @empty comes from the theme, so it has the same asset cookie and changing configurations flags 226 // as the theme [all...] |
/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesManagerTest.java | 189 Resources.Theme theme = resources1.newTheme(); 190 assertSame(resources1, theme.getResources()); 191 theme.applyStyle(android.R.style.Theme_NoTitleBar, false); 194 assertTrue(theme.resolveAttribute(android.R.attr.windowNoTitle, value, true)); 202 assertSame(resources1, theme.getResources()); 205 assertTrue(theme.resolveAttribute(android.R.attr.windowNoTitle, value, true));
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ButtonItem.java | 74 * The theme to use for this button. This can be used to create button of a particular style 76 * the theme to change the style applied by the button. 78 * @param theme Resource ID of the theme 80 public void setTheme(int theme) { argument 81 mTheme = theme; 86 * @return Resource ID of the theme used by this button. 122 * @param parent The parent of the button, used to retrieve the theme and context for this
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | AppCompatDialog.java | 45 public AppCompatDialog(Context context, int theme) { argument 46 super(context, getThemeResId(context, theme)); 165 // If the provided theme is 0, then retrieve the dialogTheme from our theme
|
/frameworks/base/core/java/android/widget/ |
H A D | CursorAdapter.java | 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) { argument 208 if (theme == null) { 210 } else if (theme == mContext.getTheme()) { 213 mDropDownContext = new ContextThemeWrapper(mContext, theme);
|
H A D | SimpleAdapter.java | 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) { argument 161 if (theme == null) { 163 } else if (theme == mInflater.getContext().getTheme()) { 166 final Context context = new ContextThemeWrapper(mInflater.getContext(), theme);
|
H A D | ArrayAdapter.java | 465 * By default, drop-down views are inflated against the theme of the 468 * @param theme the theme against which to inflate drop-down views or 469 * {@code null} to use the theme from the adapter's context 473 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { argument 474 if (theme == null) { 476 } else if (theme == mInflater.getContext().getTheme()) { 479 final Context context = new ContextThemeWrapper(mContext, theme);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/util/ |
H A D | FallbackThemeWrapperTest.java | 67 mThemedContext.obtainStyledAttributes(new int[] {android.R.attr.theme});
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ResourcesWrapper.java | 134 public Drawable getDrawable(int id, Theme theme) throws NotFoundException { argument 135 return mResources.getDrawable(id, theme); 146 public Drawable getDrawableForDensity(int id, int density, Theme theme) { argument 147 return mResources.getDrawableForDensity(id, density, theme);
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | SoftInputWindow.java | 59 * particular, it uses the window manager and theme from this context 61 * @param theme A style resource describing the theme to use for the window. 64 * using styles. This theme is applied on top of the current theme in 65 * <var>context</var>. If 0, the default dialog theme will be used. 67 public SoftInputWindow(Context context, String name, int theme, Callback callback, argument 70 super(context, theme);
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardDisplayManager.java | 145 public KeyguardPresentation(Context context, Display display, int theme) { argument 146 super(context, display, theme);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 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. 278 public static Drawable getDrawable(ResourceValue value, BridgeContext context, Theme theme) { argument 322 return Drawable.createFromXml(context.getResources(), blockParser, theme); 145 getInternalComplexColor(@onNull ResourceValue resValue, @NonNull BridgeContext context, @Nullable Theme theme, boolean allowGradients) argument 375 getFont(String fontName, BridgeContext context, Theme theme, boolean isFramework) argument 446 getFont(ResourceValue value, BridgeContext context, Theme theme) argument [all...] |
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
H A D | AnimatedVectorDrawableCompat.java | 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) argument 433 DrawableCompat.inflate(mDelegateDrawable, res, parser, attrs, theme); 449 TypedArrayUtils.obtainAttributes(res, theme, attrs, 459 drawableRes, theme); 557 public Drawable newDrawable(Resources res, Theme theme) { argument 560 drawableCompat.mDelegateDrawable = mDelegateState.newDrawable(res, theme); 246 createFromXmlInner(Context context, Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) argument
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | DrawerLayoutActivity.java | 93 // your activity theme to have attribute named "drawerArrowStyle" that points 114 // from the theme makes the status bar slightly darker. 130 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); 131 final TypedArray a = theme.obtainStyledAttributes(
|
/frameworks/base/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
H A D | ErrorCatcher.java | 17 package com.android.tools.idea.editors.theme.widgets; 31 * This is used by the theme editor to stop custom views from breaking the preview.
|