掌中通.apk(点击下载) / a.java


package com.ut.mini.core.d;

import java.util.Random;

public class a {

    /* renamed from: b  reason: collision with root package name */
    private static Random f3451b = new Random();

    /* renamed from: e  reason: collision with root package name */
    private static a f3452e = null;

    /* renamed from: a  reason: collision with root package name */
    private boolean f3453a = false;

    /* renamed from: c  reason: collision with root package name */
    private boolean f3454c = false;

    /* renamed from: d  reason: collision with root package name */
    private Object f3455d = new Object();

    /* access modifiers changed from: package-private */
    /* renamed from: com.ut.mini.core.d.a$a  reason: collision with other inner class name */
    public class C0016a extends Thread {

        /* renamed from: b  reason: collision with root package name */
        private String f3457b = null;

        public C0016a(String str) {
            this.f3457b = str;
        }

        /* JADX WARNING: Code restructure failed: missing block: B:10:0x0045, code lost:
            if (r1 == null) goto L_0x0101;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:12:0x0048, code lost:
            if (r1.length <= 0) goto L_0x0101;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:13:0x004a, code lost:
            r2 = new java.lang.String(r1, "UTF-8");
            com.ut.mini.b.a.b(2, "result[abtest]", r2);
         */
        /* JADX WARNING: Code restructure failed: missing block: B:14:0x005b, code lost:
            if (com.ut.mini.d.a.a(r2) == false) goto L_0x0101;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:15:0x005d, code lost:
            r2 = new org.json.JSONObject(r2).getLong("t");
            r1 = com.ut.mini.core.d.b.disassemble(r8.f3457b);
         */
        /* JADX WARNING: Code restructure failed: missing block: B:16:0x006e, code lost:
            if (r1 == null) goto L_0x008b;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:18:0x0074, code lost:
            if (r1.size() <= 0) goto L_0x008b;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:20:0x0080, code lost:
            if (r1.containsKey(com.ut.mini.base.UTLogFieldsScheme.ARGS.toString()) == false) goto L_0x008b;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:21:0x0082, code lost:
            r1.remove(com.ut.mini.base.UTLogFieldsScheme.ARGS.toString());
         */
        /* JADX WARNING: Code restructure failed: missing block: B:22:0x008b, code lost:
            r1.put(com.ut.mini.base.UTLogFieldsScheme.RECORD_TIMESTAMP.toString(), "" + r2);
            r1.put(com.ut.mini.base.UTLogFieldsScheme.PAGE.toString(), "ABTest");
            r1.put(com.ut.mini.base.UTLogFieldsScheme.EVENTID.toString(), "6677");
            r1.put(com.ut.mini.base.UTLogFieldsScheme.ARG1.toString(), "" + r0);
            r1.put(com.ut.mini.base.UTLogFieldsScheme.ARG2.toString(), "-");
            r1.put(com.ut.mini.base.UTLogFieldsScheme.ARG3.toString(), "-");
            r1.put(com.ut.mini.base.UTLogFieldsScheme.ARGS.toString(), "-");
            com.ut.mini.core.c.a().a(r1);
         */
        /* JADX WARNING: Code restructure failed: missing block: B:27:0x010b, code lost:
            r0 = move-exception;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:29:?, code lost:
            r0.printStackTrace();
         */
        /* JADX WARNING: Code restructure failed: missing block: B:31:0x0116, code lost:
            r0 = move-exception;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:32:0x0117, code lost:
            r8.f3456a.f3454c = false;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:33:0x011c, code lost:
            throw r0;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:35:?, code lost:
            return;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:36:?, code lost:
            return;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:9:?, code lost:
            r0 = java.net.URLEncoder.encode(java.util.UUID.randomUUID().toString(), "UTF-8");
            r1 = new java.util.HashMap();
            r1.put("logid", r0);
            r1 = com.ut.mini.core.f.b.c("http://adash.m.taobao.com/rest/abtest", r1, null);
            com.ut.mini.b.a.b(2, "request[abtest]", r1);
            r1 = com.ut.mini.d.c.a(1, r1, null, false);
         */
        public void run() {
            synchronized (a.this.f3455d) {
                if (!a.this.f3454c) {
                    a.this.f3454c = true;
                }
            }
        }
    }

    private a() {
    }

    public static synchronized a a() {
        a aVar;
        synchronized (a.class) {
            if (f3452e == null) {
                f3452e = new a();
            }
            aVar = f3452e;
        }
        return aVar;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:11:0x0019, code lost:
        if (1 != com.ut.mini.core.d.a.f3451b.nextInt(100)) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x001b, code lost:
        r3.f3453a = true;
        new com.ut.mini.core.d.a.C0016a(r3, r4).start();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:17:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:18:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:19:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:?, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:7:0x000b, code lost:
        if (r4 == null) goto L_?;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x000f, code lost:
        if (r3.f3453a != false) goto L_?;
     */
    public void a(String str) {
        synchronized (this.f3455d) {
            if (this.f3454c) {
            }
        }
    }
}