package com.tencent.mm.plugin.emoji.sync;

import android.net.TrafficStats;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ap.a;

class BKGLoaderManager$1 implements a {
    final /* synthetic */ BKGLoaderManager kXI;

    BKGLoaderManager$1(BKGLoaderManager bKGLoaderManager) {
        this.kXI = bKGLoaderManager;
    }

    public final boolean BI() {
        AppMethodBeat.i(53180);
        if (this.kXI.kXp || this.kXI.kXq || this.kXI.kXr) {
            long uidTxBytes = TrafficStats.getUidTxBytes(this.kXI.fDe);
            long uidRxBytes = TrafficStats.getUidRxBytes(this.kXI.fDe);
            long j = (uidTxBytes - this.kXI.kXD) + (uidRxBytes - this.kXI.kXE);
            ab.d("MicroMsg.BKGLoader.BKGLoaderManager", "delta of data: " + (j / 1024));
            if (j <= 20480) {
                this.kXI.bkG();
            } else {
                this.kXI.kXD = uidTxBytes;
                this.kXI.kXE = uidRxBytes;
                this.kXI.kXF.ae(1000, 1000);
            }
        }
        AppMethodBeat.o(53180);
        return false;
    }
}
