Home
last modified time | relevance | path

Searched refs:artwork (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DMediaArtworkProcessor.kt45 fun processArtwork(context: Context, artwork: Bitmap): Bitmap { in processArtwork()
52 val rect = Rect(0, 0, artwork.width, artwork.height) in processArtwork()
54 var inBitmap = Bitmap.createScaledBitmap(artwork, rect.width(), rect.height(), in processArtwork()
74 val swatch = MediaNotificationProcessor.findBackgroundSwatch(artwork) in processArtwork()
DNotificationMediaManager.java648 private Bitmap processArtwork(Bitmap artwork) { in processArtwork() argument
649 return mMediaArtworkProcessor.processArtwork(mContext, artwork); in processArtwork()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessor.java250 public static Palette.Swatch findBackgroundSwatch(Bitmap artwork) { in findBackgroundSwatch() argument
251 return findBackgroundSwatch(generateArtworkPaletteBuilder(artwork).generate()); in findBackgroundSwatch()
304 private static Palette.Builder generateArtworkPaletteBuilder(Bitmap artwork) { in generateArtworkPaletteBuilder() argument
307 return Palette.from(artwork) in generateArtworkPaletteBuilder()
308 .setRegion(0, 0, artwork.getWidth() / 2, artwork.getHeight()) in generateArtworkPaletteBuilder()