summaryrefslogtreecommitdiff
path: root/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
AgeCommit message (Collapse)Author
2015-04-14Update bitmap drawables with RTL support.android-wear-n-preview-3android-wear-n-preview-2android-wear-n-preview-1android-wear-7.1.1_r1android-n-preview-5android-n-preview-4android-n-preview-3android-n-preview-2android-n-preview-1android-n-iot-preview-2android-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r68android-6.0.1_r67android-6.0.1_r66android-6.0.1_r65android-6.0.1_r63android-6.0.1_r62android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r55android-6.0.1_r54android-6.0.1_r53android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r5android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r45android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r4android-6.0.1_r33android-6.0.1_r32android-6.0.1_r31android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21android-6.0.1_r20android-6.0.1_r18android-6.0.1_r17android-6.0.1_r16android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r41android-6.0.0_r4android-6.0.0_r3android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r2android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11android-6.0.0_r1nougat-mr1-wear-releasen-iot-preview-2marshmallow-releasemarshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-devmarshmallow-dr-releasemarshmallow-dr-dragon-releasemarshmallow-dr-devmarshmallow-devmarshmallow-cts-releaseMark Wei
Change-Id: Iafcbb41208b2e7e3396f2b86bee994cbaf57009f
2014-12-18Import latest changes.Oleksandr Kyreiev
Change-Id: I27973b3441d3738a85481de9c774da0ac08afd7c
2014-09-10Allow user to choose horizontal crop alignmentJames Kung
Bug: 17272990 Change-Id: I8622d7e837dc1045a9b41c86dc91727bf152c8d3
2014-07-15Allow BitmapDrawables to use different DecodeStrategysSam Blitzstein
Change-Id: I1736cf1ba0a5a9dd7d08a013a89ad5a705529f3c
2014-07-14Import latest bitmap library changes.Mark Wei
Change-Id: Ic3a79a1154fb1329bf4c163ea6aeb32f8bd3857d
2014-04-25Add a few missed Trace.endSection()Ruben
Change-Id: Ib55c3ca461778a7efb21c4558efe7c4bfe27eb95
2014-03-18unbind() will not keep track of the previous key unless we specify that theMark Wei
unbind is temporary. This prevents race conditions that cause an old key to be bound on attach to window. Bug: 13507371 Change-Id: I5187ddd956fe28472fde1ef11360840059d15423
2014-03-02When detached from window, the last known RequestKey is saved inside of the ↵Mark Wei
BasicBitmapDrawable instead of referenced separately in the BitmapDrawableImageView. This fixes a bug where you could bind() a stale RequestKey to the drawable, after having called drawable.unbind() before it is attached back to the window. Change-Id: Idba62fea647871d5c1c495b2c89e10779289a53b
2014-01-22Decouple parallaxSpeedMultiplier from setDecodeDimensions().Mark Wei
Expose decode vertical center through ExtendedOptions. Genericize BitmapDrawableImageView#getTypedDrawable(). Bug: 11691744 Change-Id: I62e05ab2136cf031eaf1752dba728156c97c87a6
2014-01-21Check both ReusableBitmap and ReusableBitmap#bmp for null to avoid NPE.Mark Wei
Bug: 12617030 Change-Id: I5882be1f02413dd55f44bf09b68257e9690abb6c
2013-12-02Fix state changes bug that caused bitmaps in the cache to be faded in instead ofMark Wei
instantly shown. Change-Id: Ic2ba2d2ebe01badc881d1c43071a42bcf6f2b687
2013-11-07Allow clients to customize the placeholder pulse animation.Mark Wei
Change-Id: I73564b39333c10876b4dbd4532da327b8cf45265
2013-11-06Fix bitmap drawing bug.Mark Wei
The bitmap's bounds is not the true bounds, since the bitmaps are being reused. The true bounds are the decode bounds, or logical bounds of the ReusableBitmap. Bug: 11534712 Change-Id: I8fd5c35feacccbbfe6b625591cd56dec9ff3d716
2013-11-05Change state from UNINITIALIZED to NOT_YET_LOADED earlier.Mark Wei
Relax restrictions on subclass. Change-Id: I456ed06e244de0ab794372b74094f9e94ed4b3f9
2013-11-04Add some documentation.Mark Wei
Change-Id: Ie32f29997946714d10318b111fabf4ed04e042e3
2013-11-04Allow subclasses to specify custom executors.Mark Wei
Change-Id: I5dba01d388189bd840cadb4543baf2544a4b2ca9
2013-11-04Consistent naming with onDraw().Mark Wei
Change-Id: I6fb90cc9f18abc97c17e5603b588039c717b63bb
2013-11-04Allow subclasses to customize drawing of bitmap (using shaders, etc).Mark Wei
Change-Id: I22294a19e6dd2247cc9679470b7b69089ba17228
2013-10-31Make ExtendedBitmapDrawable extend BasicBitmapDrawable.Mark Wei
Modify sample app to use ExtendedBitmapDrawable with the following features: Parallax, Placholder and progress, Decode aggregator. Change-Id: Ia9e0fe6e6fdab018077a465ddf2a40109efbddf7
2013-10-29Relax BasicBitmapView to allow non-BasicBitmapDrawables to be assigned to it.Mark Wei
Rename BasicBitmapView to BitmapDrawableImageView. Allow asynchronous creating of file. Change-Id: I0407bf0bf36ae92ce45d2175121a15483f8f72f2
2013-10-22Add BasicImageView to unbind on detach for clients with long-lived caches.Mark Wei
Change visibility of mBitmap back to private. Expose through getter. Bug: 11337575 Change-Id: I511976388cc3b6962434416d9e7a632e6d8a1b72
2013-10-21Expose sRect and mPaint to subclasses.Mark Wei
Change-Id: If9c994b3e5c19b66aaebe77f127c04ac9152994e
2013-10-21Change visibility of mBitmap to protected for BasicBitmapDrawable subclasses.Mark Wei
Change-Id: I632138edd33f5fdc460d4525afea80ac0f2cf07f
2013-10-21MisspellingMark Wei
Change-Id: I8ed71a18c95241997e9a91d0210bf8534f9891f8
2013-10-21Let BasicBitmapDrawable get subclassable.Mark Wei
Change-Id: I02024c858b0eb5442194ad6daf9204f02175caef
2013-10-21Modifications to bitmap library to make integrating into BigTop simpler.Mark Wei
RequestKey returns ParcelFileDescriptor instead of AssetFileDescriptor to make it easier to read files off of internal cache. Do not assume we want a top-1/3 crop. Provide vertical center in DecodeTask constructor. Move DecodeTask params into DecodeOptions to avoid param bloat. Add option to not limit bitmap density in BasicBitmapDrawable. Name AsyncTask threads in pool. Link DEBUG flags. Change-Id: I9416ac647c0c4935ee488b7db43cccd9de565c54
2013-10-16Change BitmapRequestKey to be more cleanly implementable.Sam Blitzstein
Change-Id: I831586688605e6c6c2f2f7a879c6be23175f71de
2013-10-15Initial commit from Gmail's Cache system.Sam Blitzstein
Change-Id: I14168ab3bc02b77399a1812f62bd77ac797232c5