/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
BitmapDrawableTest.java | 37 import android.graphics.drawable.BitmapDrawable; 63 BitmapDrawable bitmapDrawable = new BitmapDrawable(); 64 assertNotNull(bitmapDrawable.getPaint()); 66 bitmapDrawable.getPaint().getFlags()); 67 assertNull(bitmapDrawable.getBitmap()); 70 bitmapDrawable = new BitmapDrawable(bitmap); 71 assertNotNull(bitmapDrawable.getPaint()) [all...] |
ThemedDrawableTest.java | 25 import android.graphics.drawable.BitmapDrawable; 49 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.bitmapdrawable_theme); 54 private void internalTestBitmapDrawable(BitmapDrawable d) { 143 BitmapDrawable bitmapDrawable = (BitmapDrawable) d.getDrawable(0); 144 internalTestBitmapDrawable(bitmapDrawable);
|
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...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
QuickContactImageView.java | 6 import android.graphics.drawable.BitmapDrawable; 26 private BitmapDrawable mBitmapDrawable; 70 final BitmapDrawable bitmapDrawable; 71 if (drawable == null || drawable instanceof BitmapDrawable) { 72 bitmapDrawable = (BitmapDrawable) drawable; 75 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( 78 bitmapDrawable = (BitmapDrawable) getResources().getDrawable [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
CircularImageView.java | 12 import android.graphics.drawable.BitmapDrawable; 61 BitmapDrawable bitmapDrawable = null; 65 bitmapDrawable = (BitmapDrawable) drawable.getCurrent(); 68 bitmapDrawable = (BitmapDrawable) drawable; 71 if (bitmapDrawable == null) { 74 Bitmap bitmap = bitmapDrawable.getBitmap();
|
/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 | 25 import android.graphics.drawable.BitmapDrawable; 93 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; 95 BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.getDrawable(); 96 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap());
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
CardPresenter.java | 19 import android.graphics.drawable.BitmapDrawable; 122 Drawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap); 123 mImageCardView.setMainImage(bitmapDrawable);
|
/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; 92 new BitmapDrawable(createSelectedBitmap(scaled, false))); 94 new BitmapDrawable(createSelectedBitmap(scaled, true))); 95 result.addState(new int[0], new BitmapDrawable(scaled)); 113 } else if (icon instanceof BitmapDrawable) { 115 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; 116 Bitmap bitmap = bitmapDrawable.getBitmap(); 118 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);
|
WidgetPreviewLoader.java | 26 import android.graphics.drawable.BitmapDrawable; 496 BitmapDrawable previewDrawable = (BitmapDrawable) mContext.getResources() 604 BitmapDrawable previewDrawable = new BitmapDrawable( 610 if (badgedPreviewDrawable instanceof BitmapDrawable) { 611 BitmapDrawable bitmapDrawable = (BitmapDrawable) badgedPreviewDrawable; 612 return bitmapDrawable.getBitmap() [all...] |
/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...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
Utilities.java | 37 import android.graphics.drawable.BitmapDrawable; 134 return createIconBitmap(new BitmapDrawable(resources, icon), context); 154 } else if (icon instanceof BitmapDrawable) { 156 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; 157 Bitmap bitmap = bitmapDrawable.getBitmap(); 159 bitmapDrawable.setTargetDensity(context.getResources().getDisplayMetrics()); 226 return createIconBitmap(new BitmapDrawable(resources, bitmap), context);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
BackgroundManager.java | 111 private static class BitmapDrawable extends Drawable { 120 return new BitmapDrawable(null, mBitmap, mMatrix); 131 BitmapDrawable(Resources resources, Bitmap bitmap) { 135 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { 655 BitmapDrawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap, matrix); 657 setDrawableInternal(bitmapDrawable); 734 if (first instanceof BitmapDrawable && second instanceof BitmapDrawable) { [all...] |
/frameworks/base/core/java/android/app/ |
ApplicationPackageManager.java | 56 import android.graphics.drawable.BitmapDrawable; [all...] |
/prebuilts/sdk/current/support/v17/leanback/libs/ |
android-support-v17-leanback.jar | |