HomeSort by relevance Sort by last modified time
    Searched refs:Theme (Results 26 - 50 of 293) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/content/res/
ThemedResourceCache.java 22 import android.content.res.Resources.Theme;
40 * Adds a new theme-dependent entry to the cache.
43 * @param theme the theme against which this entry was inflated, or
44 * {@code null} if the entry has no theme applied
47 public void put(long key, @Nullable Theme theme, @NonNull T entry) {
48 put(key, theme, entry, true);
55 * @param theme the theme against which this entry was inflated, o
    [all...]
GradientColor.java 24 import android.content.res.Resources.Theme;
120 // Theme attributes for the root and item elements.
180 // Extract the theme attributes, if any.
251 public static GradientColor createFromXml(Resources r, XmlResourceParser parser, Theme theme)
265 return createFromXmlInner(r, parser, attrs, theme);
277 @NonNull XmlPullParser parser, @NonNull AttributeSet attrs, @Nullable Theme theme)
286 gradientColor.inflate(r, parser, attrs, theme);
294 @NonNull AttributeSet attrs, @Nullable Theme theme
    [all...]
Resources.java 128 private final ArrayList<WeakReference<Theme>> mThemeRefs = new ArrayList<>();
131 * Returns the most appropriate default theme for the specified target SDK version.
139 * @param curTheme The current theme, or 0 if not specified.
141 * @return A theme resource identifier
146 com.android.internal.R.style.Theme,
253 * and updates all Theme references to new implementations as well.
267 WeakReference<Theme> weakThemeRef = mThemeRefs.get(i);
268 Theme theme = weakThemeRef != null ? weakThemeRef.get() : null; local
269 if (theme != null)
1762 Theme theme = new Theme(); local
    [all...]
CompatResources.java 65 private Theme getTheme() {
ColorStateList.java 23 import android.content.res.Resources.Theme;
101 * an HTML-style hex color, a reference to a color resource, or -- in API 23 and above -- a theme
106 * between 0 and 1 or a theme attribute that resolves as such. The item's overall color is
108 * example, the following item represents the theme's accent color at 50% opacity:
220 * @deprecated Use #createFromXml(Resources, XmlPullParser parser, Theme)
231 * {@link Resources} and a {@link Theme}.
235 * @param theme Optional theme to apply to the color state list, may be
241 @Nullable Theme theme) throws XmlPullParserException, IOException
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
SettingsShadowResources.java 13 import android.content.res.Resources.Theme;
45 * Shadow Resources and Theme classes to handle resource references that Robolectric shadows cannot
84 public int getColor(@ColorRes int id, @Nullable Theme theme) throws NotFoundException {
88 return directlyOn(realResources, Resources.class).getColor(id, theme);
92 public ColorStateList getColorStateList(@ColorRes int id, @Nullable Theme theme)
97 return directlyOn(realResources, Resources.class).getColorStateList(id, theme);
101 public Drawable loadDrawable(TypedValue value, int id, Theme theme)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
AutoCompleteTextViewNoIme.java 49 int defStyleRes, Resources.Theme popupTheme) {
  /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/graphics/java/android/graphics/drawable/
DrawableInflater.java 27 import android.content.res.Resources.Theme;
70 * @param theme the theme against which the drawable should be inflated
76 @NonNull Resources resources, @Nullable Theme theme, @DrawableRes int id) {
77 return resources.getDrawable(id, theme);
95 * {@link Theme}.
104 * @param theme the theme against which the drawable should be inflated, or
105 * {@code null} to not inflate against a theme
    [all...]
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/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});
  /packages/apps/Settings/tests/robotests/src/android/net/
NetworkBadging.java 46 int signalLevel, @NetworkBadging.Badging int badging, @Nullable Resources.Theme theme) {
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
CustomDrawableTest.java 23 import android.content.res.Resources.Theme;
60 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
62 super.inflate(r, parser, attrs, theme);
65 if (theme != null) {
66 ta = theme.obtainStyledAttributes(attrs, ATTRS, 0, 0);
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);
  /frameworks/base/core/java/android/net/
NetworkBadging.java 26 import android.content.res.Resources.Theme;
62 * @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);
  /frameworks/base/core/java/android/view/animation/
AnticipateOvershootInterpolator.java 25 import android.content.res.Resources.Theme;
72 public AnticipateOvershootInterpolator(Resources res, Theme theme, AttributeSet attrs) {
74 if (theme != null) {
75 a = theme.obtainStyledAttributes(attrs, AnticipateOvershootInterpolator, 0, 0);
  /frameworks/base/libs/androidfw/include/androidfw/
AssetManager2.h 35 class Theme;
228 // Creates a new Theme from this AssetManager.
229 std::unique_ptr<Theme> NewTheme();
289 class Theme {
293 // Applies the style identified by `resid` to this theme. This can be called
294 // multiple times with different styles. By default, any theme attributes that
296 // to true, this behavior is changed and all theme attributes from the style at
301 // Sets this Theme to be a copy of `o` if `o` has the same AssetManager as this Theme.
303 bool SetTo(const Theme& o)
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/wm/
AppWindowContainerControllerTests.java 109 android.R.style.Theme, null, "Test", 0, 0, 0, 0, null, true, true, false, true,
127 android.R.style.Theme, null, "Test", 0, 0, 0, 0, null, true, true, false, true,
142 android.R.style.Theme, null, "Test", 0, 0, 0, 0, null, true, true, false, true,
146 android.R.style.Theme, null, "Test", 0, 0, 0, 0, controller1.mToken.asBinder(),
163 android.R.style.Theme, null, "Test", 0, 0, 0, 0, controller1.mToken.asBinder(),
167 android.R.style.Theme, null, "Test", 0, 0, 0, 0, null, true, true, false, true,
  /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...]
  /frameworks/support/compat/java/android/support/v4/content/res/
ResourcesCompat.java 26 import android.content.res.Resources.Theme;
55 * styled for the specified theme. Various types of objects will be
59 * Prior to API level 21, the theme will not be applied and this method
65 * @param theme The theme used to style the drawable attributes, may be
74 @Nullable Theme theme) throws NotFoundException {
76 return res.getDrawable(id, theme);
85 * the given screen density in DPI and styled for the specified theme.
87 * Prior to API level 15, the theme and density will not be applied an
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
ContextThemeWrapperTest.java 27 import android.content.res.Resources.Theme;
52 protected void onApplyThemeResource(Theme theme, int resid, boolean first) {
54 super.onApplyThemeResource(theme, resid, first);
76 // set Theme to TextAppearance
81 // assert theme style of TextAppearance
146 // get Theme and assert
147 Resources.Theme expected = mContext.getResources().newTheme();
  /frameworks/support/compat/tests/java/android/support/v4/content/res/
ResourcesCompatTest.java 58 // calling theme-aware getColor() in pre-v23 is undefined.
59 final Resources.Theme yellowTheme = mResources.newTheme();
65 final Resources.Theme lilacTheme = mResources.newTheme();
89 // calling theme-aware getColorStateList() in pre-v23 is undefined.
90 final Resources.Theme yellowTheme = mResources.newTheme();
104 final Resources.Theme lilacTheme = mResources.newTheme();
129 // calling theme-aware getDrawable() in pre-v23 is undefined.
130 final Resources.Theme yellowTheme = mResources.newTheme();
138 final Resources.Theme lilacTheme = mResources.newTheme();
219 // calling theme-aware getDrawableForDensity() in pre-v21 is undefined
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/widget/
TintContextWrapper.java 88 private final Resources.Theme mTheme;
94 // We need to create a copy of the Theme so that the Theme references our
106 public Resources.Theme getTheme() {
  /frameworks/base/core/java/com/android/internal/graphics/drawable/
AnimationScaleListDrawable.java 23 import android.content.res.Resources.Theme;
78 @NonNull AttributeSet attrs, @Nullable Theme theme)
80 final TypedArray a = obtainAttributes(r, theme, attrs,
85 inflateChildElements(r, parser, attrs, theme);
94 @NonNull AttributeSet attrs, @Nullable Theme theme)
112 final TypedArray a = obtainAttributes(r, theme, attrs,
127 dr = Drawable.createFromXmlInner(r, parser, attrs, theme);
239 public void applyTheme(@NonNull Theme theme)
    [all...]
  /frameworks/support/v7/appcompat/src/android/support/v7/content/res/
AppCompatColorStateListInflater.java 44 * {@link Resources} and a {@link Theme}.
48 * @param theme Optional theme to apply to the color state list, may be
54 @Nullable Resources.Theme theme) throws XmlPullParserException, IOException {
67 return createFromXmlInner(r, parser, attrs, theme);
80 @Nullable Resources.Theme theme)
88 return inflate(r, parser, attrs, theme);
95 @NonNull AttributeSet attrs, @Nullable Resources.Theme theme
    [all...]
  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
MediaAppInfo.java 39 fetchAppColors(packageName, appInfo.theme, context);
54 Resources.Theme theme = packageContext.getTheme(); local
55 ta = theme.obtainStyledAttributes(new int[]{ android.R.attr.colorAccent });

Completed in 548 milliseconds

12 3 4 5 6 7 8 91011>>