Step Record v1.1.5版本的 MD5 值为:5797275f89198878d2f00ee92d534382
以下内容为反编译后的 t.java 源代码,内容仅作参考
package com.applovin.exoplayer2.k;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.applovin.exoplayer2.common.base.Ascii;
import com.applovin.exoplayer2.common.base.Predicate;
import com.applovin.exoplayer2.k.i;
import com.applovin.exoplayer2.k.t;
import com.chartboost.heliumsdk.impl.HKHSz;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.SocketTimeoutException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import sg.bigo.ads.api.AdError;
public interface t extends i {
public static final Predicate<String> aaJ = new Predicate() {
@Override
public final boolean apply(Object obj) {
boolean aP;
aP = t.aP((String) obj);
return aP;
}
};
public static final class a extends c {
public a(IOException iOException, l lVar) {
super("Cleartext HTTP traffic not permitted. See https://exoplayer.dev/issues/cleartext-not-permitted", iOException, lVar, 2007, 1);
}
}
public interface b extends i.a {
@Override
t of();
}
public static final class d extends c {
public final String aaK;
public d(String str, l lVar) {
super(HKHSz.KtH1t1("Invalid content type: ", str), lVar, 2003, 1);
this.aaK = str;
}
}
public static final class e extends c {
public final int aaC;
@Nullable
public final String aaL;
public final Map<String, List<String>> aaM;
public final byte[] aaN;
public e(int i, @Nullable String str, @Nullable IOException iOException, Map<String, List<String>> map, l lVar, byte[] bArr) {
super(HKHSz.tzttS1SS1("Response code: ", i), iOException, lVar, 2004, 1);
this.aaC = i;
this.aaL = str;
this.aaM = map;
this.aaN = bArr;
}
}
public static final class f {
private final Map<String, String> aaO = new HashMap();
@Nullable
private Map<String, String> aaP;
public synchronized Map<String, String> oy() {
if (this.aaP == null) {
this.aaP = Collections.unmodifiableMap(new HashMap(this.aaO));
}
return this.aaP;
}
}
static boolean aP(String str) {
if (str == null) {
return false;
}
String lowerCase = Ascii.toLowerCase(str);
if (TextUtils.isEmpty(lowerCase)) {
return false;
}
if ((lowerCase.contains("text") && !lowerCase.contains("text/vtt")) || lowerCase.contains("html") || lowerCase.contains("xml")) {
return false;
}
return true;
}
public static class c extends j {
public final int bs;
public final l tw;
public c(l lVar, int i, int i2) {
super(J(i, i2));
this.tw = lVar;
this.bs = i2;
}
private static int J(int i, int i2) {
if (i == 2000 && i2 == 1) {
return 2001;
}
return i;
}
public static c a(IOException iOException, l lVar, int i) {
int i2;
String message = iOException.getMessage();
if (iOException instanceof SocketTimeoutException) {
i2 = 2002;
} else if (iOException instanceof InterruptedIOException) {
i2 = AdError.ERROR_CODE_NO_FILL;
} else if (message != null && Ascii.toLowerCase(message).matches("cleartext.*not permitted.*")) {
i2 = 2007;
} else {
i2 = 2001;
}
if (i2 == 2007) {
return new a(iOException, lVar);
}
return new c(iOException, lVar, i2, i);
}
public c(String str, l lVar, int i, int i2) {
super(str, J(i, i2));
this.tw = lVar;
this.bs = i2;
}
public c(IOException iOException, l lVar, int i, int i2) {
super(iOException, J(i, i2));
this.tw = lVar;
this.bs = i2;
}
public c(String str, @Nullable IOException iOException, l lVar, int i, int i2) {
super(str, iOException, J(i, i2));
this.tw = lVar;
this.bs = i2;
}
}
}