package ῲ.ᓣ.ῲ;

import android.content.Context;
import android.database.ContentObserver;
import android.os.Handler;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import ῲ.ᓣ.K.C1690;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ᓣ.ῲ.ʬ  reason: contains not printable characters */
/* compiled from: Loader */
public class C1683<D> {

    /* renamed from: ʬ  reason: contains not printable characters */
    public Context f5930;

    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean f5931 = false;

    /* renamed from: ῲ  reason: contains not printable characters */
    public AbstractC1684<D> f5932;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public boolean f5933 = false;

    /* renamed from: K  reason: contains not printable characters */
    public int f5934;

    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean f5935 = true;

    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean f5936 = false;

    /* renamed from: 㿎  reason: contains not printable characters */
    public boolean f5937 = false;

    /* renamed from: ῲ.ᓣ.ῲ.ʬ$ʬ  reason: contains not printable characters */
    /* compiled from: Loader */
    public interface AbstractC1684<D> {
    }

    /* renamed from: ῲ.ᓣ.ῲ.ʬ$ῲ  reason: contains not printable characters */
    /* compiled from: Loader */
    public interface AbstractC1685<D> {
    }

    /* renamed from: ῲ.ᓣ.ῲ.ʬ$K  reason: contains not printable characters */
    /* compiled from: Loader */
    public final class C1686 extends ContentObserver {
        public C1686() {
            super(new Handler());
        }

        public boolean deliverSelfNotifications() {
            return true;
        }

        public void onChange(boolean z) {
            C1683.this.m4286();
        }
    }

    public C1683(Context context) {
        this.f5930 = context.getApplicationContext();
    }

    public void registerOnLoadCanceledListener(AbstractC1685<D> r1) {
    }

    public String toString() {
        StringBuilder sb = new StringBuilder(64);
        C2369.m6334((Object) this, sb);
        sb.append(" id=");
        sb.append(this.f5934);
        sb.append("}");
        return sb.toString();
    }

    public void unregisterListener(AbstractC1684<D> r2) {
        AbstractC1684<D> r0 = this.f5932;
        if (r0 == null) {
            throw new IllegalStateException("No listener register");
        } else if (r0 == r2) {
            this.f5932 = null;
        } else {
            throw new IllegalArgumentException("Attempting to unregister the wrong listener");
        }
    }

    public void unregisterOnLoadCanceledListener(AbstractC1685<D> r2) {
        throw new IllegalStateException("No listener register");
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public void m4270() {
        this.f5937 = false;
    }

    /* renamed from: Ԕ  reason: contains not printable characters */
    public void m4271() {
    }

    /* renamed from: Ԛ  reason: contains not printable characters */
    public boolean m4272() {
        boolean z = this.f5933;
        this.f5933 = false;
        this.f5937 |= z;
        return z;
    }

    /* renamed from: ؿ  reason: contains not printable characters */
    public void m4273() {
    }

    /* renamed from: ݜ  reason: contains not printable characters */
    public final void m4274() {
        this.f5936 = true;
        this.f5935 = false;
        this.f5931 = false;
        m4287();
    }

    /* renamed from: ඓ  reason: contains not printable characters */
    public void m4275() {
        m4294();
    }

    /* renamed from: ᓣ  reason: contains not printable characters */
    public void m4276() {
        m4271();
        this.f5935 = true;
        this.f5936 = false;
        this.f5931 = false;
        this.f5933 = false;
        this.f5937 = false;
    }

    /* renamed from: ᕣ  reason: contains not printable characters */
    public boolean m4277() {
        return false;
    }

    /* renamed from: ᨨ  reason: contains not printable characters */
    public boolean m4278() {
        return this.f5936;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m4279(D d) {
        AbstractC1684<D> r0 = this.f5932;
        if (r0 != null) {
            ((C1690.C1694) r0).m4338(this, d);
        }
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public boolean m4281() {
        return this.f5931;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4284(int i, AbstractC1684<D> r3) {
        if (this.f5932 == null) {
            this.f5932 = r3;
            this.f5934 = i;
            return;
        }
        throw new IllegalStateException("There is already a listener registered");
    }

    /* renamed from: 㑃  reason: contains not printable characters */
    public void m4286() {
        if (this.f5936) {
            m4275();
        } else {
            this.f5933 = true;
        }
    }

    /* renamed from: 㗗  reason: contains not printable characters */
    public void m4287() {
    }

    /* renamed from: 㗽  reason: contains not printable characters */
    public void m4288() {
        if (this.f5937) {
            m4286();
        }
    }

    /* renamed from: 㳳  reason: contains not printable characters */
    public void m4289() {
    }

    /* renamed from: 㴹  reason: contains not printable characters */
    public Context m4290() {
        return this.f5930;
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public void m4291() {
    }

    /* renamed from: 㿎  reason: contains not printable characters */
    public boolean m4292() {
        return this.f5935;
    }

    /* renamed from: 䀟  reason: contains not printable characters */
    public void m4293() {
        this.f5936 = false;
        m4273();
    }

    /* renamed from: 䁗  reason: contains not printable characters */
    public void m4294() {
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m4280() {
        return m4277();
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4283() {
        this.f5931 = true;
        m4289();
    }

    /* renamed from: K  reason: contains not printable characters */
    public String m4282(D d) {
        StringBuilder sb = new StringBuilder(64);
        C2369.m6334((Object) d, sb);
        sb.append("}");
        return sb.toString();
    }

    @Deprecated
    /* renamed from: K  reason: contains not printable characters */
    public void m4285(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
        printWriter.print(str);
        printWriter.print("mId=");
        printWriter.print(this.f5934);
        printWriter.print(" mListener=");
        printWriter.println(this.f5932);
        if (this.f5936 || this.f5933 || this.f5937) {
            printWriter.print(str);
            printWriter.print("mStarted=");
            printWriter.print(this.f5936);
            printWriter.print(" mContentChanged=");
            printWriter.print(this.f5933);
            printWriter.print(" mProcessingChange=");
            printWriter.println(this.f5937);
        }
        if (this.f5931 || this.f5935) {
            printWriter.print(str);
            printWriter.print("mAbandoned=");
            printWriter.print(this.f5931);
            printWriter.print(" mReset=");
            printWriter.println(this.f5935);
        }
    }
}
