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:06:09 +0000 (18:06 +0000)
commit15733d1f8592de90823012570fd8db4fd3408f14
tree952401f4b5d652f767f11577aa482bd648d3bd63
parentb02cbdeeb3cb4d7989d93649daac01d4ebb89fd6
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
Merged-In: I87db7656e749666b9eab1f67fd497f155c407e18
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