package L1;

import android.app.BroadcastOptions;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.SystemClock;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class E1 extends AbstractC0122o {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ int f1346e = 0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ Object f1347f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public E1(F1 f12, H0 h02) {
        super(h02);
        Objects.requireNonNull(f12);
        this.f1347f = f12;
    }

    @Override // L1.AbstractC0122o
    public final void a() {
        switch (this.f1346e) {
            case 0:
                F1 f12 = (F1) this.f1347f;
                G1 g12 = (G1) f12.f1457d;
                g12.k();
                C0146w0 c0146w0 = (C0146w0) g12.f29k;
                c0146w0.f2040u.getClass();
                f12.a(SystemClock.elapsedRealtime(), false, false);
                C0151y c0151y = c0146w0.f2043x;
                C0146w0.i(c0151y);
                c0146w0.f2040u.getClass();
                c0151y.n(SystemClock.elapsedRealtime());
                break;
            case 1:
                L1 l12 = (L1) this.f1347f;
                l12.o();
                X x5 = ((C0146w0) l12.f29k).p;
                C0146w0.l(x5);
                x5.f1631x.b("Starting upload from DelayedRunnable");
                l12.f1500l.q();
                break;
            default:
                W1 w12 = (W1) this.f1347f;
                w12.b().k();
                String str = (String) w12.f1591A.pollFirst();
                if (str != null) {
                    w12.e().getClass();
                    w12.f1606S = SystemClock.elapsedRealtime();
                    w12.a().f1631x.c("Sending trigger URI notification to app", str);
                    Intent intent = new Intent();
                    intent.setAction("com.google.android.gms.measurement.TRIGGERS_AVAILABLE");
                    intent.setPackage(str);
                    Context context = w12.f1617v.f2032k;
                    if (Build.VERSION.SDK_INT < 34) {
                        context.sendBroadcast(intent);
                    } else {
                        context.sendBroadcast(intent, null, BroadcastOptions.makeBasic().setShareIdentityEnabled(true).toBundle());
                    }
                }
                w12.H();
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public E1(L1 l12, H0 h02) {
        super(h02);
        Objects.requireNonNull(l12);
        this.f1347f = l12;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public E1(W1 w12, H0 h02) {
        super(h02);
        Objects.requireNonNull(w12);
        this.f1347f = w12;
    }
}
