@Test public void testSharedDiskLruCacheFactoryReset() throws Exception { DiskLruCacheWrapper.SharedDiskLruCacheFactory wrapper1 = new DiskLruCacheWrapper.SharedDiskLruCacheFactory( new File(getContext().getCacheDir(), "blank"), 100 * 1024 * 1024); DiskLruCacheWrapper.SharedDiskLruCacheFactory wrapper2 = new DiskLruCacheWrapper.SharedDiskLruCacheFactory( new File(getContext().getCacheDir(), "blank"), 100 * 1024 * 1024); wrapper1.resetDiskCache(); }
private synchronized void resetDiskCache() { diskLruCacheFactory.resetDiskCache(); }
DiskLruCacheWrapper implements DiskCache { private synchronized void resetDiskCache() { diskLruCacheFactory.resetDiskCache(); } }
DiskLruCacheWrapper implements DiskCache { private synchronized void resetDiskCache() { diskLruCacheFactory.resetDiskCache(); } DiskLruCacheWrapper(DiskLruCacheFactory diskLruCacheFactory); }
DiskLruCacheWrapper implements DiskCache { private synchronized void resetDiskCache() { diskLruCacheFactory.resetDiskCache(); } DiskLruCacheWrapper(DiskLruCacheFactory diskLruCacheFactory); synchronized void setReadOnly(boolean isReadOnly); @Override File get(String key); @Override void put(String key, Writer writer); @Override void delete(String key); @Override synchronized void clear(); }
DiskLruCacheWrapper implements DiskCache { private synchronized void resetDiskCache() { diskLruCacheFactory.resetDiskCache(); } DiskLruCacheWrapper(DiskLruCacheFactory diskLruCacheFactory); synchronized void setReadOnly(boolean isReadOnly); @Override File get(String key); @Override void put(String key, Writer writer); @Override void delete(String key); @Override synchronized void clear();  }