package androidx.core.view;

import android.os.Build;
import android.os.CancellationSignal;
import android.view.View;
import android.view.Window;
import android.view.WindowInsetsController;
import android.view.animation.Interpolator;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class m3 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final eb.e f1786a;

    public m3(WindowInsetsController windowInsetsController) {
        if (Build.VERSION.SDK_INT >= 35) {
            this.f1786a = new l3(windowInsetsController, new w0(windowInsetsController));
        } else {
            this.f1786a = new k3(windowInsetsController, new w0(windowInsetsController));
        }
    }

    public final void a(int i10) {
        this.f1786a.g(i10);
    }

    public final void b() {
        this.f1786a.l();
    }

    public void controlWindowInsetsAnimation(int i10, long j10, @Nullable Interpolator interpolator, @Nullable CancellationSignal cancellationSignal, @NonNull m2 m2Var) {
        this.f1786a.controlWindowInsetsAnimation(i10, j10, interpolator, cancellationSignal, m2Var);
    }

    public m3(Window window, View view) {
        w0 w0Var = new w0(view);
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 35) {
            l3 l3Var = new l3(window.getInsetsController(), w0Var);
            l3Var.f1780e = window;
            this.f1786a = l3Var;
        } else if (i10 >= 30) {
            k3 k3Var = new k3(window.getInsetsController(), w0Var);
            k3Var.f1780e = window;
            this.f1786a = k3Var;
        } else if (i10 >= 26) {
            this.f1786a = new i3(window, w0Var);
        } else {
            this.f1786a = new h3(window, w0Var);
        }
    }
}
