Home
last modified time | relevance | path

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

1234

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DPlaybackControlsRow.java27 import android.graphics.drawable.BitmapDrawable;
431 BitmapDrawable repeatDrawable = (BitmapDrawable) getStyledDrawable(context,
433 BitmapDrawable repeatOneDrawable = (BitmapDrawable) getStyledDrawable(context,
436 drawables[ALL] = new BitmapDrawable(context.getResources(),
438 drawables[ONE] = new BitmapDrawable(context.getResources(),
474 BitmapDrawable uncoloredDrawable = (BitmapDrawable) getStyledDrawable(context,
478 drawables[ON] = new BitmapDrawable(context.getResources(),
512 BitmapDrawable uncoloredDrawable = (BitmapDrawable) getStyledDrawable(context,
516 drawables[ON] = new BitmapDrawable(context.getResources(),
550 BitmapDrawable uncoloredDrawable = (BitmapDrawable) getStyledDrawable(context,
[all …]
DDetailsOverviewRow.java18 import android.graphics.drawable.BitmapDrawable;
71 mImageDrawable = new BitmapDrawable(context.getResources(), bm); in setImageBitmap()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java19 import android.graphics.drawable.BitmapDrawable;
92 new BitmapDrawable(createSelectedBitmap(scaled, false))); in createIconDrawable()
94 new BitmapDrawable(createSelectedBitmap(scaled, true))); in createIconDrawable()
95 result.addState(new int[0], new BitmapDrawable(scaled)); in createIconDrawable()
113 } else if (icon instanceof BitmapDrawable) { in createIconBitmap()
115 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
/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.java27 import android.graphics.drawable.BitmapDrawable;
123 if (drawable instanceof BitmapDrawable && scale == 1f) { in createDrawableBitmap()
125 return ((BitmapDrawable) drawable).getBitmap(); in createDrawableBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFixedSizeImageView.java20 import android.graphics.drawable.BitmapDrawable;
66 boolean isNullBitmapDrawable = (drawable instanceof BitmapDrawable) && in setImageDrawable()
67 (((BitmapDrawable) drawable).getBitmap() == null); in setImageDrawable()
/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/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/android/text/style/
DImageSpan.java22 import android.graphics.drawable.BitmapDrawable;
64 ? new BitmapDrawable(context.getResources(), b) in ImageSpan()
65 : new BitmapDrawable(b); in ImageSpan()
139 drawable = new BitmapDrawable(mContext.getResources(), bitmap); in getDrawable()
/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/graphics/java/android/graphics/drawable/
DBitmapDrawable.java74 public class BitmapDrawable extends Drawable { class
111 public BitmapDrawable() { in BitmapDrawable() method in BitmapDrawable
124 public BitmapDrawable(Resources res) { in BitmapDrawable() method in BitmapDrawable
135 public BitmapDrawable(Bitmap bitmap) { in BitmapDrawable() method in BitmapDrawable
143 public BitmapDrawable(Resources res, Bitmap bitmap) { in BitmapDrawable() method in BitmapDrawable
154 public BitmapDrawable(String filepath) { in BitmapDrawable() method in BitmapDrawable
165 public BitmapDrawable(Resources res, String filepath) { in BitmapDrawable() method in BitmapDrawable
179 public BitmapDrawable(java.io.InputStream is) { in BitmapDrawable() method in BitmapDrawable
190 public BitmapDrawable(Resources res, java.io.InputStream is) { in BitmapDrawable() method in BitmapDrawable
717 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/base/core/java/com/android/internal/util/
DNotificationColorUtil.java25 import android.graphics.drawable.BitmapDrawable;
117 } else if (d instanceof BitmapDrawable) { in isGrayscaleIcon()
118 BitmapDrawable bd = (BitmapDrawable) d; in isGrayscaleIcon()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java112 private static class BitmapDrawable extends Drawable { class in BackgroundManager
121 return new BitmapDrawable(null, mBitmap, mMatrix); in newDrawable()
132 BitmapDrawable(Resources resources, Bitmap bitmap) { in BitmapDrawable() method in BackgroundManager.BitmapDrawable
136 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { in BitmapDrawable() method in BackgroundManager.BitmapDrawable
694 BitmapDrawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap, matrix); in setBitmap()
773 if (first instanceof BitmapDrawable && second instanceof BitmapDrawable) { in sameDrawable()
774 … if (((BitmapDrawable) first).getBitmap().sameAs(((BitmapDrawable) second).getBitmap())) { in sameDrawable()
838 return new BitmapDrawable(mContext.getResources(), bitmap); in createEmptyDrawable()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAssetsAtlasActivity.java25 import android.graphics.drawable.BitmapDrawable;
46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java30 import android.graphics.drawable.BitmapDrawable;
101 BitmapDrawable placeholder = (BitmapDrawable) drawable.getInnerDrawable(); in onDrawPlaceholderOrProgress()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintRatingBar.java24 import android.graphics.drawable.BitmapDrawable;
106 } else if (drawable instanceof BitmapDrawable) { in tileify()
107 final Bitmap tileBitmap = ((BitmapDrawable) drawable).getBitmap(); in tileify()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java23 import android.graphics.drawable.BitmapDrawable;
172 if (originalIcon instanceof BitmapDrawable) { in getBadgedIcon()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPageContentView.java20 import android.graphics.drawable.BitmapDrawable;
60 public void onPageContentAvailable(BitmapDrawable content) { in onPageContentAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DRecentsTaskLoader.java25 import android.graphics.drawable.BitmapDrawable;
110 BitmapDrawable mDefaultApplicationIcon;
118 BitmapDrawable defaultApplicationIcon) { in TaskResourceLoader()
257 return ssp.getBadgedIcon(new BitmapDrawable(res, tdIcon), taskKey.userId); in getTaskDescriptionIcon()
285 BitmapDrawable mDefaultApplicationIcon;
305 mDefaultApplicationIcon = new BitmapDrawable(context.getResources(), icon); in RecentsTaskLoader()
/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java25 import android.graphics.drawable.BitmapDrawable;
201 if (drawable instanceof BitmapDrawable && scale == 1f) { in createDrawableBitmap()
203 return ((BitmapDrawable) drawable).getBitmap(); in createDrawableBitmap()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DCustomBar.java37 import android.graphics.drawable.BitmapDrawable;
122 BitmapDrawable drawable = new BitmapDrawable(getContext().getResources(), in loadIcon()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java23 import android.graphics.drawable.BitmapDrawable;
220 view.setBackground(new BitmapDrawable(resources, bitmap)); in onCreateSnapshotView()
/frameworks/base/core/java/android/view/
DPointerIcon.java26 import android.graphics.drawable.BitmapDrawable;
406 if (!(drawable instanceof BitmapDrawable)) { in loadResource()
412 mBitmap = ((BitmapDrawable)drawable).getBitmap(); in loadResource()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java26 import android.graphics.drawable.BitmapDrawable;
78 public void onPageContentAvailable(BitmapDrawable content); in onPageContentAvailable()
397 final BitmapDrawable content;
402 RenderedPage(BitmapDrawable content) { in RenderedPage()
810 BitmapDrawable content = new BitmapDrawable(mContext.getResources(), bitmap); in onPreExecute()

1234