summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2015-03-04 13:08:49 -0500
committerDan Sandler <dsandler@android.com>2015-05-01 13:44:42 -0400
commitb9f7aac3488873677377b36c57338d758098f78e (patch)
tree505fc8e2f81d70f0f9949ed490acb5854bf87c99 /services/java
parent7dc7d09ba5abdc99eb5f106cf3ce545355d4c9be (diff)
downloadframeworks_base-b9f7aac3488873677377b36c57338d758098f78e.zip
frameworks_base-b9f7aac3488873677377b36c57338d758098f78e.tar.gz
frameworks_base-b9f7aac3488873677377b36c57338d758098f78e.tar.bz2
Icon: a clean, parcelable place for images.
Binder APIs which wish to consume Bitmaps *and* drawable resources can now do so by using Icon, a kind of union type that accommodates each of these. Icon also accepts byte arrays holding compressed Bitmaps (PNG, JPEG, etc), which saves clients the additional memory cost of decoding and sending full uncompressed bitmaps through Binder interfaces. Receiving clients can call loadDrawable{,Async} and then getDrawable to start immediately using the image in an ImageView or other Drawable-hosting container. Bug: 19609468 Change-Id: Ic1343711c2ac0b15876b46f0b6008b0108a49470
Diffstat (limited to 'services/java')
0 files changed, 0 insertions, 0 deletions