Home
last modified time | relevance | path

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

1234

/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/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/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()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java20 import android.graphics.drawable.BitmapDrawable;
146 new BitmapDrawable(mContext.getResources(), placeholderBitmap)); in createIconBitmap()
153 icon = createIconBitmap(new BitmapDrawable(mContext.getResources(), icon), 1f); in createIconBitmap()
229 BitmapDrawable drawable = new FixedSizeBitmapDrawable(bitmap); in createBadgedIconBitmap()
231 if (badged instanceof BitmapDrawable) { in createBadgedIconBitmap()
232 bitmap = ((BitmapDrawable) badged).getBitmap(); in createBadgedIconBitmap()
249 if (badgedDrawable instanceof BitmapDrawable) { in getUserBadgeBitmap()
250 mUserBadgeBitmap = ((BitmapDrawable) badgedDrawable).getBitmap(); in getUserBadgeBitmap()
371 if (icon instanceof BitmapDrawable) { in createIconBitmap()
372 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
[all …]
/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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInlineImageResolverTest.java28 import android.graphics.drawable.BitmapDrawable;
48 BitmapDrawable mBitmapDrawable;
55 mBitmapDrawable = new BitmapDrawable(mContext.getResources(), mBitmap); in setup()
/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/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothUtils.java13 import android.graphics.drawable.BitmapDrawable;
148 if (pair.first instanceof BitmapDrawable) { in getBtRainbowDrawableWithDescription()
150 resources, ((BitmapDrawable) pair.first).getBitmap()), pair.second); in getBtRainbowDrawableWithDescription()
207 return new Pair<>(new BitmapDrawable(resources, in getBtDrawableWithDescription()
255 if (drawable instanceof BitmapDrawable) { in createIconWithDrawable()
256 bitmap = ((BitmapDrawable) drawable).getBitmap(); in createIconWithDrawable()
276 if (drawable instanceof BitmapDrawable) { in buildAdvancedDrawable()
277 bitmap = ((BitmapDrawable) drawable).getBitmap(); in buildAdvancedDrawable()
/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/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoaderInterface.java5 import android.graphics.drawable.BitmapDrawable;
43 return new BitmapDrawable(resources, bitmap); in getDrawable()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java79 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/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.java33 import android.graphics.drawable.BitmapDrawable;
441 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable()
506 if (!(drawableFrame instanceof BitmapDrawable)) { in loadResource()
516 BitmapDrawable bitmapDrawableFrame = (BitmapDrawable) drawableFrame; in loadResource()
521 if (!(drawable instanceof BitmapDrawable)) { in loadResource()
526 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource()
/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/app/
DSimpleIconFactory.java44 import android.graphics.drawable.BitmapDrawable;
214 BitmapDrawable drawable = new FixedSizeBitmapDrawable(bitmap); in createUserBadgedIconBitmap()
216 if (badged instanceof BitmapDrawable) { in createUserBadgedIconBitmap()
217 result = ((BitmapDrawable) badged).getBitmap(); in createUserBadgedIconBitmap()
259 icon = new BitmapDrawable(mContext.getResources(), bitmap); in createAppBadgedIconBitmap()
372 if (icon instanceof BitmapDrawable) { in createIconBitmap()
373 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
737 private static class FixedSizeBitmapDrawable extends BitmapDrawable {
/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/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java21 import android.graphics.drawable.BitmapDrawable;
62 if (!(drawable instanceof BitmapDrawable)) { in getIcon()
/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/tests/SilkFX/src/com/android/test/silkfx/hdr/
DBlingyNotification.kt27 import android.graphics.drawable.BitmapDrawable
40 image = if (drawable is BitmapDrawable) {
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java27 import android.graphics.drawable.BitmapDrawable;
111 assertThat(mBluetoothMediaDevice.getIcon() instanceof BitmapDrawable).isFalse(); in getIcon_isNotFastPairDevice_drawableTypeIsNotBitmapDrawable()
/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()

1234