206 lines
6.2 KiB
Java
206 lines
6.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.net.Uri;
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import java.util.concurrent.TimeUnit;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class fNW {
|
||
|
private static final long x = TimeUnit.SECONDS.toNanos(5);
|
||
|
public final Bitmap.Config a;
|
||
|
public final boolean b;
|
||
|
public final int c;
|
||
|
public final boolean d;
|
||
|
public final boolean e;
|
||
|
public final boolean f;
|
||
|
int g;
|
||
|
int h;
|
||
|
public final boolean i;
|
||
|
public final Picasso.LWm j;
|
||
|
public final int k;
|
||
|
public final float l;
|
||
|
public final float m;
|
||
|
public final String n;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
public final float f9099o;
|
||
|
public final int p;
|
||
|
long q;
|
||
|
public final Uri r;
|
||
|
public final int s;
|
||
|
public final List<InterfaceC13024fOe> t;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public /* synthetic */ fNW(Uri uri, int i, String str, List list, int i2, int i3, boolean z, boolean z2, int i4, boolean z3, float f, float f2, float f3, boolean z4, boolean z5, Bitmap.Config config, Picasso.LWm lWm, byte b) {
|
||
|
this(uri, i, str, list, i2, i3, z, z2, i4, z3, f, f2, f3, z4, z5, config, lWm);
|
||
|
}
|
||
|
|
||
|
private fNW(Uri uri, int i, String str, List<InterfaceC13024fOe> list, int i2, int i3, boolean z, boolean z2, int i4, boolean z3, float f, float f2, float f3, boolean z4, boolean z5, Bitmap.Config config, Picasso.LWm lWm) {
|
||
|
this.r = uri;
|
||
|
this.k = i;
|
||
|
this.n = str;
|
||
|
if (list == null) {
|
||
|
this.t = null;
|
||
|
} else {
|
||
|
this.t = Collections.unmodifiableList(list);
|
||
|
}
|
||
|
this.p = i2;
|
||
|
this.s = i3;
|
||
|
this.e = z;
|
||
|
this.d = z2;
|
||
|
this.c = i4;
|
||
|
this.i = z3;
|
||
|
this.l = f;
|
||
|
this.f9099o = f2;
|
||
|
this.m = f3;
|
||
|
this.b = z4;
|
||
|
this.f = z5;
|
||
|
this.a = config;
|
||
|
this.j = lWm;
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
StringBuilder sb = new StringBuilder("Request{");
|
||
|
int i = this.k;
|
||
|
if (i > 0) {
|
||
|
sb.append(i);
|
||
|
} else {
|
||
|
sb.append(this.r);
|
||
|
}
|
||
|
List<InterfaceC13024fOe> list = this.t;
|
||
|
if (list != null && !list.isEmpty()) {
|
||
|
for (InterfaceC13024fOe interfaceC13024fOe : this.t) {
|
||
|
sb.append(' ');
|
||
|
sb.append(interfaceC13024fOe.d());
|
||
|
}
|
||
|
}
|
||
|
if (this.n != null) {
|
||
|
sb.append(" stableKey(");
|
||
|
sb.append(this.n);
|
||
|
sb.append(')');
|
||
|
}
|
||
|
if (this.p > 0) {
|
||
|
sb.append(" resize(");
|
||
|
sb.append(this.p);
|
||
|
sb.append(',');
|
||
|
sb.append(this.s);
|
||
|
sb.append(')');
|
||
|
}
|
||
|
if (this.e) {
|
||
|
sb.append(" centerCrop");
|
||
|
}
|
||
|
if (this.d) {
|
||
|
sb.append(" centerInside");
|
||
|
}
|
||
|
if (this.l != BitmapDescriptorFactory.HUE_RED) {
|
||
|
sb.append(" rotation(");
|
||
|
sb.append(this.l);
|
||
|
if (this.b) {
|
||
|
sb.append(" @ ");
|
||
|
sb.append(this.f9099o);
|
||
|
sb.append(',');
|
||
|
sb.append(this.m);
|
||
|
}
|
||
|
sb.append(')');
|
||
|
}
|
||
|
if (this.f) {
|
||
|
sb.append(" purgeable");
|
||
|
}
|
||
|
if (this.a != null) {
|
||
|
sb.append(' ');
|
||
|
sb.append(this.a);
|
||
|
}
|
||
|
sb.append(UrlTreeKt.componentParamSuffixChar);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
public final String c() {
|
||
|
long nanoTime = System.nanoTime() - this.q;
|
||
|
if (nanoTime > x) {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
StringBuilder sb2 = new StringBuilder("[R");
|
||
|
sb2.append(this.h);
|
||
|
sb2.append(']');
|
||
|
sb.append(sb2.toString());
|
||
|
sb.append('+');
|
||
|
sb.append(TimeUnit.NANOSECONDS.toSeconds(nanoTime));
|
||
|
sb.append('s');
|
||
|
return sb.toString();
|
||
|
}
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
StringBuilder sb4 = new StringBuilder("[R");
|
||
|
sb4.append(this.h);
|
||
|
sb4.append(']');
|
||
|
sb3.append(sb4.toString());
|
||
|
sb3.append('+');
|
||
|
sb3.append(TimeUnit.NANOSECONDS.toMillis(nanoTime));
|
||
|
sb3.append("ms");
|
||
|
return sb3.toString();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class IeS {
|
||
|
public Bitmap.Config a;
|
||
|
boolean b;
|
||
|
public int c;
|
||
|
public boolean d;
|
||
|
public boolean e;
|
||
|
boolean f;
|
||
|
boolean g;
|
||
|
int h;
|
||
|
Picasso.LWm i;
|
||
|
float j;
|
||
|
float k;
|
||
|
int l;
|
||
|
int m;
|
||
|
String n;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
float f9100o;
|
||
|
Uri p;
|
||
|
List<InterfaceC13024fOe> s;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public IeS(Uri uri, int i, Bitmap.Config config) {
|
||
|
this.p = uri;
|
||
|
this.h = i;
|
||
|
this.a = config;
|
||
|
}
|
||
|
|
||
|
public final IeS e(int i, int i2) {
|
||
|
if (i < 0) {
|
||
|
throw new IllegalArgumentException("Width must be positive number or 0.");
|
||
|
}
|
||
|
if (i2 < 0) {
|
||
|
throw new IllegalArgumentException("Height must be positive number or 0.");
|
||
|
}
|
||
|
if (i2 == 0 && i == 0) {
|
||
|
throw new IllegalArgumentException("At least one dimension has to be positive number.");
|
||
|
}
|
||
|
this.l = i;
|
||
|
this.m = i2;
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public final IeS c(InterfaceC13024fOe interfaceC13024fOe) {
|
||
|
if (interfaceC13024fOe == null) {
|
||
|
throw new IllegalArgumentException("Transformation must not be null.");
|
||
|
}
|
||
|
if (interfaceC13024fOe.d() == null) {
|
||
|
throw new IllegalArgumentException("Transformation key must not be null.");
|
||
|
}
|
||
|
if (this.s == null) {
|
||
|
this.s = new ArrayList(2);
|
||
|
}
|
||
|
this.s.add(interfaceC13024fOe);
|
||
|
return this;
|
||
|
}
|
||
|
}
|
||
|
}
|