Searched refs:bitmapDrawable (Results 1 – 11 of 11) sorted by relevance
61 BitmapDrawable bitmapDrawable = null; in onDraw() local65 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()
49 Drawable bitmapDrawable = mContext.getResources() in setBackgroundDrawableSameAsSetWindowBackground() local55 mDecorView.setWindowBackground(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()62 mDecorView.setBackgroundDrawable(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()70 assertThat(mDecorView.getBackground()).isEqualTo(bitmapDrawable); in setBackgroundDrawableSameAsSetWindowBackground()
240 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in assertDrawableResized() local241 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() local256 assertThat(bitmapDrawable.getBitmap().getWidth()).isGreaterThan(maxSize); in assertDrawableNotResized()257 assertThat(bitmapDrawable.getBitmap().getHeight()).isGreaterThan(maxSize); in assertDrawableNotResized()
126 if (drawable instanceof BitmapDrawable bitmapDrawable) { in setImageDrawable()127 if (bitmapDrawable.getBitmap() == null) { in setImageDrawable()
472 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument473 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() local582 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
218 && icon instanceof BitmapDrawable bitmapDrawable) { in createBadgedIconBitmap()222 tempIcon = createShapedAdaptiveIcon(bitmapDrawable.getBitmap()); in createBadgedIconBitmap()433 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in drawIconBitmap() local434 Bitmap b = bitmapDrawable.getBitmap(); in drawIconBitmap()436 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in drawIconBitmap()
548 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToIcon() local549 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToIcon()550 return Icon.createWithBitmap(bitmapDrawable.getBitmap()); in convertDrawableToIcon()
347 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToBitmap() local348 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToBitmap()349 return bitmapDrawable.getBitmap(); in convertDrawableToBitmap()
374 val bitmapDrawable = BitmapDrawable(packageContext.resources, bitmap) in inflateActionButton() constant376 if (icon.type == Icon.TYPE_URI_ADAPTIVE_BITMAP) AdaptiveIconDrawable(null, bitmapDrawable) in inflateActionButton()377 else bitmapDrawable in inflateActionButton()
386 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local387 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()389 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
3565 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local3566 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()