package o;

import android.graphics.Rect;
import android.os.CancellationSignal;
import android.view.ScrollCaptureCallback;
import android.view.ScrollCaptureSession;
import java.util.function.Consumer;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.yk, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ScrollCaptureCallbackC3026yk implements ScrollCaptureCallback {
    public final R50 a;
    public final C1086eI b;
    public final WT c;
    public final C2207q3 d;
    public final C0168Gm e;
    public final C1561jF f;

    public ScrollCaptureCallbackC3026yk(R50 r50, C1086eI c1086eI, C0168Gm c0168Gm, WT wt, C2207q3 c2207q3) {
        this.a = r50;
        this.b = c1086eI;
        this.c = wt;
        this.d = c2207q3;
        this.e = new C0168Gm(c0168Gm.l.M(C0758as.m));
        this.f = new C1561jF(c1086eI.b(), new C2931xk(this, null));
    }

    /* JADX WARN: Removed duplicated region for block: B:43:0x00d9  */
    /* JADX WARN: Removed duplicated region for block: B:45:0x00dc  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object a(o.ScrollCaptureCallbackC3026yk r11, android.view.ScrollCaptureSession r12, o.C1086eI r13, o.AbstractC0298Lm r14) {
        /*
            Method dump skipped, instructions count: 328
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.ScrollCaptureCallbackC3026yk.a(o.yk, android.view.ScrollCaptureSession, o.eI, o.Lm):java.lang.Object");
    }

    public final void onScrollCaptureEnd(Runnable runnable) {
        AbstractC1692kh0.C(this.e, C2618uS.m, new C2105p(this, runnable, null, 11), 2);
    }

    public final void onScrollCaptureImageRequest(ScrollCaptureSession scrollCaptureSession, CancellationSignal cancellationSignal, Rect rect, Consumer consumer) {
        C2058oa0 c2058oa0C = AbstractC1692kh0.C(this.e, null, new C3063z4(this, scrollCaptureSession, rect, consumer, null, 3), 3);
        c2058oa0C.d(new C2769w(11, cancellationSignal));
        cancellationSignal.setOnCancelListener(new C3121zk(0, c2058oa0C));
    }

    public final void onScrollCaptureSearch(CancellationSignal cancellationSignal, Consumer consumer) {
        consumer.accept(As0.V(this.b));
    }

    public final void onScrollCaptureStart(ScrollCaptureSession scrollCaptureSession, CancellationSignal cancellationSignal, Runnable runnable) {
        this.f.b = 0.0f;
        ((MV) this.c.m).setValue(Boolean.TRUE);
        runnable.run();
    }
}
