Home
last modified time | relevance | path

Searched refs:bitmapDrawable (Results 1 – 11 of 11) 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/core/tests/coretests/src/com/android/internal/widget/
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()
/frameworks/base/core/java/com/android/internal/widget/
DBigPictureNotificationImageView.java126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in setImageDrawable()
127 if (bitmapDrawable.getBitmap() == null) { in setImageDrawable()
/frameworks/base/core/java/android/view/
DPointerIcon.java472 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument
473 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()
474 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
475 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()
581 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local
582 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java218 && icon instanceof BitmapDrawable bitmapDrawable) { in createBadgedIconBitmap()
222 tempIcon = createShapedAdaptiveIcon(bitmapDrawable.getBitmap()); in createBadgedIconBitmap()
433 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in drawIconBitmap() local
434 Bitmap b = bitmapDrawable.getBitmap(); in drawIconBitmap()
436 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in drawIconBitmap()
/frameworks/base/core/java/android/app/people/
DPeopleSpaceTile.java548 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToIcon() local
549 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToIcon()
550 return Icon.createWithBitmap(bitmapDrawable.getBitmap()); in convertDrawableToIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DPeopleSpaceUtils.java347 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToBitmap() local
348 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToBitmap()
349 return bitmapDrawable.getBitmap(); in convertDrawableToBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyStateInflater.kt374 val bitmapDrawable = BitmapDrawable(packageContext.resources, bitmap) in inflateActionButton() constant
376 if (icon.type == Icon.TYPE_URI_ADAPTIVE_BITMAP) AdaptiveIconDrawable(null, bitmapDrawable) in inflateActionButton()
377 else bitmapDrawable in inflateActionButton()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java386 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
387 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
389 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java3565 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local
3566 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()