package o;

import androidx.work.impl.WorkDatabase;
import java.util.ArrayList;
import java.util.concurrent.Callable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.br, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class CallableC0852br implements Callable {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;
    public final /* synthetic */ Object c;
    public final /* synthetic */ Object d;

    public /* synthetic */ CallableC0852br(Object obj, Object obj2, Object obj3, int i) {
        this.a = i;
        this.b = obj;
        this.c = obj2;
        this.d = obj3;
    }

    @Override // java.util.concurrent.Callable
    public final Object call() {
        switch (this.a) {
            case 0:
                return ((ScheduledExecutorServiceC0947cr) this.b).l.submit(new O3(10, (Callable) this.c, (C0247Jn) this.d));
            default:
                XY xy = (XY) this.b;
                ArrayList arrayList = (ArrayList) this.c;
                String str = (String) this.d;
                WorkDatabase workDatabase = xy.e;
                arrayList.addAll(workDatabase.t().j(str));
                return workDatabase.s().h(str);
        }
    }
}
