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

1 2 3 4

  /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/core/platform/
Theme.cpp 27 #include "core/platform/Theme.h"
31 LengthBox Theme::controlBorder(ControlPart part, const Font&, const LengthBox& zoomedBox, float) const
45 LengthBox Theme::controlPadding(ControlPart part, const Font&, const LengthBox& zoomedBox, float) const
Theme.h 42 // Unlike other platform classes, Theme does extensively use virtual functions. This design allows a platform to switch between multiple themes at runtime.
43 class Theme {
45 Theme() { }
46 virtual ~Theme() { }
57 // General methods for whether or not any of the controls in the theme change appearance when the window is inactive or
78 // Notification when the theme has changed
92 // Allows the theme to modify the existing padding/border.
103 // the theme needs to communicate this inflated rect to the engine so that it can invalidate the whole control.
117 // Function to obtain the theme. This is implemented in the platform-specific subclasses.
118 Theme* platformTheme()
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/content/res/
Resources_Theme_Delegate.java 23 import android.content.res.Resources.Theme;
28 * Delegate used to provide new implementation of a select few methods of {@link Resources$Theme}
30 * Through the layoutlib_create tool, the original methods of Theme have been replaced
38 Resources thisResources, Theme thisTheme,
45 Resources thisResources, Theme thisTheme,
53 Resources thisResources, Theme thisTheme,
61 Resources thisResources, Theme thisTheme,
  /frameworks/base/core/java/android/view/
ContextThemeWrapper.java 26 * A ContextWrapper that allows you to modify the theme from what is in the
32 private Resources.Theme mTheme;
98 @Override public Resources.Theme getTheme() {
121 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme
122 * resource to the current Theme object. Can override to change the
126 * @param theme The Theme object being modified.
127 * @param resid The theme style resource being applied to <var>theme</var>.
129 * applied to <var>theme</var>
139 Resources.Theme theme = mBase.getTheme(); 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);
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiSetupActivity.java 23 // Extra containing the resource name of the theme to be used
24 private static final String EXTRA_THEME = "theme";
28 // Style resources containing theme settings
33 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {
39 super.onApplyThemeResource(theme, resid, first);
  /external/chromium_org/third_party/WebKit/Source/core/platform/mac/
ThemeMac.h 29 #include "core/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.
ThemeMac.mm 101 Theme* platformTheme()
561 // Theme overrides
567 return Theme::baselinePositionAdjustment(part);
585 return Theme::controlFont(part, font, zoomFactor);
620 return Theme::minimumControlSize(part, font, zoomFactor);
631 return Theme::controlBorder(part, font, zoomedBox, zoomFactor);
648 return Theme::controlPadding(part, font, zoomedBox, zoomFactor);
  /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();
  /cts/tests/tests/app/src/android/app/cts/
LaunchTest.java 24 import android.content.res.Resources.Theme;
LifecycleTest.java 27 import android.content.res.Resources.Theme;
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java 207 public final android.content.res.Resources.Theme newTheme() {
208 return newInstanceOf(Resources.Theme.class);
211 @Implements(Resources.Theme.class)
ShadowContext.java 60 abstract public Resources.Theme getTheme();
  /cts/tests/src/android/app/cts/
AppStubActivity.java 137 public void onApplyThemeResource( Resources.Theme theme,
140 super.onApplyThemeResource(theme,resid,first);
  /frameworks/base/core/jni/
android_util_AssetManager.cpp 818 return (jint)(new ResTable::Theme(am->getResources()));
824 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
825 delete theme;
833 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
834 theme->applyStyle(styleRes, force ? true : false);
840 ResTable::Theme* dest = (ResTable::Theme*)destInt
848 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
872 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
904 ResTable::Theme* theme = (ResTable::Theme*)themeToken; local
    [all...]
  /frameworks/base/core/java/android/text/style/
TextAppearanceSpan.java 99 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme,
100 com.android.internal.R.styleable.Theme);
  /frameworks/base/include/androidfw/
ResourceTypes.h     [all...]
  /packages/apps/Email/tests/src/com/android/email/
DBTestHelper.java 31 import android.content.res.Resources.Theme;
201 public Theme getTheme() {
  /development/samples/Support4Demos/src/com/example/android/supportv4/app/
FragmentDialogSupport.java 93 case 4: return "STYLE_NORMAL with dark fullscreen theme";
94 case 5: return "STYLE_NORMAL with light theme";
95 case 6: return "STYLE_NO_TITLE with light theme";
96 case 7: return "STYLE_NO_FRAME with light theme";
97 case 8: return "STYLE_NORMAL with light fullscreen theme";
127 int style = DialogFragment.STYLE_NORMAL, theme = 0; local
138 case 2: theme = android.R.style.Theme_Panel; break;
139 case 4: theme = android.R.style.Theme; break;
140 case 5: theme = android.R.style.Theme_Light; break
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/
ListViewTest.java 101 public Resources.Theme getTheme() {
  /frameworks/base/core/java/com/android/internal/widget/
SubtitleView.java 21 import android.content.res.Resources.Theme;
85 final Theme theme = context.getTheme(); local
86 final TypedArray a = theme.obtainStyledAttributes(
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderTheme.h 2 * This file is part of the theme implementation for form controls in WebCore.
28 #include "core/platform/Theme.h"
57 // This function is to be implemented in your platform-specific theme implementation to hand back the
58 // appropriate platform theme. When the theme is needed in non-page dependent code, a default theme is
62 // When the theme is needed in non-page dependent code, the defaultTheme() is used as fallback.
71 // property has been set to a value other than "none". The theme should map in all of the appropriate
74 // "border" are set, or if the appearance is not supported by the theme.
84 // The remaining methods should be implemented by the platform-specific portion of the theme, e.g.
    [all...]

Completed in 445 milliseconds

1 2 3 4