/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 // Function to obtain the theme. This is implemented in the platform-specific subclasses. 111 Theme* platformTheme();
|
/cts/hostsidetests/holo/app/src/android/holo/app/ |
HoloDeviceActivity.java | 40 * A activity which display various UI elements with Holo theme. 76 final Theme theme = themes[intent.getIntExtra(EXTRA_THEME, 0)]; local 80 setTheme(theme.mId); 91 mName = String.format("%s_%s", theme.mName, layout.mName); 156 * A class to encapsulate information about a holo theme. 158 private static class Theme { 164 private Theme(int id, String name) { 170 private static final Theme[] themes = { 171 new Theme(android.R.style.Theme_Holo [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 "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() 560 // Theme overrides 566 return Theme::baselinePositionAdjustment(part); 584 return Theme::controlFont(part, fontDescription, zoomFactor); 619 return Theme::minimumControlSize(part, fontDescription, zoomFactor); 630 return Theme::controlBorder(part, fontDescription, zoomedBox, zoomFactor); 647 return Theme::controlPadding(part, fontDescription, 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 | 25 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(
|