/aosp12/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | QuickContactImageView.java | 4 import android.graphics.drawable.BitmapDrawable; 25 private BitmapDrawable mBitmapDrawable; 64 final BitmapDrawable bitmapDrawable; in setImageDrawable() 65 if (drawable == null || drawable instanceof BitmapDrawable) { in setImageDrawable() 66 bitmapDrawable = (BitmapDrawable) drawable; in setImageDrawable() 69 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable() 72 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | BitmapUtils.java | 27 import android.graphics.drawable.BitmapDrawable; 126 if (drawable instanceof BitmapDrawable) { in maybeFlagDrawable() 128 Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in maybeFlagDrawable() 132 drawable = new BitmapDrawable(res, BitmapUtils.createTintedBitmap(bitmap, tint)); in maybeFlagDrawable() 140 if (drawable instanceof BitmapDrawable) { in fromDrawable() 141 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in fromDrawable()
|
/aosp12/packages/apps/ThemePicker/src/com/google/android/apps/wallpaper/asset/ |
H A D | ThemeBundleThumbAsset.java | 22 import android.graphics.drawable.BitmapDrawable; 90 if (thumb instanceof BitmapDrawable) { in doInBackground() 91 return ((BitmapDrawable) thumb).getBitmap(); in doInBackground() 94 if (layer instanceof BitmapDrawable) { in doInBackground() 95 return ((BitmapDrawable) layer).getBitmap(); in doInBackground()
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
H A D | UserIconProvider.java | 26 import android.graphics.drawable.BitmapDrawable; 60 return new BitmapDrawable(res, icon); in getRoundedUserIcon() 66 return new BitmapDrawable(resources, icon); in getRoundedGuestDefaultIcon() 72 private static BitmapDrawable scaleUserIcon(Resources res, Bitmap icon) { in scaleUserIcon() 76 return new BitmapDrawable(res, scaledIcon); in scaleUserIcon()
|
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | IconMixinTest.java | 29 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()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
H A D | DefaultAppUtils.java | 21 import android.graphics.drawable.BitmapDrawable; 61 if (original instanceof BitmapDrawable) { in getSafeDrawable() 62 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable() 70 return new BitmapDrawable(null, bitmap); in getSafeDrawable()
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | Crossfade.java | 28 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | AvatarRequest.java | 27 import android.graphics.drawable.BitmapDrawable; 123 final BitmapDrawable defaultPerson = (BitmapDrawable) mContext.getResources() in renderDefaultAvatar() 128 final BitmapDrawable largeDefaultPerson = (BitmapDrawable) mContext.getResources() in renderDefaultAvatar() 135 final BitmapDrawable wearDefaultPerson = (BitmapDrawable) mContext.getResources() in renderDefaultAvatar()
|
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
H A D | BaseIconFactory.java | 20 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 …]
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ImageViewDrawableSetter.java | 22 import android.graphics.drawable.BitmapDrawable; 91 && mPreviousDrawable instanceof BitmapDrawable in setCompressedImage() 134 : ((BitmapDrawable) mPreviousDrawable).getBitmap(); in previousBitmap() 162 private BitmapDrawable decodedBitmapDrawable(byte[] compressed) { in decodedBitmapDrawable() 176 return new BitmapDrawable(rsrc, bitmap); in decodedBitmapDrawable()
|
H A D | BitmapUtil.java | 27 import android.graphics.drawable.BitmapDrawable; 113 return new BitmapDrawable(resources,rotated); in getRotatedDrawable() 169 if (drawable instanceof BitmapDrawable) { in drawableToBitmap() 170 return ((BitmapDrawable) drawable).getBitmap(); in drawableToBitmap()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/ |
H A D | PreferenceDialogFragment.java | 23 import android.graphics.drawable.BitmapDrawable; 76 if (icon == null || icon instanceof BitmapDrawable) { in onCreate() 77 mDialogIcon = (BitmapDrawable) icon; in onCreate() 84 mDialogIcon = new BitmapDrawable(getResources(), bitmap); in onCreate()
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 26 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | OrientedBitmapDrawable.java | 25 import android.graphics.drawable.BitmapDrawable; 34 public class OrientedBitmapDrawable extends BitmapDrawable { 41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) { in create() 44 return new BitmapDrawable(res, bitmap); in create()
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
H A D | LiveWallpaperThumbAsset.java | 26 import android.graphics.drawable.BitmapDrawable; 144 if (drawable instanceof BitmapDrawable) { in getLowResBitmap() 145 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getLowResBitmap() 189 mThumbnailDrawable = new BitmapDrawable(mContext.getResources(), in getThumbnailDrawable() 270 if (thumb instanceof BitmapDrawable) { in doInBackground() 271 return ((BitmapDrawable) thumb).getBitmap(); in doInBackground()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/imewidescreen/ |
H A D | CarUiImeSearchListItem.java | 19 import android.graphics.drawable.BitmapDrawable; 51 if (icon instanceof BitmapDrawable || icon == null) { in setIcon() 67 if (icon instanceof BitmapDrawable || icon == null) { in setSupplementalIcon()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothUtils.java | 13 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()
|
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardLayout.java | 25 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()
|
/aosp12/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
H A D | BoundsCheckTest.java | 23 import android.graphics.drawable.BitmapDrawable; 37 private final BitmapDrawable mBitmap1; 43 mBitmap1 = (BitmapDrawable) res.getDrawable(R.drawable.icon); in BitmapsView()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
H A D | DrawableUtil.java | 21 import android.graphics.drawable.BitmapDrawable; 43 if (drawable instanceof BitmapDrawable) { in createBitmapFromDrawable() 44 bitmap = ((BitmapDrawable) drawable).getBitmap(); in createBitmapFromDrawable()
|
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | CircularImageView.java | 12 import android.graphics.drawable.BitmapDrawable; 61 BitmapDrawable bitmapDrawable = null; in onDraw() 65 bitmapDrawable = (BitmapDrawable) drawable.getCurrent(); in onDraw() 68 bitmapDrawable = (BitmapDrawable) drawable; in onDraw()
|
/aosp12/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | DetailsViewBackgroundHelper.java | 20 import android.graphics.drawable.BitmapDrawable; 46 if (mBackGround instanceof BitmapDrawable) { in run() 47 mBackgroundManager.setBitmap(((BitmapDrawable) mBackGround).getBitmap()); in run()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
H A D | ProfileUtils.java | 23 import android.graphics.drawable.BitmapDrawable; 67 public static BitmapDrawable scaleProfileIcon(Resources res, Bitmap icon) { in scaleProfileIcon() 71 return new BitmapDrawable(res, scaledIcon); in scaleProfileIcon()
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 79 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 1033 return new BitmapDrawable(this, null); in newDrawable() 1038 return new BitmapDrawable(this, res); in newDrawable() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationInlineImageResolverTest.java | 28 import android.graphics.drawable.BitmapDrawable; 48 BitmapDrawable mBitmapDrawable; 55 mBitmapDrawable = new BitmapDrawable(mContext.getResources(), mBitmap); in setup()
|