HomeSort by relevance Sort by last modified time
    Searched refs:Theme (Results 1 - 25 of 144) sorted by null

1 2 3 4 5 6

  /frameworks/base/libs/androidfw/tests/data/lib/
R.h 15 Theme = 0x02020000, // default
  /packages/apps/Contacts/src/com/android/contacts/util/
ThemeUtils.java 19 import android.content.res.Resources.Theme;
23 * Provides static functions to more easily resolve attributes of the current theme
27 * Resolves the given attribute id of the theme to a resource id
29 public static int getAttribute(Theme theme, int attrId) {
31 theme.resolveAttribute(attrId, outValue, true);
38 public static int getSelectableItemBackground(Theme theme) {
39 return getAttribute(theme, android.R.attr.selectableItemBackground);
45 public static int getActivatedBackground(Theme theme)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/
Theme.cpp 27 #include "platform/Theme.h"
31 LengthBox Theme::controlBorder(ControlPart part, const FontDescription&, const LengthBox& zoomedBox, float) const
45 LengthBox Theme::controlPadding(ControlPart part, const FontDescription&, const LengthBox& zoomedBox, float) const
Theme.h 43 // Unlike other platform classes, Theme does extensively use virtual functions. This design allows a platform to switch between multiple themes at runtime.
44 class PLATFORM_EXPORT Theme {
46 Theme() { }
47 virtual ~Theme() { }
58 // General methods for whether or not any of the controls in the theme change appearance when the window is inactive or
89 // Allows the theme to modify the existing padding/border.
100 // the theme needs to communicate this inflated rect to the engine so that it can invalidate the whole control.
110 PLATFORM_EXPORT Theme* platformTheme();
  /frameworks/support/v4/api21/android/support/v4/content/res/
ResourcesCompatApi21.java 20 import android.content.res.Resources.Theme;
24 public static Drawable getDrawable(Resources res, int id, Theme theme) {
25 return res.getDrawable(id, theme);
  /frameworks/support/v4/java/android/support/v4/content/res/
ResourcesCompat.java 21 import android.content.res.Resources.Theme;
32 * styled for the specified theme. Various types of objects will be
36 * Prior to API level 21, the theme will not be applied and this method
42 * @param theme The theme used to style the drawable attributes, may be {@code null}.
47 public Drawable getDrawable(Resources res, int id, Theme theme)
51 return ResourcesCompatApi21.getDrawable(res, id, theme);
  /cts/hostsidetests/theme/app/src/android/theme/app/
HoloDeviceActivity.java 17 package android.theme.app;
28 import android.theme.app.modifiers.DatePickerModifier;
29 import android.theme.app.modifiers.ProgressBarModifier;
30 import android.theme.app.modifiers.SearchViewModifier;
31 import android.theme.app.modifiers.TimePickerModifier;
32 import android.theme.app.modifiers.ViewCheckedModifier;
33 import android.theme.app.modifiers.ViewPressedModifier;
34 import android.theme.app.R;
35 import android.theme.app.ReferenceViewGroup;
47 * A activity which display various UI elements with Holo theme
85 final Theme theme = themes[intent.getIntExtra(EXTRA_THEME, 0)]; local
    [all...]
  /frameworks/base/core/java/android/view/
ContextThemeWrapper.java 25 * A ContextWrapper that allows you to modify the theme from what is in the
30 private Resources.Theme mTheme;
94 @Override public Resources.Theme getTheme() {
117 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme
118 * resource to the current Theme object. Can override to change the
122 * @param theme The Theme object being modified.
123 * @param resid The theme style resource being applied to <var>theme</var>.
125 * applied to <var>theme</var>
135 Resources.Theme theme = getBaseContext().getTheme(); local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
Resources_Theme_Delegate.java 29 import android.content.res.Resources.Theme;
34 * Delegate used to provide new implementation of a select few methods of {@link Resources.Theme}
36 * Through the layoutlib_create tool, the original methods of Theme have been replaced
42 // Whether to use the Theme.mThemeResId as primary theme.
58 Resources thisResources, Theme thisTheme,
68 Resources thisResources, Theme thisTheme,
79 Resources thisResources, Theme thisTheme,
90 Resources thisResources, Theme thisTheme,
101 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme
132 ResourceReference theme = context.resolveId(nativeResid); local
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
Resources_ThemeTest.java 23 import android.content.res.Resources.Theme;
34 private Resources.Theme mResTheme;
48 final Theme other = getContext().getTheme();
  /frameworks/base/core/java/android/service/wallpaper/
WallpaperSettingsActivity.java 26 * proper theme of the activity depending on how it is being used.
40 Resources.Theme theme = getTheme(); local
42 theme.applyStyle(com.android.internal.R.style.PreviewWallpaperSettings, true);
44 theme.applyStyle(com.android.internal.R.style.ActiveWallpaperSettings, true);
  /frameworks/base/core/java/android/view/animation/
AccelerateInterpolator.java 21 import android.content.res.Resources.Theme;
63 public AccelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) {
65 if (theme != null) {
66 a = theme.obtainStyledAttributes(attrs, R.styleable.AccelerateInterpolator, 0, 0);
AnticipateInterpolator.java 22 import android.content.res.Resources.Theme;
55 public AnticipateInterpolator(Resources res, Theme theme, AttributeSet attrs) {
57 if (theme != null) {
58 a = theme.obtainStyledAttributes(attrs, R.styleable.AnticipateInterpolator, 0, 0);
CycleInterpolator.java 22 import android.content.res.Resources.Theme;
46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) {
48 if (theme != null) {
49 a = theme.obtainStyledAttributes(attrs, R.styleable.CycleInterpolator, 0, 0);
DecelerateInterpolator.java 22 import android.content.res.Resources.Theme;
56 public DecelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) {
58 if (theme != null) {
59 a = theme.obtainStyledAttributes(attrs, R.styleable.DecelerateInterpolator, 0, 0);
OvershootInterpolator.java 21 import android.content.res.Resources.Theme;
56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) {
58 if (theme != null) {
59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
AnticipateOvershootInterpolator.java 21 import android.content.res.Resources.Theme;
71 public AnticipateOvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) {
73 if (theme != null) {
74 a = theme.obtainStyledAttributes(attrs, AnticipateOvershootInterpolator, 0, 0);
PathInterpolator.java 20 import android.content.res.Resources.Theme;
93 public PathInterpolator(Resources res, Theme theme, AttributeSet attrs) {
95 if (theme != null) {
96 a = theme.obtainStyledAttributes(attrs, R.styleable.PathInterpolator, 0, 0);
  /external/chromium_org/third_party/WebKit/Source/platform/mac/
ThemeMac.h 29 #include "platform/Theme.h"
37 class ThemeMac : public Theme {
57 // FIXME: Once RenderThemeMac is converted over to use Theme then this can be internal to ThemeMac.
  /frameworks/base/libs/androidfw/tests/
Theme_test.cpp 44 ResTable::Theme theme1(table);
58 ResTable::Theme theme2(table2);
  /frameworks/base/graphics/java/android/graphics/drawable/
ColorDrawable.java 24 import android.content.res.Resources.Theme;
221 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
223 super.inflate(r, parser, attrs, theme);
225 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorDrawable);
239 // Extract the theme attributes, if any.
247 public void applyTheme(Theme t) {
303 public Drawable newDrawable(Resources res, Theme theme) {
304 return new ColorDrawable(this, res, theme);
    [all...]
TransitionDrawable.java 20 import android.content.res.Resources.Theme;
92 private TransitionDrawable(TransitionState state, Resources res, Theme theme) {
93 super(state, res, theme);
264 public Drawable newDrawable(Resources res, Theme theme) {
265 return new TransitionDrawable(this, res, theme);
LevelListDrawable.java 26 import android.content.res.Resources.Theme;
87 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
89 super.inflate(r, parser, attrs, theme);
108 TypedArray a = obtainAttributes(r, theme, attrs,
127 dr = r.getDrawable(drawableRes, theme);
137 dr = Drawable.createFromXmlInner(r, parser, attrs, theme);
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 22 import android.content.res.Resources.Theme;
39 protected void onApplyThemeResource(Theme theme, int resid, boolean first) {
41 super.onApplyThemeResource(theme, resid, first);
57 // set Theme to TextAppearance
62 // assert theme style of TextAppearance
108 // get Theme and assert
109 Resources.Theme expected = getContext().getResources().newTheme();
  /cts/tests/tests/content/src/android/content/cts/
ContextTest.java 29 import android.content.res.Resources.Theme;
85 final Theme testTheme = mContext.getTheme();

Completed in 739 milliseconds

1 2 3 4 5 6