导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - g.java 源代码

正在查看: Bhakti v5.4.0 应用的 g.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package in.juspay.hypersdk.analytics;

import A3.H;
import Vj.N0;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.media.metrics.NetworkEvent;
import android.media.metrics.PlaybackErrorEvent;
import android.media.metrics.TrackChangeEvent;
import android.view.Choreographer;
import android.widget.ProgressBar;
import androidx.datastore.preferences.protobuf.o;
import androidx.fragment.app.FragmentActivity;
import b3.g0;
import com.vlv.aravali.model.response.InviteRedeemRequestResponse;
import com.vlv.aravali.views.fragments.k;
import e0.V1;
import in.juspay.hypersmshandler.SmsConsentHandler;
import in.juspay.hypersmshandler.SmsReceiver;
import in.juspay.services.HyperServices;
import io.Q;
import io.X;
import io.sentry.C0309e;
import io.sentry.C0343p;
import io.sentry.C0345p1;
import io.sentry.C0353q;
import io.sentry.N1;
import io.sentry.SpotlightIntegration;
import io.sentry.Z;
import io.sentry.android.core.AnrIntegration;
import io.sentry.android.core.C0288q;
import io.sentry.android.core.SentryAndroidOptions;
import io.sentry.android.core.SystemEventsBreadcrumbsIntegration;
import io.sentry.android.core.internal.util.i;
import io.sentry.android.replay.t;
import io.sentry.h2;
import io.sentry.ndk.NativeScope;
import io.sentry.o2;
import io.sentry.protocol.C0348c;
import io.sentry.protocol.E;
import io.sentry.s2;
import j$.util.concurrent.ConcurrentHashMap;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.zip.GZIPOutputStream;
import kotlin.jvm.internal.Intrinsics;
import l3.C;
import l3.D;
import l3.I;
import l3.L;
import l3.d0;
import l3.h0;
import l3.n;
import m3.j;
import m3.l;
import org.json.JSONObject;

public final class g implements Runnable {
    public final int a;
    public final Object b;
    public final Object c;

    public g(int i, Object obj, Object obj2) {
        this.a = i;
        this.b = obj;
        this.c = obj2;
    }

    @Override
    public final void run() {
        long j;
        boolean z;
        long j2;
        boolean z2 = true;
        switch (this.a) {
            case 0:
                ((LogSessioniserExp) this.b).lambda$addLogLine$1((JSONObject) this.c);
                return;
            case 1:
                SmsReceiver.a((SmsReceiver) this.b, (SmsConsentHandler) this.c);
                return;
            case 2:
                ((HyperServices) this.b).lambda$uncaughtException$9((Throwable) this.c);
                return;
            case 3:
                ((HyperServices) this.b).lambda$process$6((FragmentActivity) this.c);
                return;
            case 4:
                Q.i((Q) this.b, (InviteRedeemRequestResponse) this.c);
                return;
            case 5:
                X x = (X) this.b;
                X.access$setOtpTimerValue$p(x, X.access$getOtpTimerValue$p(x) + 1);
                int access$getOtpTimerValue$p = X.access$getOtpTimerValue$p(x);
                N0 n0 = (N0) this.c;
                if (access$getOtpTimerValue$p > n0.k0.getMax()) {
                    n0.p0.s();
                    n0.s0.q();
                    n0.o0.setEnabled(true);
                    X.access$stopTimer(x);
                    return;
                }
                int access$getOtpTimerValue$p2 = X.access$getOtpTimerValue$p(x);
                ProgressBar progressBar = n0.k0;
                progressBar.setProgress(access$getOtpTimerValue$p2);
                n0.t0.setText(o.h(progressBar.getMax() - X.access$getOtpTimerValue$p(x), "sec"));
                return;
            case 6:
                ((C0343p) this.b).f((o2) this.c);
                return;
            case 7:
                ((Z) this.c).e(((C0345p1) this.b).i().getShutdownTimeoutMillis());
                return;
            case 8:
                k kVar = (k) this.c;
                SpotlightIntegration spotlightIntegration = (SpotlightIntegration) this.b;
                try {
                    h2 h2Var = spotlightIntegration.a;
                    if (h2Var == null) {
                        throw new IllegalArgumentException("SentryOptions are required to send envelopes.");
                    }
                    HttpURLConnection f = SpotlightIntegration.f(h2Var.getSpotlightConnectionUrl() != null ? spotlightIntegration.a.getSpotlightConnectionUrl() : io.sentry.util.f.a ? "http://10.0.2.2:8969/stream" : "http://localhost:8969/stream");
                    try {
                        OutputStream outputStream = f.getOutputStream();
                        try {
                            GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
                            try {
                                spotlightIntegration.a.getSerializer().d(kVar, gZIPOutputStream);
                                gZIPOutputStream.close();
                                if (outputStream != null) {
                                    outputStream.close();
                                }
                                spotlightIntegration.b.k(N1.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(f.getResponseCode()));
                            } finally {
                            }
                        } finally {
                        }
                    } catch (Throwable th) {
                        try {
                            spotlightIntegration.b.f(N1.ERROR, "An exception occurred while submitting the envelope to the Sentry server.", th);
                            spotlightIntegration.b.k(N1.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(f.getResponseCode()));
                        } catch (Throwable th2) {
                            spotlightIntegration.b.k(N1.DEBUG, "Envelope sent to spotlight: %d", Integer.valueOf(f.getResponseCode()));
                            SpotlightIntegration.d(f);
                            throw th2;
                        }
                    }
                    SpotlightIntegration.d(f);
                    return;
                } catch (Exception e) {
                    spotlightIntegration.b.f(N1.ERROR, "An exception occurred while creating the connection to spotlight.", e);
                    return;
                }
            case 9:
                SentryAndroidOptions sentryAndroidOptions = (SentryAndroidOptions) this.c;
                AnrIntegration anrIntegration = (AnrIntegration) this.b;
                C0353q a = anrIntegration.c.a();
                try {
                    if (!anrIntegration.b) {
                        anrIntegration.d(sentryAndroidOptions);
                    }
                    a.close();
                    return;
                } catch (Throwable th3) {
                    try {
                        a.close();
                    } catch (Throwable th4) {
                        th3.addSuppressed(th4);
                    }
                    throw th3;
                }
            case 10:
                ((SystemEventsBreadcrumbsIntegration) this.b).d((SentryAndroidOptions) this.c);
                return;
            case 11:
                i iVar = (i) this.b;
                iVar.getClass();
                try {
                    iVar.j = Choreographer.getInstance();
                    return;
                } catch (Throwable th5) {
                    ((C0288q) this.c).f(N1.ERROR, "Error retrieving Choreographer instance. Slow and frozen frames will not be reported.", th5);
                    return;
                }
            case 12:
                io.sentry.android.ndk.b bVar = (io.sentry.android.ndk.b) this.b;
                SentryAndroidOptions sentryAndroidOptions2 = bVar.a;
                C0309e c0309e = (C0309e) this.c;
                N1 n1 = c0309e.i;
                String str = null;
                String lowerCase = n1 != null ? n1.name().toLowerCase(Locale.ROOT) : null;
                String P = com.bumptech.glide.b.P(c0309e.a());
                try {
                    ConcurrentHashMap concurrentHashMap = c0309e.f;
                    if (!concurrentHashMap.isEmpty()) {
                        str = sentryAndroidOptions2.getSerializer().a(concurrentHashMap);
                    }
                } catch (Throwable th6) {
                    sentryAndroidOptions2.getLogger().c(N1.ERROR, th6, "Breadcrumb data is not serializable.", new Object[0]);
                }
                String str2 = str;
                String str3 = c0309e.d;
                String str4 = c0309e.g;
                String str5 = c0309e.e;
                bVar.b.getClass();
                NativeScope.nativeAddBreadcrumb(lowerCase, str3, str4, str5, P, str2);
                return;
            case 13:
                NativeScope nativeScope = ((io.sentry.android.ndk.b) this.b).b;
                E e2 = (E) this.c;
                if (e2 == null) {
                    nativeScope.getClass();
                    NativeScope.nativeRemoveUser();
                    return;
                }
                String str6 = e2.b;
                String str7 = e2.a;
                String str8 = e2.d;
                String str9 = e2.c;
                nativeScope.getClass();
                NativeScope.nativeSetUser(str6, str7, str8, str9);
                return;
            case 14:
                io.sentry.android.ndk.b bVar2 = (io.sentry.android.ndk.b) this.b;
                bVar2.getClass();
                s2 s2Var = (s2) this.c;
                String tVar = s2Var.a.toString();
                String v2Var = s2Var.b.toString();
                bVar2.b.getClass();
                NativeScope.nativeSetTrace(tVar, v2Var);
                return;
            case 15:
                t tVar2 = (t) this.b;
                Intrinsics.checkNotNullParameter(tVar2, "this$0");
                io.sentry.android.replay.viewhierarchy.d dVar = (io.sentry.android.replay.viewhierarchy.d) this.c;
                Intrinsics.checkNotNullParameter(dVar, "$viewHierarchy");
                Canvas canvas = new Canvas(tVar2.i);
                canvas.setMatrix((Matrix) tVar2.k.getValue());
                dVar.a(new V1(14, tVar2, canvas));
                tVar2.e.A(tVar2.i);
                tVar2.v.set(true);
                tVar2.p.set(false);
                return;
            case 16:
                com.vlv.aravali.settings.ui.e eVar = (com.vlv.aravali.settings.ui.e) this.b;
                Intrinsics.checkNotNullParameter(eVar, "$task");
                h2 h2Var2 = (h2) this.c;
                Intrinsics.checkNotNullParameter(h2Var2, "$options");
                Intrinsics.checkNotNullParameter("WindowRecorder.capture", "$taskName");
                try {
                    eVar.run();
                    return;
                } catch (Throwable th7) {
                    h2Var2.getLogger().f(N1.ERROR, "Failed to execute task WindowRecorder.capture", th7);
                    return;
                }
            case 17:
                com.vlv.aravali.settings.ui.e eVar2 = (com.vlv.aravali.settings.ui.e) this.b;
                Intrinsics.checkNotNullParameter(eVar2, "$task");
                h2 h2Var3 = (h2) this.c;
                Intrinsics.checkNotNullParameter(h2Var3, "$options");
                Intrinsics.checkNotNullParameter("ReplayIntegration.finalize_previous_replay", "$taskName");
                try {
                    eVar2.run();
                    return;
                } catch (Throwable th8) {
                    h2Var3.getLogger().f(N1.ERROR, "Failed to execute task ReplayIntegration.finalize_previous_replay", th8);
                    return;
                }
            case 18:
                io.sentry.cache.f fVar = (io.sentry.cache.f) this.b;
                E e3 = (E) this.c;
                if (e3 == null) {
                    fVar.g("user.json");
                    return;
                } else {
                    fVar.k(e3, "user.json");
                    return;
                }
            case 19:
                C0309e c0309e2 = (C0309e) this.c;
                io.sentry.cache.f fVar2 = (io.sentry.cache.f) this.b;
                fVar2.getClass();
                try {
                    ((io.sentry.cache.tape.e) fVar2.b.a()).x(c0309e2);
                    return;
                } catch (IOException e4) {
                    fVar2.a.getLogger().f(N1.ERROR, "Failed to add breadcrumb to file queue", e4);
                    return;
                }
            case 20:
                io.sentry.cache.f fVar3 = (io.sentry.cache.f) this.b;
                String str10 = (String) this.c;
                if (str10 == null) {
                    fVar3.g("transaction.json");
                    return;
                } else {
                    fVar3.k(str10, "transaction.json");
                    return;
                }
            case 21:
                Runnable runnable = (Runnable) this.c;
                io.sentry.cache.f fVar4 = (io.sentry.cache.f) this.b;
                fVar4.getClass();
                try {
                    runnable.run();
                    return;
                } catch (Throwable th9) {
                    fVar4.a.getLogger().f(N1.ERROR, "Serialization task failed", th9);
                    return;
                }
            case 22:
                ((io.sentry.cache.f) this.b).k((io.sentry.protocol.t) this.c, "replay.json");
                return;
            case 23:
                ((io.sentry.cache.f) this.b).k((C0348c) this.c, "contexts.json");
                return;
            case 24:
                D d = (D) this.b;
                I i = (I) this.c;
                int i2 = d.s0 - i.a;
                d.s0 = i2;
                if (i.c) {
                    d.t0 = i.d;
                    d.u0 = true;
                }
                if (i2 == 0) {
                    h0 h0Var = ((d0) i.e).a;
                    if (!d.S0.a.p() && h0Var.p()) {
                        d.T0 = -1;
                        d.U0 = 0L;
                    }
                    if (!h0Var.p()) {
                        List asList = Arrays.asList(h0Var.k);
                        e3.d.g(asList.size() == d.y.size());
                        for (int i3 = 0; i3 < asList.size(); i3++) {
                            ((C) d.y.get(i3)).c = (g0) asList.get(i3);
                        }
                    }
                    if (d.u0) {
                        if (((d0) i.e).b.equals(d.S0.b) && ((d0) i.e).d == d.S0.s) {
                            z2 = false;
                        }
                        if (z2) {
                            if (h0Var.p() || ((d0) i.e).b.b()) {
                                j2 = ((d0) i.e).d;
                            } else {
                                d0 d0Var = (d0) i.e;
                                H h = d0Var.b;
                                long j3 = d0Var.d;
                                Object obj = h.a;
                                b3.d0 d0Var2 = d.x;
                                h0Var.g(obj, d0Var2);
                                j2 = j3 + d0Var2.e;
                            }
                            z = z2;
                            j = j2;
                        } else {
                            j = -9223372036854775807L;
                            z = z2;
                        }
                    } else {
                        j = -9223372036854775807L;
                        z = false;
                    }
                    d.u0 = false;
                    d.k2((d0) i.e, 1, z, d.t0, j, -1, false);
                    return;
                }
                return;
            case 25:
                l3.g0 g0Var = (l3.g0) this.c;
                ((L) this.b).getClass();
                try {
                    synchronized (g0Var) {
                    }
                    try {
                        g0Var.a.d(g0Var.c, g0Var.d);
                        return;
                    } finally {
                        g0Var.a(true);
                    }
                } catch (n e5) {
                    e3.b.i("ExoPlayerImplInternal", "Unexpected error delivering message on external thread.", e5);
                    throw new RuntimeException((Throwable) e5);
                }
            case 26:
                Runnable runnable2 = (Runnable) this.c;
                J5.n nVar = (J5.n) this.b;
                nVar.getClass();
                try {
                    runnable2.run();
                    return;
                } finally {
                    nVar.d();
                }
            case 27:
                j.t(((l) this.b).d, (TrackChangeEvent) this.c);
                return;
            case 28:
                j.p(((l) this.b).d, (NetworkEvent) this.c);
                return;
            default:
                j.q(((l) this.b).d, (PlaybackErrorEvent) this.c);
                return;
        }
    }
}