Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5

以下内容为反编译后的 e.java 源代码,内容仅作参考


package sg.bigo.ads.controller.a.a;

import android.os.Parcel;
import android.webkit.URLUtil;
import com.google.android.gms.common.internal.ImagesContract;
import com.unity3d.ads.core.data.datasource.AndroidStaticDeviceInfoDataSource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONObject;
import sg.bigo.ads.common.l;
import sg.bigo.ads.common.utils.k;
import sg.bigo.ads.controller.a.j;
public final class e extends g implements sg.bigo.ads.common.e {
    public static final long f33316a = TimeUnit.DAYS.toMillis(1);
    public static final long f33317b = TimeUnit.MINUTES.toMillis(30);
    private long f33321g;
    private long f33322h;
    private List<a> f33320f = c();
    private long f33318d = f33316a;
    private long f33319e = f33317b;

    private static List<a> c() {
        ArrayList arrayList = new ArrayList();
        arrayList.add(new a(AndroidStaticDeviceInfoDataSource.STORE_GOOGLE, "https://drive.google.com/uc?export=download&id=1Awh1fbyJSx_0NkgQLPEtXbCbD_-I5KBf", true));
        return arrayList;
    }

    @Override
    public final j a(String str) {
        synchronized (this) {
            if (k.a((Collection) this.f33320f)) {
                return null;
            }
            a a8 = g.a(k.a(this.f33320f, new Comparable<a>() {
                @Override
                public final int compareTo(a aVar) {
                    a aVar2 = aVar;
                    return (aVar2 == null || !aVar2.f33285d || aVar2.f33409b) ? 0 : 1;
                }
            }));
            if (a8 != null) {
                return a8;
            }
            a a10 = g.a(k.a(this.f33320f, new Comparable<a>() {
                @Override
                public final int compareTo(a aVar) {
                    a aVar2 = aVar;
                    return (aVar2 != null && aVar2.f33285d && aVar2.f33409b) ? 1 : 0;
                }
            }));
            if (a10 != null) {
                return a10;
            }
            return null;
        }
    }

    @Override
    public final void a(Parcel parcel) {
        synchronized (this) {
            parcel.writeLong(this.f33318d);
            parcel.writeLong(this.f33319e);
            l.a(parcel, this.f33320f);
            parcel.writeLong(this.f33321g);
            parcel.writeLong(this.f33322h);
        }
    }

    public final void a(JSONObject jSONObject) {
        synchronized (this) {
            long j10 = g.f33337c;
            long max = Math.max(jSONObject.optLong("suc_interval", f33316a / 1000) * 1000, j10);
            long max2 = Math.max(jSONObject.optLong("fail_interval", f33317b / 1000) * 1000, j10);
            List<a> c10 = c();
            JSONArray optJSONArray = jSONObject.optJSONArray("urls");
            if (optJSONArray != null) {
                for (int i10 = 0; i10 < optJSONArray.length(); i10++) {
                    JSONObject optJSONObject = optJSONArray.optJSONObject(i10);
                    String optString = optJSONObject.optString("name", "");
                    String optString2 = optJSONObject.optString(ImagesContract.URL, "");
                    if (URLUtil.isNetworkUrl(optString2)) {
                        c10.add(new a(optString, optString2, false));
                    }
                }
            }
            this.f33318d = max;
            this.f33319e = max2;
            this.f33320f = c10;
        }
    }

    @Override
    public final void a(boolean z6) {
        super.a(z6);
        if (z6) {
            this.f33322h = System.currentTimeMillis();
        }
    }

    public final boolean a() {
        long j10 = this.f33321g;
        long j11 = this.f33322h;
        if (j10 == j11) {
            return true;
        }
        int i10 = (j10 > j11 ? 1 : (j10 == j11 ? 0 : -1));
        long currentTimeMillis = System.currentTimeMillis();
        return i10 > 0 ? Math.abs(currentTimeMillis - this.f33321g) > this.f33319e : Math.abs(currentTimeMillis - this.f33322h) > this.f33318d;
    }

    public final void b() {
        this.f33321g = System.currentTimeMillis();
        synchronized (this) {
            if (k.a((Collection) this.f33320f)) {
                return;
            }
            for (a aVar : this.f33320f) {
                aVar.f33285d = true;
            }
        }
    }

    @Override
    public final void b(Parcel parcel) {
        synchronized (this) {
            this.f33318d = l.a(parcel, f33316a);
            this.f33319e = l.a(parcel, f33317b);
            List<a> a8 = l.a(parcel, a.f33284c);
            this.f33320f = a8;
            if (k.a((Collection) a8)) {
                this.f33320f = c();
            }
            this.f33321g = l.a(parcel, 0L);
            this.f33322h = l.a(parcel, 0L);
        }
    }
}