package p011d0;

import android.os.Build;
import android.os.Trace;
import android.util.Log;
import java.lang.reflect.Method;

@Deprecated
/* renamed from: d0.v */
/* loaded from: classes.dex */
public final class C0623v {

    /* renamed from: a */
    public static long f2149a;

    /* renamed from: b */
    public static Method f2150b;

    /* renamed from: c */
    public static Method f2151c;

    /* renamed from: d */
    public static Method f2152d;

    /* renamed from: e */
    public static Method f2153e;

    /* renamed from: d0.v$a */
    /* loaded from: classes.dex */
    public static class C0624a {
        /* renamed from: a */
        public static void m3246a(String str) {
            Trace.beginSection(str);
        }

        /* renamed from: b */
        public static void m3245b() {
            Trace.endSection();
        }
    }

    static {
        int i = Build.VERSION.SDK_INT;
        if (i < 18 || i >= 29) {
            return;
        }
        try {
            f2149a = Trace.class.getField("TRACE_TAG_APP").getLong(null);
            Class cls = Long.TYPE;
            f2150b = Trace.class.getMethod("isTagEnabled", cls);
            Class cls2 = Integer.TYPE;
            f2151c = Trace.class.getMethod("asyncTraceBegin", cls, String.class, cls2);
            f2152d = Trace.class.getMethod("asyncTraceEnd", cls, String.class, cls2);
            f2153e = Trace.class.getMethod("traceCounter", cls, String.class, cls2);
        } catch (Exception e) {
            Log.i("TraceCompat", "Unable to initialize via reflection.", e);
        }
    }

    /* renamed from: a */
    public static void m3248a(String str) {
        if (Build.VERSION.SDK_INT >= 18) {
            C0624a.m3246a(str);
        }
    }

    /* renamed from: b */
    public static void m3247b() {
        if (Build.VERSION.SDK_INT >= 18) {
            C0624a.m3245b();
        }
    }
}