HomeSort by relevance Sort by last modified time
    Searched refs:getDrawable (Results 1 - 25 of 718) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/support/v4/java/android/support/v4/content/res/
ResourcesCompat.java 37 * simply calls through to {@link Resources#getDrawable(int)}.
49 public static Drawable getDrawable(Resources res, int id, Theme theme)
53 return ResourcesCompatApi21.getDrawable(res, id, theme);
55 return res.getDrawable(id);
65 * this method simply calls through to {@link Resources#getDrawable(int)}.
90 return res.getDrawable(id);
  /frameworks/support/v4/api21/android/support/v4/content/
ContextCompatApi21.java 25 public static Drawable getDrawable(Context context, int id) {
26 return context.getDrawable(id);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ThemedDrawableTest.java 49 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.bitmapdrawable_theme);
67 ColorDrawable d = (ColorDrawable) mContext.getDrawable(R.drawable.colordrawable_theme);
73 GradientDrawable d = (GradientDrawable) mContext.getDrawable(
117 NinePatchDrawable d = (NinePatchDrawable) mContext.getDrawable(
130 RippleDrawable d = (RippleDrawable) mContext.getDrawable(
137 LayerDrawable d = (LayerDrawable) mContext.getDrawable(R.drawable.layerdrawable_theme);
143 BitmapDrawable bitmapDrawable = (BitmapDrawable) d.getDrawable(0);
146 NinePatchDrawable ninePatchDrawable = (NinePatchDrawable) d.getDrawable(1);
InsetDrawableTest.java 41 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
50 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
80 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
87 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
102 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
117 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
133 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
144 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
186 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
195 Drawable d = mContext.getResources().getDrawable(R.drawable.pass)
    [all...]
RotateDrawableTest.java 48 mRotateDrawable = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable);
72 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha());
75 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha());
82 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter());
85 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter());
93 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass);
182 Drawable drawable = mContext.getResources().getDrawable(R.drawable.testimage);
213 RotateDrawable d1 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable);
214 RotateDrawable d2 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable);
215 RotateDrawable d3 = (RotateDrawable) resources.getDrawable(R.drawable.rotatedrawable)
    [all...]
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DirectoryEntry.java 37 public Drawable getDrawable(Resources res) {
38 return res.getDrawable(resID);
  /frameworks/support/v4/api21/android/support/v4/content/res/
ResourcesCompatApi21.java 25 public static Drawable getDrawable(Resources res, int id, Theme theme)
27 return res.getDrawable(id, theme);
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
TintResources.java 42 public Drawable getDrawable(int id) throws NotFoundException {
43 Drawable d = super.getDrawable(id);
TintButton.java 51 setBackgroundDrawable(a.getDrawable(0));
60 setBackgroundDrawable(mTintManager.getDrawable(resid));
TintCheckBox.java 49 setButtonDrawable(a.getDrawable(0));
57 setButtonDrawable(mTintManager.getDrawable(resid));
TintCheckedTextView.java 50 setCheckMarkDrawable(a.getDrawable(0));
58 setCheckMarkDrawable(mTintManager.getDrawable(resid));
TintRadioButton.java 50 setButtonDrawable(a.getDrawable(0));
58 setButtonDrawable(mTintManager.getDrawable(resid));
TintAutoCompleteTextView.java 52 setBackgroundDrawable(a.getDrawable(0));
54 setDropDownBackgroundDrawable(a.getDrawable(1));
63 setDropDownBackgroundDrawable(mTintManager.getDrawable(id));
TintImageView.java 53 setBackgroundDrawable(a.getDrawable(0));
56 setImageDrawable(a.getDrawable(1));
68 setImageDrawable(mTintManager.getDrawable(resId));
TintMultiAutoCompleteTextView.java 51 setBackgroundDrawable(a.getDrawable(0));
53 setDropDownBackgroundDrawable(a.getDrawable(1));
62 setDropDownBackgroundDrawable(mTintManager.getDrawable(id));
  /packages/apps/Contacts/src/com/android/contacts/detail/
TransformableImageView.java 43 if (getDrawable() == null) {
50 int dwidth = getDrawable().getIntrinsicWidth();
51 int dheight = getDrawable().getIntrinsicHeight();
69 getDrawable().draw(canvas);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
BitmapDrawableTest.java 35 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image);
41 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image);
57 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image);
68 Drawable drawable1a = resources.getDrawable(R.drawable.an_image);
69 Drawable drawable1b = resources.getDrawable(R.drawable.an_image);
70 Drawable drawable2 = resources.getDrawable(R.drawable.an_other_image);
78 Drawable drawable1a = resources.getDrawable(R.drawable.an_image);
79 Drawable drawable1b = resources.getDrawable(R.drawable.an_image);
92 Drawable drawable = resources.getDrawable(R.drawable.an_image);
98 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image)
    [all...]
ImageViewTest.java 73 assertTrue("Drawable", imageView.getDrawable() instanceof Drawable);
75 imageView.getDrawable() instanceof LayerDrawable);
81 Drawable animation = imageView.getDrawable();
89 AnimationDrawable animation = (AnimationDrawable) imageView.getDrawable();
96 assertTrue("Drawable", imageView.getDrawable() instanceof Drawable);
98 imageView.getDrawable() instanceof LayerDrawable);
99 assertThat(shadowOf(imageView.getDrawable()).getLoadedFromResourceId(), is(R.drawable.rainbow));
  /frameworks/base/core/tests/coretests/src/android/view/
MutateDrawable.java 34 ok.setBackgroundDrawable(getResources().getDrawable(
39 cancel.setBackgroundDrawable(getResources().getDrawable(
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifDrawableResource.java 14 return wrapped.get().getDrawable();
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
ContactPresenceIconUtil.java 40 return context.getResources().getDrawable(
  /packages/experimental/LoaderApp/src/com/android/loaderapp/util/
ContactPresenceIconUtil.java 40 return context.getResources().getDrawable(
  /cts/tests/tests/widget/src/android/widget/cts/
ImageSwitcherTest.java 68 Drawable drawable = resources.getDrawable(R.drawable.scenery);
71 (BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).getDrawable();
76 drawable = resources.getDrawable(R.drawable.testimage);
79 (BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).getDrawable();
83 assertNull(((ImageView) imageSwitcher.getCurrentView()).getDrawable());
107 (BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).getDrawable();
121 (BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).getDrawable();
138 Drawable drawable = resources.getDrawable(R.drawable.scenery);
141 assertSame(drawable, ((ImageView) imageSwitcher.getCurrentView()).getDrawable());
143 drawable = resources.getDrawable(R.drawable.testimage)
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 43 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
73 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
88 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass);
91 assertSame(drawable, imageSpan.getDrawable());
95 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable();
99 assertNull(imageSpan.getDrawable());
102 assertNull(imageSpan.getDrawable());
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
IconUtils.java 210 return pm.getDrawable(info.packageName, icon, info.applicationInfo);
213 return context.getDrawable(icon);
225 return context.getDrawable(R.drawable.ic_doc_album);
229 return context.getDrawable(R.drawable.ic_grid_folder);
231 return context.getDrawable(R.drawable.ic_doc_folder);
240 return context.getDrawable(R.drawable.ic_doc_folder);
246 return context.getDrawable(resId);
257 return context.getDrawable(R.drawable.ic_doc_audio);
259 return context.getDrawable(R.drawable.ic_doc_image);
261 return context.getDrawable(R.drawable.ic_doc_text)
    [all...]

Completed in 751 milliseconds

1 2 3 4 5 6 7 8 91011>>