18 lines
731 B
Java
18 lines
731 B
Java
package b.f.j.c;
|
|
|
|
import com.facebook.common.internal.Supplier;
|
|
import com.facebook.imagepipeline.cache.MemoryCacheParams;
|
|
import java.util.concurrent.TimeUnit;
|
|
/* compiled from: DefaultEncodedMemoryCacheParamsSupplier.java */
|
|
/* loaded from: classes2.dex */
|
|
public class o implements Supplier<MemoryCacheParams> {
|
|
public static final long a = TimeUnit.MINUTES.toMillis(5);
|
|
|
|
@Override // com.facebook.common.internal.Supplier
|
|
public MemoryCacheParams get() {
|
|
int min = (int) Math.min(Runtime.getRuntime().maxMemory(), 2147483647L);
|
|
int i = min < 16777216 ? 1048576 : min < 33554432 ? 2097152 : 4194304;
|
|
return new MemoryCacheParams(i, Integer.MAX_VALUE, i, Integer.MAX_VALUE, i / 8, a);
|
|
}
|
|
}
|