package c.a.d;

import android.content.Intent;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;

/* JADX INFO: loaded from: classes.dex */
public abstract class c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public Random f4724a = new Random();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map<Integer, String> f4725b = new HashMap();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Map<String, Integer> f4726c = new HashMap();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Map<String, ?> f4727d = new HashMap();

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public ArrayList<String> f4728e = new ArrayList<>();

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final transient Map<String, a<?>> f4729f = new HashMap();

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final Map<String, Object> f4730g = new HashMap();

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final Bundle f4731h = new Bundle();

    public static class a<O> {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        public final b<O> f4732a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public final c.a.d.d.a<?, O> f4733b;
    }

    public final boolean a(int i2, int i3, Intent intent) {
        b<?> bVar;
        String str = this.f4725b.get(Integer.valueOf(i2));
        if (str == null) {
            return false;
        }
        this.f4728e.remove(str);
        a<?> aVar = this.f4729f.get(str);
        if (aVar != null && (bVar = aVar.f4732a) != null) {
            bVar.a(aVar.f4733b.a(i3, intent));
            return true;
        }
        this.f4730g.remove(str);
        this.f4731h.putParcelable(str, new c.a.d.a(i3, intent));
        return true;
    }
}
