summaryrefslogtreecommitdiffstats
path: root/graphics/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use Context instead of Resources in Icon.createWithResource.Dan Sandler2015-05-141-3/+2
| | | | | | | | | This works around situations where corrupted packages cause Resources.getResourcePackageName to return something that does't actually work. Bug: 21144636 Change-Id: I271518599a8eb89d493f1ceda6cb2e47fb38a4ff
* Icon API tuneups:Dan Sandler2015-05-131-6/+2
| | | | | | | | | | | | | - 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
* Icon: a clean, parcelable place for images.Dan Sandler2015-05-013-0/+346
| | | | | | | | | | | | | | | 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
* Preserve fill type in Path.reset().Mike Klein2013-10-071-0/+37
| | | | | Bug: 10838355 Change-Id: I7bdecb945fc35dfed02d37745678ae7bda906628
* Remove MipmapDrawableRomain Guy2013-05-301-280/+0
| | | | | | It's a hidden API that nobody uses. Change-Id: Ie0ecbc45cd191a595e53fe8765defe6f2aa7e3f6
* Expose an API to get a bitmap's size in bytes.Jesse Wilson2011-02-161-2/+4
| | | | | Change-Id: I960c3b02b1ba8d3a8d92aaa98955a159e6f3a228 http://b/3184897
* Add MipmapDrawableTestBrian Muramatsu2010-12-211-0/+280
| | | | | | | | | | | Move these tests from CTS, because Mipmap is now hidden. Also remove all the XML inflation code, because that is currently disabled. Original change: f445b8a7 Deletion from CTS: Ibfd1b8a5 Change-Id: I816581062778a9cbe868e32c3c6975cc9a74af5b
* Test for decoding Bitmap from MemoryFile ParcelFileDescriptorBjorn Bringert2010-08-261-0/+47
| | | | | Bug: 2948227 Change-Id: I90de2f887e907fbd631dc06a1c483737acec0706
* More framework tests cleanup.Brett Chabot2010-04-016-0/+255
| | | | | | | | | | | | Move all tests for android.* classes from tests/AndroidTests and tests/CoreTests into framework/base/<core|graphics>/tests. Consolidate all tests for java.* classes to tests/CoreTests. Eventually hopefully these will be moved to dalvik/ somewhere. Remove tests/AndroidTests entirely. Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-2913-0/+900
sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java