/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/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 | 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();
|
/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; 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();
|
ShadowContextWrapper.java | 52 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 | 809 return (jint)(new ResTable::Theme(am->getResources())); 815 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local 816 delete theme; 824 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local 825 theme->applyStyle(styleRes, force ? true : false); 831 ResTable::Theme* dest = (ResTable::Theme*)destInt 839 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local 863 ResTable::Theme* theme = (ResTable::Theme*)themeInt; local 895 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() {
|