package com.seewo.ota.activity;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Process;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.Switch;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnCheckedChanged;
import butterknife.OnClick;
import com.cvte.vman.BuildConfig;
import com.seewo.adbcommons.model.base.ICmdMsg;
import com.seewo.libmyousdk.model.DubboResponseInfo;
import com.seewo.ota.OTARefreshService;
import com.seewo.ota.R;
import com.seewo.ota.k.f;
import com.seewo.ota.update.device.model.vman.CameraVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.IoboxVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.McuVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.MicVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.SensorBoxVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.TouchVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.TypeCVmanUpdateTask;
import com.seewo.ota.update.device.model.vman.U3HUBVmanUpdateTask;
import com.seewo.vcommons.executor.ButtonActionExecutor;
import i.a.a.a;
import java.io.File;
import java.util.HashMap;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public class OTATestActivity extends Activity {
    private static final /* synthetic */ a.InterfaceC0131a A = null;
    private static final /* synthetic */ a.InterfaceC0131a B = null;
    private static final /* synthetic */ a.InterfaceC0131a C = null;
    private static final /* synthetic */ a.InterfaceC0131a D = null;
    private static final /* synthetic */ a.InterfaceC0131a E = null;
    private static final /* synthetic */ a.InterfaceC0131a F = null;
    private static final /* synthetic */ a.InterfaceC0131a G = null;
    private static final /* synthetic */ a.InterfaceC0131a H = null;
    private static final /* synthetic */ a.InterfaceC0131a I = null;
    private static final /* synthetic */ a.InterfaceC0131a J = null;
    private static final /* synthetic */ a.InterfaceC0131a K = null;
    private static final /* synthetic */ a.InterfaceC0131a L = null;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private static final /* synthetic */ a.InterfaceC0131a f1939i = null;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private static final /* synthetic */ a.InterfaceC0131a f1940j = null;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private static final /* synthetic */ a.InterfaceC0131a f1941k = null;
    private static final /* synthetic */ a.InterfaceC0131a l = null;
    private static final /* synthetic */ a.InterfaceC0131a m = null;
    private static final /* synthetic */ a.InterfaceC0131a n = null;
    private static final /* synthetic */ a.InterfaceC0131a o = null;
    private static final /* synthetic */ a.InterfaceC0131a p = null;
    private static final /* synthetic */ a.InterfaceC0131a q = null;
    private static final /* synthetic */ a.InterfaceC0131a r = null;
    private static final /* synthetic */ a.InterfaceC0131a s = null;
    private static final /* synthetic */ a.InterfaceC0131a t = null;
    private static final /* synthetic */ a.InterfaceC0131a u = null;
    private static final /* synthetic */ a.InterfaceC0131a v = null;
    private static final /* synthetic */ a.InterfaceC0131a w = null;
    private static final /* synthetic */ a.InterfaceC0131a x = null;
    private static final /* synthetic */ a.InterfaceC0131a y = null;
    private static final /* synthetic */ a.InterfaceC0131a z = null;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final Map<Integer, com.seewo.ota.v.s.s.r0> f1942b = new HashMap();

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private boolean f1943f = true;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private int f1944g = 0;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private com.seewo.ota.v.s.o f1945h;

    @BindView(R.id.back)
    ImageView mBackView;

    @BindView(R.id.logScrollView)
    ScrollView mLogScrollView;

    @BindView(R.id.log_text)
    TextView mLogTextView;

    @BindView(R.id.showAllLog)
    Switch mShowAllLogSwitch;

    @BindView(R.id.showAllLogText)
    TextView mShowAllLogText;

    @BindView(R.id.upgrade_board_nfc)
    Button mUpgradeBoardNfc;

    @BindView(R.id.upgrade_isp)
    Button mUpgradeIsp;

    @BindView(R.id.upgrade_mcu)
    Button mUpgradeMcu;

    @BindView(R.id.upgrade_mic_for_an13)
    Button mUpgradeMicForAn13;

    @BindView(R.id.upgrade_nfc)
    Button mUpgradeNfc;

    @BindView(R.id.upgrade_sensor_box)
    Button mUpgradeSensorBox;

    @BindView(R.id.upgrade_system_ota)
    Button mUpgradeSystemOta;

    @BindView(R.id.upgrade_touch)
    Button mUpgradeTouch;

    @BindView(R.id.upgrade_typec)
    Button mUpgradeTypeC;

    @BindView(R.id.upgrade_typec_8711)
    Button mUpgradeTypeC8711;

    @BindView(R.id.upgrade_typec_8711_a1516)
    Button mUpgradeTypeC8711A1516;

    @BindView(R.id.upgrade_typec_8711_vman)
    Button mUpgradeTypeC8711Vman;

    @BindView(R.id.upgrade_usb_hub)
    Button mUpgradeUsbHub;

    @BindView(R.id.upgrade_vga)
    Button mUpgradeVga;

    @BindView(R.id.mock)
    View mock;

    @BindView(R.id.next)
    View next;

    @BindView(R.id.vmanTaskContainer)
    ViewGroup vmanTaskContainer;

    static {
        c();
    }

    private void a(ViewGroup viewGroup, Context context, final com.seewo.ota.v.s.s.r0 r0Var) {
        try {
            Button button = new Button(context);
            button.setText(r0Var.getName());
            button.setLayoutParams(new ViewGroup.LayoutParams(-2, -2));
            button.setOnClickListener(new View.OnClickListener() { // from class: com.seewo.ota.activity.e0
                @Override // android.view.View.OnClickListener
                public final void onClick(View view) {
                    this.f2019b.f(r0Var, view);
                }
            });
            viewGroup.addView(button);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    private void b(ViewGroup viewGroup, Context context, com.seewo.ota.v.s.s.r0... r0VarArr) {
        for (com.seewo.ota.v.s.s.r0 r0Var : r0VarArr) {
            a(viewGroup, context, r0Var);
        }
    }

    private static /* synthetic */ void c() {
        i.a.b.b.b bVar = new i.a.b.b.b("OTATestActivity.java", OTATestActivity.class);
        f1939i = bVar.f("method-execution", bVar.e("4", "onCreate", "com.seewo.ota.activity.OTATestActivity", "android.os.Bundle", "savedInstanceState", "", "void"), 156);
        f1940j = bVar.f("method-execution", bVar.e("4", "onDestroy", "com.seewo.ota.activity.OTATestActivity", "", "", "", "void"), 189);
        s = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onNfcBoardClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 328);
        t = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeC8711A1516Click", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 334);
        u = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeC9666Click", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 340);
        v = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeC8711VmanClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 346);
        w = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeC8711_3588Click", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 352);
        x = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onMicClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 358);
        y = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onMicForAn13Click", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 364);
        z = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onMicUpsClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 370);
        A = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onDisplayClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 376);
        B = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onIOBoxClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 382);
        f1941k = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onSensorBoxClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 280);
        C = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onAudioClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 388);
        D = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onUBootClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 394);
        E = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onReTimerClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), ButtonActionExecutor.TIME_PAGE_CHANGED_DLEAYED);
        F = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onDthTypeCClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 406);
        G = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onCameraClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 412);
        H = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onCameraSdkClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 418);
        I = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onHdmiClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 424);
        J = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onElasticClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 430);
        K = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onHubClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 436);
        L = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onSensorBoxByFileClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 451);
        l = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onMcuClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 286);
        m = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTouchClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 292);
        n = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTouchForVmanClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 298);
        o = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onUsbHubClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 304);
        p = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeCClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 310);
        q = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onTypeC8711Click", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 316);
        r = bVar.f("method-execution", bVar.e(DubboResponseInfo.STATUS_OK, "onNfcClick", "com.seewo.ota.activity.OTATestActivity", "android.view.View", "view", "", "void"), 322);
    }

    private Intent d(String str) {
        Intent intent = new Intent();
        if (d.e.h.e.a.g(this, "com.seewo.easifinder")) {
            ComponentName componentName = new ComponentName("com.seewo.easifinder", "com.seewo.easifinder.FileRetrieverActivity");
            intent.setType(str);
            intent.setAction("android.intent.action.GET_CONTENT");
            intent.addCategory("android.intent.category.OPENABLE");
            intent.setComponent(componentName);
        } else {
            intent.setType("*/*");
            intent.setAction("android.intent.action.GET_CONTENT");
            intent.addCategory("android.intent.category.OPENABLE");
        }
        return intent;
    }

    private void e() {
        ViewGroup viewGroup = this.vmanTaskContainer;
        if (viewGroup != null) {
            b(viewGroup, this, new TypeCVmanUpdateTask(this), new TouchVmanUpdateTask(this), new McuVmanUpdateTask(this, null), new CameraVmanUpdateTask(this, null), new IoboxVmanUpdateTask(this, null), new U3HUBVmanUpdateTask(this, null), new SensorBoxVmanUpdateTask(this, null), new MicVmanUpdateTask(this, null));
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    private void l(int i2) {
        com.seewo.ota.v.s.s.r0 f0Var = this.f1942b.get(Integer.valueOf(i2));
        if (f0Var == null) {
            switch (i2) {
                case R.id.upgrade_audio /* 2131296677 */:
                    f0Var = new com.seewo.ota.v.s.s.f0(this);
                    break;
                case R.id.upgrade_board_nfc /* 2131296678 */:
                    f0Var = new com.seewo.ota.v.s.s.y0(this);
                    break;
                case R.id.upgrade_camera /* 2131296679 */:
                    f0Var = new com.seewo.ota.v.s.s.j0(this);
                    break;
                case R.id.upgrade_camera_sdk /* 2131296680 */:
                    f0Var = new com.seewo.ota.v.s.s.i0(this);
                    break;
                case R.id.upgrade_display /* 2131296681 */:
                    f0Var = new com.seewo.ota.v.s.s.l0(this);
                    break;
                case R.id.upgrade_dth_typec /* 2131296682 */:
                    f0Var = new com.seewo.ota.v.s.s.m0(this);
                    break;
                case R.id.upgrade_elastic /* 2131296683 */:
                    new com.seewo.ota.v.s.s.n0(this);
                    f0Var = new com.seewo.ota.v.s.s.p0(this);
                    break;
                case R.id.upgrade_hdmi /* 2131296684 */:
                    f0Var = new com.seewo.ota.v.s.s.o0(this);
                    break;
                case R.id.upgrade_hub /* 2131296685 */:
                    f0Var = new com.seewo.ota.v.s.s.p0(this);
                    break;
                case R.id.upgrade_io_box /* 2131296686 */:
                    f0Var = new com.seewo.ota.v.s.s.s0(this);
                    break;
                case R.id.upgrade_isp /* 2131296687 */:
                    f0Var = new com.seewo.ota.v.s.s.g0(this);
                    break;
                case R.id.upgrade_loader /* 2131296688 */:
                    f0Var = new com.seewo.ota.v.s.s.t0(this);
                    break;
                case R.id.upgrade_mcu /* 2131296689 */:
                    f0Var = new com.seewo.ota.v.s.s.u0(this);
                    break;
                case R.id.upgrade_mic /* 2131296690 */:
                    f0Var = new com.seewo.ota.v.s.s.w0(this);
                    break;
                case R.id.upgrade_mic_for_an13 /* 2131296691 */:
                    f0Var = new com.seewo.ota.v.s.s.v0(this);
                    break;
                case R.id.upgrade_mic_ups /* 2131296692 */:
                    f0Var = new com.seewo.ota.v.s.s.x0(this, null);
                    break;
                case R.id.upgrade_nfc /* 2131296693 */:
                    f0Var = new com.seewo.ota.v.s.s.z0(this);
                    break;
                case R.id.upgrade_re_timer /* 2131296694 */:
                    f0Var = new com.seewo.ota.v.s.s.a1(this);
                    break;
                case R.id.upgrade_sensor_box /* 2131296695 */:
                    f0Var = new com.seewo.ota.v.s.s.b1(this);
                    break;
                case R.id.upgrade_touch /* 2131296700 */:
                    f0Var = new com.seewo.ota.v.s.s.c1(this);
                    break;
                case R.id.upgrade_touch_for_vman /* 2131296701 */:
                    f0Var = new TouchVmanUpdateTask(this);
                    break;
                case R.id.upgrade_typec /* 2131296702 */:
                    f0Var = new com.seewo.ota.v.s.s.g1(this);
                    break;
                case R.id.upgrade_typec_8711 /* 2131296703 */:
                    f0Var = new com.seewo.ota.v.s.s.e1(this);
                    break;
                case R.id.upgrade_typec_8711_3588 /* 2131296704 */:
                    f0Var = new com.seewo.ota.v.s.s.h1(this);
                    break;
                case R.id.upgrade_typec_8711_a1516 /* 2131296705 */:
                    f0Var = new com.seewo.ota.v.s.s.d1(this);
                    break;
                case R.id.upgrade_typec_8711_vman /* 2131296706 */:
                    f0Var = new TypeCVmanUpdateTask(this);
                    break;
                case R.id.upgrade_typec_9666 /* 2131296707 */:
                    f0Var = new com.seewo.ota.v.s.s.f1(this);
                    break;
                case R.id.upgrade_usb_hub /* 2131296708 */:
                    f0Var = new com.seewo.ota.v.s.s.j1(this);
                    break;
                case R.id.upgrade_vga /* 2131296709 */:
                    f0Var = new com.seewo.ota.v.s.s.k1(this);
                    break;
            }
            this.f1942b.put(Integer.valueOf(i2), f0Var);
        }
        if (f0Var == null || !f0Var.isNeedRun()) {
            return;
        }
        f0Var.run();
    }

    public /* synthetic */ void f(com.seewo.ota.v.s.s.r0 r0Var, View view) {
        k(r0Var);
    }

    public /* synthetic */ void g(String str) {
        String string = this.mLogTextView.getText().toString();
        this.mLogTextView.setText(string + "\n" + str);
        if (this.f1943f) {
            this.mLogScrollView.fullScroll(ICmdMsg.ACTION_WRITE_USER_NFC_CARD);
        }
    }

    public /* synthetic */ void h(View view, int i2, int i3, int i4, int i5) {
        this.f1943f = i3 >= this.f1944g;
        if (this.f1944g < i3) {
            this.f1944g = i3;
        }
    }

    public /* synthetic */ void i(View view) {
        startActivity(new Intent(this, (Class<?>) DialogTestActivity.class));
    }

    public /* synthetic */ void j(View view) {
        startActivity(new Intent(this, (Class<?>) MockActivity.class));
    }

    public void k(com.seewo.ota.v.s.s.r0 r0Var) {
        com.seewo.ota.k.f.e().b(r0Var.getName());
        if (r0Var.isNeedRun()) {
            r0Var.run();
        }
    }

    @Override // android.app.Activity
    public void onActivityResult(int i2, int i3, Intent intent) {
        super.onActivityResult(i2, i3, intent);
        if (i3 != -1 || intent == null) {
            return;
        }
        Uri data = intent.getData();
        String path = "";
        if (data != null) {
            if (DocumentsContract.isDocumentUri(this, data)) {
                Cursor cursorQuery = getContentResolver().query(MediaStore.Files.getContentUri("external"), null, "_id=?", new String[]{DocumentsContract.getDocumentId(data).split(":")[1]}, null);
                if (cursorQuery != null && cursorQuery.moveToFirst()) {
                    path = cursorQuery.getString(cursorQuery.getColumnIndexOrThrow("_data"));
                    cursorQuery.close();
                }
            } else {
                path = data.getPath();
            }
            Log.d("OTATestActivity", "select file path: " + path);
        }
        switch (i2) {
            case R.id.upgrade_sensor_box_by_file /* 2131296696 */:
                sendBroadcast(new Intent("com.seewo.ota.ACTION_UPDATE_SENSOR_BOX").putExtra("file_path", path));
                break;
            case R.id.upgrade_system_ota /* 2131296697 */:
                com.seewo.ota.v.p.r().G(new File(path));
                break;
        }
    }

    @OnClick({R.id.all_device_upgrade})
    public void onAllDeviceClick(View view) {
        if (this.f1945h == null) {
            com.seewo.ota.v.s.o oVar = new com.seewo.ota.v.s.o(this);
            this.f1945h = oVar;
            oVar.w(com.seewo.ota.v.s.q.d.f2435b);
        }
        this.f1945h.F();
    }

    @OnClick({R.id.upgrade_audio})
    @com.seewo.ota.k.e("@AudioUpdateTask|DeviceUpdateManager")
    public void onAudioClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(C, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.back})
    public void onBackClick(View view) {
        finish();
    }

    @OnClick({R.id.upgrade_camera})
    @com.seewo.ota.k.e("CameraUpdateTask|DeviceUpdateManager|UpsHelper")
    public void onCameraClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(G, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_camera_sdk})
    @com.seewo.ota.k.e("CameraSDKUpdateTask|DeviceUpdateManager|getPidVid")
    public void onCameraSdkClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(H, this, this, view));
        l(view.getId());
    }

    @Override // android.app.Activity
    @com.seewo.ota.k.e("OTATestActivity")
    @com.seewo.ota.k.d(true)
    protected void onCreate(Bundle bundle) {
        i.a.a.a aVarC = i.a.b.b.b.c(f1939i, this, this, bundle);
        com.seewo.ota.k.g.b().d(aVarC);
        try {
            super.onCreate(bundle);
            setContentView(R.layout.activity_ota_test);
            ButterKnife.bind(this);
            com.seewo.ota.k.f.e().l(new f.b() { // from class: com.seewo.ota.activity.f0
                @Override // com.seewo.ota.k.f.b
                public final void a(String str) {
                    this.a.g(str);
                }
            });
            this.mLogScrollView.setOnScrollChangeListener(new View.OnScrollChangeListener() { // from class: com.seewo.ota.activity.d0
                @Override // android.view.View.OnScrollChangeListener
                public final void onScrollChange(View view, int i2, int i3, int i4, int i5) {
                    this.a.h(view, i2, i3, i4, i5);
                }
            });
            this.mShowAllLogText.setText("ShowAllLog(pid:" + Process.myPid() + ")");
            this.mShowAllLogSwitch.setChecked(com.seewo.ota.k.f.e().g());
            this.next.setOnClickListener(new View.OnClickListener() { // from class: com.seewo.ota.activity.g0
                @Override // android.view.View.OnClickListener
                public final void onClick(View view) {
                    this.f2026b.i(view);
                }
            });
            this.mock.setOnClickListener(new View.OnClickListener() { // from class: com.seewo.ota.activity.c0
                @Override // android.view.View.OnClickListener
                public final void onClick(View view) {
                    this.f2006b.j(view);
                }
            });
            e();
            d.e.g.a.o().l(this);
            Log.d("OTATestActivity", "ready");
        } finally {
            com.seewo.ota.k.g.b().c(aVarC);
        }
    }

    @Override // android.app.Activity
    @com.seewo.ota.k.d(BuildConfig.DEBUG)
    protected void onDestroy() {
        i.a.a.a aVarB = i.a.b.b.b.b(f1940j, this, this);
        try {
            super.onDestroy();
            if (this.f1945h != null) {
                this.f1945h.M(com.seewo.ota.v.s.q.d.f2435b);
            }
        } finally {
            com.seewo.ota.k.g.b().c(aVarB);
        }
    }

    @OnClick({R.id.upgrade_display})
    @com.seewo.ota.k.e("@DisplayUpdateTask|DeviceUpdateManager")
    public void onDisplayClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(A, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_dth_typec})
    @com.seewo.ota.k.e("@DthTypeCUpdateTask|DeviceUpdateManager")
    public void onDthTypeCClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(F, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_elastic})
    @com.seewo.ota.k.e("ElasticWaveUpdateTask|DeviceUpdateManager")
    public void onElasticClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(J, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_hdmi})
    @com.seewo.ota.k.e("HdmiUpdateTask|DeviceUpdateManager")
    public void onHdmiClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(I, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_hub})
    @com.seewo.ota.k.e("HubUpdateTask|DeviceUpdateManager")
    public void onHubClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(K, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_io_box})
    @com.seewo.ota.k.e("@IOBoxUpdateTask|DeviceUpdateManager")
    public void onIOBoxClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(B, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_mcu})
    @com.seewo.ota.k.e("@McuUpdateTask|DeviceUpdateManager")
    public void onMcuClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(l, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_mic})
    @com.seewo.ota.k.e("@MicUpdateTask|DeviceUpdateManager")
    public void onMicClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(x, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_mic_for_an13})
    @com.seewo.ota.k.e("MicAn13UpdateTask|DeviceUpdateManager")
    public void onMicForAn13Click(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(y, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_mic_ups})
    @com.seewo.ota.k.e("MicUpsUpdateTask|DeviceUpdateManager")
    public void onMicUpsClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(z, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_board_nfc})
    @com.seewo.ota.k.e("@NfcBoardUpdateTask|DeviceUpdateManager")
    public void onNfcBoardClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(s, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_nfc})
    @com.seewo.ota.k.e("@NfcUpdateTask|DeviceUpdateManager")
    public void onNfcClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(r, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_re_timer})
    @com.seewo.ota.k.e("@RetimerUpdateTask|DeviceUpdateManager")
    public void onReTimerClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(E, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_sensor_box_by_file})
    @com.seewo.ota.k.e("@SensorBoxUpdateTask|DeviceUpdateManager|OTARefreshService")
    public void onSensorBoxByFileClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(L, this, this, view));
        startService(new Intent(this, (Class<?>) OTARefreshService.class));
        startActivityForResult(new Intent(d("*/*")), R.id.upgrade_sensor_box_by_file);
    }

    @OnClick({R.id.upgrade_sensor_box})
    @com.seewo.ota.k.e("@SensorBoxUpdateTask|DeviceUpdateManager")
    public void onSensorBoxClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(f1941k, this, this, view));
        l(view.getId());
    }

    @OnCheckedChanged({R.id.showAllLog})
    public void onShowAllLogCheckedChanged(CompoundButton compoundButton, boolean z2) {
        com.seewo.ota.k.f.e().o(z2);
    }

    @OnClick({R.id.upgrade_touch})
    @com.seewo.ota.k.e("@TouchUpdateTask|DeviceUpdateManager")
    public void onTouchClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(m, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_touch_for_vman})
    @com.seewo.ota.k.e("TouchVmanUpdateTask|DeviceUpdateManager｜UpgradeExt")
    public void onTouchForVmanClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(n, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec_8711_a1516})
    @com.seewo.ota.k.e("@TypeC8711UpdateTask2|DeviceUpdateManager")
    public void onTypeC8711A1516Click(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(t, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec_8711})
    @com.seewo.ota.k.e("@TypeC8711updateTask|DeviceUpdateManager")
    public void onTypeC8711Click(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(q, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec_8711_vman})
    @com.seewo.ota.k.e("TypeCVmanUpdateTask|DeviceUpdateManager")
    public void onTypeC8711VmanClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(v, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec_8711_3588})
    @com.seewo.ota.k.e("TypeCVman3588UpdateTask|DeviceUpdateManager|UpgradeExt")
    public void onTypeC8711_3588Click(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(w, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec_9666})
    @com.seewo.ota.k.e("TypeC9666UpdateTask|DeviceUpdateManager")
    public void onTypeC9666Click(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(u, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_typec})
    @com.seewo.ota.k.e("@TypeCUpdateTask|DeviceUpdateManager")
    public void onTypeCClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(p, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_loader})
    @com.seewo.ota.k.e("@LoaderUpdateTask|DeviceUpdateManager")
    public void onUBootClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(D, this, this, view));
        l(view.getId());
    }

    @OnClick({R.id.upgrade_isp})
    public void onUpgradeIsp(View view) {
        l(view.getId());
    }

    @OnClick({R.id.upgrade_system_ota})
    public void onUpgradeSystemOta(View view) {
        startActivityForResult(new Intent(d("application/zip")), R.id.upgrade_system_ota);
    }

    @OnClick({R.id.upgrade_vga})
    public void onUpgradeVga(View view) {
        l(view.getId());
    }

    @OnClick({R.id.upgrade_usb_hub})
    @com.seewo.ota.k.e("@UsbHubUpdateTask|DeviceUpdateManager")
    public void onUsbHubClick(View view) {
        com.seewo.ota.k.g.b().d(i.a.b.b.b.c(o, this, this, view));
        l(view.getId());
    }
}
