HomeSort by relevance Sort by last modified time
    Searched refs:bitmapDrawable (Results 1 - 11 of 11) sorted by null

  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 35 import android.graphics.drawable.BitmapDrawable;
61 BitmapDrawable bitmapDrawable = new BitmapDrawable();
62 assertNotNull(bitmapDrawable.getPaint());
64 bitmapDrawable.getPaint().getFlags());
65 assertNull(bitmapDrawable.getBitmap());
68 bitmapDrawable = new BitmapDrawable(bitmap);
69 assertNotNull(bitmapDrawable.getPaint())
    [all...]
LayerDrawableTest.java 33 import android.graphics.drawable.BitmapDrawable;
50 Drawable bitmapDrawable = new BitmapDrawable();
52 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable };
55 assertSame(bitmapDrawable, layerDrawable.getDrawable(0));
82 assertEquals(BitmapDrawable.class, layerDrawable.getDrawable(1).getClass());
125 Drawable bitmapDrawable = new BitmapDrawable();
127 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable };
132 assertSame(bitmapDrawable, layerDrawable.findDrawableByLayerId(10))
    [all...]
  /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...]
  /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
InsertionListView.java 33 import android.graphics.drawable.BitmapDrawable;
69 private List<BitmapDrawable> mCellBitmapDrawables;
89 mCellBitmapDrawables = new ArrayList<BitmapDrawable>();
107 final HashMap<Long, BitmapDrawable> listViewItemDrawables = new HashMap<Long,
108 BitmapDrawable>();
230 BitmapDrawable bitmapDrawable = listViewItemDrawables.get(itemId);
232 bitmapDrawable.setBounds(startBounds);
238 ObjectAnimator animation = ObjectAnimator.ofObject(bitmapDrawable,
258 mCellBitmapDrawables.add(bitmapDrawable);
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 24 import android.graphics.drawable.BitmapDrawable;
93 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;
95 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable();
96 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap());
  /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...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
PopupWindowTest.java 4 import android.graphics.drawable.BitmapDrawable;
105 BitmapDrawable bitmapDrawable = new BitmapDrawable();
106 popupWindow.setBackgroundDrawable(bitmapDrawable);
108 assertThat((BitmapDrawable) popupWindow.getBackground(), is(bitmapDrawable));
164 BitmapDrawable background = new BitmapDrawable();
  /frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java 19 import android.graphics.drawable.BitmapDrawable;
101 new BitmapDrawable(createSelectedBitmap(scaled, false)));
103 new BitmapDrawable(createSelectedBitmap(scaled, true)));
104 result.addState(new int[0], new BitmapDrawable(scaled));
122 } else if (icon instanceof BitmapDrawable) {
124 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
125 Bitmap bitmap = bitmapDrawable.getBitmap();
127 bitmapDrawable.setTargetDensity(mDisplayMetrics)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java 32 import android.graphics.drawable.BitmapDrawable;
87 return createIconBitmap(new BitmapDrawable(resources, icon), context);
107 } else if (icon instanceof BitmapDrawable) {
109 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
110 Bitmap bitmap = bitmapDrawable.getBitmap();
112 bitmapDrawable.setTargetDensity(context.getResources().getDisplayMetrics());
212 return createIconBitmap(new BitmapDrawable(resources, bitmap), context);
  /packages/apps/Launcher3/src/com/android/launcher3/
Utilities.java 33 import android.graphics.drawable.BitmapDrawable;
107 return createIconBitmap(new BitmapDrawable(resources, icon), context);
127 } else if (icon instanceof BitmapDrawable) {
129 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
130 Bitmap bitmap = bitmapDrawable.getBitmap();
132 bitmapDrawable.setTargetDensity(context.getResources().getDisplayMetrics());
199 return createIconBitmap(new BitmapDrawable(resources, bitmap), context);
  /packages/apps/Settings/src/com/android/settings/
ActivityPicker.java 39 import android.graphics.drawable.BitmapDrawable;
366 } else if (icon instanceof BitmapDrawable) {
368 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
369 Bitmap bitmap = bitmapDrawable.getBitmap();
371 bitmapDrawable.setTargetDensity(mMetrics);
404 icon = new BitmapDrawable(thumb);
405 ((BitmapDrawable) icon).setTargetDensity(mMetrics);
419 icon = new BitmapDrawable(thumb)
    [all...]

Completed in 1637 milliseconds