/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A D | LocalImageResolverTest.java | 99 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize() 130 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize() 144 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize() 156 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeResourceIcon_negativeWidth_dontResize() 168 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeResourceIcon_negativeHeight_dontResize() 181 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeBitmapIcon_passedNegativeWidth_dontResize() 194 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeBitmapIcon_passedNegativeHeight_dontResize() 205 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_smallBitmapIcon_passedSmallerSize_dontResize() 217 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_largeBitmapIcon_passedSize_resizeToDefinedSize() 241 BitmapDrawable bd = (BitmapDrawable) d; in resolveImage_smallResourceIcon_defaultSize_untouched() [all …]
|
H A D | CachingIconViewTest.java | 23 import android.graphics.drawable.BitmapDrawable; 239 assertThat(drawable).isInstanceOf(BitmapDrawable.class); in assertDrawableResized() 240 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in assertDrawableResized() 254 assertThat(drawable).isInstanceOf(BitmapDrawable.class); in assertDrawableNotResized() 255 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in assertDrawableNotResized()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/ |
H A D | DrawableSize.kt | 12 import android.graphics.drawable.BitmapDrawable 51 val originalWidth = (drawable as? BitmapDrawable)?.bitmap?.width 53 val originalHeight = (drawable as? BitmapDrawable)?.bitmap?.height 94 val config = (drawable as? BitmapDrawable)?.bitmap?.config 104 return BitmapDrawable(res, scaledDrawableBitmap)
|
/aosp14/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()
|
/aosp14/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()
|
/aosp14/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()
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/ |
H A D | BitmapUtils.java | 21 import android.graphics.drawable.BitmapDrawable; 33 if (drawable instanceof BitmapDrawable) { in renderDrawableToByteArray() 35 final Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap(); in renderDrawableToByteArray()
|
/aosp14/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()
|
/aosp14/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/customization/data/content/ |
H A D | FakeCustomizationProviderClient.kt | 20 import android.graphics.drawable.BitmapDrawable 138 else -> BitmapDrawable() 191 val ICON_1 = BitmapDrawable() 192 val ICON_2 = BitmapDrawable() 193 val ICON_3 = BitmapDrawable()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/ |
H A D | DrawableSizeTest.kt | 5 import android.graphics.drawable.BitmapDrawable 35 val drawable = BitmapDrawable(resources, 51 val drawable = BitmapDrawable(resources,
|
/aosp14/frameworks/base/core/java/android/text/style/ |
H A D | ImageSpan.java | 26 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()
|
/aosp14/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 …]
|
H A D | Icon.java | 395 if (drawable instanceof BitmapDrawable) { in fixMaxBitmapSize() 396 Bitmap scaledBmp = fixMaxBitmapSize(((BitmapDrawable) drawable).getBitmap()); in fixMaxBitmapSize() 397 return new BitmapDrawable(res, scaledBmp); in fixMaxBitmapSize() 408 return new BitmapDrawable(context.getResources(), fixMaxBitmapSize(getBitmap())); in loadDrawableInner() 411 new BitmapDrawable(context.getResources(), fixMaxBitmapSize(getBitmap()))); in loadDrawableInner() 452 return new BitmapDrawable(context.getResources(), fixMaxBitmapSize( in loadDrawableInner() 458 return new BitmapDrawable(context.getResources(), in loadDrawableInner() 465 return new AdaptiveIconDrawable(null, new BitmapDrawable(context.getResources(), in loadDrawableInner()
|
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/utils/ |
H A D | ShortcutDrawableUtils.java | 27 import android.graphics.drawable.BitmapDrawable; 77 BitmapDrawable drawable = new BitmapDrawable(mContext.getResources(), output); in createCircularDrawable()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | AppIconCacheManager.java | 19 import android.graphics.drawable.BitmapDrawable; 43 if (drawable instanceof BitmapDrawable) { in AppIconCacheManager() 44 return ((BitmapDrawable) drawable).getBitmap().getByteCount() / 1024; in AppIconCacheManager()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
H A D | IconTest.java | 51 final Bitmap bm3 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithBitmap() 163 final Bitmap res1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithBitmapResource() 241 final Bitmap bit1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testWithFile() 265 final Bitmap bit1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testAsync() 308 … final Bitmap originalbits = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) in testParcel() 425 final BitmapDrawable drawable = (BitmapDrawable) ic.loadDrawable(mContext); in testScaleDownMaxSizeWithResource() 432 final Bitmap bit1 = ((BitmapDrawable) getContext().getDrawable(R.drawable.test_too_big)) in testScaleDownMaxSizeWithFile() 440 final BitmapDrawable drawable = (BitmapDrawable) ic.loadDrawable(mContext); in testScaleDownMaxSizeWithFile() 448 final Bitmap originalBits = ((BitmapDrawable) getContext().getDrawable( in testScaleDownMaxSizeWithData() 455 final BitmapDrawable drawable = (BitmapDrawable) ic.loadDrawable(mContext); in testScaleDownMaxSizeWithData()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothUtils.java | 15 import android.graphics.drawable.BitmapDrawable; 173 if (pair.first instanceof BitmapDrawable) { in getBtRainbowDrawableWithDescription() 175 resources, ((BitmapDrawable) pair.first).getBitmap()), pair.second); in getBtRainbowDrawableWithDescription() 239 return new Pair<>(new BitmapDrawable(resources, in getBtDrawableWithDescription() 337 if (drawable instanceof BitmapDrawable) { in createIconWithDrawable() 338 bitmap = ((BitmapDrawable) drawable).getBitmap(); in createIconWithDrawable() 358 if (drawable instanceof BitmapDrawable) { in buildAdvancedDrawable() 359 bitmap = ((BitmapDrawable) drawable).getBitmap(); in buildAdvancedDrawable()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | PointerIcon.java | 33 import android.graphics.drawable.BitmapDrawable; 446 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() 511 if (!(drawableFrame instanceof BitmapDrawable)) { in loadResource() 521 BitmapDrawable bitmapDrawableFrame = (BitmapDrawable) drawableFrame; in loadResource() 526 if (!(drawable instanceof BitmapDrawable)) { in loadResource() 531 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/ |
H A D | ImageLoaderTest.kt | 7 import android.graphics.drawable.BitmapDrawable 216 assertBitmapEqualToDrawable(loadedDrawable, (bitmap as BitmapDrawable).bitmap) 313 assertThat((loadedDrawable as BitmapDrawable).bitmap.config) 326 assertThat((loadedDrawable as BitmapDrawable).bitmap.config) 332 assertThat(drawable).isInstanceOf(BitmapDrawable::class.java) 333 return (drawable as BitmapDrawable).bitmap
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | AssetsAtlasActivity.java | 25 import android.graphics.drawable.BitmapDrawable; 46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | SimpleIconFactory.java | 44 import android.graphics.drawable.BitmapDrawable; 227 BitmapDrawable drawable = new FixedSizeBitmapDrawable(bitmap); in createUserBadgedIconBitmap() 229 if (badged instanceof BitmapDrawable) { in createUserBadgedIconBitmap() 230 result = ((BitmapDrawable) badged).getBitmap(); in createUserBadgedIconBitmap() 272 icon = new BitmapDrawable(mContext.getResources(), bitmap); in createAppBadgedIconBitmap() 385 if (icon instanceof BitmapDrawable) { in createIconBitmap() 386 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() 750 private static class FixedSizeBitmapDrawable extends BitmapDrawable {
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 31 import android.graphics.drawable.BitmapDrawable; 159 (drawable instanceof BitmapDrawable)) { in buildScaledBitmap() 160 return ((BitmapDrawable) drawable).getBitmap(); in buildScaledBitmap()
|
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PageContentView.java | 20 import android.graphics.drawable.BitmapDrawable; 65 public void onPageContentAvailable(BitmapDrawable renderedPage) { in onPageContentAvailable()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/ |
H A D | NotificationMemoryViewWalker.kt | 4 import android.graphics.drawable.BitmapDrawable 186 is BitmapDrawable -> { 201 drawable is BitmapDrawable && drawable.bitmap?.config != Bitmap.Config.HARDWARE
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | BlingyNotification.kt | 27 import android.graphics.drawable.BitmapDrawable 40 image = if (drawable is BitmapDrawable) {
|