Searched refs:bitmapDrawable (Results 1 – 9 of 9) sorted by relevance
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()
446 private Bitmap getBitmapFromDrawable(BitmapDrawable bitmapDrawable) { in getBitmapFromDrawable() argument447 Bitmap bitmap = bitmapDrawable.getBitmap(); in getBitmapFromDrawable()448 final int scaledWidth = bitmapDrawable.getIntrinsicWidth(); in getBitmapFromDrawable()449 final int scaledHeight = bitmapDrawable.getIntrinsicHeight(); in getBitmapFromDrawable()531 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in loadResource() local532 final Bitmap bitmap = getBitmapFromDrawable(bitmapDrawable); in loadResource()
548 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToIcon() local549 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToIcon()550 return Icon.createWithBitmap(bitmapDrawable.getBitmap()); in convertDrawableToIcon()
332 val bitmapDrawable = BitmapDrawable(packageContext.resources, bitmap) regex334 AdaptiveIconDrawable(null, bitmapDrawable) else bitmapDrawable
347 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in convertDrawableToBitmap() local348 if (bitmapDrawable.getBitmap() != null) { in convertDrawableToBitmap()349 return bitmapDrawable.getBitmap(); in convertDrawableToBitmap()
386 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap() local387 Bitmap b = bitmapDrawable.getBitmap(); in createIconBitmap()389 bitmapDrawable.setTargetDensity(mContext.getResources().getDisplayMetrics()); in createIconBitmap()
1123 BitmapDrawable bitmapDrawable = new BitmapDrawable(res, bitmap); in createScreenDrawable() local1128 + bitmapDrawable); in createScreenDrawable()1129 return bitmapDrawable; in createScreenDrawable()1132 InsetDrawable insetDrawable = new InsetDrawable(bitmapDrawable, in createScreenDrawable()
3390 BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable; in getBadgedDrawable() local3391 mergedDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in getBadgedDrawable()