导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - C2949j.java 源代码

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

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


package c8;

import A1.C0053o;
import E.L;
import L7.C0839h;
import L8.o0;
import a.AbstractC2199a;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Outline;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.SurfaceView;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import b.AbstractC2657a;
import bb.S;
import c3.AbstractC2916c;
import d8.AbstractC4079a;
import e8.C4294a;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.C5697y;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.internal.I;
import kotlin.jvm.internal.Intrinsics;
import l8.C5793j;
import l8.C5794k;
import l8.C5795l;
import l8.C5796m;
import t8.AbstractC6803i;

public final class C2949j {

    public static final Bitmap f39661q;

    public static final float f39662r;

    public final com.google.firebase.messaging.r f39663a;

    public final A5.y f39664b;

    public final ExecutorService f39665c;

    public final w f39666d;

    public final ArrayList f39667e;

    public final LinkedList f39668f;

    public final LinkedList f39669g;

    public final C2953n f39670h;

    public final Rect f39671i;

    public final Canvas f39672j;

    public final Outline f39673k;

    public final Paint f39674l;

    public final Rect f39675m;
    public Bitmap n;

    public boolean f39676o;

    public List f39677p;

    static {
        Bitmap createBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
        Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(1, 1, Bitmap.Config.ARGB_8888)");
        f39661q = createBitmap;
        f39662r = 2.0f * L7.l.f12918a;
    }

    public C2949j(com.google.firebase.messaging.r listener) {
        Intrinsics.checkNotNullParameter(listener, "listener");
        this.f39663a = listener;
        this.f39664b = new A5.y(27);
        this.f39665c = Executors.newCachedThreadPool();
        this.f39667e = new ArrayList();
        this.f39668f = new LinkedList();
        this.f39669g = new LinkedList();
        C2953n c2953n = new C2953n(1);
        Bitmap.Config config = Bitmap.Config.ARGB_8888;
        int i10 = C2953n.f39686a;
        Bitmap createBitmap = Bitmap.createBitmap(i10, i10, config);
        Intrinsics.checkNotNullExpressionValue(createBitmap, "createBitmap(TILE_SIZE, … Bitmap.Config.ARGB_8888)");
        c2953n.setStrokeWidth(C2953n.f39687b);
        c2953n.setColor(-8882056);
        c2953n.setStyle(Paint.Style.STROKE);
        Canvas canvas = new Canvas(createBitmap);
        canvas.drawColor(-2039584);
        canvas.drawLine(-c2953n.getStrokeWidth(), c2953n.getStrokeWidth(), c2953n.getStrokeWidth(), -c2953n.getStrokeWidth(), c2953n);
        float f10 = i10;
        canvas.drawLine(-c2953n.getStrokeWidth(), c2953n.getStrokeWidth() + f10, c2953n.getStrokeWidth() + f10, -c2953n.getStrokeWidth(), c2953n);
        canvas.drawLine(f10 - c2953n.getStrokeWidth(), c2953n.getStrokeWidth() + f10, c2953n.getStrokeWidth() + f10, f10 - c2953n.getStrokeWidth(), c2953n);
        Shader.TileMode tileMode = Shader.TileMode.REPEAT;
        c2953n.setShader(new BitmapShader(createBitmap, tileMode, tileMode));
        c2953n.setStyle(Paint.Style.FILL);
        this.f39670h = c2953n;
        Paint paint = new Paint();
        this.f39671i = new Rect();
        this.f39672j = new Canvas();
        this.f39673k = new Outline();
        Paint paint2 = new Paint();
        this.f39674l = paint2;
        this.f39675m = new Rect();
        paint2.setColor(0);
        paint.setStrokeWidth(f39662r);
        int i11 = Build.VERSION.SDK_INT;
        this.f39666d = i11 >= 34 ? new v() : i11 >= 26 ? new t() : i11 >= 24 ? new s() : new S(1);
    }

    public static final void c(C2949j c2949j, C5796m c5796m) {
        long j10;
        long j11;
        c2949j.getClass();
        I i10 = new I();
        long nanoTime = System.nanoTime();
        try {
            i10.f60982a = c2949j.a(c5796m);
            Unit unit = Unit.f60920a;
            long nanoTime2 = System.nanoTime() - nanoTime;
            j11 = AbstractC2199a.f31698b;
            AbstractC2199a.f31698b = j11 + nanoTime2;
            L7.v.b(new C0053o(c2949j, i10, AbstractC2199a.Q(), 27));
        } catch (Throwable th2) {
            long nanoTime3 = System.nanoTime() - nanoTime;
            j10 = AbstractC2199a.f31698b;
            AbstractC2199a.f31698b = j10 + nanoTime3;
            throw th2;
        }
    }

    public static final void d(C2949j c2949j) {
        C5793j B10;
        Object obj;
        Object obj2;
        C2944e c2944e;
        c2949j.f39676o = false;
        LinkedList linkedList = c2949j.f39669g;
        Iterator it = linkedList.iterator();
        while (it.hasNext()) {
            AbstractC2943d abstractC2943d = (AbstractC2943d) it.next();
            View a2 = abstractC2943d.a();
            if (a2 != null) {
                boolean z10 = abstractC2943d instanceof C2942c;
                LinkedList linkedList2 = c2949j.f39668f;
                if (z10) {
                    C5794k b2 = ((C2942c) abstractC2943d).b();
                    if (a2.getVisibility() != 0 || a2.getWidth() == 0 || a2.getHeight() == 0 || AbstractC4079a.b(a2)) {
                        C2944e c2944e2 = (C2944e) AbstractC2657a.n(linkedList2, new C2948i(2, a2));
                        if (c2944e2 != null) {
                            c2949j.f39676o = true;
                            c2944e2.h();
                        }
                    } else if (b2 != null && (B10 = com.bumptech.glide.c.B(a2, b2)) != null) {
                        Iterator it2 = linkedList2.iterator();
                        while (true) {
                            if (it2.hasNext()) {
                                obj = it2.next();
                                if (((AbstractC2946g) obj).a() == a2) {
                                    break;
                                }
                            } else {
                                obj = null;
                                break;
                            }
                        }
                        AbstractC2946g abstractC2946g = (AbstractC2946g) obj;
                        if (abstractC2946g == null) {
                            Bitmap d10 = C2951l.f39681a.d(a2.getWidth(), a2.getHeight());
                            abstractC2946g = new C2944e(a2);
                            abstractC2946g.c(d10);
                            linkedList2.add(abstractC2946g);
                        } else if (abstractC2946g.b().getWidth() != a2.getWidth() || abstractC2946g.b().getHeight() != a2.getHeight()) {
                            C2951l c2951l = C2951l.f39681a;
                            c2951l.c(abstractC2946g.b());
                            abstractC2946g.c(c2951l.d(a2.getWidth(), a2.getHeight()));
                        }
                        C2944e c2944e3 = (C2944e) abstractC2946g;
                        c2944e3.k(b2);
                        c2944e3.j(B10);
                        c2944e3.i(true);
                        AbstractC4079a.a(a2, new N.s(c2949j, 21));
                        ArrayList arrayList = c2949j.f39667e;
                        Iterator it3 = arrayList.iterator();
                        while (it3.hasNext()) {
                            SurfaceView surface = (SurfaceView) it3.next();
                            C5794k f10 = c2944e3.f();
                            Intrinsics.checkNotNullExpressionValue(surface, "surface");
                            C5793j B11 = com.bumptech.glide.c.B(surface, f10);
                            if (B11 == null) {
                                C2945f c2945f = (C2945f) AbstractC2657a.f(c2944e3.d(), new N.s(surface, 22));
                                if (c2945f != null) {
                                    C2951l.f39681a.c(c2945f.b());
                                }
                            } else {
                                LinkedList d11 = c2944e3.d();
                                Iterator it4 = d11.iterator();
                                while (true) {
                                    if (it4.hasNext()) {
                                        obj2 = it4.next();
                                        if (((AbstractC2946g) obj2).a() == surface) {
                                            break;
                                        }
                                    } else {
                                        obj2 = null;
                                        break;
                                    }
                                }
                                AbstractC2946g abstractC2946g2 = (AbstractC2946g) obj2;
                                if (abstractC2946g2 == null) {
                                    Bitmap d12 = C2951l.f39681a.d(surface.getWidth(), surface.getHeight());
                                    abstractC2946g2 = new C2945f(surface);
                                    abstractC2946g2.c(d12);
                                    d11.add(abstractC2946g2);
                                } else if (abstractC2946g2.b().getWidth() != surface.getWidth() || abstractC2946g2.b().getHeight() != surface.getHeight()) {
                                    C2951l c2951l2 = C2951l.f39681a;
                                    c2951l2.c(abstractC2946g2.b());
                                    abstractC2946g2.c(c2951l2.d(surface.getWidth(), surface.getHeight()));
                                }
                                ((C2945f) abstractC2946g2).e(B11);
                            }
                        }
                        if (c2944e3.d().size() > 0) {
                            Iterator it5 = c2944e3.d().iterator();
                            Intrinsics.checkNotNullExpressionValue(it5, "viewHolder.surfaceViewHolders.iterator()");
                            while (it5.hasNext()) {
                                Object next = it5.next();
                                Intrinsics.checkNotNullExpressionValue(next, "iterator.next()");
                                C2945f c2945f2 = (C2945f) next;
                                if (!arrayList.isEmpty()) {
                                    int size = arrayList.size();
                                    for (int i10 = 0; i10 < size; i10++) {
                                        if (((SurfaceView) arrayList.get(i10)) == c2945f2.a()) {
                                            break;
                                        }
                                    }
                                }
                                C2951l.f39681a.c(c2945f2.b());
                                it5.remove();
                            }
                        }
                        c2949j.f39676o = true;
                        arrayList.clear();
                    }
                } else if ((abstractC2943d instanceof C2941b) && (c2944e = (C2944e) AbstractC2657a.f(linkedList2, new C2948i(3, a2))) != null) {
                    c2949j.f39676o = true;
                    c2944e.h();
                }
            }
        }
        linkedList.clear();
    }

    public final C4294a a(C5796m c5796m) {
        C5796m c5796m2;
        Iterator it;
        long j10;
        long j11;
        long j12;
        long j13;
        Iterator it2;
        long j14;
        long j15;
        int i10 = 0;
        Bitmap bitmap = this.n;
        if (!this.f39676o && bitmap != null) {
            return null;
        }
        C5795l c5795l = (C5795l) CollectionsKt.N(c5796m.a());
        Rect b2 = c5795l.b();
        if (b2.isEmpty()) {
            return new C4294a(c5795l.c(), f39661q);
        }
        int width = b2.width();
        int height = b2.height();
        if (bitmap == null || bitmap.getWidth() != width || bitmap.getHeight() != height) {
            if (bitmap != null) {
                C2951l.f39681a.c(bitmap);
            }
            bitmap = C2951l.f39681a.d(width, height);
        }
        Bitmap bitmap2 = bitmap;
        com.google.firebase.messaging.r rVar = this.f39663a;
        C5796m c5796m3 = (C5796m) rVar.f43379b;
        if (c5796m3 == null || ((C5796m) rVar.f43380c) == null) {
            return null;
        }
        LinkedList<C2944e> linkedList = this.f39668f;
        ArrayList arrayList = new ArrayList();
        for (C2944e c2944e : linkedList) {
            View a2 = c2944e.a();
            Pair pair = a2 != null ? new Pair(a2, c2944e) : null;
            if (pair != null) {
                arrayList.add(pair);
            }
        }
        ArrayList M6 = AbstractC6803i.M(arrayList);
        Iterator it3 = M6.iterator();
        while (it3.hasNext()) {
            C2944e c2944e2 = (C2944e) it3.next();
            View a10 = c2944e2.a();
            if (a10 == null) {
                c2944e2.h();
                it3.remove();
            } else if (c2944e2.g()) {
                ExecutorService copyExecutor = this.f39665c;
                long nanoTime = System.nanoTime();
                try {
                    C0839h c0839h = new C0839h(i10);
                    c0839h.b();
                    Intrinsics.checkNotNullExpressionValue(copyExecutor, "copyExecutor");
                    q8.g.z(copyExecutor, new L(c0839h, this, a10, c2944e2, 4));
                    Iterator it4 = c2944e2.d().iterator();
                    Intrinsics.checkNotNullExpressionValue(it4, "viewHolder.surfaceViewHolders.iterator()");
                    while (it4.hasNext()) {
                        Object next = it4.next();
                        Intrinsics.checkNotNullExpressionValue(next, "surfaceIterator.next()");
                        C2945f c2945f = (C2945f) next;
                        SurfaceView surfaceView = (SurfaceView) c2945f.a();
                        if (surfaceView == null) {
                            c2945f.d();
                            it4.remove();
                        } else {
                            c0839h.b();
                            Intrinsics.checkNotNullExpressionValue(copyExecutor, "copyExecutor");
                            q8.g.z(copyExecutor, new L(c0839h, this, surfaceView, c2945f, 5));
                            it4 = it4;
                        }
                    }
                    c0839h.d();
                    Unit unit = Unit.f60920a;
                    long nanoTime2 = System.nanoTime() - nanoTime;
                    j15 = AbstractC2199a.f31699c;
                    AbstractC2199a.f31699c = j15 + nanoTime2;
                    i10 = 0;
                } finally {
                    long nanoTime3 = System.nanoTime() - nanoTime;
                    j14 = AbstractC2199a.f31699c;
                    AbstractC2199a.f31699c = j14 + nanoTime3;
                }
            } else {
                continue;
            }
        }
        if (((C5796m) rVar.f43381d) == null) {
            ((A5.y) rVar.f43378a).I();
        }
        C5796m c5796m4 = (C5796m) rVar.f43381d;
        if (c5796m4 == null) {
            return null;
        }
        Iterator it5 = M6.iterator();
        while (true) {
            boolean hasNext = it5.hasNext();
            Canvas canvas = this.f39672j;
            if (!hasNext) {
                List list = this.f39677p;
                if (list != null) {
                    if (list.isEmpty()) {
                        list = null;
                    }
                    if (list != null) {
                        canvas.setBitmap(bitmap2);
                        Iterator it6 = list.iterator();
                        while (it6.hasNext()) {
                            canvas.drawRect((Rect) it6.next(), this.f39670h);
                        }
                    }
                }
                this.n = bitmap2;
                Bitmap o10 = io.sentry.config.a.o(bitmap2);
                if (o10 == null) {
                    return null;
                }
                return new C4294a(c5795l.c(), o10);
            }
            C2944e c2944e3 = (C2944e) it5.next();
            View a11 = c2944e3.a();
            if (a11 == null) {
                c2944e3.h();
                it5.remove();
            } else {
                if (c2944e3.g()) {
                    c2944e3.i(false);
                    Rect rect = this.f39671i;
                    long nanoTime4 = System.nanoTime();
                    try {
                        C5794k D10 = com.bumptech.glide.c.D(c5796m3, a11);
                        C5794k D11 = com.bumptech.glide.c.D(c5796m4, a11);
                        if (D10 != null) {
                            com.bumptech.glide.e.O(D10);
                        }
                        if (D11 != null) {
                            com.bumptech.glide.e.O(D11);
                        }
                        HashMap m10 = D10 != null ? com.paytm.pgsdk.g.m(D10) : null;
                        Map i11 = D11 != null ? AbstractC2916c.i(com.paytm.pgsdk.g.m(D11)) : null;
                        Rect d10 = c2944e3.e().d();
                        int i12 = -d10.left;
                        int i13 = -d10.top;
                        c5796m2 = c5796m4;
                        canvas.setBitmap(c2944e3.b());
                        it = it5;
                        C2939A c2939a = new C2939A(i12, i13, 0, this);
                        if (m10 != null) {
                            Iterator it7 = m10.entrySet().iterator();
                            while (it7.hasNext()) {
                                Map.Entry entry = (Map.Entry) it7.next();
                                String str = (String) entry.getKey();
                                List list2 = (List) entry.getValue();
                                List list3 = i11 != null ? (List) i11.remove(str) : null;
                                if (list3 != null) {
                                    it2 = it7;
                                    if (list2.size() == list3.size()) {
                                        int i14 = 0;
                                        for (Object obj : list2) {
                                            int i15 = i14 + 1;
                                            if (i14 < 0) {
                                                C5697y.p();
                                                throw null;
                                            }
                                            Rect rect2 = (Rect) obj;
                                            rect2.union((Rect) list3.get(i14));
                                            c2939a.invoke(rect2);
                                            i14 = i15;
                                        }
                                    } else {
                                        rect.set(0, 0, 0, 0);
                                        Iterator it8 = list2.iterator();
                                        while (it8.hasNext()) {
                                            rect.union((Rect) it8.next());
                                        }
                                        Iterator it9 = list3.iterator();
                                        while (it9.hasNext()) {
                                            rect.union((Rect) it9.next());
                                        }
                                        c2939a.invoke(rect);
                                    }
                                } else {
                                    it2 = it7;
                                    Iterator it10 = list2.iterator();
                                    while (it10.hasNext()) {
                                        c2939a.invoke((Rect) it10.next());
                                    }
                                }
                                it7 = it2;
                            }
                        }
                        if (i11 != null && (!i11.isEmpty())) {
                            Iterator it11 = i11.entrySet().iterator();
                            while (it11.hasNext()) {
                                Iterator it12 = ((List) ((Map.Entry) it11.next()).getValue()).iterator();
                                while (it12.hasNext()) {
                                    c2939a.invoke((Rect) it12.next());
                                }
                            }
                        }
                        Unit unit2 = Unit.f60920a;
                        long nanoTime5 = System.nanoTime() - nanoTime4;
                        j13 = AbstractC2199a.f31705i;
                        AbstractC2199a.f31705i = j13 + nanoTime5;
                    } catch (Throwable th2) {
                        long nanoTime6 = System.nanoTime() - nanoTime4;
                        j12 = AbstractC2199a.f31705i;
                        AbstractC2199a.f31705i = j12 + nanoTime6;
                        throw th2;
                    }
                } else {
                    c5796m2 = c5796m4;
                    it = it5;
                }
                long nanoTime7 = System.nanoTime();
                try {
                    canvas.setBitmap(bitmap2);
                    ViewGroup.LayoutParams layoutParams = a11.getLayoutParams();
                    WindowManager.LayoutParams layoutParams2 = layoutParams instanceof WindowManager.LayoutParams ? (WindowManager.LayoutParams) layoutParams : null;
                    if (layoutParams2 != null && C8.e.J(layoutParams2)) {
                        canvas.drawARGB((int) (layoutParams2.dimAmount * 255), 0, 0, 0);
                    }
                    O.p pVar = new O.p(21, c2944e3, this);
                    b(canvas, c2944e3, a11);
                    pVar.invoke(L7.i.f12888L);
                    canvas.drawBitmap(c2944e3.b(), (Rect) null, c2944e3.e().d(), (Paint) null);
                    pVar.invoke(L7.i.f12889M);
                    Unit unit3 = Unit.f60920a;
                    long nanoTime8 = System.nanoTime() - nanoTime7;
                    j11 = AbstractC2199a.f31702f;
                    AbstractC2199a.f31702f = j11 + nanoTime8;
                    c5796m4 = c5796m2;
                    it5 = it;
                } finally {
                    long nanoTime9 = System.nanoTime() - nanoTime7;
                    j10 = AbstractC2199a.f31702f;
                    AbstractC2199a.f31702f = j10 + nanoTime9;
                }
            }
        }
    }

    public final void b(Canvas canvas, C2944e c2944e, View view) {
        float floatValue;
        boolean rect;
        Rect d10 = c2944e.e().d();
        Drawable background = view.getBackground();
        float elevation = view.getElevation();
        if (elevation <= 0.0f || background == null) {
            return;
        }
        Outline outline = this.f39673k;
        background.getOutline(outline);
        if (outline.isEmpty()) {
            return;
        }
        int i10 = Build.VERSION.SDK_INT;
        boolean z10 = true;
        Rect rect2 = this.f39675m;
        if (i10 >= 24) {
            rect = outline.getRect(rect2);
            if (rect) {
                floatValue = outline.getRadius();
            }
            floatValue = 0.0f;
            z10 = false;
        } else {
            try {
                Float f10 = (Float) o0.B(outline, "mRadius");
                Rect rect3 = (Rect) o0.B(outline, "mRect");
                if (f10 != null && rect3 != null) {
                    rect2.set(rect3);
                    floatValue = f10.floatValue();
                }
            } catch (Exception unused) {
            }
            floatValue = 0.0f;
            z10 = false;
        }
        if (z10) {
            rect2.offset(d10.left, d10.top);
            Paint paint = this.f39674l;
            paint.setShadowLayer(elevation, 0.0f, elevation / 3.0f, 1207959552);
            if (floatValue == 0.0f) {
                canvas.drawRect(rect2, paint);
            } else if (floatValue > 0.0f) {
                android.support.v4.media.session.h.h(canvas, rect2, floatValue, floatValue, paint);
            }
        }
    }

    public final void e() {
        this.f39669g.clear();
        A5.y yVar = this.f39664b;
        boolean z10 = false;
        C2947h process = new C2947h(this, 0);
        yVar.getClass();
        Intrinsics.checkNotNullParameter(process, "process");
        z zVar = (z) yVar.f805b;
        Z2.i task = new Z2.i(process);
        zVar.getClass();
        Intrinsics.checkNotNullParameter(task, "task");
        synchronized (zVar.f39711a) {
            try {
                synchronized (zVar.f39711a) {
                    if (zVar.isAlive()) {
                        if (zVar.f39714d.get()) {
                            z10 = true;
                        }
                    }
                }
                if (z10) {
                    zVar.f39713c = task;
                } else {
                    task.j().invoke();
                }
                Unit unit = Unit.f60920a;
            } catch (Throwable th2) {
                throw th2;
            }
        }
    }
}