Home
last modified time | relevance | path

Searched refs:BitmapDrawable (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java29 import android.graphics.drawable.BitmapDrawable;
87 assertThat(drawable).isInstanceOf(BitmapDrawable.class); in setIcon_resourceId_shouldSetIcon()
119 final BitmapDrawable expected = in testSetIconFromXml()
120 (BitmapDrawable) mContext.getResources().getDrawable(android.R.drawable.ic_menu_add); in testSetIconFromXml()
121 final BitmapDrawable actual = (BitmapDrawable) mIconView.getDrawable(); in testSetIconFromXml()
/frameworks/base/core/java/android/transition/
DCrossfade.java28 import android.graphics.drawable.BitmapDrawable;
180 final BitmapDrawable startDrawable = (BitmapDrawable) startVals.get(PROPNAME_DRAWABLE); in createAnimator()
181 final BitmapDrawable endDrawable = (BitmapDrawable) endVals.get(PROPNAME_DRAWABLE); in createAnimator()
281 BitmapDrawable drawable = new BitmapDrawable(bitmap); in captureValues()
DTransitionUtils.java28 import android.graphics.drawable.BitmapDrawable;
124 if (drawable instanceof BitmapDrawable && scale == 1f) { in createDrawableBitmap()
126 return ((BitmapDrawable) drawable).getBitmap(); in createDrawableBitmap()
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java26 import android.graphics.drawable.BitmapDrawable;
42 private BitmapDrawable mDrawable;
47 public DrawableHolder(BitmapDrawable drawable) { in DrawableHolder()
51 public DrawableHolder(BitmapDrawable drawable, float x, float y) { in DrawableHolder()
198 public BitmapDrawable getDrawable() { in getDrawable()
DLocalImageResolver.java23 import android.graphics.drawable.BitmapDrawable;
58 return new BitmapDrawable(context.getResources(), bitmap); in resolveImage()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DFixedSizeImageView.java20 import android.graphics.drawable.BitmapDrawable;
67 boolean isNullBitmapDrawable = (drawable instanceof BitmapDrawable) && in setImageDrawable()
68 (((BitmapDrawable) drawable).getBitmap() == null); in setImageDrawable()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DBoundsCheckTest.java23 import android.graphics.drawable.BitmapDrawable;
37 private final BitmapDrawable mBitmap1;
43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); in BitmapsView()
/frameworks/opt/chips/src/com/android/ex/chips/
DCircularImageView.java12 import android.graphics.drawable.BitmapDrawable;
61 BitmapDrawable bitmapDrawable = null; in onDraw()
65 bitmapDrawable = (BitmapDrawable) drawable.getCurrent(); in onDraw()
68 bitmapDrawable = (BitmapDrawable) drawable; in onDraw()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DSetupWizardLayout.java25 import android.graphics.drawable.BitmapDrawable;
316 if (backgroundTile instanceof BitmapDrawable) { in setBackgroundTile()
317 ((BitmapDrawable) backgroundTile).setTileModeXY(TileMode.REPEAT, TileMode.REPEAT); in setBackgroundTile()
334 if (horizontalTile instanceof BitmapDrawable) { in getIllustration()
335 ((BitmapDrawable) horizontalTile).setTileModeX(TileMode.REPEAT); in getIllustration()
336 ((BitmapDrawable) horizontalTile).setGravity(Gravity.TOP); in getIllustration()
338 if (asset instanceof BitmapDrawable) { in getIllustration()
340 ((BitmapDrawable) asset).setGravity(Gravity.TOP | Gravity.LEFT); in getIllustration()
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java21 import android.graphics.drawable.BitmapDrawable;
79 } else if (icon instanceof BitmapDrawable) { in createIconBitmap()
81 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
/frameworks/base/core/java/android/text/style/
DImageSpan.java26 import android.graphics.drawable.BitmapDrawable;
114 ? new BitmapDrawable(context.getResources(), bitmap) in ImageSpan()
115 : new BitmapDrawable(bitmap); in ImageSpan()
238 drawable = new BitmapDrawable(mContext.getResources(), bitmap); in getDrawable()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java78 public class BitmapDrawable extends Drawable { class
117 public BitmapDrawable() { in BitmapDrawable() method in BitmapDrawable
130 public BitmapDrawable(Resources res) { in BitmapDrawable() method in BitmapDrawable
140 public BitmapDrawable(Bitmap bitmap) { in BitmapDrawable() method in BitmapDrawable
148 public BitmapDrawable(Resources res, Bitmap bitmap) { in BitmapDrawable() method in BitmapDrawable
158 public BitmapDrawable(String filepath) { in BitmapDrawable() method in BitmapDrawable
166 public BitmapDrawable(Resources res, String filepath) { in BitmapDrawable() method in BitmapDrawable
191 public BitmapDrawable(java.io.InputStream is) { in BitmapDrawable() method in BitmapDrawable
199 public BitmapDrawable(Resources res, java.io.InputStream is) { in BitmapDrawable() method in BitmapDrawable
774 final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.BitmapDrawable); in inflate()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoaderInterface.java5 import android.graphics.drawable.BitmapDrawable;
43 return new BitmapDrawable(resources, bitmap); in getDrawable()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java30 import android.graphics.drawable.BitmapDrawable;
102 if (drawable.getInnerDrawable() instanceof BitmapDrawable) { in onDrawPlaceholderOrProgress()
103 BitmapDrawable placeholder = in onDrawPlaceholderOrProgress()
104 (BitmapDrawable) drawable.getInnerDrawable(); in onDrawPlaceholderOrProgress()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DSysUiResources.java35 import android.graphics.drawable.BitmapDrawable;
93 BitmapDrawable drawable = new BitmapDrawable(context.getResources(), bitmap); in loadIcon()
/frameworks/base/core/java/android/view/
DPointerIcon.java32 import android.graphics.drawable.BitmapDrawable;
440 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable()
505 if (!(drawableFrame instanceof BitmapDrawable)) { in loadResource()
515 BitmapDrawable bitmapDrawableFrame = (BitmapDrawable) drawableFrame; in loadResource()
520 if (!(drawable instanceof BitmapDrawable)) { in loadResource()
525 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java42 import android.graphics.drawable.BitmapDrawable;
190 BitmapDrawable drawable = new FixedSizeBitmapDrawable(bitmap); in createUserBadgedIconBitmap()
192 if (badged instanceof BitmapDrawable) { in createUserBadgedIconBitmap()
193 result = ((BitmapDrawable) badged).getBitmap(); in createUserBadgedIconBitmap()
235 icon = new BitmapDrawable(mContext.getResources(), bitmap); in createAppBadgedIconBitmap()
307 if (icon instanceof BitmapDrawable) { in createIconBitmap()
308 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
672 private static class FixedSizeBitmapDrawable extends BitmapDrawable {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DIconLoader.java28 import android.graphics.drawable.BitmapDrawable;
149 new BitmapDrawable(mContext.getResources(), icon), userId, desc); in createDrawableFromBitmap()
163 private final BitmapDrawable mDefaultIcon;
173 mDefaultIcon = new BitmapDrawable(context.getResources(), icon); in DefaultIconLoader()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAssetsAtlasActivity.java25 import android.graphics.drawable.BitmapDrawable;
46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java31 import android.graphics.drawable.BitmapDrawable;
147 (drawable instanceof BitmapDrawable)) { in buildScaledBitmap()
148 return ((BitmapDrawable) drawable).getBitmap(); in buildScaledBitmap()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPageContentView.java20 import android.graphics.drawable.BitmapDrawable;
65 public void onPageContentAvailable(BitmapDrawable renderedPage) { in onPageContentAvailable()
/frameworks/base/core/tests/coretests/src/android/view/
DBitmapDrawable.java24 public class BitmapDrawable extends Activity { class
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java37 import android.graphics.drawable.BitmapDrawable;
128 BitmapDrawable drawable = new BitmapDrawable(getContext().getResources(), bitmap); in loadIcon()
/frameworks/base/core/tests/coretests/src/android/transition/
DFadeTransitionTest.java23 import android.graphics.drawable.BitmapDrawable;
148 BitmapDrawable background = (BitmapDrawable) imageView.getDrawable(); in testSnapshotView()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java26 import android.graphics.drawable.BitmapDrawable;
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable()

123