package d2;

import android.view.MotionEvent;
import java.util.List;

/* loaded from: classes.dex */
public final class g {

    /* renamed from: a, reason: collision with root package name */
    private final androidx.collection.s f15795a;

    /* renamed from: b, reason: collision with root package name */
    private final a0 f15796b;

    /* renamed from: c, reason: collision with root package name */
    private boolean f15797c;

    public g(androidx.collection.s sVar, a0 a0Var) {
        this.f15795a = sVar;
        this.f15796b = a0Var;
    }

    public final boolean a(long j10) {
        Object obj;
        List b10 = this.f15796b.b();
        int size = b10.size();
        int i10 = 0;
        while (true) {
            if (i10 >= size) {
                obj = null;
                break;
            }
            obj = b10.get(i10);
            if (x.d(((b0) obj).d(), j10)) {
                break;
            }
            i10++;
        }
        b0 b0Var = (b0) obj;
        if (b0Var != null) {
            return b0Var.a();
        }
        return false;
    }

    public final androidx.collection.s b() {
        return this.f15795a;
    }

    public final MotionEvent c() {
        return this.f15796b.a();
    }

    public final boolean d() {
        return this.f15797c;
    }

    public final void e(boolean z10) {
        this.f15797c = z10;
    }
}
