大漢易經書院.apk(点击下载) / bx.java


package com.xiaomi.push;

import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.xiaomi.push.al;
import com.xiaomi.push.cj;
import com.xiaomi.push.service.ax;
import com.xiaomi.push.service.bw;

public class bx {
    private static volatile bx a;

    /* renamed from: a  reason: collision with other field name */
    private Context f6786a;

    /* renamed from: a  reason: collision with other field name */
    private al.a f6787a = new by(this);

    /* renamed from: a  reason: collision with other field name */
    private cm f6788a;

    /* renamed from: a  reason: collision with other field name */
    private cn f6789a;

    /* renamed from: a  reason: collision with other field name */
    private final String f6790a = "push_stat_sp";
    private al.a b = new bz(this);

    /* renamed from: b  reason: collision with other field name */
    private final String f6791b = "upload_time";
    private al.a c = new ca(this);

    /* renamed from: c  reason: collision with other field name */
    private final String f6792c = "delete_time";
    private final String d = "check_time";
    private String e;
    private String f;

    private bx(Context context) {
        this.f6786a = context;
    }

    public static bx a(Context context) {
        if (a == null) {
            synchronized (bx.class) {
                if (a == null) {
                    a = new bx(context);
                }
            }
        }
        return a;
    }

    private boolean a() {
        return ax.a(this.f6786a).a(ho.StatDataSwitch.a(), true);
    }

    /* access modifiers changed from: private */
    public void b(String str) {
        SharedPreferences.Editor edit = this.f6786a.getSharedPreferences("push_stat_sp", 0).edit();
        edit.putLong(str, System.currentTimeMillis());
        t.a(edit);
    }

    private String c() {
        return this.f6786a.getDatabasePath(cb.f6796a).getAbsolutePath();
    }

    /* renamed from: a  reason: collision with other method in class */
    public String m9173a() {
        return this.e;
    }

    public void a(cj.a aVar) {
        cj.a(this.f6786a).a(aVar);
    }

    public void a(hn hnVar) {
        if (a() && bw.a(hnVar.e())) {
            a(cg.a(this.f6786a, c(), hnVar));
        }
    }

    public void a(String str) {
        if (a() && !TextUtils.isEmpty(str)) {
            a(co.a(this.f6786a, str));
        }
    }

    public void a(String str, String str2, Boolean bool) {
        if (this.f6788a == null) {
            return;
        }
        if (bool.booleanValue()) {
            this.f6788a.a(this.f6786a, str2, str);
        } else {
            this.f6788a.b(this.f6786a, str2, str);
        }
    }

    public String b() {
        return this.f;
    }
}