OSDN Git Service

Reducing bitmap sizes in notifications
authorSelim Cinek <cinek@google.com>
Tue, 11 Jul 2017 11:19:59 +0000 (13:19 +0200)
committerSelim Cinek <cinek@google.com>
Wed, 19 Jul 2017 18:05:26 +0000 (11:05 -0700)
commitd0426628f60d063836c0dce691d4698b12434724
tree654b147dc46f74c58c3195c0994f672c85e28165
parentac86bc8764a30677cac34f07fc8e3ed68316136a
Reducing bitmap sizes in notifications

Bitmap sizes could be arbitrary large when they were sent
over to the system. We're now reducing them to reasonable
sizes.s

Also fixed that notification bitmaps were not put into
ashmem anymore since it got lost in a refactor.

Test: code inspection
Bug: 62319200
Change-Id: I87db7656e749666b9eab1f67fd497f155c407e18
core/java/android/app/Notification.java
core/java/android/app/NotificationManager.java
core/java/android/widget/RemoteViews.java
core/res/res/layout/notification_template_right_icon.xml
core/res/res/values/dimens.xml
core/res/res/values/symbols.xml
graphics/java/android/graphics/drawable/Icon.java