/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
D | WizardManagerHelper.java | 193 final String theme = intent.getStringExtra(EXTRA_THEME); in isLightTheme() local 194 return isLightTheme(theme, def); in isLightTheme() 205 public static boolean isLightTheme(String theme, boolean def) { in isLightTheme() argument 206 if (THEME_HOLO_LIGHT.equals(theme) || THEME_MATERIAL_LIGHT.equals(theme) in isLightTheme() 207 || THEME_MATERIAL_BLUE_LIGHT.equals(theme) || THEME_GLIF_LIGHT.equals(theme)) { in isLightTheme() 209 } else if (THEME_HOLO.equals(theme) || THEME_MATERIAL.equals(theme) in isLightTheme() 210 || THEME_MATERIAL_BLUE.equals(theme) || THEME_GLIF.equals(theme)) { in isLightTheme()
|
/frameworks/support/v4/java/android/support/v4/content/res/ |
D | ResourcesCompat.java | 58 @Nullable Theme theme) throws NotFoundException { in getDrawable() argument 60 return ResourcesCompatApi21.getDrawable(res, id, theme); in getDrawable() 91 int density, @Nullable Theme theme) throws NotFoundException { in getDrawableForDensity() argument 93 return ResourcesCompatApi21.getDrawableForDensity(res, id, density, theme); in getDrawableForDensity() 120 public static int getColor(@NonNull Resources res, @ColorRes int id, @Nullable Theme theme) in getColor() argument 123 return ResourcesCompatApi23.getColor(res, id, theme); in getColor() 151 @Nullable Theme theme) throws NotFoundException { in getColorStateList() argument 153 return ResourcesCompatApi23.getColorStateList(res, id, theme); in getColorStateList()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ContextThemeWrapper.java | 42 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() argument 44 mTheme = theme; in ContextThemeWrapper() 95 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { in onApplyThemeResource() argument 96 theme.applyStyle(resid, true); in onApplyThemeResource() 103 Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme() local 104 if (theme != null) { in initializeTheme() 105 mTheme.setTo(theme); in initializeTheme()
|
/frameworks/base/docs/html/training/material/ |
D | theme.jd | 22 <p>The new material theme provides:</p> 30 <p>You can customize the look of the material theme 32 the status bar using theme attributes, as shown in <a href="#fig3">Figure 3</a>.</p> 37 <p>The material theme is defined as:</p> 48 <!-- two columns, dark/light material theme example --> 53 <p style="margin-top:8px;font-size:12px"><strong>Figure 1</strong>. Dark material theme</p> 59 <p style="margin-top:8px;font-size:12px"><strong>Figure 2</strong>. Light material theme</p> 66 <strong>Note:</strong> The material theme is only available in Android 5.0 (API level 21) and 76 <p style="margin-bottom:30px">To customize the theme's base colors to fit your brand, define 77 your custom colors using theme attributes when you inherit from the material theme:</p> [all …]
|
/frameworks/base/core/java/android/animation/ |
D | AnimatorInflater.java | 104 public static Animator loadAnimator(Resources resources, Theme theme, int id) in loadAnimator() argument 106 return loadAnimator(resources, theme, id, 1); in loadAnimator() 110 public static Animator loadAnimator(Resources resources, Theme theme, int id, in loadAnimator() argument 114 Animator animator = animatorCache.getInstance(id, resources, theme); in loadAnimator() 126 animator = createAnimatorFromXml(resources, theme, parser, pathErrorScale); in loadAnimator() 134 animatorCache.put(id, theme, constantState); in loadAnimator() 136 animator = constantState.newInstance(resources, theme); in loadAnimator() 162 final Theme theme = context.getTheme(); in loadStateListAnimator() local 163 StateListAnimator animator = cache.getInstance(id, resources, theme); in loadStateListAnimator() 176 cache.put(id, theme, constantState); in loadStateListAnimator() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ContextThemeWrapper.java | 73 public ContextThemeWrapper(Context base, Resources.Theme theme) { in ContextThemeWrapper() argument 75 mTheme = theme; in ContextThemeWrapper() 185 protected void onApplyThemeResource(Resources.Theme theme, int resId, boolean first) { in onApplyThemeResource() argument 186 theme.applyStyle(resId, true); in onApplyThemeResource() 193 final Resources.Theme theme = getBaseContext().getTheme(); in initializeTheme() local 194 if (theme != null) { in initializeTheme() 195 mTheme.setTo(theme); in initializeTheme()
|
/frameworks/support/v7/appcompat/ |
D | THEMES.txt | 19 theme automatically. These should setup the framework theme ready so 20 that they are the theme is mostly the same on all platform versions. 31 to build up the theme across platforms. These themes do most of the work. 41 There are the themes which are pointers to the correct third level theme. 45 Because of this, every time there is a third level theme set, there should be a second level 46 theme pointing to it. This is so that devices do not use themes from newer and unavailable 59 the second level relevant second level theme below.
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatColorStateListInflater.java | 54 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException { in createFromXml() argument 67 return createFromXmlInner(r, parser, attrs, theme); in createFromXml() 80 @Nullable Resources.Theme theme) in createFromXmlInner() argument 88 return inflate(r, parser, attrs, theme); in createFromXmlInner() 95 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) in inflate() argument 113 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorStateListItem); in inflate() 162 private static TypedArray obtainAttributes(Resources res, Resources.Theme theme, in obtainAttributes() argument 164 return theme == null ? res.obtainAttributes(set, attrs) in obtainAttributes() 165 : theme.obtainStyledAttributes(set, attrs, 0, 0); in obtainAttributes()
|
/frameworks/base/core/java/android/app/ |
D | Presentation.java | 176 public Presentation(Context outerContext, Display display, int theme) { in Presentation() argument 177 super(createPresentationContext(outerContext, display, theme), theme, false); in Presentation() local 290 Context outerContext, Display display, int theme) { in createPresentationContext() argument 299 if (theme == 0) { in createPresentationContext() 303 theme = outValue.resourceId; in createPresentationContext() 314 return new ContextThemeWrapper(displayContext, theme) { in createPresentationContext()
|
/frameworks/base/docs/html/guide/topics/ui/ |
D | themes.jd | 19 <li><a href="#ApplyATheme">Apply a theme to an Activity or application</a></li> 20 <li><a href="#SelectATheme">Select a theme based on platform version</a></li> 66 <p>A <strong>theme</strong> is a style applied to an entire {@link android.app.Activity} or 68 style is applied as a theme, every View in the Activity or application will apply each style 70 as a theme for an Activity and then all text inside that Activity will have green monospace 112 <p>Remember, a style that you want to use as an Activity or application theme is defined in XML 114 style for a single View or as a theme for an entire Activity or application. How to apply a style 115 for a single View or as an application theme is discussed later.</p> 219 as a theme. These style properties apply to the entire window and not to any type of View. 220 For example, style properties for a theme can hide the application title, hide the status bar, [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ThemedSpinnerAdapter.java | 51 void setDropDownViewTheme(@Nullable Resources.Theme theme); in setDropDownViewTheme() argument 122 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { in setDropDownViewTheme() argument 123 if (theme == null) { in setDropDownViewTheme() 125 } else if (theme == mContext.getTheme()) { in setDropDownViewTheme() 128 final Context context = new ContextThemeWrapper(mContext, theme); in setDropDownViewTheme()
|
/frameworks/support/v4/api23/android/support/v4/content/res/ |
D | ResourcesCompatApi23.java | 25 public static int getColor(Resources res, int id, Theme theme) throws NotFoundException { in getColor() argument 26 return res.getColor(id, theme); in getColor() 29 public static ColorStateList getColorStateList(Resources res, int id, Theme theme) in getColorStateList() argument 31 return res.getColorStateList(id, theme); in getColorStateList()
|
/frameworks/support/v4/api21/android/support/v4/content/res/ |
D | ResourcesCompatApi21.java | 25 public static Drawable getDrawable(Resources res, int id, Theme theme) in getDrawable() argument 27 return res.getDrawable(id, theme); in getDrawable() 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) in getDrawableForDensity() argument 32 return res.getDrawableForDensity(id, density, theme); in getDrawableForDensity()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | NavigationBar.java | 58 int theme = attributes.getResourceId(0, 0); in getNavbarTheme() local 59 if (theme == 0) { in getNavbarTheme() 67 theme = isDarkBg ? R.style.SuwNavBarThemeDark : R.style.SuwNavBarThemeLight; in getNavbarTheme() 70 return theme; in getNavbarTheme() 74 final int theme = getNavbarTheme(context); in getThemedContext() local 75 return new ContextThemeWrapper(context, theme); in getThemedContext()
|
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/ |
D | ComplexColor_Accessor.java | 36 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createGradientColorFromXmlInner() argument 38 return GradientColor.createFromXmlInner(r, parser, attrs, theme); in createGradientColorFromXmlInner() 42 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) in createColorStateListFromXmlInner() argument 44 return ColorStateList.createFromXmlInner(r, parser, attrs, theme); in createColorStateListFromXmlInner()
|
/frameworks/base/core/java/android/widget/ |
D | ResourceCursorAdapter.java | 114 public void setDropDownViewTheme(Resources.Theme theme) { in setDropDownViewTheme() argument 115 super.setDropDownViewTheme(theme); in setDropDownViewTheme() 117 if (theme == null) { in setDropDownViewTheme() 119 } else if (theme == mInflater.getContext().getTheme()) { in setDropDownViewTheme() 122 final Context context = new ContextThemeWrapper(mContext, theme); in setDropDownViewTheme()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedStateListDrawable.java | 376 @NonNull AttributeSet attrs, @Nullable Theme theme) in inflate() argument 379 r, theme, attrs, R.styleable.AnimatedStateListDrawable); in inflate() 385 inflateChildElements(r, parser, attrs, theme); in inflate() 391 public void applyTheme(@Nullable Theme theme) { in applyTheme() argument 392 super.applyTheme(theme); in applyTheme() 399 final TypedArray a = theme.resolveAttributes( in applyTheme() 436 Theme theme) throws XmlPullParserException, IOException { in inflateChildElements() argument 453 parseItem(r, parser, attrs, theme); in inflateChildElements() 455 parseTransition(r, parser, attrs, theme); in inflateChildElements() 461 @NonNull AttributeSet attrs, @Nullable Theme theme) in parseTransition() argument [all …]
|
D | LevelListDrawable.java | 88 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) in inflate() argument 90 super.inflate(r, parser, attrs, theme); in inflate() 93 inflateChildElements(r, parser, attrs, theme); in inflate() 97 Theme theme) throws XmlPullParserException, IOException { in inflateChildElements() argument 115 TypedArray a = obtainAttributes(r, theme, attrs, in inflateChildElements() 134 dr = r.getDrawable(drawableRes, theme); in inflateChildElements() 144 dr = Drawable.createFromXmlInner(r, parser, attrs, theme); in inflateChildElements()
|
/frameworks/base/core/java/android/content/res/ |
D | ThemedResourceCache.java | 47 public void put(long key, @Nullable Theme theme, @NonNull T entry) { in put() argument 48 put(key, theme, entry, true); in put() 61 public void put(long key, @Nullable Theme theme, @NonNull T entry, boolean usesTheme) { in put() argument 71 entries = getThemedLocked(theme, true); in put() 87 public T get(long key, @Nullable Theme theme) { in get() argument 93 final LongSparseArray<WeakReference<T>> themedEntries = getThemedLocked(theme, false); in get()
|
D | Resources.java | 260 Theme theme = weakThemeRef != null ? weakThemeRef.get() : null; in setImpl() local 261 if (theme != null) { in setImpl() 262 theme.setImpl(mResourcesImpl.newThemeImpl(theme.getKey())); in setImpl() 761 public Drawable getDrawable(@DrawableRes int id, @Nullable Theme theme) in getDrawable() argument 767 return impl.loadDrawable(this, value, id, theme, true); in getDrawable() 819 public Drawable getDrawableForDensity(@DrawableRes int id, int density, @Nullable Theme theme) { in getDrawableForDensity() argument 845 return impl.loadDrawable(this, value, id, theme, useCache); in getDrawableForDensity() 852 Drawable loadDrawable(@NonNull TypedValue value, int id, @Nullable Theme theme) in loadDrawable() argument 854 return mResourcesImpl.loadDrawable(this, value, id, theme, true); in loadDrawable() 914 public int getColor(@ColorRes int id, @Nullable Theme theme) throws NotFoundException { in getColor() argument [all …]
|
D | AssetManager.java | 261 final boolean getThemeValue(long theme, @AnyRes int resId, @NonNull TypedValue outValue, in getThemeValue() argument 263 final int block = loadThemeAttributeValue(theme, resId, outValue, resolveRefs); in getThemeValue() 546 /*package*/ final void releaseTheme(long theme) { in releaseTheme() argument 548 deleteTheme(theme); in releaseTheme() 549 decRefsLocked(theme); in releaseTheme() 805 /*package*/ native static final boolean applyStyle(long theme, in applyStyle() argument 808 /*package*/ native static final boolean resolveAttrs(long theme, in resolveAttrs() argument 844 private native final void deleteTheme(long theme); in deleteTheme() argument 845 /*package*/ native static final void applyThemeStyle(long theme, int styleRes, boolean force); in applyThemeStyle() argument 847 /*package*/ native static final void clearTheme(long theme); in clearTheme() argument [all …]
|
D | DrawableCache.java | 34 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { in getInstance() argument 35 final Drawable.ConstantState entry = get(key, theme); in getInstance() 37 return entry.newDrawable(resources, theme); in getInstance()
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationUtils.java | 302 …public static Interpolator loadInterpolator(Resources res, Theme theme, int id) throws NotFoundExc… in loadInterpolator() argument 306 return createInterpolatorFromXml(res, theme, parser); in loadInterpolator() 324 …private static Interpolator createInterpolatorFromXml(Resources res, Theme theme, XmlPullParser pa… in createInterpolatorFromXml() argument 347 interpolator = new AccelerateInterpolator(res, theme, attrs); in createInterpolatorFromXml() 349 interpolator = new DecelerateInterpolator(res, theme, attrs); in createInterpolatorFromXml() 353 interpolator = new CycleInterpolator(res, theme, attrs); in createInterpolatorFromXml() 355 interpolator = new AnticipateInterpolator(res, theme, attrs); in createInterpolatorFromXml() 357 interpolator = new OvershootInterpolator(res, theme, attrs); in createInterpolatorFromXml() 359 interpolator = new AnticipateOvershootInterpolator(res, theme, attrs); in createInterpolatorFromXml() 363 interpolator = new PathInterpolator(res, theme, attrs); in createInterpolatorFromXml()
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 85 ResTable::Theme theme(table); in TEST() local 86 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme1)); in TEST() 90 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); in TEST() 95 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags); in TEST() 105 ResTable::Theme theme(table); in TEST() local 106 ASSERT_EQ(NO_ERROR, theme.applyStyle(base::R::style::Theme2)); in TEST() 110 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags); in TEST() 115 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags); in TEST() 125 ResTable::Theme theme(table); in TEST() local 126 ASSERT_EQ(NO_ERROR, theme.applyStyle(lib::R::style::Theme)); in TEST() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 45 public int theme; field in ActivityInfo 788 theme = orig.theme; in ActivityInfo() 815 return theme != 0 ? theme : applicationInfo.theme; in getThemeResource() 883 if (launchMode != 0 || flags != 0 || theme != 0) { in dump() 886 + " theme=0x" + Integer.toHexString(theme)); in dump() 925 dest.writeInt(theme); in writeToParcel() 968 theme = source.readInt(); in ActivityInfo()
|