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

1 2 3

  /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...]
  /sdk/assetstudio/tests/src/com/android/assetstudiolib/
ActionBarIconGeneratorTest.java 20 import com.android.assetstudiolib.ActionBarIconGenerator.Theme;
26 private void checkGraphic(String baseName, Theme theme) throws IOException {
28 options.theme = theme;
35 checkGraphic("ic_action_dark", Theme.HOLO_DARK);
39 checkGraphic("ic_action_light", Theme.HOLO_LIGHT);
  /external/webkit/Source/WebCore/platform/
Theme.cpp 27 #include "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 25 * A ContextWrapper that allows you to modify the theme from what is in the
31 private Resources.Theme mTheme;
60 @Override public Resources.Theme getTheme() {
83 * Called by {@link #setTheme} and {@link #getTheme} to apply a theme
84 * resource to the current Theme object. Can override to change the
88 * @param theme The Theme object being modified.
89 * @param resid The theme style resource being applied to <var>theme</var>.
91 * applied to <var>theme</var>
101 Resources.Theme theme = mBase.getTheme(); local
    [all...]
  /sdk/assetstudio/src/com/android/assetstudiolib/
ActionBarIconGenerator.java 52 if (actionBarOptions.theme == Theme.HOLO_LIGHT) {
57 assert actionBarOptions.theme == Theme.HOLO_DARK;
80 /** The theme to generate icons for */
81 public Theme theme = Theme.HOLO_LIGHT; field in class:ActionBarIconGenerator.ActionBarOptions
85 public enum Theme {
86 /** Theme.Holo - a dark (and default) version of the Honeycomb theme *
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
Resources_ThemeTest.java 23 import android.content.res.Resources.Theme;
36 @TestTargetClass(Resources.Theme.class)
39 private Resources.Theme mResTheme;
61 args = {android.content.res.Resources.Theme.class}
70 final Theme other = getContext().getTheme();
  /external/webkit/Source/WebCore/platform/chromium/
ThemeChromiumMac.h 30 #include "Theme.h"
37 class ThemeChromiumMac : public Theme {
ThemeChromiumMac.mm 196 Theme* platformTheme()
659 // Theme overrides
665 return Theme::baselinePositionAdjustment(part);
683 return Theme::controlFont(part, font, zoomFactor);
730 return Theme::minimumControlSize(part, font, zoomFactor);
743 return Theme::controlBorder(part, font, zoomedBox, zoomFactor);
760 return Theme::controlPadding(part, font, zoomedBox, zoomFactor);
  /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);
  /external/webkit/Source/WebCore/platform/mac/
ThemeMac.h 29 #include "Theme.h"
33 class ThemeMac : public Theme {
53 // FIXME: Once RenderThemeMac is converted over to use Theme then this can be internal to ThemeMac.
ThemeMac.mm 83 Theme* platformTheme()
568 // Theme overrides
574 return Theme::baselinePositionAdjustment(part);
592 return Theme::controlFont(part, font, zoomFactor);
639 return Theme::minimumControlSize(part, font, zoomFactor);
652 return Theme::controlBorder(part, font, zoomedBox, zoomFactor);
669 return Theme::controlPadding(part, font, zoomedBox, zoomFactor);
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 22 import android.content.res.Resources.Theme;
45 protected void onApplyThemeResource(Theme theme, int resid, boolean first) {
47 super.onApplyThemeResource(theme, resid, first);
92 // set Theme to TextAppearance
97 // assert theme style of TextAppearance
112 args = {android.content.res.Resources.Theme.class, int.class, boolean.class}
163 // get Theme and assert
164 Resources.Theme expected = getContext().getResources().newTheme();
  /frameworks/base/core/java/android/text/style/
TextAppearanceSpan.java 94 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme,
95 com.android.internal.R.styleable.Theme);
  /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 805 return (jint)(new ResTable::Theme(am->getResources()));
811 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
812 delete theme;
820 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
821 theme->applyStyle(styleRes, force ? true : false);
827 ResTable::Theme* dest = (ResTable::Theme*)destInt
835 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
859 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local
891 ResTable::Theme* theme = (ResTable::Theme*)themeToken; local
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContextTest.java 34 import android.content.res.Resources.Theme;
125 final Theme testTheme = mContext.getTheme();
  /packages/apps/Email/tests/src/com/android/email/
DBTestHelper.java 31 import android.content.res.Resources.Theme;
201 public Theme getTheme() {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
LatinKeyboard.java 21 import android.content.res.Resources.Theme;
50 private final Theme mTheme;
333 public static int getTextSizeFromTheme(Theme theme, int style, int defValue) {
334 final TypedArray a = theme.obtainStyledAttributes(style, ATTR_TEXT_SIZE);
  /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/include/utils/
ResourceTypes.h     [all...]
  /frameworks/base/core/java/android/content/res/
Resources.java 140 com.android.internal.R.style.Theme,
    [all...]
  /external/webkit/Source/WebCore/rendering/
RenderTheme.h 2 * This file is part of the theme implementation for form controls in WebCore.
27 #include "Theme.h"
56 // This function is to be implemented in your platform-specific theme implementation to hand back the
57 // appropriate platform theme. When the theme is needed in non-page dependent code, a default theme is
61 // When the theme is needed in non-page dependent code, the defaultTheme() is used as fallback.
68 // property has been set to a value other than "none". The theme should map in all of the appropriate
71 // "border" are set, or if the appearance is not supported by the theme.
82 // The remaining methods should be implemented by the platform-specific portion of the theme, e.g.
    [all...]

Completed in 515 milliseconds

1 2 3