package z0;

import android.animation.TimeInterpolator;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.Iterator;
import m.C0863j;

/* JADX INFO: renamed from: z0.u, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C1152u extends AbstractC1147p {
    public int J;

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public ArrayList f11046H = new ArrayList();
    public boolean I = true;
    public boolean K = false;

    /* JADX INFO: renamed from: L, reason: collision with root package name */
    public int f11047L = 0;

    @Override // z0.AbstractC1147p
    public final void A(long j5) {
        ArrayList arrayList;
        this.f11027m = j5;
        if (j5 < 0 || (arrayList = this.f11046H) == null) {
            return;
        }
        int size = arrayList.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).A(j5);
        }
    }

    @Override // z0.AbstractC1147p
    public final void B(b5.a aVar) {
        this.f11023C = aVar;
        this.f11047L |= 8;
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).B(aVar);
        }
    }

    @Override // z0.AbstractC1147p
    public final void C(TimeInterpolator timeInterpolator) {
        this.f11047L |= 1;
        ArrayList arrayList = this.f11046H;
        if (arrayList != null) {
            int size = arrayList.size();
            for (int i = 0; i < size; i++) {
                ((AbstractC1147p) this.f11046H.get(i)).C(timeInterpolator);
            }
        }
        this.f11028n = timeInterpolator;
    }

    @Override // z0.AbstractC1147p
    public final void D(C0863j c0863j) {
        super.D(c0863j);
        this.f11047L |= 4;
        if (this.f11046H != null) {
            for (int i = 0; i < this.f11046H.size(); i++) {
                ((AbstractC1147p) this.f11046H.get(i)).D(c0863j);
            }
        }
    }

    @Override // z0.AbstractC1147p
    public final void E() {
        this.f11047L |= 2;
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).E();
        }
    }

    @Override // z0.AbstractC1147p
    public final void F(long j5) {
        this.f11026l = j5;
    }

    @Override // z0.AbstractC1147p
    public final String H(String str) {
        String strH = super.H(str);
        for (int i = 0; i < this.f11046H.size(); i++) {
            StringBuilder sb = new StringBuilder();
            sb.append(strH);
            sb.append("\n");
            sb.append(((AbstractC1147p) this.f11046H.get(i)).H(str + "  "));
            strH = sb.toString();
        }
        return strH;
    }

    public final void I(AbstractC1147p abstractC1147p) {
        this.f11046H.add(abstractC1147p);
        abstractC1147p.f11031s = this;
        long j5 = this.f11027m;
        if (j5 >= 0) {
            abstractC1147p.A(j5);
        }
        if ((this.f11047L & 1) != 0) {
            abstractC1147p.C(this.f11028n);
        }
        if ((this.f11047L & 2) != 0) {
            abstractC1147p.E();
        }
        if ((this.f11047L & 4) != 0) {
            abstractC1147p.D(this.f11024D);
        }
        if ((this.f11047L & 8) != 0) {
            abstractC1147p.B(this.f11023C);
        }
    }

    @Override // z0.AbstractC1147p
    public final void b(View view) {
        for (int i = 0; i < this.f11046H.size(); i++) {
            ((AbstractC1147p) this.f11046H.get(i)).b(view);
        }
        this.p.add(view);
    }

    @Override // z0.AbstractC1147p
    public final void d() {
        super.d();
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).d();
        }
    }

    @Override // z0.AbstractC1147p
    public final void e(C1154w c1154w) {
        if (t(c1154w.f11052b)) {
            for (AbstractC1147p abstractC1147p : this.f11046H) {
                if (abstractC1147p.t(c1154w.f11052b)) {
                    abstractC1147p.e(c1154w);
                    c1154w.f11053c.add(abstractC1147p);
                }
            }
        }
    }

    @Override // z0.AbstractC1147p
    public final void g(C1154w c1154w) {
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).g(c1154w);
        }
    }

    @Override // z0.AbstractC1147p
    public final void h(C1154w c1154w) {
        if (t(c1154w.f11052b)) {
            for (AbstractC1147p abstractC1147p : this.f11046H) {
                if (abstractC1147p.t(c1154w.f11052b)) {
                    abstractC1147p.h(c1154w);
                    c1154w.f11053c.add(abstractC1147p);
                }
            }
        }
    }

    @Override // z0.AbstractC1147p
    /* JADX INFO: renamed from: k */
    public final AbstractC1147p clone() {
        C1152u c1152u = (C1152u) super.clone();
        c1152u.f11046H = new ArrayList();
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            AbstractC1147p abstractC1147pClone = ((AbstractC1147p) this.f11046H.get(i)).clone();
            c1152u.f11046H.add(abstractC1147pClone);
            abstractC1147pClone.f11031s = c1152u;
        }
        return c1152u;
    }

    @Override // z0.AbstractC1147p
    public final void m(ViewGroup viewGroup, com.google.firebase.messaging.w wVar, com.google.firebase.messaging.w wVar2, ArrayList arrayList, ArrayList arrayList2) {
        long j5 = this.f11026l;
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            AbstractC1147p abstractC1147p = (AbstractC1147p) this.f11046H.get(i);
            if (j5 > 0 && (this.I || i == 0)) {
                long j6 = abstractC1147p.f11026l;
                if (j6 > 0) {
                    abstractC1147p.F(j6 + j5);
                } else {
                    abstractC1147p.F(j5);
                }
            }
            abstractC1147p.m(viewGroup, wVar, wVar2, arrayList, arrayList2);
        }
    }

    @Override // z0.AbstractC1147p
    public final void v(ViewGroup viewGroup) {
        super.v(viewGroup);
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).v(viewGroup);
        }
    }

    @Override // z0.AbstractC1147p
    public final void x(View view) {
        for (int i = 0; i < this.f11046H.size(); i++) {
            ((AbstractC1147p) this.f11046H.get(i)).x(view);
        }
        this.p.remove(view);
    }

    @Override // z0.AbstractC1147p
    public final void y(View view) {
        super.y(view);
        int size = this.f11046H.size();
        for (int i = 0; i < size; i++) {
            ((AbstractC1147p) this.f11046H.get(i)).y(view);
        }
    }

    @Override // z0.AbstractC1147p
    public final void z() {
        if (this.f11046H.isEmpty()) {
            G();
            n();
            return;
        }
        C1138g c1138g = new C1138g();
        c1138g.f11003b = this;
        Iterator it = this.f11046H.iterator();
        while (it.hasNext()) {
            ((AbstractC1147p) it.next()).a(c1138g);
        }
        this.J = this.f11046H.size();
        if (this.I) {
            Iterator it2 = this.f11046H.iterator();
            while (it2.hasNext()) {
                ((AbstractC1147p) it2.next()).z();
            }
            return;
        }
        for (int i = 1; i < this.f11046H.size(); i++) {
            ((AbstractC1147p) this.f11046H.get(i - 1)).a(new C1138g(1, (AbstractC1147p) this.f11046H.get(i)));
        }
        AbstractC1147p abstractC1147p = (AbstractC1147p) this.f11046H.get(0);
        if (abstractC1147p != null) {
            abstractC1147p.z();
        }
    }
}
