/frameworks/base/libs/androidfw/tests/data/lib/ |
R.h | 31 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();
|
/external/chromium_org/components/dom_distiller/core/ |
distilled_page_prefs.h | 31 enum Theme { 40 virtual void OnChangeTheme(Theme theme) = 0; 53 // Sets the user's preference for the theme of distilled pages. 54 void SetTheme(Theme new_theme); 55 // Returns the user's preference for the theme of distilled pages. 56 Theme GetTheme(); 64 // Notifies all Observers of new theme. 65 void NotifyOnChangeTheme(Theme theme); [all...] |
viewer.h | 32 const DistilledPagePrefs::Theme theme, 43 const DistilledPagePrefs::Theme theme, 61 const DistilledPagePrefs::Theme theme, 82 // Returns JavaScript corresponding to setting a specific theme. 83 const std::string GetDistilledPageThemeJs(DistilledPagePrefs::Theme theme);
|
distilled_page_prefs.cc | 16 // Path to the integer corresponding to user's preference theme. 19 const char kThemePref[] = "dom_distiller.theme"; 65 void DistilledPagePrefs::SetTheme(DistilledPagePrefs::Theme new_theme) { 74 DistilledPagePrefs::Theme DistilledPagePrefs::GetTheme() { 75 int theme = pref_service_->GetInteger(kThemePref); local 76 if (theme < 0 || theme >= DistilledPagePrefs::THEME_COUNT) { 82 return static_cast<Theme>(theme); 99 DistilledPagePrefs::Theme new_theme) [all...] |
/frameworks/support/v4/api21/android/support/v4/content/res/ |
ResourcesCompatApi21.java | 21 import android.content.res.Resources.Theme; 25 public static Drawable getDrawable(Resources res, int id, Theme theme) 27 return res.getDrawable(id, theme); 30 public static Drawable getDrawableForDensity(Resources res, int id, int density, Theme theme) 32 return res.getDrawableForDensity(id, density, theme);
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/dom_distiller/ |
DistilledPagePrefsTest.java | 17 import org.chromium.components.dom_distiller.core.Theme; 49 // Check the default theme. 50 assertEquals(Theme.LIGHT, mDistilledPagePrefs.getTheme()); 51 // Check that theme can be correctly set. 52 setTheme(Theme.DARK); 53 assertEquals(Theme.DARK, mDistilledPagePrefs.getTheme()); 54 setTheme(Theme.LIGHT); 55 assertEquals(Theme.LIGHT, mDistilledPagePrefs.getTheme()); 56 setTheme(Theme.SEPIA); 57 assertEquals(Theme.SEPIA, mDistilledPagePrefs.getTheme()) [all...] |
/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 49 public static Drawable getDrawable(Resources res, int id, Theme theme) 53 return ResourcesCompatApi21.getDrawable(res, id, theme); 62 * the given screen density in DPI and styled for the specified theme. 64 * Prior to API level 15, the theme and density will not be applied an [all...] |
/frameworks/base/core/java/android/content/res/ |
ConstantState.java | 20 * depending on the current {@link Resources.Theme} or {@link Configuration}. 56 * implemented for resources that can have a theme applied. 58 public T newInstance(Resources res, Resources.Theme theme) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/animation/ |
AnimatorInflater_Delegate.java | 24 import android.content.res.Resources.Theme; 39 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id) 41 return loadAnimator(resources, theme, id, 1); 45 /*package*/ static Animator loadAnimator(Resources resources, Theme theme, int id, 54 /*package*/ static ValueAnimator loadAnimator(Resources res, Theme theme, 57 return AnimatorInflater.loadAnimator_Original(res, theme, attrs, anim, pathErrorScale);
|
/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...] |
/external/chromium_org/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/ |
DistilledPagePrefs.java | 28 void onChangeTheme(Theme theme); 50 private void onChangeTheme(int theme) { 51 mDistilledPagePrefsObserver.onChangeTheme(Theme.getThemeForValue(theme)); 108 public void setTheme(Theme theme) { 109 nativeSetTheme(mDistilledPagePrefsAndroid, theme.asNativeEnum()); 112 public Theme getTheme() { 113 return Theme.getThemeForValue(nativeGetTheme(mDistilledPagePrefsAndroid)) [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/support/v4/ics-mr1/android/support/v4/content/res/ |
ResourcesCompatIcsMr1.java | 21 import android.content.res.Resources.Theme;
|
/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 55 Resources thisResources, Theme thisTheme, 66 Resources thisResources, Theme thisTheme, 79 Resources thisResources, Theme thisTheme, 91 Resources thisResources, Theme thisTheme, 102 /*package*/ static TypedArray resolveAttributes(Resources thisResources, Theme thisTheme, 110 private static boolean setupResources(Theme thisTheme) { 111 // Key is a space-separated list of theme ids applied that have been merged into th 148 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();
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ |
DistilledPagePrefsView.java | 29 import org.chromium.components.dom_distiller.core.Theme; 38 * to change the theme, font size, etc. of distilled pages. 50 private final Map<Theme, RadioButton> mColorModeButtons; 77 mColorModeButtons = new EnumMap<Theme, RadioButton>(Theme.class); 96 mColorModeButtons.put(Theme.LIGHT, 97 initializeAndGetButton(R.id.light_mode, Theme.LIGHT)); 98 mColorModeButtons.put(Theme.DARK, 99 initializeAndGetButton(R.id.dark_mode, Theme.DARK)); 100 mColorModeButtons.put(Theme.SEPIA [all...] |
/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);
|