Searched refs:adaptiveIcon (Results 1 – 3 of 3) sorted by relevance
215 AdaptiveIconDrawable adaptiveIcon = normalizeAndWrapToAdaptiveIcon(icon, null, scale); in createBadgedIconBitmap() local216 Bitmap bitmap = createIconBitmap(adaptiveIcon, scale[0], in createBadgedIconBitmap()223 if (adaptiveIcon instanceof BitmapInfo.Extender extender) { in createBadgedIconBitmap()226 Drawable mono = getMonochromeDrawable(adaptiveIcon); in createBadgedIconBitmap()319 AdaptiveIconDrawable adaptiveIcon; in normalizeAndWrapToAdaptiveIcon() local321 adaptiveIcon = wrapToAdaptiveIcon(icon, outIconBounds); in normalizeAndWrapToAdaptiveIcon()322 scale = getNormalizer().getScale(adaptiveIcon, outIconBounds, null, null); in normalizeAndWrapToAdaptiveIcon()324 return adaptiveIcon; in normalizeAndWrapToAdaptiveIcon()
217 final Drawable adaptiveIcon = new AdaptiveIcon(context, drawable); in buildBtRainbowDrawable() local218 ((AdaptiveIcon) adaptiveIcon).setBackgroundColor(iconBgColors[index]); in buildBtRainbowDrawable()220 return adaptiveIcon; in buildBtRainbowDrawable()
1318 AdaptiveIconDrawable adaptiveIcon = mock(AdaptiveIconDrawable.class); in testMonochromeAppIcon_adaptiveIconExists() local1320 when(mPackageManager.getApplicationIcon(pkg)).thenReturn(adaptiveIcon); in testMonochromeAppIcon_adaptiveIconExists()1321 when(adaptiveIcon.getMonochrome()).thenReturn(monochromeIcon); in testMonochromeAppIcon_adaptiveIconExists()1322 when(adaptiveIcon.getSourceDrawableResId()).thenReturn(monochromeIconResId); in testMonochromeAppIcon_adaptiveIconExists()