导航菜单

页面标题

页面副标题

VivaMoneda v1.4 - Xhosa.java 源代码

正在查看: VivaMoneda v1.4 应用的 Xhosa.java JAVA 源代码文件

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


package com.moneda.cloud.anteaters.bargained;

import android.R;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.RectF;
import android.hardware.display.DisplayManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.provider.MediaStore;
import android.util.DisplayMetrics;
import android.util.Size;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.camera.core.ImageCaptureException;
import androidx.camera.core.h;
import androidx.camera.core.k;
import androidx.camera.core.n;
import androidx.camera.view.PreviewView;
import com.gyf.immersionbar.m;
import com.moneda.cloud.anteaters.bargained.Xhosa;
import com.moneda.cloud.tt.ambqmbravq.Grills;
import com.moneda.project.R$mipmap;
import com.moneda.project.databinding.HcvssBinding;
import e5.f;
import e5.l;
import java.io.File;
import java.util.concurrent.ExecutionException;
import me.jessyan.autosize.internal.CustomAdapt;
import t.o;

public class Xhosa extends Grills<l, HcvssBinding> implements CustomAdapt {
    public n K;
    public androidx.camera.lifecycle.e L;
    public k M;
    public h N;
    public RectF O;
    public Uri P;
    public DisplayManager R;
    public DisplayManager.DisplayListener S;
    public int J = 0;
    public Handler Q = new Handler(Looper.getMainLooper());
    public boolean T = false;
    public int U = 2;

    public class a implements DisplayManager.DisplayListener {
        public a() {
        }

        @Override
        public void onDisplayAdded(int i9) {
        }

        @Override
        public void onDisplayChanged(int i9) {
            if (i9 == Xhosa.this.J) {
                int rotation = Xhosa.this.findViewById(R.id.content).getDisplay().getRotation();
                if (Xhosa.this.K != null) {
                    Xhosa.this.K.a0(rotation);
                }
                if (Xhosa.this.M != null) {
                    Xhosa.this.M.J0(rotation);
                }
                if (Xhosa.this.N != null) {
                    Xhosa.this.N.b0(rotation);
                }
            }
        }

        @Override
        public void onDisplayRemoved(int i9) {
        }
    }

    public class b implements View.OnAttachStateChangeListener {
        public b() {
        }

        @Override
        public void onViewAttachedToWindow(@NonNull View view) {
            Xhosa.this.R.registerDisplayListener(Xhosa.this.S, null);
        }

        @Override
        public void onViewDetachedFromWindow(@NonNull View view) {
            Xhosa.this.R.unregisterDisplayListener(Xhosa.this.S);
        }
    }

    public class c implements View.OnClickListener {
        public c() {
        }

        @Override
        public void onClick(View view) {
            Xhosa.this.R0();
        }
    }

    public class d implements k.n {
        public d() {
        }

        @Override
        public void a(@NonNull k.p pVar) {
            ((HcvssBinding) Xhosa.this.G).wfz.setVisibility(0);
            ((HcvssBinding) Xhosa.this.G).keenly.setVisibility(0);
            ((HcvssBinding) Xhosa.this.G).pbgmdwynmif.setVisibility(0);
            ((HcvssBinding) Xhosa.this.G).une.setVisibility(4);
            Xhosa.this.P0(pVar.a());
            Xhosa.this.P = pVar.a();
        }

        @Override
        public void b(@NonNull ImageCaptureException imageCaptureException) {
            imageCaptureException.printStackTrace();
        }
    }

    public class e implements Runnable {

        public final r3.a f7641c;

        public final PreviewView f7642e;

        public e(r3.a aVar, PreviewView previewView) {
            this.f7641c = aVar;
            this.f7642e = previewView;
        }

        @Override
        public void run() {
            try {
                Xhosa.this.L = (androidx.camera.lifecycle.e) this.f7641c.get();
                this.f7642e.getDisplay().getRealMetrics(new DisplayMetrics());
                int rotation = this.f7642e.getDisplay().getRotation();
                androidx.camera.lifecycle.e eVar = Xhosa.this.L;
                Xhosa.this.K = new n.b().b(new Size(451, 286)).a(rotation).e();
                Xhosa.this.M = new k.h().h(0).i(Xhosa.this.U).b(new Size(451, 286)).a(rotation).e();
                Xhosa.this.N = new h.c().b(new Size(451, 286)).a(rotation).h(0).e();
                Xhosa xhosa = Xhosa.this;
                xhosa.S0(xhosa.N);
                eVar.m();
                Xhosa.this.I0(eVar, this.f7642e);
            } catch (InterruptedException e9) {
                throw new RuntimeException(e9);
            } catch (ExecutionException e10) {
                throw new RuntimeException(e10);
            }
        }
    }

    public void K0() {
        this.J = ((HcvssBinding) this.G).habitual.getDisplay().getDisplayId();
        ((HcvssBinding) this.G).habitual.addOnAttachStateChangeListener(new b());
        RectF rectF = new RectF(((HcvssBinding) this.G).habitual.getLeft(), ((HcvssBinding) this.G).habitual.getTop(), ((HcvssBinding) this.G).habitual.getRight(), ((HcvssBinding) this.G).habitual.getBottom());
        this.O = rectF;
        ((HcvssBinding) this.G).zionist.b(rectF, e4.a.a(this, 19.0f));
        ((HcvssBinding) this.G).zionist.setBackgroundColor(Color.parseColor("#666666"));
        T0();
    }

    public void L0(View view) {
        U0();
    }

    public void M0(View view) {
        finish();
    }

    public void N0(View view) {
        Q0();
    }

    public void O0(View view) {
        setResult(-1, new Intent().setData(this.P));
        finish();
    }

    public final void I0(androidx.camera.lifecycle.e eVar, PreviewView previewView) {
        eVar.e(this, o.f13047c, this.K, this.M, this.N);
        this.K.Y(previewView.getSurfaceProvider());
    }

    public final void J0() {
        k kVar = this.M;
        if (kVar == null) {
            kVar = new k.h().b(new Size(300, 300)).a(((HcvssBinding) this.G).habitual.getDisplay().getRotation()).e();
        }
        k.l lVar = new k.l();
        lVar.d(false);
        MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString();
        File file = new File(getCacheDir() + "/CameraxTakeFace/");
        if (!file.exists()) {
            file.mkdirs();
        }
        kVar.B0(new k.o.a(new File(file, System.currentTimeMillis() + ".jpg")).b(lVar).a(), new k5.c(this.Q), new d());
    }

    public final void P0(Uri uri) {
        o2.a.e(this, ((HcvssBinding) this.G).wfz, uri.getPath(), e4.a.a(this, 19.0f));
    }

    public final void Q0() {
        ((HcvssBinding) this.G).wfz.setVisibility(4);
        ((HcvssBinding) this.G).pbgmdwynmif.setVisibility(8);
        ((HcvssBinding) this.G).keenly.setVisibility(8);
        ((HcvssBinding) this.G).une.setVisibility(0);
    }

    public final void R0() {
        boolean z8 = !this.T;
        this.T = z8;
        ((HcvssBinding) this.G).ljsxzrrai.setImageResource(z8 ? R$mipmap.aegvznobzk : R$mipmap.rqlaet);
        this.U = this.T ? 1 : 2;
    }

    public final void S0(h hVar) {
        HandlerThread handlerThread = new HandlerThread("Luminosity");
        handlerThread.start();
        hVar.a0(new k5.c(new Handler(handlerThread.getLooper())), new i5.c());
    }

    public final void T0() {
        PreviewView previewView = ((HcvssBinding) this.G).habitual;
        r3.a<androidx.camera.lifecycle.e> f9 = androidx.camera.lifecycle.e.f(this);
        f9.a(new e(f9, previewView), v0.a.g(this));
    }

    public final void U0() {
        J0();
    }

    @Override
    public void a0() {
    }

    @Override
    public void d0(Bundle bundle) {
        m.p0(this).E();
        this.R = (DisplayManager) getSystemService("display");
        a aVar = new a();
        this.S = aVar;
        this.R.registerDisplayListener(aVar, null);
        ((HcvssBinding) this.G).habitual.post(new Runnable() {
            @Override
            public final void run() {
                Xhosa.this.K0();
            }
        });
        ((HcvssBinding) this.G).scrhhk.setText(f.a("b2NyYW0gbGVkIG9ydG5lZCBuw7NpY2FjaWZpdG5lZGkgdXMgZWQgb3RvZiBhbnUgZW1vVA=="));
        ((HcvssBinding) this.G).pbgmdwynmif.setVisibility(8);
        ((HcvssBinding) this.G).keenly.setVisibility(8);
        ((HcvssBinding) this.G).une.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                Xhosa.this.L0(view);
            }
        });
        ((HcvssBinding) this.G).awznkhfz.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                Xhosa.this.M0(view);
            }
        });
        ((HcvssBinding) this.G).pbgmdwynmif.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                Xhosa.this.N0(view);
            }
        });
        ((HcvssBinding) this.G).ljsxzrrai.setOnClickListener(new c());
        ((HcvssBinding) this.G).keenly.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                Xhosa.this.O0(view);
            }
        });
    }

    @Override
    public float getSizeInDp() {
        return 360.0f;
    }

    @Override
    public boolean isBaseOnWidth() {
        return false;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.R.unregisterDisplayListener(this.S);
    }
}