/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);
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
LayoutModifier.java | 17 package android.theme.app;
|
ReferenceImagesTest.java | 17 package android.theme.app;
|
ReferenceViewGroup.java | 17 package android.theme.app; 19 import android.theme.app.R;
|
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/ |
AbstractLayoutModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.LayoutModifier;
|
DatePickerModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.LayoutModifier;
|
TimePickerModifier.java | 17 package android.theme.app.modifiers;
|
ViewCheckedModifier.java | 17 package android.theme.app.modifiers;
|
ViewPressedModifier.java | 17 package android.theme.app.modifiers;
|
ProgressBarModifier.java | 17 package android.theme.app.modifiers;
|
SearchViewModifier.java | 17 package android.theme.app.modifiers; 19 import android.theme.app.R;
|
/cts/tests/tests/theme/src/android/theme/cts/ |
DeviceDefaultActivity.java | 17 package android.theme.cts; 19 import android.theme.cts.R;
|
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
PressedButton.java | 17 package com.android.tools.idea.editors.theme.widgets;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
FallbackThemeWrapper.java | 20 import android.content.res.Resources.Theme; 25 * Same as {@link ContextThemeWrapper}, but the base context's theme attributes take precedence 26 * over the wrapper context's. This is used to provide default values for theme attributes 28 * theme. 33 * Creates a new context wrapper with the specified theme. 35 * The specified theme will be applied as fallbacks to the base context's theme. Any attributes 36 * defined in the base context's theme will retain their original values. Otherwise values in 40 * @param themeResId The theme to use as fallback. 50 protected void onApplyThemeResource(Theme theme, int resId, boolean first) [all...] |
/frameworks/base/core/java/android/view/ |
ContextThemeWrapper.java | 27 * A context wrapper that allows you to modify or replace the theme of the 32 private Resources.Theme mTheme; 38 * Creates a new context wrapper with no theme and no base context. 49 * Creates a new context wrapper with the specified theme. 51 * The specified theme will be applied on top of the base context's theme. 52 * Any attributes not explicitly defined in the theme identified by 56 * @param themeResId the resource ID of the theme to be applied on top of 57 * the base context's theme 65 * Creates a new context wrapper with the specified theme 193 final Resources.Theme theme = getBaseContext().getTheme(); local [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
ContextThemeWrapper.java | 33 * A ContextWrapper that allows you to modify the theme from what is in the 41 private Resources.Theme mTheme; 47 * Creates a new context wrapper with no theme and no base context. 58 * Creates a new context wrapper with the specified theme. 60 * The specified theme will be applied on top of the base context's theme. 61 * Any attributes not explicitly defined in the theme identified by 65 * @param themeResId the resource ID of the theme to be applied on top of 66 * the base context's theme 74 * Creates a new context wrapper with the specified theme 195 Resources.Theme theme = getBaseContext().getTheme(); local [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ |
Utils.java | 26 import android.content.res.Resources.Theme; 114 Theme theme = context.getTheme(); local 116 theme.resolveAttribute(attr, typedValue, true);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
Resources_ThemeTest.java | 25 import android.content.res.Resources.Theme; 42 private Resources.Theme mResTheme; 57 final Theme other = getContext().getTheme(); 104 Resources.Theme theme = getContext().getResources().newTheme(); local 106 0, theme.getChangingConfigurations()); 108 theme.applyStyle(R.style.Theme_OrientationDependent, true); 109 assertEquals("First call to Theme.applyStyle() sets changing configuration", 110 ActivityInfo.CONFIG_ORIENTATION, theme.getChangingConfigurations()); 112 theme.applyStyle(R.style.Theme_LayoutDirectionDependent, true) 134 Resources.Theme theme = res.newTheme(); local 157 final Theme theme = res.newTheme(); local 167 final Theme theme = res.newTheme(); local 174 final Theme theme = res.newTheme(); local [all...] |
/frameworks/base/libs/androidfw/tests/ |
Theme_test.cpp | 60 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local 61 EXPECT_EQ(0u, theme->GetChangingConfigurations()); 62 EXPECT_EQ(&assetmanager, theme->GetAssetManager()); 66 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags)); 73 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local 74 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne)); 80 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); 86 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags) 97 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local 130 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local 164 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local 199 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local [all...] |
/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...] |
/packages/apps/Settings/src/com/android/settings/ |
SetupWizardUtils.java | 28 static final String SYSTEM_PROP_SETUPWIZARD_THEME = "setupwizard.theme"; 31 String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); local 32 if (theme == null) { 33 theme = SystemProperties.get(SYSTEM_PROP_SETUPWIZARD_THEME); 35 if (theme != null) { 36 switch (theme) {
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
ThemedDrawableTest.java | 24 import android.content.res.Resources.Theme; 54 final Theme theme = mContext.getResources().newTheme(); local 55 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); 56 final Theme ctxTheme = mContext.getTheme(); 57 ctxTheme.setTo(theme); 63 assertTrue("Theme was applied correctly", t.getInt(0, -1) == 0);
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
ResourceHelper.java | 30 * Get a color value from a theme attribute. 32 * @param attribute theme attribute. 43 packageContext.setTheme(applicationInfo.theme); 44 Resources.Theme theme = packageContext.getTheme(); local 45 TypedArray ta = theme.obtainStyledAttributes(new int[] {attribute});
|
/frameworks/base/core/java/com/android/internal/app/ |
MediaRouteChooserDialogFragment.java | 46 int theme = MediaRouteChooserDialog.isLightTheme(getContext()) local 51 setStyle(STYLE_NORMAL, theme);
|
MediaRouteDialogPresenter.java | 74 int theme = MediaRouteChooserDialog.isLightTheme(context) local 80 final MediaRouteChooserDialog d = new MediaRouteChooserDialog(context, theme); 85 MediaRouteControllerDialog d = new MediaRouteControllerDialog(context, theme);
|