package com.google.android.gms.measurement.internal;

import android.content.ComponentName;

/* JADX INFO: loaded from: classes2.dex */
public final class i3 implements Runnable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f21663a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ h3 f21664b;

    public /* synthetic */ i3(h3 h3Var, int i10) {
        this.f21663a = i10;
        this.f21664b = h3Var;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f21663a;
        h3 h3Var = this.f21664b;
        switch (i10) {
            case 0:
                a3 a3Var = h3Var.f21655c;
                a3Var.f21472d = null;
                a3Var.Q();
                break;
            default:
                a3 a3Var2 = h3Var.f21655c;
                ComponentName componentName = new ComponentName(h3Var.f21655c.zza(), "com.google.android.gms.measurement.AppMeasurementService");
                a3Var2.w();
                if (a3Var2.f21472d != null) {
                    a3Var2.f21472d = null;
                    a3Var2.zzj().f21842n.b(componentName, "Disconnected from device MeasurementService");
                    a3Var2.w();
                    a3Var2.L();
                }
                break;
        }
    }
}
