package c.l;

import java.io.Closeable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

/* JADX INFO: compiled from: ViewModelStore.java */
/* JADX INFO: loaded from: classes.dex */
public class g0 {
    public final HashMap<String, e0> a = new HashMap<>();

    public final void a() {
        for (e0 e0Var : this.a.values()) {
            e0Var.f1769c = true;
            Map<String, Object> map = e0Var.a;
            if (map != null) {
                synchronized (map) {
                    Iterator<Object> it = e0Var.a.values().iterator();
                    while (it.hasNext()) {
                        e0.a(it.next());
                    }
                }
            }
            Set<Closeable> set = e0Var.f1768b;
            if (set != null) {
                synchronized (set) {
                    Iterator<Closeable> it2 = e0Var.f1768b.iterator();
                    while (it2.hasNext()) {
                        e0.a(it2.next());
                    }
                }
            }
            e0Var.b();
        }
        this.a.clear();
    }
}
