Searched refs:BLOB_HEADER_SIZE (Results 1 - 3 of 3) sorted by relevance

/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/
H A DBlobCacheTest.java104 private static final int BLOB_HEADER_SIZE = 20; field in class:BlobCacheTest
150 assertEquals(DATA_HEADER_SIZE + BLOB_HEADER_SIZE + DATA_0.length,
167 assertEquals(DATA_HEADER_SIZE + 2 * (BLOB_HEADER_SIZE + DATA_0.length),
186 assertEquals(DATA_HEADER_SIZE + 3 * (BLOB_HEADER_SIZE + DATA_0.length),
303 (BLOB_HEADER_SIZE + DATA_0.length);
313 assertEquals(DATA_HEADER_SIZE + maxFit * (BLOB_HEADER_SIZE + DATA_0.length),
323 assertEquals(DATA_HEADER_SIZE + maxFit * (BLOB_HEADER_SIZE + DATA_0.length),
325 assertEquals(DATA_HEADER_SIZE + 1 * (BLOB_HEADER_SIZE + DATA_0.length),
339 assertEquals(DATA_HEADER_SIZE + maxFit * (BLOB_HEADER_SIZE + DATA_0.length),
341 assertEquals(DATA_HEADER_SIZE + 2 * (BLOB_HEADER_SIZE
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBlobCache.java104 private static final int BLOB_HEADER_SIZE = 20; field in class:BlobCache
124 private byte[] mBlobHeader = new byte[BLOB_HEADER_SIZE];
363 if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) {
367 if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes
409 mActiveBytes += BLOB_HEADER_SIZE + length;
460 if (mActiveBytes + BLOB_HEADER_SIZE + req.length > mMaxBytes
494 if (file.read(header) != BLOB_HEADER_SIZE) {
513 if (length < 0 || length > mMaxBytes - offset - BLOB_HEADER_SIZE) {
/packages/apps/Mms/src/com/android/mms/util/
H A DBlobCache.java103 private static final int BLOB_HEADER_SIZE = 20; field in class:BlobCache
123 private byte[] mBlobHeader = new byte[BLOB_HEADER_SIZE];
362 if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) {
366 if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes
398 mActiveBytes += BLOB_HEADER_SIZE + length;
449 if (mActiveBytes + BLOB_HEADER_SIZE + req.length > mMaxBytes
483 if (file.read(header) != BLOB_HEADER_SIZE) {
499 if (length < 0 || length > mMaxBytes - offset - BLOB_HEADER_SIZE) {

Completed in 407 milliseconds