WeChat.apk(点击下载) / b.java


package k50;

import java.util.ArrayList;
import java.util.Iterator;
import uz3.f;
import yz3.j;

public class b {

    /* renamed from: a  reason: collision with root package name */
    public static c f244619a;

    /* renamed from: b  reason: collision with root package name */
    public static a f244620b;

    public class a implements Runnable {
        public void run() {
            c cVar = b.f244619a;
            cVar.getClass();
            cVar.f244622d.execSQL("KeyNodeInfo", "DELETE FROM KeyNodeInfo where happen_time<=" + (System.currentTimeMillis() - (((long) d.a()) * 86400000)));
            a aVar = b.f244620b;
            aVar.getClass();
            aVar.f244618d.execSQL("FewShotLearning", "DELETE FROM FewShotLearning where time<=" + (System.currentTimeMillis() - 15552000000L));
            ArrayList arrayList = new ArrayList();
            arrayList.add("MomentVideo");
            Iterator it = arrayList.iterator();
            while (it.hasNext()) {
                String str = (String) it.next();
                int i15 = 0;
                int Ga = aVar.Ga(str, 0);
                int Ga2 = aVar.Ga(str, 1);
                int i16 = Ga > 1500 ? Ga - 1500 : 0;
                if (Ga2 > 1500) {
                    i15 = Ga2 - 1500;
                }
                aVar.f244618d.execSQL("FewShotLearning", "DELETE FROM FewShotLearning WHERE rowid IN (SELECT rowid FROM FewShotLearning WHERE label=0 AND model=='" + str + "' ORDER BY " + "time" + " LIMIT " + i16 + ");");
                aVar.f244618d.execSQL("FewShotLearning", "DELETE FROM FewShotLearning WHERE rowid IN (SELECT rowid FROM FewShotLearning WHERE label=1 AND model=='" + str + "' ORDER BY " + "time" + " LIMIT " + i15 + ");");
            }
        }
    }

    public static void a() {
        f fVar = d.f244623a;
        ((bn.f) j.c(bn.f.class)).requireAndWaitForAccountInitialized();
        f244619a = new c(d.f244624b);
        ((bn.f) j.c(bn.f.class)).requireAndWaitForAccountInitialized();
        f244620b = new a(d.f244624b);
        ((xc4.j) xc4.j.f338034d).o(new a());
    }
}