package d5;

import android.adservices.measurement.DeletionRequest;
import android.adservices.measurement.MeasurementManager;
import android.adservices.measurement.WebSourceRegistrationRequest;
import android.adservices.measurement.WebTriggerRegistrationRequest;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import android.view.InputEvent;
import kotlin.jvm.internal.t;
import rm.n0;

/* loaded from: classes.dex */
public abstract class n {

    /* renamed from: a, reason: collision with root package name */
    public static final b f15913a = new b(null);

    /* loaded from: classes.dex */
    public static final class b {
        private b() {
        }

        public /* synthetic */ b(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final n a(Context context) {
            t.g(context, "context");
            StringBuilder sb2 = new StringBuilder();
            sb2.append("AdServicesInfo.version=");
            a5.a aVar = a5.a.f187a;
            sb2.append(aVar.a());
            Log.d("MeasurementManager", sb2.toString());
            if (aVar.a() >= 5) {
                return new a(context);
            }
            return null;
        }
    }

    public abstract Object a(d5.a aVar, vm.d dVar);

    public abstract Object b(vm.d dVar);

    public abstract Object c(Uri uri, InputEvent inputEvent, vm.d dVar);

    public abstract Object d(Uri uri, vm.d dVar);

    public abstract Object e(o oVar, vm.d dVar);

    public abstract Object f(p pVar, vm.d dVar);

    /* JADX INFO: Access modifiers changed from: private */
    /* loaded from: classes.dex */
    public static final class a extends n {

        /* renamed from: b, reason: collision with root package name */
        private final MeasurementManager f15914b;

        public a(MeasurementManager mMeasurementManager) {
            t.g(mMeasurementManager, "mMeasurementManager");
            this.f15914b = mMeasurementManager;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public final DeletionRequest k(d5.a aVar) {
            c.a();
            throw null;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public final WebSourceRegistrationRequest l(o oVar) {
            k.a();
            throw null;
        }

        /* JADX INFO: Access modifiers changed from: private */
        public final WebTriggerRegistrationRequest m(p pVar) {
            l.a();
            throw null;
        }

        @Override // d5.n
        public Object a(d5.a aVar, vm.d<? super n0> dVar) {
            vm.d d10;
            Object f10;
            Object f11;
            d10 = wm.c.d(dVar);
            tp.p pVar = new tp.p(d10, 1);
            pVar.u();
            this.f15914b.deleteRegistrations(k(aVar), new m(), androidx.core.os.l.a(pVar));
            Object r10 = pVar.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            f11 = wm.d.f();
            return r10 == f11 ? r10 : n0.f34904a;
        }

        @Override // d5.n
        public Object b(vm.d<? super Integer> dVar) {
            vm.d d10;
            Object f10;
            d10 = wm.c.d(dVar);
            tp.p pVar = new tp.p(d10, 1);
            pVar.u();
            this.f15914b.getMeasurementApiStatus(new m(), androidx.core.os.l.a(pVar));
            Object r10 = pVar.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            return r10;
        }

        @Override // d5.n
        public Object c(Uri uri, InputEvent inputEvent, vm.d<? super n0> dVar) {
            vm.d d10;
            Object f10;
            Object f11;
            d10 = wm.c.d(dVar);
            tp.p pVar = new tp.p(d10, 1);
            pVar.u();
            this.f15914b.registerSource(uri, inputEvent, new m(), androidx.core.os.l.a(pVar));
            Object r10 = pVar.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            f11 = wm.d.f();
            return r10 == f11 ? r10 : n0.f34904a;
        }

        @Override // d5.n
        public Object d(Uri uri, vm.d<? super n0> dVar) {
            vm.d d10;
            Object f10;
            Object f11;
            d10 = wm.c.d(dVar);
            tp.p pVar = new tp.p(d10, 1);
            pVar.u();
            this.f15914b.registerTrigger(uri, new m(), androidx.core.os.l.a(pVar));
            Object r10 = pVar.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            f11 = wm.d.f();
            return r10 == f11 ? r10 : n0.f34904a;
        }

        @Override // d5.n
        public Object e(o oVar, vm.d<? super n0> dVar) {
            vm.d d10;
            Object f10;
            Object f11;
            d10 = wm.c.d(dVar);
            tp.p pVar = new tp.p(d10, 1);
            pVar.u();
            this.f15914b.registerWebSource(l(oVar), new m(), androidx.core.os.l.a(pVar));
            Object r10 = pVar.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            f11 = wm.d.f();
            return r10 == f11 ? r10 : n0.f34904a;
        }

        @Override // d5.n
        public Object f(p pVar, vm.d<? super n0> dVar) {
            vm.d d10;
            Object f10;
            Object f11;
            d10 = wm.c.d(dVar);
            tp.p pVar2 = new tp.p(d10, 1);
            pVar2.u();
            this.f15914b.registerWebTrigger(m(pVar), new m(), androidx.core.os.l.a(pVar2));
            Object r10 = pVar2.r();
            f10 = wm.d.f();
            if (r10 == f10) {
                kotlin.coroutines.jvm.internal.h.c(dVar);
            }
            f11 = wm.d.f();
            return r10 == f11 ? r10 : n0.f34904a;
        }

        /* JADX WARN: Illegal instructions before constructor call */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public a(Context context) {
            this(j.a(r2));
            t.g(context, "context");
            Object systemService = context.getSystemService((Class<Object>) i.a());
            t.f(systemService, "context.getSystemService…:class.java\n            )");
        }
    }
}
