导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - gf.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 gf.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.inmobi.media;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.inmobi.media.gh;
import org.json.JSONObject;

@ja
public class gf extends fw {
    private static final boolean DEFAULT_CATCH_ENABLED = false;
    private static final boolean DEFAULT_CRASH_ENABLED = true;
    private static final long DEFAULT_EVENT_TTL_SEC = 259200;
    private static final long DEFAULT_INGESTION_LATENCY_SEC = 86400;
    private static final int DEFAULT_MAX_BATCH_SIZE = 2;
    private static final int DEFAULT_MAX_EVENTS_TO_PERSIST = 50;
    private static final int DEFAULT_MAX_RETRIES = 3;
    private static final int DEFAULT_MIN_BATCH_SIZE = 1;
    private static final long DEFAULT_PROCESSING_INTERVAL_SEC = 60;
    private static final long DEFAULT_RETRY_INTERVAL_SEC = 10;
    private static final String DEFAULT_URL = "https://crash-metrics.sdk.inmobi.com/trace";
    public boolean catchEnabled;
    public boolean crashEnabled;
    public long eventTTL;
    public int maxEventsToPersist;
    public int maxRetryCount;
    public gh networkType;
    public long processingInterval;
    public long txLatency;
    public String url;

    public gf(@Nullable String str) {
        super(str);
        this.url = DEFAULT_URL;
        this.processingInterval = DEFAULT_PROCESSING_INTERVAL_SEC;
        this.maxRetryCount = 3;
        this.maxEventsToPersist = 50;
        this.eventTTL = DEFAULT_EVENT_TTL_SEC;
        this.txLatency = DEFAULT_INGESTION_LATENCY_SEC;
        this.crashEnabled = DEFAULT_CRASH_ENABLED;
        this.catchEnabled = false;
        gh ghVar = new gh();
        this.networkType = ghVar;
        ghVar.wifi = new gh.a();
        gh ghVar2 = this.networkType;
        gh.a aVar = ghVar2.wifi;
        aVar.retryInterval = DEFAULT_RETRY_INTERVAL_SEC;
        aVar.minBatchSize = 1;
        aVar.maxBatchSize = 2;
        ghVar2.others = new gh.a();
        gh.a aVar2 = this.networkType.others;
        aVar2.retryInterval = DEFAULT_RETRY_INTERVAL_SEC;
        aVar2.minBatchSize = 1;
        aVar2.maxBatchSize = 2;
    }

    @NonNull
    public static iz<gf> a() {
        return new iz<>();
    }

    @Override
    public String b() {
        return "crashReporting";
    }

    @Override
    @Nullable
    public JSONObject c() {
        return new iz().a((iz) this);
    }

    @Override
    public boolean d() {
        if (this.url.trim().length() != 0 && (this.url.startsWith("http://") || this.url.startsWith("https://"))) {
            long j = this.txLatency;
            if (j >= this.processingInterval && j <= this.eventTTL && this.networkType.a(this.maxEventsToPersist) && this.processingInterval > 0 && this.maxRetryCount >= 0 && this.txLatency > 0 && this.eventTTL > 0 && this.maxEventsToPersist > 0) {
                return DEFAULT_CRASH_ENABLED;
            }
        }
        return false;
    }
}