/frameworks/opt/chips/src/com/android/ex/chips/ |
D | CircularImageView.java | 61 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/ |
D | DecorViewTest.java | 49 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/ |
D | CachingIconViewTest.java | 240 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/ |
D | PointerIcon.java | 451 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/ |
D | NotificationRowIconView.java | 126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in drawableToBitmap() 127 final Bitmap bitmap = bitmapDrawable.getBitmap(); in drawableToBitmap()
|
D | BigPictureNotificationImageView.java | 126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in setImageDrawable() 127 if (bitmapDrawable.getBitmap() == null) { in setImageDrawable()
|
/frameworks/base/core/java/android/app/people/ |
D | PeopleSpaceTile.java | 548 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/ |
D | SmartReplyStateInflater.kt | 332 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/ |
D | BaseIconFactory.java | 430 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/ |
D | PeopleSpaceUtils.java | 347 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/ |
D | SimpleIconFactory.java | 386 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/ |
D | ScreenshotView.java | 1102 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/ |
D | ApplicationPackageManager.java | 3488 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local 3489 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()
|