Searched defs:theme (Results 1 - 25 of 122) sorted by relevance

12345

/frameworks/base/core/java/android/widget/
H A DThemedSpinnerAdapter.java27 * against a different theme than normal views.
29 * Classes that implement this interface should use the theme provided to
38 * @param theme the context against which to inflate drop-down views, or
39 * {@code null} to use the default theme
42 void setDropDownViewTheme(@Nullable Resources.Theme theme); argument
/frameworks/base/core/java/android/content/res/
H A DConstantState.java58 * implemented for resources that can have a theme applied.
60 public T newInstance(Resources res, Resources.Theme theme) { argument
H A DConfigurationBoundResourceCache.java33 * @param theme the theme where the resource will be used
37 public T getInstance(long key, Resources resources, Resources.Theme theme) { argument
38 final ConstantState<T> entry = get(key, theme);
40 return entry.newInstance(resources, theme);
H A DDrawableCache.java22 * Class which can be used to cache Drawable resources against a theme.
30 * @param theme the theme where the resource will be used
34 public Drawable getInstance(long key, Resources resources, Resources.Theme theme) { argument
35 final Drawable.ConstantState entry = get(key, theme);
37 return entry.newDrawable(resources, theme);
/frameworks/layoutlib/bridge/src/android/content/res/
H A DComplexColor_Accessor.java36 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme)
38 return GradientColor.createFromXmlInner(r, parser, attrs, theme);
42 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme)
44 return ColorStateList.createFromXmlInner(r, parser, attrs, theme);
35 createGradientColorFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument
41 createColorStateListFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme) argument
H A DAssetManager_Delegate.java56 /*package*/ static void deleteTheme(AssetManager manager, long theme) { argument
57 Resources_Theme_Delegate.getDelegateManager().removeJavaReferenceFor(theme);
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
H A DPressedButton.java17 package com.android.tools.idea.editors.theme.widgets;
/frameworks/base/core/java/android/net/
H A DNetworkBadging.java62 * @param theme The theme for the current application, may be null.
68 @IntRange(from=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) {
69 return Resources.getSystem().getDrawable(getWifiSignalResource(signalLevel), theme);
67 getWifiIcon( @ntRangefrom=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) argument
/frameworks/base/core/java/android/view/animation/
H A DAccelerateInterpolator.java63 public AccelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
65 if (theme != null) {
66 a = theme.obtainStyledAttributes(attrs, R.styleable.AccelerateInterpolator, 0, 0);
H A DAnticipateInterpolator.java55 public AnticipateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
57 if (theme != null) {
58 a = theme.obtainStyledAttributes(attrs, R.styleable.AnticipateInterpolator, 0, 0);
H A DCycleInterpolator.java46 public CycleInterpolator(Resources resources, Theme theme, AttributeSet attrs) { argument
48 if (theme != null) {
49 a = theme.obtainStyledAttributes(attrs, R.styleable.CycleInterpolator, 0, 0);
H A DDecelerateInterpolator.java56 public DecelerateInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
58 if (theme != null) {
59 a = theme.obtainStyledAttributes(attrs, R.styleable.DecelerateInterpolator, 0, 0);
H A DOvershootInterpolator.java56 public OvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
58 if (theme != null) {
59 a = theme.obtainStyledAttributes(attrs, R.styleable.OvershootInterpolator, 0, 0);
H A DAnticipateOvershootInterpolator.java72 public AnticipateOvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) { argument
74 if (theme != null) {
75 a = theme.obtainStyledAttributes(attrs, AnticipateOvershootInterpolator, 0, 0);
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
H A DPhoneWindowTest.java92 private void createPhoneWindowWithTheme(int theme) { argument
93 mPhoneWindow = new PhoneWindow(new ContextThemeWrapper(mContext, theme));
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
H A DFallbackThemeWrapper.java25 * 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) { argument
51 theme
[all...]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DItemLayoutTest.java66 for (int theme : themes) {
68 params.add(new Object[] { theme, layout });
78 public ItemLayoutTest(int theme, int layout) { argument
79 mContext = new ContextThemeWrapper(getTargetContext(), theme);
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DAnimationUtilsCompat.java101 Theme theme,
100 createInterpolatorFromXml(Context context, Resources res, Theme theme, XmlPullParser parser) argument
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DThemedSpinnerAdapter.java34 * against a different theme than normal views.
36 * Classes that implement this interface should use the theme provided to
48 * @param theme the context against which to inflate drop-down views, or
49 * {@code null} to use the default theme
52 void setDropDownViewTheme(@Nullable Resources.Theme theme); argument
93 * public void setDropDownViewTheme(@Nullable Resources.Theme theme) {
94 * // Pass the new theme to the helper
95 * mDropDownHelper.setDropDownViewTheme(theme);
120 * @param theme the theme passe
123 setDropDownViewTheme(@ullable Resources.Theme theme) argument
[all...]
/frameworks/av/packages/MediaComponents/src/com/android/media/update/
H A DApiHelper.java68 Theme theme = getLibResources(context).newTheme();
69 theme.applyStyle(themeId, true);
70 return theme;
77 public static LayoutInflater getLayoutInflater(Context context, Theme theme) { argument
78 if (theme == null) {
79 theme = getLibTheme(context);
82 // TODO (b/72975976): Avoid to use ContextThemeWrapper with app context and lib theme.
84 new ContextThemeWrapper(context, theme));
117 public static View inflateLibLayout(Context context, Theme theme, int libResId) { argument
118 return inflateLibLayout(context, theme, libResI
121 inflateLibLayout(Context context, Theme theme, int libResId, @Nullable ViewGroup root, boolean attachToRoot) argument
[all...]
/frameworks/base/libs/androidfw/tests/
H A DTheme_bench.cpp41 auto theme = assets.NewTheme(); local
42 theme->ApplyStyle(kStyleId, false /* force */);
58 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)};
59 theme->applyStyle(kStyleId, false /* force */);
70 auto theme = assets.NewTheme(); local
71 theme->ApplyStyle(kStyleId, false /* force */);
77 theme->GetAttribute(kAttrId, &value, &flags);
87 std::unique_ptr<ResTable::Theme> theme{new ResTable::Theme(res_table)};
88 theme->applyStyle(kStyleId, false /* force */);
94 theme
[all...]
H A DTheme_test.cpp65 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
66 EXPECT_EQ(0u, theme->GetChangingConfigurations());
67 EXPECT_EQ(&assetmanager, theme->GetAssetManager());
71 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags));
78 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
79 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne));
85 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags);
91 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags);
102 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
103 ASSERT_TRUE(theme
135 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
147 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
181 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
216 std::unique_ptr<Theme> theme = assetmanager.NewTheme(); local
[all...]
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/items/
H A DButtonItemDrawingTest.java78 private Button createButton(@StyleRes int theme) argument
80 final ViewGroup parent = new LinearLayout(DrawingTestHelper.createCanvasActivity(theme));
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
H A DDrawingTestHelper.java39 public static Activity createCanvasActivity(@StyleRes int theme) argument
57 activity.setTheme(theme);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/
H A DAppCompatColorStateListInflater.java49 * @param theme Optional theme to apply to the color state list, may be
55 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException {
68 return createFromXmlInner(r, parser, attrs, theme);
81 @Nullable Resources.Theme theme)
89 return inflate(r, parser, attrs, theme);
96 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme)
114 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.ColorStateListItem);
163 private static TypedArray obtainAttributes(Resources res, Resources.Theme theme, argument
165 return theme
54 createFromXml(@onNull Resources r, @NonNull XmlPullParser parser, @Nullable Resources.Theme theme) argument
79 createFromXmlInner(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) argument
95 inflate(@onNull Resources r, @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Resources.Theme theme) argument
[all...]

Completed in 2411 milliseconds

12345