02cd9f91a6bd6d06d6d1237f8b978a0ab0b8ea32 |
|
14-May-2015 |
Dan Sandler <dsandler@android.com> |
Use Context instead of Resources in Icon.createWithResource. This works around situations where corrupted packages cause Resources.getResourcePackageName to return something that does't actually work. Bug: 21144636 Change-Id: I271518599a8eb89d493f1ceda6cb2e47fb38a4ff
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java
|
877d696c382ecb8a97972450c8819536641a963c |
|
13-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon API tuneups: - Reorder parameters to loadDrawableAsync() - New version of createWithResource that takes a package name instead of a Resources - Add loadDrawableAsUser() for INTERACT_ACROSS_USERS clients like SystemUI - Docs cleanups Bug: 21089268 Bug: 21031774 Change-Id: I465d2b865e35e12094b564f994e59d55e522f65a
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java
|
b9f7aac3488873677377b36c57338d758098f78e |
|
04-Mar-2015 |
Dan Sandler <dsandler@android.com> |
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
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java
|