/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | CacheManager.java | 23 import com.android.gallery3d.common.BlobCache; 32 private static HashMap<String, BlobCache> sCacheMap = 33 new HashMap<String, BlobCache>(); 36 // Return null when we cannot instantiate a BlobCache, e.g.: 39 public static BlobCache getCache(Context context, String filename, 46 BlobCache cache = sCacheMap.get(filename); 51 cache = new BlobCache(path, maxEntries, maxBytes, false, 78 BlobCache.deleteFiles(prefix + "imgcache"); 79 BlobCache.deleteFiles(prefix + "rev_geocoding"); 80 BlobCache [all...] |
H A D | ReverseGeocoder.java | 27 import com.android.gallery3d.common.BlobCache; 73 private BlobCache mGeoCache;
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | CacheManager.java | 31 private static HashMap<String, BlobCache> sCacheMap = 32 new HashMap<String, BlobCache>(); 37 // Return null when we cannot instantiate a BlobCache, e.g.: 40 public static BlobCache getCache(Context context, String filename, 47 BlobCache cache = sCacheMap.get(filename); 54 cache = new BlobCache(path, maxEntries, maxBytes, false, 86 BlobCache.deleteFiles(prefix + ImageCacheService.IMAGE_CACHE_FILE);
|
H A D | ImageCacheService.java | 33 private BlobCache mCache;
|
H A D | BlobCache.java | 54 // Below are the interface for BlobCache. The instance of this class does not 57 // public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) throws IOException; 79 public class BlobCache implements Closeable { class in inherits:Closeable 80 private static final String TAG = "BlobCache"; 132 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) method in class:BlobCache 137 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, method in class:BlobCache 157 // by the BlobCache constructor.
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
H A D | BlobCacheTest.java | 19 import com.android.gallery3d.common.BlobCache; 38 assertEquals(0, BlobCache.readInt(buf, 0)); 39 assertEquals(0, BlobCache.readLong(buf, 0)); 41 assertEquals(1, BlobCache.readInt(buf, 0)); 42 assertEquals(1, BlobCache.readLong(buf, 0)); 44 assertEquals(0x7f000001, BlobCache.readInt(buf, 0)); 45 assertEquals(0x7f000001, BlobCache.readLong(buf, 0)); 46 assertEquals(0x007f0000, BlobCache.readInt(buf, 1)); 47 assertEquals(0x007f0000, BlobCache.readLong(buf, 1)); 51 assertEquals(0x80000000, BlobCache [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ImageCacheService.java | 21 import com.android.gallery3d.common.BlobCache; 22 import com.android.gallery3d.common.BlobCache.LookupRequest; 40 private BlobCache mCache;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BlobCache.java | 54 // Below are the interface for BlobCache. The instance of this class does not 57 // public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) throws IOException; 79 public class BlobCache implements Closeable { class in inherits:Closeable 80 private static final String TAG = "BlobCache"; 132 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset) method in class:BlobCache 137 public BlobCache(String path, int maxEntries, int maxBytes, boolean reset, method in class:BlobCache 157 // by the BlobCache constructor.
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | MoviePlayer.java | 40 import com.android.gallery3d.common.BlobCache; 471 BlobCache cache = CacheManager.getCache(mContext, 489 BlobCache cache = CacheManager.getCache(mContext,
|