Searched refs:artwork (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | MediaArtworkProcessorTest.kt | 63 val artwork = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888) in testProcessArtwork() constant 64 Canvas(artwork).drawColor(Color.BLUE) in testProcessArtwork() 66 val background = processor.processArtwork(context, artwork)!! in testProcessArtwork() 76 val artwork = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888) in testCache() constant 77 Canvas(artwork).drawColor(Color.BLUE) in testCache() 79 val background1 = processor.processArtwork(context, artwork)!! in testCache() 80 val background2 = processor.processArtwork(context, artwork)!! in testCache() 89 val artwork = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ALPHA_8) in testConfig() constant 90 Canvas(artwork).drawColor(Color.BLUE) in testConfig() 92 val background = processor.processArtwork(context, artwork)!! in testConfig() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | MediaArtworkProcessor.kt | 47 fun processArtwork(context: Context, artwork: Bitmap): Bitmap? { in processArtwork() 58 val rect = Rect(0, 0, artwork.width, artwork.height) in processArtwork() 60 inBitmap = Bitmap.createScaledBitmap(artwork, rect.width(), rect.height(), in processArtwork() 81 val swatch = MediaNotificationProcessor.findBackgroundSwatch(artwork) in processArtwork()
|
D | NotificationMediaManager.java | 669 private Bitmap processArtwork(Bitmap artwork) { in processArtwork() argument 670 return mMediaArtworkProcessor.processArtwork(mContext, artwork); in processArtwork()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 250 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()
|