4ff3b120ff8a788e3afeb266d18caf072f0b8ffb |
|
01-Feb-2016 |
Adrian Roos <roosa@google.com> |
Ensure notification color contrast Ensure we have at least 3:1 contrast for the action buttons. Also ensures that the inline reply box background has 4.5:1 contrast to white. Further modifies the color of the inline reply background to satisfy a 4.5:1 contrast ratio for the entered text. Bug: 26831312 Change-Id: If42b1c99d1adee547d0a583c1a69c48ef7287c23
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
d63f9321e62064660d426efd5abbd885c4a24652 |
|
06-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon support comes to Notification. And you may ask yourself: what is that beautiful icon? And you may ask yourself: where does that API go to? And you may ask yourself: is it a resource? is it a Bitmap? And you may say to yourself: my god, what have I done (This patch fixes a number of bugs in the initial implementation, but other than that, it's the same as it ever was.) Bug: 18568715 Bug: 21141842 Change-Id: I1d3f9427abd7f0bb57e533fcfac708851ff644b6
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
09e51a739f3e408567f0eefafcc5fedb01bc3401 |
|
14-May-2015 |
Daniel Sandler <dsandler@android.com> |
Revert "Icon support comes to Notification." This reverts commit 08a04c15245c970856022d0779aa27d4d63cdee3. This also reverts commit 5bcbf857d129f4513e562801a4e88077b2655ade. Change-Id: Ia0b0a5339d523581c877822a3a1feec97ae4b73d
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
08a04c15245c970856022d0779aa27d4d63cdee3 |
|
06-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon support comes to Notification. And you may ask yourself: what is that beautiful icon? And you may ask yourself: where does that API go to? And you may ask yourself: is it a resource? is it a Bitmap? And you may say to yourself: my god, what have I done Bug: 18568715 Change-Id: I4377b311c538bd1cf36b3fba22326bae81af40c9
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
05c362d5645367c816069aa138b597b77f317aa4 |
|
03-Sep-2014 |
Dan Sandler <dsandler@android.com> |
Reduce RAM requirements of grayscale icon testing The isGrayscale family of methods is designed to identify drawables and bitmaps that apps are using in the largeIcon position to pose as small icons in order to get the appropriate background treatment (a solid blue or gray block in KK/JB, or geniune selvedge denim in ICS/HC). We can optimize this search two ways: (1) Reject immediately any largeIcon that is larger than largeIcons should be (64x64dp). We could one day simply reject, or resize, these in the notification manager, but regardless these are not plausible smallIcon subsitutes. This new constraint is commemorated in the new name, isGrayscaleIcon(). (2) Shrink the bitmap even smaller before scanning it slowly in Java. This lets native_drawBitmap do the heavy lifting across the entire bitmap; we need only scan a few pixels. Bug: 16513124 Change-Id: I3a2b79130ed2465a4aedfbb5a556db7f8a7aa132
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
830960cce032a1b0dc0cf54bcc44ffa339388c21 |
|
07-Jun-2014 |
Alan Viverette <alanv@google.com> |
Material theme BUG: 15467097 Change-Id: I15191362e104a902895418fc615892c21db64c35
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|
26e81cf14bf32585742cbb75ac14045acaab2692 |
|
06-May-2014 |
Dan Sandler <dsandler@android.com> |
Quantum notification improvements. New API introduced here: Notification.color (and Builder.setColor()), allowing apps to specify an accent color to be used by the template. The Quantum templates (which are now the only kind we support) use this when creating a circular background to draw behind the smallIcon in the expanded form. Additionally, the quantum and legacy templates are no longer in superposition; all apps using Builder will get quantum. Change-Id: Iac5e2645cc5c2346ed458763f2280ae9c6368b62
/frameworks/base/core/java/com/android/internal/util/NotificationColorUtil.java
|