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

1 2 3 4

  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
BitmapDrawableResource.java 3 import android.graphics.drawable.BitmapDrawable;
10 * A {@link com.bumptech.glide.load.engine.Resource} that wraps an {@link android.graphics.drawable.BitmapDrawable}
13 * {@link android.graphics.drawable.BitmapDrawable} to avoid rendering issues if used in multiple views and
18 public class BitmapDrawableResource extends DrawableResource<BitmapDrawable> {
21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) {
  /development/samples/devbytes/animation/CrossFading/src/com/example/android/crossfading/
CrossFading.java 23 import android.graphics.drawable.BitmapDrawable;
54 BitmapDrawable drawables[] = new BitmapDrawable[2];
55 drawables[0] = new BitmapDrawable(getResources(), bitmap0);
56 drawables[1] = new BitmapDrawable(getResources(), bitmap1);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowBitmapDrawableTest.java 14 import android.graphics.drawable.BitmapDrawable;
34 BitmapDrawable drawable = new BitmapDrawable(bitmap);
37 drawable = new BitmapDrawable(resources, bitmap);
43 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image);
49 BitmapDrawable original = (BitmapDrawable) resources.getDrawable(R.drawable.an_image);
52 assertThat(mutated instanceof BitmapDrawable).isTrue();
60 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image)
    [all...]
ShadowLayerDrawableTest.java 10 import android.graphics.drawable.BitmapDrawable;
38 drawable1000 = new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.an_image));
40 new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.an_other_image));
42 new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.third_image));
44 new BitmapDrawable(BitmapFactory.decodeResource(resources, R.drawable.fourth_image));
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowBitmapDrawable.java 9 import android.graphics.drawable.BitmapDrawable;
19 @Implements(BitmapDrawable.class)
25 @RealObject private BitmapDrawable realBitmapDrawable;
42 BitmapDrawable real = ReflectionHelpers.callConstructor(BitmapDrawable.class, ClassParameter.from(Bitmap.class, bitmap));
52 directlyOn(realBitmapDrawable, BitmapDrawable.class).setColorFilter(colorFilter);
56 * Returns the resource id that this {@code BitmapDrawable} was loaded from. This lets
59 * @return resource id from which this {@code BitmapDrawable} was loaded
ShadowDrawable.java 10 import android.graphics.drawable.BitmapDrawable;
48 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class));
83 return new BitmapDrawable(res, bm);
90 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class));
101 BitmapDrawable drawable = new BitmapDrawable(bitmap);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 45 import android.graphics.drawable.BitmapDrawable;
90 BitmapDrawable bitmapDrawable = new BitmapDrawable();
91 assertNotNull(bitmapDrawable.getPaint());
93 bitmapDrawable.getPaint().getFlags());
94 assertNull(bitmapDrawable.getBitmap());
97 bitmapDrawable = new BitmapDrawable(bitmap);
98 assertNotNull(bitmapDrawable.getPaint())
    [all...]
ThemedDrawableTest.java 32 import android.graphics.drawable.BitmapDrawable;
72 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.bitmapdrawable_theme);
77 private void verifyBitmapDrawable(BitmapDrawable d) {
171 BitmapDrawable bitmapDrawable = (BitmapDrawable) d.getDrawable(0);
172 verifyBitmapDrawable(bitmapDrawable);
RotateDrawableTest.java 41 import android.graphics.drawable.BitmapDrawable;
155 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha());
158 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha());
166 ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter());
169 assertNull(((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getColorFilter());
301 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha());
302 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha());
303 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha());
307 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha());
308 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha())
    [all...]
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
RecyclingBitmapDrawable.java 21 import android.graphics.drawable.BitmapDrawable;
27 * A BitmapDrawable that keeps track of whether it is being displayed or cached.
31 public class RecyclingBitmapDrawable extends BitmapDrawable {
ImageWorker.java 23 import android.graphics.drawable.BitmapDrawable;
81 BitmapDrawable value = null;
257 private class BitmapWorkerTask extends AsyncTask<Void, Void, BitmapDrawable> {
278 protected BitmapDrawable doInBackground(Void... params) {
286 BitmapDrawable drawable = null;
321 // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable
322 drawable = new BitmapDrawable(mResources, bitmap);
346 protected void onPostExecute(BitmapDrawable value) {
369 protected void onCancelled(BitmapDrawable value) {
411 private static class AsyncDrawable extends BitmapDrawable {
    [all...]
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
RecyclingBitmapDrawable.java 21 import android.graphics.drawable.BitmapDrawable;
27 * A BitmapDrawable that keeps track of whether it is being displayed or cached.
31 public class RecyclingBitmapDrawable extends BitmapDrawable {
ImageWorker.java 23 import android.graphics.drawable.BitmapDrawable;
81 BitmapDrawable value = null;
257 private class BitmapWorkerTask extends AsyncTask<Void, Void, BitmapDrawable> {
278 protected BitmapDrawable doInBackground(Void... params) {
286 BitmapDrawable drawable = null;
321 // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable
322 drawable = new BitmapDrawable(mResources, bitmap);
346 protected void onPostExecute(BitmapDrawable value) {
369 protected void onCancelled(BitmapDrawable value) {
411 private static class AsyncDrawable extends BitmapDrawable {
    [all...]
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
RecyclingBitmapDrawable.java 21 import android.graphics.drawable.BitmapDrawable;
27 * A BitmapDrawable that keeps track of whether it is being displayed or cached.
31 public class RecyclingBitmapDrawable extends BitmapDrawable {
ImageWorker.java 23 import android.graphics.drawable.BitmapDrawable;
81 BitmapDrawable value = null;
257 private class BitmapWorkerTask extends AsyncTask<Void, Void, BitmapDrawable> {
278 protected BitmapDrawable doInBackground(Void... params) {
286 BitmapDrawable drawable = null;
321 // Running on Honeycomb or newer, so wrap in a standard BitmapDrawable
322 drawable = new BitmapDrawable(mResources, bitmap);
346 protected void onPostExecute(BitmapDrawable value) {
369 protected void onCancelled(BitmapDrawable value) {
411 private static class AsyncDrawable extends BitmapDrawable {
    [all...]
  /development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/
PictureViewer.java 23 import android.graphics.drawable.BitmapDrawable;
62 final BitmapDrawable drawables[] = new BitmapDrawable[drawableIDs.length];
66 drawables[i] = new BitmapDrawable(getResources(), bitmap);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
StaticPointerIconButton.java 20 import android.graphics.drawable.BitmapDrawable;
52 final BitmapDrawable bitmapDrawable = (BitmapDrawable) d;
55 mCustomIcon = PointerIcon.create(bitmapDrawable.getBitmap(), hotSpotX, hotSpotY);
  /development/samples/devbytes/animation/KeyframeAnimation/src/com/example/android/keyframeanimation/
KeyframeAnimation.java 25 import android.graphics.drawable.BitmapDrawable;
74 private BitmapDrawable getDrawableForFrameNumber(int frameNumber) {
82 return new BitmapDrawable(getResources(), bitmap);
  /cts/tests/tests/widget/src/android/widget/cts/
ImageSwitcherTest.java 28 import android.graphics.drawable.BitmapDrawable;
99 BitmapDrawable sceneryBitmap = (BitmapDrawable) drawable;
100 BitmapDrawable currViewBitmap =
101 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable();
107 BitmapDrawable testimageBitmap = (BitmapDrawable) drawable;
109 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable();
136 BitmapDrawable currViewBitmap =
137 (BitmapDrawable) ((ImageView) mImageSwitcher.getCurrentView()).getDrawable()
    [all...]
  /development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/
ImagePixelization.java 23 import android.graphics.drawable.BitmapDrawable;
155 public BitmapDrawable customImagePixelization(float pixelizationFactor, Bitmap bitmap) {
207 return new BitmapDrawable(getResources(), mPixelatedBitmap);
216 public BitmapDrawable builtInPixelization(float pixelizationFactor, Bitmap bitmap) {
236 * Similarly, a BitmapDrawable also has a flag to specify the same thing. When the
237 * BitmapDrawable is applied to an ImageView that has some scaleType, the filtering
242 * are required to achieve the pixelization effect. Otherwise, a BitmapDrawable
248 BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(), pixelatedBitmap)
    [all...]
  /cts/tests/tests/transition/src/android/transition/cts/
SharedElementCallbackTest.java 26 import android.graphics.drawable.BitmapDrawable;
69 assertTrue(drawable instanceof BitmapDrawable);
70 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
71 Bitmap finalBitmap = bitmapDrawable.getBitmap();
  /development/samples/ApiDemos/src/com/example/android/apis/app/
PrintBitmap.java 20 import android.graphics.drawable.BitmapDrawable;
77 Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap();
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 25 import android.graphics.drawable.BitmapDrawable;
119 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
121 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable();
122 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap());
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
BitmapDrawableTest.java 28 import android.graphics.drawable.BitmapDrawable;
90 final BitmapDrawable preloadedDrawable = (BitmapDrawable) res.getDrawable(sourceResId);
103 final BitmapDrawable scaledDrawable =
104 (BitmapDrawable) preloadedConstantState.newDrawable(res);
  /development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
CardView.java 31 import android.graphics.drawable.BitmapDrawable;
66 private BitmapDrawable mFrontBitmapDrawable, mBackBitmapDrawable, mCurrentBitmapDrawable;
91 mFrontBitmapDrawable = bitmapWithBorder((BitmapDrawable)getResources()
93 mBackBitmapDrawable = bitmapWithBorder((BitmapDrawable) getResources()
103 private BitmapDrawable bitmapWithBorder(BitmapDrawable bitmapDrawable) {
104 Bitmap bitmapWithBorder = Bitmap.createBitmap(bitmapDrawable.getIntrinsicWidth() +
105 ANTIALIAS_BORDER * 2, bitmapDrawable.getIntrinsicHeight() + ANTIALIAS_BORDER * 2,
108 canvas.drawBitmap(bitmapDrawable.getBitmap(), ANTIALIAS_BORDER, ANTIALIAS_BORDER, null)
    [all...]

Completed in 376 milliseconds

1 2 3 4