Home
last modified time | relevance | path

Searched refs:bitmapDrawable (Results 1 – 13 of 13) 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/android/view/
DPointerIcon.java451 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument
452 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()
453 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
454 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()
564 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local
565 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationRowIconView.java126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in drawableToBitmap()
127 final Bitmap bitmap = bitmapDrawable.getBitmap(); in drawableToBitmap()
DBigPictureNotificationImageView.java126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in setImageDrawable()
127 if (bitmapDrawable.getBitmap() == null) { in setImageDrawable()
/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/statusbar/policy/
DSmartReplyStateInflater.kt332 val bitmapDrawable = BitmapDrawable(packageContext.resources, bitmap) in inflateActionButton() constant
334 AdaptiveIconDrawable(null, bitmapDrawable) else bitmapDrawable in inflateActionButton()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java430 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in drawIconBitmap() local
431 Bitmap b = bitmapDrawable.getBitmap(); in drawIconBitmap()
433 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in drawIconBitmap()
/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/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/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotView.java1102 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, bitmap); in createScreenDrawable() local
1107 + bitmapDrawable); in createScreenDrawable()
1108 return bitmapDrawable; in createScreenDrawable()
1111 InsetDrawable insetDrawable = new InsetDrawable(bitmapDrawable, in createScreenDrawable()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java3488 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local
3489 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()