/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
BitmapDrawableTest.java | 39 import android.graphics.drawable.BitmapDrawable; 78 BitmapDrawable bitmapDrawable = new BitmapDrawable(); 79 assertNotNull(bitmapDrawable.getPaint()); 81 bitmapDrawable.getPaint().getFlags()); 82 assertNull(bitmapDrawable.getBitmap()); 85 bitmapDrawable = new BitmapDrawable(bitmap); 86 assertNotNull(bitmapDrawable.getPaint()) [all...] |
ThemedDrawableTest.java | 25 import android.graphics.drawable.BitmapDrawable; 58 BitmapDrawable d = (BitmapDrawable) mContext.getDrawable(R.drawable.bitmapdrawable_theme); 63 private void internalTestBitmapDrawable(BitmapDrawable d) { 152 BitmapDrawable bitmapDrawable = (BitmapDrawable) d.getDrawable(0); 153 internalTestBitmapDrawable(bitmapDrawable);
|
LayerDrawableTest.java | 30 import android.graphics.drawable.BitmapDrawable; 52 Drawable bitmapDrawable = new BitmapDrawable(); 54 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; 57 assertSame(bitmapDrawable, layerDrawable.getDrawable(0)); 84 assertEquals(BitmapDrawable.class, layerDrawable.getDrawable(1).getClass()); 127 Drawable bitmapDrawable = new BitmapDrawable(); 129 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; 134 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; 65 final BitmapDrawable bitmapDrawable; 66 if (drawable == null || drawable instanceof BitmapDrawable) { 67 bitmapDrawable = (BitmapDrawable) drawable; 70 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( 73 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/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);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
AppCompatProgressBarHelper.java | 23 import android.graphics.drawable.BitmapDrawable; 98 } else if (drawable instanceof BitmapDrawable) { 99 final BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; 100 final Bitmap tileBitmap = bitmapDrawable.getBitmap(); 109 shapeDrawable.getPaint().setColorFilter(bitmapDrawable.getPaint().getColorFilter());
|
/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/v1/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/services/core/java/com/android/server/policy/ |
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 | 35 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 | 45 import android.graphics.drawable.BitmapDrawable; 199 return createIconBitmap(new BitmapDrawable(context.getResources(), icon), context); 214 BitmapDrawable drawable = new FixedSizeBitmapDrawable(bitmap); 217 if (badged instanceof BitmapDrawable) { 218 return ((BitmapDrawable) badged).getBitmap(); 248 } else if (icon instanceof BitmapDrawable) { 250 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; 251 Bitmap bitmap = bitmapDrawable.getBitmap() [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
SuggestionStripLayoutHelper.java | 29 import android.graphics.drawable.BitmapDrawable; 194 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, buffer); 195 bitmapDrawable.setTargetDensity(canvas); 196 return bitmapDrawable;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
BackgroundManager.java | 130 private static class BitmapDrawable extends Drawable { 139 return new BitmapDrawable(null, mBitmap, mMatrix); 150 BitmapDrawable(Resources resources, Bitmap bitmap) { 154 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { [all...] |
/frameworks/base/core/java/android/app/ |
ApplicationPackageManager.java | 62 import android.graphics.drawable.BitmapDrawable; 737 return new BitmapDrawable(null, bitmap); [all...] |
/prebuilts/gradle-plugin/com/android/tools/perflib/perflib/24.5.0/ |
perflib-24.5.0.jar | |
/prebuilts/gradle-plugin/com/android/tools/perflib/perflib/25.0.0/ |
perflib-25.0.0.jar | |
/prebuilts/gradle-plugin/com/android/tools/perflib/perflib/25.0.0-alpha1/ |
perflib-25.0.0-alpha1.jar | |
/prebuilts/gradle-plugin/com/android/tools/perflib/perflib/25.0.0-alpha3/ |
perflib-25.0.0-alpha3.jar | |