History log of /frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2d10993c4276db5b28ef7cb909362fbbc26c460c 25-Apr-2014 Ruben <rglez@google.com> Add a few missed Trace.endSection()

Change-Id: Ib55c3ca461778a7efb21c4558efe7c4bfe27eb95
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
5b46c679794d2f4362e8064b0291c578835d75e0 18-Mar-2014 Mark Wei <markwei@google.com> unbind() will not keep track of the previous key unless we specify that the
unbind is temporary. This prevents race conditions that cause an old key to be
bound on attach to window.

Bug: 13507371
Change-Id: I5187ddd956fe28472fde1ef11360840059d15423
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
ad97cd0e0753930ec68f189e6be1023dc0f62f75 03-Mar-2014 Mark Wei <markwei@google.com> When detached from window, the last known RequestKey is saved inside of the 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
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
89e59f00d67791754e44e65413baa95f94056df4 21-Nov-2013 Mark Wei <markwei@google.com> Decouple parallaxSpeedMultiplier from setDecodeDimensions().

Expose decode vertical center through ExtendedOptions.

Genericize BitmapDrawableImageView#getTypedDrawable().

Bug: 11691744
Change-Id: I62e05ab2136cf031eaf1752dba728156c97c87a6
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
8aa2d8601f6a97af4a329cfc3bfd5fb5fb5bcbf8 21-Jan-2014 Mark Wei <markwei@google.com> Check both ReusableBitmap and ReusableBitmap#bmp for null to avoid NPE.

Bug: 12617030
Change-Id: I5882be1f02413dd55f44bf09b68257e9690abb6c
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
19a41ec7aaace2ab0b117d0baaeb544c5667b240 02-Dec-2013 Mark Wei <markwei@google.com> Fix state changes bug that caused bitmaps in the cache to be faded in instead of
instantly shown.

Change-Id: Ic2ba2d2ebe01badc881d1c43071a42bcf6f2b687
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
c4ba226c78b8478de6ac8e293d7f9bc64cba36ec 07-Nov-2013 Mark Wei <markwei@google.com> Allow clients to customize the placeholder pulse animation.

Change-Id: I73564b39333c10876b4dbd4532da327b8cf45265
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
7be91f8fe3c6d9af037b36918ea5bd86a10bbb44 07-Nov-2013 Mark Wei <markwei@google.com> Fix bitmap drawing bug.

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
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
41af50eb1ac488572b066629c3954b23c21dfa76 05-Nov-2013 Mark Wei <markwei@google.com> Change state from UNINITIALIZED to NOT_YET_LOADED earlier.

Relax restrictions on subclass.

Change-Id: I456ed06e244de0ab794372b74094f9e94ed4b3f9
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
10dddd8a24a80d1d539997d8eaa9763c62bd02ad 05-Nov-2013 Mark Wei <markwei@google.com> Add some documentation.

Change-Id: Ie32f29997946714d10318b111fabf4ed04e042e3
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
aab539ecd75ae365912200eb7f3318a53e9834f4 04-Nov-2013 Mark Wei <markwei@google.com> Allow subclasses to specify custom executors.

Change-Id: I5dba01d388189bd840cadb4543baf2544a4b2ca9
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
fd628f9186741ff689c8b44b94e839af92abaeed 04-Nov-2013 Mark Wei <markwei@google.com> Consistent naming with onDraw().

Change-Id: I6fb90cc9f18abc97c17e5603b588039c717b63bb
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
0c9aacac20202f4a41e98d8a34a6ee2c152ae2de 01-Nov-2013 Mark Wei <markwei@google.com> Allow subclasses to customize drawing of bitmap (using shaders, etc).

Change-Id: I22294a19e6dd2247cc9679470b7b69089ba17228
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
2e4d0863dba53435372ec96538f2ef3e1c3675bf 30-Oct-2013 Mark Wei <markwei@google.com> Make ExtendedBitmapDrawable extend BasicBitmapDrawable.

Modify sample app to use ExtendedBitmapDrawable with the following features:
Parallax,
Placholder and progress,
Decode aggregator.

Change-Id: Ia9e0fe6e6fdab018077a465ddf2a40109efbddf7
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
9c6ac19d4a3d39b7c2992060957920118ff56a65 24-Oct-2013 Mark Wei <markwei@google.com> Relax BasicBitmapView to allow non-BasicBitmapDrawables to be assigned to it.

Rename BasicBitmapView to BitmapDrawableImageView.

Allow asynchronous creating of file.

Change-Id: I0407bf0bf36ae92ce45d2175121a15483f8f72f2
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
a23358fbfd62c7aa1c84bfa8395b4dc427a71ce6 23-Oct-2013 Mark Wei <markwei@google.com> Add BasicImageView to unbind on detach for clients with long-lived caches.

Change visibility of mBitmap back to private. Expose through getter.

Bug: 11337575
Change-Id: I511976388cc3b6962434416d9e7a632e6d8a1b72
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
e03daa1db89106c11d8885b94d7ac97c10bea3b3 22-Oct-2013 Mark Wei <markwei@google.com> Expose sRect and mPaint to subclasses.

Change-Id: If9c994b3e5c19b66aaebe77f127c04ac9152994e
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
f433893b66efbec10367567fba2ade0bda507b15 22-Oct-2013 Mark Wei <markwei@google.com> Change visibility of mBitmap to protected for BasicBitmapDrawable subclasses.

Change-Id: I632138edd33f5fdc460d4525afea80ac0f2cf07f
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
528300fdc3caeb96a24873acf2b1cc0914b97593 22-Oct-2013 Mark Wei <markwei@google.com> Misspelling

Change-Id: I8ed71a18c95241997e9a91d0210bf8534f9891f8
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
ce7ad915674cd93d2bf9e87e7082a0f149163671 22-Oct-2013 Mark Wei <markwei@google.com> Let BasicBitmapDrawable get subclassable.

Change-Id: I02024c858b0eb5442194ad6daf9204f02175caef
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
cea0c012d538f11b3ee97d4b7e78f4c1ea73d5be 22-Oct-2013 Mark Wei <markwei@google.com> Modifications to bitmap library to make integrating into BigTop simpler.

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
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
40662f4b39e795d9c64502b13036e7c37fa2d373 16-Oct-2013 Sam Blitzstein <sblitz@google.com> Change BitmapRequestKey to be more cleanly implementable.

Change-Id: I831586688605e6c6c2f2f7a879c6be23175f71de
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java
93a35b93dc582e38ff8ee5979754a16b4bf4da0c 09-Oct-2013 Sam Blitzstein <sblitz@google.com> Initial commit from Gmail's Cache system.

Change-Id: I14168ab3bc02b77399a1812f62bd77ac797232c5
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/BasicBitmapDrawable.java