Java 类com.facebook.common.internal.AndroidPredicates 实例源码

项目:GitHub    文件:ImagePipelineFactory.java   
/**
 * Shuts {@link ImagePipelineFactory} down.
 */
public static void shutDown() {
  if (sInstance != null) {
    sInstance.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    sInstance.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    sInstance = null;
  }
}
项目:ReactNativeSignatureExample    文件:FrescoModule.java   
@Override
public void clearSensitiveData() {
  // Clear image cache.
  ImagePipelineFactory imagePipelineFactory = Fresco.getImagePipelineFactory();
  imagePipelineFactory.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getMainDiskStorageCache().clearAll();
  imagePipelineFactory.getSmallImageDiskStorageCache().clearAll();
}
项目:react-native-ibeacon-android    文件:FrescoModule.java   
@Override
public void clearSensitiveData() {
  // Clear image cache.
  ImagePipelineFactory imagePipelineFactory = Fresco.getImagePipelineFactory();
  imagePipelineFactory.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getMainDiskStorageCache().clearAll();
  imagePipelineFactory.getSmallImageDiskStorageCache().clearAll();
}
项目:react-native-box-loaders    文件:FrescoModule.java   
@Override
public void clearSensitiveData() {
  // Clear image cache.
  ImagePipelineFactory imagePipelineFactory = Fresco.getImagePipelineFactory();
  imagePipelineFactory.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
  imagePipelineFactory.getMainDiskStorageCache().clearAll();
  imagePipelineFactory.getSmallImageDiskStorageCache().clearAll();
}
项目:fresco    文件:ImagePipelineFactory.java   
/**
 * Shuts {@link ImagePipelineFactory} down.
 */
public static void shutDown() {
  if (sInstance != null) {
    sInstance.getBitmapMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    sInstance.getEncodedMemoryCache().removeAll(AndroidPredicates.<CacheKey>True());
    sInstance = null;
  }
}