Home
last modified time | relevance | path

Searched refs:bitmapDrawable (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/chips/src/com/android/ex/chips/
DCircularImageView.java61 BitmapDrawable bitmapDrawable = null; in onDraw() local
65 bitmapDrawable = (BitmapDrawable) drawable.getCurrent(); in onDraw()
68 bitmapDrawable = (BitmapDrawable) drawable; in onDraw()
71 if (bitmapDrawable == null) { in onDraw()
74 Bitmap bitmap = bitmapDrawable.getBitmap(); in onDraw()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorViewTest.java49 Drawable bitmapDrawable = mContext.getResources() in setBackgroundDrawableSameAsSetWindowBackground() local
55 mDecorView.setWindowBackground(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()
62 mDecorView.setBackgroundDrawable(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()
70 assertThat(mDecorView.getBackground()).isEqualTo(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java81 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
82 Bitmap bitmap = bitmapDrawable.getBitmap(); in createIconBitmap()
84 bitmapDrawable.setTargetDensity(mDisplayMetrics); in createIconBitmap()
/frameworks/base/core/java/android/view/
DPointerIcon.java440 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument
441 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()
442 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
443 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()
525 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local
526 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java302 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
303 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
305 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java373 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
374 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
376 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java1112 BitmapDrawable bitmapDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
1119 return bitmapDrawable;
1122 InsetDrawable insetDrawable = new InsetDrawable(bitmapDrawable,
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java3004 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local
3005 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()