package J;

import android.content.Context;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.Callable;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class f implements Callable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f3422a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ String f3423b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Context f3424c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ int f3425d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f3426e;

    public /* synthetic */ f(String str, Context context, Object obj, int i, int i5) {
        this.f3422a = i5;
        this.f3423b = str;
        this.f3424c = context;
        this.f3426e = obj;
        this.f3425d = i;
    }

    @Override // java.util.concurrent.Callable
    public final Object call() {
        int i = this.f3425d;
        Object obj = this.f3426e;
        Context context = this.f3424c;
        String str = this.f3423b;
        switch (this.f3422a) {
            case u0.f15495q /* 0 */:
                Object[] objArr = {(e) obj};
                ArrayList arrayList = new ArrayList(1);
                Object obj2 = objArr[0];
                Objects.requireNonNull(obj2);
                arrayList.add(obj2);
                return i.b(str, context, Collections.unmodifiableList(arrayList), i);
            default:
                try {
                    return i.b(str, context, (List) obj, i);
                } catch (Throwable unused) {
                    return new h(-3);
                }
        }
    }
}
