Home
last modified time | relevance | path

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

/aosp12/packages/apps/Contacts/src/com/android/contacts/widget/
H A DQuickContactImageView.java64 final BitmapDrawable bitmapDrawable; in setImageDrawable() local
66 bitmapDrawable = (BitmapDrawable) drawable; in setImageDrawable()
69 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable()
72 bitmapDrawable = (BitmapDrawable) getResources().getDrawable( in setImageDrawable()
80 mBitmapDrawable = bitmapDrawable; in setImageDrawable()
82 super.setImageDrawable(bitmapDrawable); in setImageDrawable()
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/
H A 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()
/aosp12/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()
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DBitmapUtils.java141 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in fromDrawable() local
142 if (bitmapDrawable.getBitmap() != null) { in fromDrawable()
143 return bitmapDrawable.getBitmap(); in fromDrawable()
/aosp12/frameworks/base/core/java/android/view/
H A DPointerIcon.java441 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument
442 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()
443 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()
444 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()
526 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local
527 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
/aosp12/packages/apps/Car/SettingsIntelligence/src/com/android/settings/intelligence/search/car/
H A DCarSearchFragment.java239 BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(), bm); in onLoadFinished() local
240 item.setIcon(bitmapDrawable); in onLoadFinished()
243 BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(), bm); in onLoadFinished() local
244 item.setIcon(bitmapDrawable); in onLoadFinished()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/utils/
H A DCarUiUtils.java264 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in drawableToBitmap() local
265 if (bitmapDrawable.getBitmap() != null) { in drawableToBitmap()
266 return bitmapDrawable.getBitmap(); in drawableToBitmap()
/aosp12/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()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java376 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconThumbnail() local
377 Bitmap bitmap = bitmapDrawable.getBitmap(); in createIconThumbnail()
379 bitmapDrawable.setTargetDensity(mMetrics); in createIconThumbnail()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
H A DLiveWallpaperThumbAsset.java145 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getLowResBitmap() local
146 Bitmap bitmap = bitmapDrawable.getBitmap(); in getLowResBitmap()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
H A DBaseIconFactory.java372 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
373 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
375 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DSimpleIconFactory.java373 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local
374 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()
376 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DSuggestionStripLayoutHelper.java194 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, buffer); in getMoreSuggestionsHint() local
195 bitmapDrawable.setTargetDensity(canvas); in getMoreSuggestionsHint()
196 return bitmapDrawable; in getMoreSuggestionsHint()
/aosp12/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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotView.java1078 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, bitmap); in createScreenDrawable() local
1083 + bitmapDrawable); in createScreenDrawable()
1084 return bitmapDrawable; in createScreenDrawable()
1087 InsetDrawable insetDrawable = new InsetDrawable(bitmapDrawable, in createScreenDrawable()
/aosp12/frameworks/base/core/java/android/app/
H A DApplicationPackageManager.java3083 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local
3084 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()