/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
WizardManagerHelper.java | 21 import android.content.res.Resources.Theme; 49 public static final String EXTRA_THEME = "theme"; 62 * theme used in setup wizard for Nougat MR1. 67 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in 74 * theme used in setup wizard for O DR. 85 * Passed in a setup wizard intent as {@link #EXTRA_THEME}. This is the default theme used in 216 * Checks the intent whether the extra indicates that the light theme should be used or not. If 217 * the theme is not specified in the intent, or the theme specified is unknown, the value def 220 * @param intent The intent used to start the activity, which the theme extra will be read from 225 final String theme = intent.getStringExtra(EXTRA_THEME); local 261 final String theme = intent.getStringExtra(EXTRA_THEME); local [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentDialogSupport.java | 94 case 4: return "STYLE_NORMAL with dark fullscreen theme"; 95 case 5: return "STYLE_NORMAL with light theme"; 96 case 6: return "STYLE_NO_TITLE with light theme"; 97 case 7: return "STYLE_NO_FRAME with light theme"; 98 case 8: return "STYLE_NORMAL with light fullscreen theme"; 128 int style = DialogFragment.STYLE_NORMAL, theme = 0; local 139 case 2: theme = android.R.style.Theme_Panel; break; 140 case 4: theme = android.R.style.Theme; break; 141 case 5: theme = android.R.style.Theme_Light; break [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
DrawerLayoutActivity.java | 93 // your activity theme to have attribute named "drawerArrowStyle" that points 114 // from the theme makes the status bar slightly darker. 130 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); 131 final TypedArray a = theme.obtainStyledAttributes(
|
LayoutInflaterFactoryTestCase.java | 234 private static TypedValue getColorAccentValue(final Resources.Theme theme) { 236 theme.resolveAttribute(R.attr.colorAccent, typedValue, true);
|
/packages/apps/Car/Stream/src/com/android/car/stream/media/ |
MediaAppInfo.java | 36 /** Third-party defined application theme to use **/ 38 = "com.google.android.gms.car.application.theme"; 90 appTheme = appInfo.theme; 142 Resources.Theme theme = packageContext.getTheme(); local 143 ta = theme.obtainStyledAttributes(new int[]{
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
FingerprintEnrollBase.java | 62 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 64 super.onApplyThemeResource(theme, resid, first);
|
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
VectorDrawableCompat.java | 22 import android.content.res.Resources.Theme; 192 * Note that theme attributes in XML file are supported through 193 * <code>{@link #inflate(Resources, XmlPullParser, AttributeSet, Theme)}</code>. 488 // Don't support re-applying themes. The initial theme loading is working. 543 * @param theme the theme of this vector drawable, it can be null. 548 @Nullable Theme theme) { 551 drawable.mDelegateDrawable = ResourcesCompat.getDrawable(res, resId, theme); 568 return createFromXmlInner(res, parser, attrs, theme); [all...] |
/frameworks/base/core/java/android/widget/ |
ArrayAdapter.java | 462 * Sets the {@link Resources.Theme} against which drop-down views are 465 * By default, drop-down views are inflated against the theme of the 468 * @param theme the theme against which to inflate drop-down views or 469 * {@code null} to use the theme from the adapter's context 473 public void setDropDownViewTheme(@Nullable Resources.Theme theme) { 474 if (theme == null) { 476 } else if (theme == mInflater.getContext().getTheme()) { 479 final Context context = new ContextThemeWrapper(mContext, theme); [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
VectorDrawableTest.java | 24 import android.content.res.Resources.Theme; 255 Theme theme = mResources.newTheme(); local 256 theme.applyStyle(R.style.Theme_ThemedDrawableTest, true); 257 vectorDrawable.inflate(mResources, parser, attrs, theme); 459 // Ensure theme density is applied correctly. 460 final Theme t = res.newTheme();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
SpinnerTest.java | 34 import android.content.res.Resources.Theme; 133 final Resources.Theme popupTheme = mActivity.getResources().newTheme(); 271 Theme theme = mActivity.getResources().newTheme(); local 273 android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, theme); 275 assertSame(theme, themeSpinner.getPopupContext().getTheme());
|
CursorAdapterTest.java | 28 import android.content.res.Resources.Theme; 281 Theme theme = mContext.getResources().newTheme(); local 282 cursorAdapter.setDropDownViewTheme(theme); 283 assertSame(theme, cursorAdapter.getDropDownViewTheme());
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
NinePatchDrawable.java | 24 import android.content.res.Resources.Theme; 396 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) 398 super.inflate(r, parser, attrs, theme); 400 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.NinePatchDrawable); 417 // Extract the theme attributes, if any. 474 public void applyTheme(@NonNull Theme t) {
|
RippleDrawable.java | 29 import android.content.res.Resources.Theme; 422 @NonNull AttributeSet attrs, @Nullable Theme theme) 424 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.RippleDrawable); 430 super.inflate(r, parser, attrs, theme); 481 // Extract the theme attributes, if any. 502 public void applyTheme(@NonNull Theme t) { [all...] |
AdaptiveIconDrawable.java | 25 import android.content.res.Resources.Theme; 208 @NonNull AttributeSet attrs, @Nullable Theme theme) 210 super.inflate(r, parser, attrs, theme); 229 inflateLayers(r, parser, attrs, theme); 414 public void applyTheme(@NonNull Theme t) { 451 @NonNull AttributeSet attrs, @Nullable Theme theme) 478 final TypedArray a = obtainAttributes(r, theme, attrs, 483 // If the layer doesn't have a drawable or unresolved theme [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContextTest.java | 23 import android.content.res.Resources.Theme; 193 final Theme testTheme = mContext.getTheme();
|
/frameworks/base/libs/androidfw/ |
AttributeResolution.cpp | 58 bool ResolveAttrs(ResTable::Theme* theme, uint32_t def_style_attr, 64 ALOGI("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, 68 const ResTable& res = theme->getResTable(); 78 if (theme->getAttribute(def_style_attr, &value, &def_style_bag_type_set_flags) >= 0) { 118 // style, and finally the theme. 144 theme->resolveAttributeReference(&value, block, &resid, &type_set_flags, &config); 151 // it in the theme! 152 ssize_t new_block = theme->getAttribute(cur_ident, &value, &type_set_flags) [all...] |
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
VectorDrawableTest.java | 26 import android.content.res.Resources.Theme; 135 private Theme mTheme;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContextWrapper.java | 52 public Resources.Theme getTheme() {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
HelpUtils.java | 27 import android.content.res.Resources.Theme; 206 intent.putExtra(EXTRA_THEME, 0 /* Light theme */);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
SettingsDrawerActivity.java | 69 TypedArray theme = getTheme().obtainStyledAttributes(android.R.styleable.Theme); local 70 if (!theme.getBoolean(android.R.styleable.Theme_windowNoTitle, false)) { 78 if (theme.getBoolean(android.R.styleable.Theme_windowNoTitle, false)) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
TaskStackChangedListenerTest.java | 35 import android.content.res.Resources.Theme;
|
/frameworks/support/compat/java/android/support/v4/content/res/ |
TypedArrayUtils.java | 178 * Obtains styled attributes from the theme, if available, or unstyled 179 * resources if the theme is null. 182 Resources res, Resources.Theme theme, AttributeSet set, int[] attrs) { 183 if (theme == null) { 186 return theme.obtainStyledAttributes(set, attrs, 0, 0);
|
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/ |
PathInterpolatorCompat.java | 70 public PathInterpolatorCompat(Resources res, Resources.Theme theme, AttributeSet attrs, 72 TypedArray a = TypedArrayUtils.obtainAttributes(res, theme,
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
DrawerLayoutActivity.java | 128 // your activity theme to have attribute named "drawerArrowStyle" that points 149 // from the theme makes the status bar slightly darker. 165 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); 166 final TypedArray a = theme.obtainStyledAttributes(
|
/frameworks/support/wear/src/android/support/wear/widget/ |
RoundedDrawable.java | 105 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) 107 super.inflate(r, parser, attrs, theme);
|