package a.b.a;

import a.a.a.b;

public class c {
    private static final String b = "ConnectState";
    public static final String c = "idle";
    public static final String d = "usb_connecting";
    public static final String e = "usb_prepare_connecting";
    public static final String f = "usb_connected";
    public static final String g = "usb_disconnect";
    public static final String h = "wifi_connecting";
    public static final String i = "wifi_connected";
    public static final String j = "wifi_disconnect";
    private static final String k = "connecting";
    private static final String l = "connected";
    private static final String m = "disconnect";
    public static final String n = "usb";
    public static final String o = "wifi_p2p";
    public static final String p = "wifi_ap";
    public static final String q = "wifi";
    public static final int r = 1001;
    public static final int s = 1002;
    public static final int t = 1003;
    private static volatile c u;

    /* renamed from: a  reason: collision with root package name */
    private volatile String f4a = c;

    public static c b() {
        if (u == null) {
            synchronized (c.class) {
                if (u == null) {
                    u = new c();
                }
            }
        }
        return u;
    }

    public synchronized String a() {
        return this.f4a;
    }

    public synchronized void a(String str) {
        b.a(b, "setCurrentState" + str);
        this.f4a = str;
    }

    public synchronized boolean c() {
        return this.f4a.contains(l);
    }

    public synchronized boolean d() {
        return this.f4a.contains(k);
    }

    public synchronized boolean e() {
        return this.f4a.contains(m);
    }

    public synchronized boolean f() {
        return this.f4a.equals(c) || e();
    }

    public synchronized boolean g() {
        return this.f4a.equals(f);
    }

    public synchronized boolean h() {
        return this.f4a.equals(d) || this.f4a.equals(e);
    }

    public synchronized boolean i() {
        return this.f4a.equals(i);
    }

    public synchronized boolean j() {
        return this.f4a.equals(h);
    }
}
