126 lines
4.8 KiB
Java
126 lines
4.8 KiB
Java
package com.bumptech.glide.load.engine;
|
|
|
|
import com.bumptech.glide.load.DataSource;
|
|
import com.bumptech.glide.load.EncodeStrategy;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class DiskCacheStrategy {
|
|
public static final DiskCacheStrategy a = new DiskCacheStrategy() { // from class: com.bumptech.glide.load.engine.DiskCacheStrategy.1
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(DataSource dataSource) {
|
|
return dataSource == DataSource.REMOTE;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean b() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy) {
|
|
return (dataSource == DataSource.RESOURCE_DISK_CACHE || dataSource == DataSource.MEMORY_CACHE) ? false : true;
|
|
}
|
|
};
|
|
public static final DiskCacheStrategy b = new DiskCacheStrategy() { // from class: com.bumptech.glide.load.engine.DiskCacheStrategy.2
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(DataSource dataSource) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean b() {
|
|
return false;
|
|
}
|
|
};
|
|
public static final DiskCacheStrategy c = new DiskCacheStrategy() { // from class: com.bumptech.glide.load.engine.DiskCacheStrategy.3
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(DataSource dataSource) {
|
|
return (dataSource == DataSource.DATA_DISK_CACHE || dataSource == DataSource.MEMORY_CACHE) ? false : true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean b() {
|
|
return false;
|
|
}
|
|
};
|
|
public static final DiskCacheStrategy d;
|
|
|
|
static {
|
|
new DiskCacheStrategy() { // from class: com.bumptech.glide.load.engine.DiskCacheStrategy.4
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(DataSource dataSource) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy) {
|
|
return (dataSource == DataSource.RESOURCE_DISK_CACHE || dataSource == DataSource.MEMORY_CACHE) ? false : true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean b() {
|
|
return true;
|
|
}
|
|
};
|
|
d = new DiskCacheStrategy() { // from class: com.bumptech.glide.load.engine.DiskCacheStrategy.5
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(DataSource dataSource) {
|
|
return dataSource == DataSource.REMOTE;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean b() {
|
|
return true;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.DiskCacheStrategy
|
|
public boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy) {
|
|
return ((z && dataSource == DataSource.DATA_DISK_CACHE) || dataSource == DataSource.LOCAL) && encodeStrategy == EncodeStrategy.TRANSFORMED;
|
|
}
|
|
};
|
|
}
|
|
|
|
public abstract boolean a();
|
|
|
|
public abstract boolean a(DataSource dataSource);
|
|
|
|
public abstract boolean a(boolean z, DataSource dataSource, EncodeStrategy encodeStrategy);
|
|
|
|
public abstract boolean b();
|
|
}
|