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>>

  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
FixedScaleDrawable.java 5 import android.content.res.Resources.Theme;
43 public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme) { }
  /packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/
RoboCompatUtil.java 18 import android.content.res.Resources.Theme;
86 public Drawable getWifiIcon(int signalLevel, int badging, Theme theme) {
87 return NetworkBadging.getWifiIcon(signalLevel, badging, theme);
  /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 127 private final ArrayList<WeakReference<Theme>> mThemeRefs = new ArrayList<>();
130 * Returns the most appropriate default theme for the specified target SDK version.
138 * @param curTheme The current theme, or 0 if not specified.
140 * @return A theme resource identifier
145 com.android.internal.R.style.Theme,
252 * and updates all Theme references to new implementations as well.
266 WeakReference<Theme> weakThemeRef = mThemeRefs.get(i);
267 Theme theme = weakThemeRef != null ? weakThemeRef.get() : null; local
268 if (theme != null)
1761 Theme theme = new Theme(); local
    [all...]
CompatResources.java 65 private Theme getTheme() {
  /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,
  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
SettingsShadowResources.java 12 import android.content.res.Resources.Theme;
44 * Shadow Resources and Theme classes to handle resource references that Robolectric shadows cannot
83 public int getColor(@ColorRes int id, @Nullable Theme theme) throws NotFoundException {
87 return directlyOn(realResources, Resources.class).getColor(id, theme);
91 public Drawable loadDrawable(TypedValue value, int id, Theme theme)
107 return super.loadDrawable(value, id, theme);
140 @Implements(Theme.class)
144 Theme realTheme
    [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...]
  /frameworks/support/compat/java/android/support/v4/content/res/
ResourcesCompat.java 26 import android.content.res.Resources.Theme;
57 * styled for the specified theme. Various types of objects will be
61 * Prior to API level 21, the theme will not be applied and this method
67 * @param theme The theme used to style the drawable attributes, may be
76 @Nullable Theme theme) throws NotFoundException {
78 return res.getDrawable(id, theme);
87 * the given screen density in DPI and styled for the specified theme.
89 * 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...]

Completed in 1356 milliseconds

12 3 4 5 6 7 8 91011>>