package com.ifpdos.autotest;

import android.app.Application;
import android.content.Context;
import android.graphics.Point;
import android.util.Log;
import android.view.WindowManager;

/* JADX INFO: loaded from: classes.dex */
public class RemoteApplication extends Application {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static Application f1942c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static int f1943d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private static b.c.b.c.e.a.c f1944e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private static int f1945f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private static int f1946g;

    public static int a() {
        return f1946g;
    }

    private void b() {
        Point point = new Point();
        ((WindowManager) getSystemService("window")).getDefaultDisplay().getSize(point);
        f1945f = point.x;
        f1946g = point.y;
    }

    public static b.c.b.c.e.a.c c() {
        return f1944e;
    }

    @Override // android.content.ContextWrapper
    protected void attachBaseContext(Context context) {
        super.attachBaseContext(context);
        a.g.a.k(context);
    }

    @Override // android.app.Application
    public void onCreate() {
        super.onCreate();
        f1942c = this;
        b.b.e.a.f.c(this, "xZLhecAiPwW0c4s3EKEgGHIwD1TQahLngt6y4pRlsSYX_RBT6K0I");
        b.c.e.d.c.m(this);
        b();
        b.c.c.c.o().l(this);
        h0.l().p(this);
        f1943d = getResources().getInteger(R.integer.message_type);
        try {
            f1944e = b.c.b.c.e.a.c.a(this);
            b.c.b.c.e.a.c.a(this).e(true);
        } catch (Exception unused) {
            Log.i("RemoteApplication", "onCreate: ");
        }
    }

    @Override // android.app.Application
    public void onTerminate() {
        super.onTerminate();
        b.c.b.c.e.a.c.d();
        b.c.c.c.o().n();
    }
}
