History log of /frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5bd5325bd61414480091b262204f1a45d57c1884 24-Jun-2014 Aurash Mahbod <aurash@google.com> Fix crash/OOM in DiskBasedCache

DiskBasedCache.writeHeader() can throw an IOException and swallow it. This causes the
cache entry to be partially written followed by the entry's data. When reading back,
it is possible to read back the data segment (garbled part) when attempting to parse
the cache header.

Change-Id: I3022ca1566bc60e5869bb4ec384c866b4ba5c1c5
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
b33d0d6651b0b31e965839211d410136db2dcb5b 21-Jun-2013 Ficus Kirkpatrick <ficus@android.com> Port CacheHeader away from ObjectOutputStream.

The standard Java serialization system relies heavily on
reflection, even for primitive types and Strings, which
generates a lot of garbage. Move to a simple built-in
implementation.

Change-Id: I7f35cbfd1963f2aaf726f5b747cef1b2f8a0ad69
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
e5a344749f100325cd8ef0d78cd7db5221b5e628 21-Jun-2013 Ficus Kirkpatrick <ficus@android.com> Add a test for DiskBasedCache.

Change-Id: I8106e5763df7e600c82c446b6ff828907fb187c1
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
ab6ea086d1bfe6387c35270d48be1a5c0567d7d3 10-May-2013 David Braun <dabraun@google.com> Intern CacheHeader keys and values to avoid string duplication

We found that Volley generated about 20 strings per cached item (~9000
strings for ~440 cached items) and most of these were duplicates. This
change interns the key and value strings to avoid duplication. This saved
about 500kb for our scenario (440 images cached.)
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
445ed3471fb55abae917324375b30c8a677e5d0b 28-Mar-2013 Ficus Kirkpatrick <ficus@android.com> Move directory creation off the main thread.
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
fc88bb5421b4e2aa7ebc21f60af61f05272661f8 26-Mar-2013 Evan Charlton <evancharlton@gmail.com> Ensure that the cache folder exists

Make sure that the cache folder exists when using DiskBasedCache.

Change-Id: I60e2c2b0b88c9a3a178e72dda05ab5f7290e33f0
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
e48f4430bfd3030350aa5ba827b449c37e2fadc9 07-Nov-2012 Jean-Baptiste Queru <jbq@google.com> Initial commit of volley (from frameworks/support)

Change-Id: Ie583820dcd5f281db7b9845f0c78774e1863afd3
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java
d56b88ae161057e848e7410d1b9ce5b0b8c427fc 07-Nov-2012 Jean-Baptiste Queru <jbq@google.com> Initial commit of volley (from frameworks/support)

Change-Id: I12ada622c3885da6994cc2ff40cd275e1d5311e2
/frameworks/volley/src/com/android/volley/toolbox/DiskBasedCache.java