Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DCachingIconViewTest.java240 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in assertDrawableResized() local
241 assertThat(bitmapDrawable.getBitmap().getWidth()).isLessThan(maxSize + 1); in assertDrawableResized()
242 assertThat(bitmapDrawable.getBitmap().getHeight()).isLessThan(maxSize + 1); in assertDrawableResized()
255 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in assertDrawableNotResized() local
256 assertThat(bitmapDrawable.getBitmap().getWidth()).isGreaterThan(maxSize); in assertDrawableNotResized()
257 assertThat(bitmapDrawable.getBitmap().getHeight()).isGreaterThan(maxSize); in assertDrawableNotResized()
/aosp14/frameworks/base/core/java/android/view/
H A DPointerIcon.java446 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument
447 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()
448 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
449 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()
531 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local
532 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
/aosp14/frameworks/base/core/java/android/app/people/
H A DPeopleSpaceTile.java548 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToIcon() local
549 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToIcon()
550 return Icon.createWithBitmap(bitmapDrawable.getBitmap()); in convertDrawableToIcon()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSmartReplyStateInflater.kt332 val bitmapDrawable = BitmapDrawable(packageContext.resources, bitmap) regex
334 AdaptiveIconDrawable(null, bitmapDrawable) else bitmapDrawable
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
H A DPeopleSpaceUtils.java347 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToBitmap() local
348 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToBitmap()
349 return bitmapDrawable.getBitmap(); in convertDrawableToBitmap()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DSimpleIconFactory.java386 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
387 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
389 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotView.java1123 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, bitmap); in createScreenDrawable() local
1128 + bitmapDrawable); in createScreenDrawable()
1129 return bitmapDrawable; in createScreenDrawable()
1132 InsetDrawable insetDrawable = new InsetDrawable(bitmapDrawable, in createScreenDrawable()
/aosp14/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java3390 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local
3391 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()