package androidx.appcompat.widget;

import android.content.ComponentName;
import android.content.pm.ResolveInfo;
import android.database.DataSetObservable;
import android.os.AsyncTask;
import android.text.TextUtils;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;

/* JADX INFO: loaded from: classes.dex */
class f extends DataSetObservable {
    public static final Object h = new Object();
    public static final HashMap i = new HashMap();
    public final Object a = new Object();
    public final ArrayList b = new ArrayList();
    public final ArrayList c = new ArrayList();
    public final c d;
    public final int e;
    public boolean f;
    public boolean g;

    public interface a {
    }

    public static final class b implements Comparable<b> {
        @Override // java.lang.Comparable
        public final int compareTo(b bVar) {
            bVar.getClass();
            return Float.floatToIntBits(0.0f) - Float.floatToIntBits(0.0f);
        }

        public final boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || b.class != obj.getClass()) {
                return false;
            }
            return Float.floatToIntBits(0.0f) == Float.floatToIntBits(0.0f);
        }

        public final int hashCode() {
            return Float.floatToIntBits(0.0f) + 31;
        }

        public final String toString() {
            throw null;
        }
    }

    public interface c {
    }

    public static final class d implements c {
    }

    public static final class e {
        public final ComponentName a;
        public final long b;
        public final float c;

        public e(ComponentName componentName, long j, float f) {
            this.a = componentName;
            this.b = j;
            this.c = f;
        }

        public final boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || e.class != obj.getClass()) {
                return false;
            }
            e eVar = (e) obj;
            ComponentName componentName = eVar.a;
            ComponentName componentName2 = this.a;
            if (componentName2 == null) {
                if (componentName != null) {
                    return false;
                }
            } else if (!componentName2.equals(componentName)) {
                return false;
            }
            return this.b == eVar.b && Float.floatToIntBits(this.c) == Float.floatToIntBits(eVar.c);
        }

        public final int hashCode() {
            ComponentName componentName = this.a;
            int iHashCode = componentName == null ? 0 : componentName.hashCode();
            long j = this.b;
            return Float.floatToIntBits(this.c) + ((((iHashCode + 31) * 31) + ((int) (j ^ (j >>> 32)))) * 31);
        }

        public final String toString() {
            return "[; activity:" + this.a + "; time:" + this.b + "; weight:" + new BigDecimal(this.c) + "]";
        }
    }

    /* JADX INFO: renamed from: androidx.appcompat.widget.f$f, reason: collision with other inner class name */
    public interface InterfaceC0028f {
    }

    public final class g extends AsyncTask<Object, Void, Void> {
        @Override // android.os.AsyncTask
        public final Void doInBackground(Object[] objArr) {
            throw null;
        }
    }

    public f() {
        d dVar = new d();
        new HashMap();
        this.d = dVar;
        this.e = 50;
        this.f = true;
        this.g = true;
        throw null;
    }

    public static f b() {
        f fVar;
        synchronized (h) {
            try {
                fVar = (f) i.get(null);
                if (fVar == null) {
                    new f();
                    throw null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return fVar;
    }

    public final void a() {
        if (this.f && this.g && !TextUtils.isEmpty(null)) {
            this.f = false;
            throw null;
        }
        ArrayList arrayList = this.c;
        int size = arrayList.size() - this.e;
        if (size <= 0) {
            return;
        }
        this.g = true;
        for (int i2 = 0; i2 < size; i2++) {
        }
    }

    public final ResolveInfo c() {
        synchronized (this.a) {
            try {
                a();
                if (!this.b.isEmpty()) {
                    throw null;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return null;
    }
}
