百度手机卫士 v8.6.2版本的 MD5 值为:fa60cb367e40201705a2d9f9ce2cbfdf

以下内容为反编译后的 QuickHelperFloatWindow.java 源代码,内容仅作参考


package com.dianxinos.optimizer.floatwindow;

import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.text.Html;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.baidu.mobads.interfaces.utils.IXAdIOUtils;
import com.baidu.security.plugin.alarm.AlarmUtil;
import com.dianxinos.optimizer.base.ICommandActivity;
import dxoptimizer.asa;
import dxoptimizer.asc;
import dxoptimizer.asd;
import dxoptimizer.ava;
import dxoptimizer.awv;
import dxoptimizer.aww;
import dxoptimizer.blh;
import dxoptimizer.bli;
import dxoptimizer.blu;
import dxoptimizer.blv;
import dxoptimizer.blw;
import dxoptimizer.bly;
import dxoptimizer.blz;
import dxoptimizer.bma;
import dxoptimizer.bmg;
import dxoptimizer.bnv;
import dxoptimizer.fxx;
import dxoptimizer.hey;
import dxoptimizer.hnw;
import dxoptimizer.hvr;
import dxoptimizer.hvu;
import dxoptimizer.hyt;
import dxoptimizer.hyv;
import dxoptimizer.hyw;
import dxoptimizer.hzc;
import dxoptimizer.ikn;
import dxoptimizer.ikp;
import dxoptimizer.ilg;
import dxoptimizer.iml;

public class QuickHelperFloatWindow extends Service implements View.OnTouchListener, asd, aww {
    private static final Long a = 5000L;
    private static final Long b = 30000L;
    private static final Long c = 600L;
    private static final Long d = 150L;
    private static final Long e = 2200L;
    private float A;
    private float B;
    private float C;
    private boolean O;
    private Intent P;
    private MotionEvent R;
    private Point S;
    private asa T;
    private bli U;
    private WindowManager f;
    private WindowManager.LayoutParams g;
    private RelativeLayout h;
    private bmg i;
    private View j;
    private View k;
    private View l;
    private View m;
    private DisplayMetrics n;
    private ImageView o;
    private ProgressBar p;
    private ImageView q;
    private TextView r;
    private TextView s;
    private TextView t;
    private int v;
    private int w;
    private int x;
    private float y;
    private float z;
    private int u = 0;
    private boolean D = false;
    private boolean E = true;
    private boolean F = false;
    private boolean G = false;
    private boolean H = false;
    private boolean I = false;
    private boolean J = false;
    private boolean K = false;
    private boolean L = true;
    private boolean M = false;
    private boolean N = false;
    private Handler Q = new awv(this);
    private float[] V = {0.0f, 0.0f};
    private BroadcastReceiver W = new blu(this);

    public static void a(Context context) {
        Intent intent = new Intent(context, (Class<?>) QuickHelperFloatWindow.class);
        if (hnw.v(context)) {
            context.startService(intent);
        } else {
            context.stopService(intent);
        }
    }

    @Override
    public int onStartCommand(Intent intent, int i, int i2) {
        if (hnw.v(this)) {
            if (!hnw.w(this)) {
                a((Context) this, false);
                m();
            }
            if (intent != null) {
                if (hyw.a(intent, "extra.fw_is_only_home", true)) {
                    r();
                } else {
                    a((Context) this, false);
                    m();
                }
            }
        } else {
            r();
        }
        this.H = false;
        D();
        return super.onStartCommand(intent, i, i2);
    }

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        this.f = (WindowManager) getSystemService("window");
        this.g = new WindowManager.LayoutParams(-2, -2, 2003, 8, -2);
        this.g.gravity = 51;
        this.G = l();
        this.y = ViewConfiguration.get(this).getScaledTouchSlop();
        this.w = this.f.getDefaultDisplay().getWidth();
        this.n = new DisplayMetrics();
        this.f.getDefaultDisplay().getMetrics(this.n);
        this.O = 120 == hvu.a(this);
        this.M = a();
        f();
        if (this.T == null) {
            this.T = asa.a((Context) this);
            this.T.a((asd) this);
        }
    }

    @Override
    public void onDestroy() {
        this.H = true;
        D();
        super.onDestroy();
        n();
        r();
        if (this.T != null) {
            this.T.b(this);
            this.T = null;
        }
    }

    @Override
    public void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        this.w = this.f.getDefaultDisplay().getWidth();
        this.G = l();
        if (this.g.x != 0) {
            this.g.x = this.w - this.h.getWidth();
            b(this.g.x, this.g.y);
        }
    }

    @Override
    public void a(asc ascVar) {
        bma.c((Context) this, ascVar.a);
    }

    private void f() {
        this.h = (RelativeLayout) LayoutInflater.from(this).inflate(R.layout.jadx_deobf_0x00000a2d, (ViewGroup) null);
        o();
        this.k = this.h.findViewById(R.id.jadx_deobf_0x0000198c);
        this.j = this.h.findViewById(R.id.jadx_deobf_0x0000198d);
        this.l = this.h.findViewById(R.id.jadx_deobf_0x00001988);
        this.m = this.h.findViewById(R.id.jadx_deobf_0x0000198a);
        this.s = (TextView) this.h.findViewById(R.id.jadx_deobf_0x00001989);
        this.t = (TextView) this.h.findViewById(R.id.jadx_deobf_0x0000198b);
        this.p = (ProgressBar) this.h.findViewById(R.id.jadx_deobf_0x00001990);
        this.o = (ImageView) this.h.findViewById(R.id.jadx_deobf_0x0000198e);
        this.q = (ImageView) this.h.findViewById(R.id.jadx_deobf_0x00001991);
        this.r = (TextView) this.h.findViewById(R.id.jadx_deobf_0x0000198f);
        this.z = getResources().getDimension(R.dimen.jadx_deobf_0x00000cab);
        this.A = getResources().getDimension(R.dimen.jadx_deobf_0x00000caa);
        this.h.setOnTouchListener(this);
        q();
    }

    @Override
    public boolean onTouch(View view, MotionEvent motionEvent) {
        if (this.N) {
            return false;
        }
        int action = motionEvent.getAction();
        if (this.U != null) {
            this.U.a(motionEvent);
        }
        fxx.a(this).a();
        switch (action) {
            case 0:
                if (!this.M && !this.D) {
                    this.V[0] = motionEvent.getX();
                    this.V[1] = motionEvent.getY();
                    this.B = iml.d(this.k);
                    this.C = iml.e(this.k);
                }
                this.K = true;
                this.R = motionEvent;
                this.S = hnw.x(this);
                return true;
            case 1:
                this.L = true;
                if (this.K) {
                    if (hnw.w(this) && this.G) {
                        return true;
                    }
                    g();
                    hzc.a(this);
                    hzc.a("fw", "fwcfw", (Number) 1);
                }
                return true;
            case 2:
                if (!a(this.h, motionEvent.getX(), motionEvent.getY())) {
                    if (bma.f(getApplicationContext()) && getResources().getConfiguration().orientation == 1 && !this.I) {
                        j();
                    }
                    this.K = false;
                    if (((int) (motionEvent.getRawX() - this.V[0])) + (this.k.getWidth() / 2) < this.w / 2) {
                        this.E = true;
                    } else {
                        this.E = false;
                    }
                    b((int) (motionEvent.getRawX() - this.V[0]), (int) (motionEvent.getRawY() - this.V[1]));
                    bma.q(this);
                    if (this.L) {
                        this.L = false;
                        Context applicationContext = getApplicationContext();
                        hzc.a(applicationContext);
                        hzc.a("fw", "fwm", (Number) 1);
                        hzc.a(applicationContext);
                        hzc.a("fw", "fwu", (Number) 1);
                    }
                }
                return true;
            case 3:
                this.K = false;
                this.L = true;
                if (this.K) {
                }
                return true;
            default:
                return true;
        }
    }

    private void g() {
        this.q.clearAnimation();
        this.j.clearAnimation();
        if (!this.D || this.M) {
            u();
            return;
        }
        if (this.D) {
            if (this.u == 6) {
                String d2 = bma.d(this);
                if (!TextUtils.isEmpty(d2) && !d2.equals("--")) {
                    hyt.a(this, getString(R.string.jadx_deobf_0x00002401, new Object[]{d2}), "https://m.baidu.com/from=1010888r/s?word=" + getString(R.string.jadx_deobf_0x00002401, new Object[]{d2}), true);
                } else {
                    u();
                }
                hzc.a(this);
                hzc.a("fw", "fw_wbc", (Number) 1);
                return;
            }
            if (this.u == 9) {
                u();
                hzc.a(this);
                hzc.a("fw", "ack" + this.u, (Number) 1);
            } else {
                if (this.P != null) {
                    if (this.u == 2 && 3 != bnv.a(this)) {
                        Message.obtain(this.Q, 9, false).sendToTarget();
                    }
                    a(this.P);
                    return;
                }
                this.F = true;
                this.Q.sendEmptyMessage(2);
            }
        }
    }

    private void h() {
        if (this.I) {
            k();
        }
        if (this.M) {
            A();
        }
    }

    private void a(int i, int i2) {
        int i3;
        int width = this.k.getWidth();
        if ((width / 2) + i < this.w / 2) {
            this.E = true;
            i3 = 0;
        } else {
            i3 = this.w - width;
            this.E = false;
        }
        b(i3, i2);
        this.h.setVisibility(0);
        hnw.a(this, i3, i2);
    }

    public void i() {
        if (this.h != null && this.g != null) {
            int width = this.k.getWidth();
            if (this.g.x + (width / 2) < this.w / 2) {
                this.g.x = 0;
            } else {
                this.g.x = this.w - width;
            }
        }
    }

    private void j() {
        this.I = true;
        this.U = new bli(this);
        this.U.a(this.Q);
        this.U.a(this.B, this.C);
    }

    private void k() {
        this.I = false;
        this.U = null;
    }

    private boolean l() {
        return getResources().getConfiguration().orientation == 2;
    }

    private void m() {
        this.Q.sendEmptyMessage(12);
    }

    private void n() {
        this.Q.removeMessages(12);
    }

    private void o() {
        Point x = hnw.x(this);
        if (x.x == 0) {
            this.g.x = x.x;
        } else {
            this.g.x = this.w - this.h.getWidth();
        }
        this.g.y = x.y;
        hnw.a(this, x.x, x.y);
    }

    private static int p() {
        int[] a2 = hvr.a();
        return (int) ((((a2[1] - a2[0]) * 1.0f) / a2[1]) * 100.0f);
    }

    private void q() {
        int p = p();
        this.r.setText(String.valueOf(p));
        if (p >= 85) {
            this.o.setBackgroundResource(R.drawable.jadx_deobf_0x000006a9);
        } else {
            this.o.setBackgroundResource(R.drawable.jadx_deobf_0x000006aa);
        }
    }

    private void a(Context context, boolean z) {
        hey.a(this, this.Q);
        if (!this.F) {
            this.E = this.g.x == 0;
            s();
            this.j.clearAnimation();
            this.q.clearAnimation();
            this.j.setVisibility(8);
            this.q.setVisibility(0);
            this.k.setVisibility(0);
            if (!z) {
                t();
            } else {
                this.u = blh.a(context);
                if (this.u == 5) {
                    this.Q.sendEmptyMessage(11);
                    t();
                } else if (this.u != 0 && !this.O) {
                    this.q.clearAnimation();
                    this.l.clearAnimation();
                    this.m.clearAnimation();
                    if (this.u == 6) {
                        if (this.x > 50) {
                            a(this.u);
                            hzc.a(this);
                            hzc.a("fw", "fw_wbs", (Number) 1);
                        } else {
                            t();
                        }
                    } else {
                        a(this.u);
                        hzc.a(context);
                        hzc.a("fw", "as" + this.u, (Number) 1);
                    }
                    this.P = blh.a(this.u, context);
                } else {
                    t();
                }
            }
            this.F = true;
            return;
        }
        if (z) {
            this.u = blh.a(context);
            if (this.u == 5) {
                this.Q.sendEmptyMessage(11);
                return;
            }
            if (this.u != 0 && !this.O) {
                this.q.clearAnimation();
                this.l.clearAnimation();
                this.m.clearAnimation();
                if (this.u == 6) {
                    if (this.x > 50) {
                        a(this.u);
                        hzc.a(context);
                        hzc.a("fw", "fw_wbs", (Number) 1);
                    } else {
                        this.m.setVisibility(8);
                        this.l.setVisibility(8);
                        this.p.setVisibility(8);
                        this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
                        this.q.setBackgroundResource(android.R.color.transparent);
                        t();
                    }
                } else {
                    a(this.u);
                    hzc.a(context);
                    hzc.a("fw", "as" + this.u, (Number) 1);
                }
                this.P = blh.a(this.u, context);
                return;
            }
            this.m.clearAnimation();
            this.m.setVisibility(8);
            this.l.clearAnimation();
            this.l.setVisibility(8);
            this.p.setVisibility(8);
            this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
            this.q.setBackgroundResource(android.R.color.transparent);
            t();
        }
    }

    private void r() {
        if (this.F) {
            try {
                this.f.removeView(this.h);
            } catch (Exception e2) {
            }
            this.F = false;
        }
    }

    private void s() {
        try {
            this.f.addView(this.h, this.g);
        } catch (Exception e2) {
        }
    }

    private boolean a(View view, float f, float f2) {
        return f >= (-this.y) && f2 >= (-this.y) && f < ((float) (view.getRight() - view.getLeft())) + this.y && f2 < ((float) (view.getBottom() - view.getTop())) + this.y;
    }

    private void b(int i, int i2) {
        if (this.v == 0) {
            View rootView = this.h.getRootView();
            Rect rect = new Rect();
            rootView.getWindowVisibleDisplayFrame(rect);
            this.v = rect.top;
        }
        this.g.x = i;
        this.g.y = i2 - this.v;
        if (this.F) {
            q();
            try {
                this.f.updateViewLayout(this.h, this.g);
            } catch (Exception e2) {
            }
        }
    }

    private void t() {
        if (!this.D) {
            ImageView imageView = this.q;
            View view = this.j;
            this.j.clearAnimation();
            this.q.clearAnimation();
            this.j.setVisibility(8);
            this.q.setVisibility(0);
            this.p.setVisibility(8);
            this.l.setVisibility(8);
            this.m.setVisibility(8);
            float f = this.z / 2.0f;
            float f2 = this.A / 2.0f;
            ava avaVar = new ava(0.0f, 90.0f, f, f2, 0.0f, true);
            avaVar.setDuration(800L);
            avaVar.setFillAfter(true);
            avaVar.setInterpolator(new AccelerateInterpolator());
            ava avaVar2 = new ava(-90.0f, 0.0f, f, f2, 0.0f, false);
            avaVar2.cancel();
            avaVar2.reset();
            avaVar2.setDuration(800L);
            avaVar2.setFillAfter(true);
            avaVar2.setInterpolator(new DecelerateInterpolator());
            avaVar.setAnimationListener(new blv(this, imageView, view, avaVar2));
            imageView.startAnimation(avaVar);
        }
    }

    private void u() {
        try {
            C();
            if (this.i == null) {
                this.i = new bmg(this, this.f, this.Q);
            }
            this.i.a();
            this.J = true;
            hzc.a(this);
            hzc.a("fw", "fwc", (Number) 1);
            hzc.a(this);
            hzc.a("fw", "fwu", (Number) 1);
        } catch (Exception e2) {
            this.Q.obtainMessage(1, true).sendToTarget();
        }
    }

    private void a(int i) {
        this.D = true;
        this.h.setGravity(this.E ? 3 : 5);
        View view = this.E ? this.l : this.m;
        View view2 = this.E ? this.m : this.l;
        view2.clearAnimation();
        view.clearAnimation();
        view.setVisibility(0);
        view2.setVisibility(8);
        view.setOnTouchListener(this);
        view.setBackgroundResource(R.drawable.jadx_deobf_0x000006a8);
        TextView textView = this.E ? this.s : this.t;
        textView.setTextColor(getResources().getColor(R.color.jadx_deobf_0x00000efd));
        switch (i) {
            case 2:
                textView.setText(Html.fromHtml(getResources().getString(R.string.jadx_deobf_0x00002405)));
                this.q.setImageResource(R.drawable.jadx_deobf_0x000004cf);
                this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006ab);
                break;
            case 3:
                textView.setText(Html.fromHtml(getResources().getString(R.string.jadx_deobf_0x0000240a)));
                this.q.setImageResource(R.drawable.jadx_deobf_0x000004d8);
                this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006b0);
                break;
            case 4:
                textView.setText(Html.fromHtml(getResources().getString(R.string.jadx_deobf_0x00002408)));
                this.q.setImageResource(R.drawable.jadx_deobf_0x000004d1);
                this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006ab);
                break;
            case 6:
                if (this.x > 250) {
                    textView.setText(R.string.jadx_deobf_0x000023fe);
                    this.q.setImageResource(R.drawable.jadx_deobf_0x000004d3);
                    this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006ab);
                } else if (this.x > 150) {
                    textView.setText(R.string.jadx_deobf_0x00002400);
                    this.q.setImageResource(R.drawable.jadx_deobf_0x000004d3);
                    this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006ad);
                } else if (this.x > 50) {
                    textView.setText(R.string.jadx_deobf_0x000023ff);
                    this.q.setImageResource(R.drawable.jadx_deobf_0x000004d3);
                    this.q.setBackgroundResource(R.drawable.jadx_deobf_0x000006ac);
                }
                view.setPadding(0, 0, 0, 0);
                break;
            case 8:
                textView.setText(R.string.jadx_deobf_0x00002404);
                this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
                this.q.setBackgroundResource(android.R.color.transparent);
                break;
            case 9:
                textView.setText(R.string.jadx_deobf_0x00002403);
                this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
                this.q.setBackgroundResource(android.R.color.transparent);
                bma.z(this);
                break;
        }
        x();
        if (i == 8) {
            hzc.a(this);
            hzc.a("fw", "nfsfws", (Number) 1);
        }
    }

    public ikp a(View view, int i, long j) {
        ikp ikpVar = new ikp();
        ikpVar.a(ilg.a(view, "x", iml.d(view) - i, iml.d(view)).b(j), ilg.a(view, "alpha", 0.0f, 1.0f).b(j));
        view.setVisibility(0);
        return ikpVar;
    }

    private boolean v() {
        long currentTimeMillis = System.currentTimeMillis();
        if (currentTimeMillis - bma.c(this) > 3600000) {
            return false;
        }
        return currentTimeMillis - bma.a(this) < 3600000;
    }

    private void a(Intent intent) {
        if (this.u == 2) {
            if (hyw.a(intent, "is_phone_acc", false)) {
                bma.g(this, System.currentTimeMillis());
                w();
            } else {
                startActivity(intent);
            }
        } else {
            startActivity(intent);
        }
        hzc.a(this);
        hzc.a("fw", "ack" + this.u, (Number) 1);
    }

    private void w() {
        this.N = true;
        this.l.setVisibility(8);
        this.m.setVisibility(8);
        this.q.setVisibility(4);
        this.p.setVisibility(0);
        new blw(this).start();
    }

    public void b(int i) {
        Message obtain = Message.obtain();
        obtain.arg1 = i;
        obtain.what = 10;
        this.Q.sendMessageDelayed(obtain, e.longValue());
    }

    private void c(int i) {
        this.h.setGravity(this.E ? 3 : 5);
        View view = this.E ? this.l : this.m;
        View view2 = this.E ? this.m : this.l;
        TextView textView = this.E ? this.s : this.t;
        view.clearAnimation();
        view2.clearAnimation();
        view.setVisibility(0);
        view2.setVisibility(8);
        view.setBackgroundResource(R.drawable.jadx_deobf_0x000006a8);
        view.setOnTouchListener(null);
        this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
        this.q.setBackgroundResource(android.R.color.transparent);
        textView.setTextColor(getResources().getColor(R.color.jadx_deobf_0x00000efd));
        this.q.setVisibility(0);
        int d2 = d(i);
        if (d2 > 0) {
            textView.setText(getString(R.string.jadx_deobf_0x00002406, new Object[]{String.valueOf(d2)}) + "%");
        } else if (d2 == 0) {
            textView.setText(getString(R.string.jadx_deobf_0x00002407));
        }
        x();
    }

    private int d(int i) {
        int i2 = IXAdIOUtils.BUFFER_SIZE;
        if (hvr.a().length > 0) {
            int i3 = hvr.a()[0];
            if (i3 < i) {
                i3 = i;
            }
            int i4 = i3 - i;
            if (i4 <= 0) {
                return 0;
            }
            if (i4 >= 1024) {
                i2 = i4;
            }
            if (hvr.a()[1] != 0) {
                return (i2 * 100) / hvr.a()[1];
            }
        }
        return 0;
    }

    private void x() {
        z().a();
    }

    private void y() {
        b(this.E ? this.l : this.m, this.E ? 100 : -100, 500L).a();
    }

    private ikp z() {
        ikp a2 = a(this.E ? this.l : this.m, this.E ? 100 : -100, c.longValue());
        a2.a((ikn) new bly(this));
        return a2;
    }

    private ikp b(View view, int i, long j) {
        ikp ikpVar = new ikp();
        float d2 = iml.d(view) - i;
        ikpVar.a(ilg.a(view, "x", i + d2, d2).b(j), ilg.a(view, "alpha", 1.0f, 0.0f).b(j));
        ikpVar.a((ikn) new blz(this));
        return ikpVar;
    }

    private void A() {
        this.M = a();
    }

    public boolean a() {
        return bma.m(this) || (bma.o(this) > 0 && bma.p(this) && System.currentTimeMillis() - bma.o(this) >= AlarmUtil.DAY);
    }

    private void B() {
        this.D = false;
        this.l.clearAnimation();
        this.l.setVisibility(8);
        this.m.clearAnimation();
        this.m.setVisibility(8);
    }

    private void C() {
        n();
        r();
        B();
    }

    private void D() {
        try {
            if (hnw.v(this)) {
                IntentFilter intentFilter = new IntentFilter();
                intentFilter.addAction("com.dianxinos.optimizer.action.ENTER_HOME");
                intentFilter.addAction("com.dianxinos.optimizer.action.EXIT_HOME");
                intentFilter.addAction("com.dianxinos.optimizer.action.UPDATE_QUICK_HELPER_WINDOW_VISIBILITY");
                intentFilter.addAction("android.intent.action.CLOSE_SYSTEM_DIALOGS");
                hyv.a(this, this.W, intentFilter);
            } else {
                unregisterReceiver(this.W);
            }
        } catch (Exception e2) {
        }
    }

    public void E() {
        this.N = false;
        this.D = false;
        this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
        this.q.setBackgroundResource(android.R.color.transparent);
    }

    public void F() {
        if (this.i != null) {
            this.i.f();
            this.J = false;
            this.i = null;
        }
    }

    @Override
    public void handleMessage(Message message) {
        int i;
        int i2;
        if (!this.H) {
            switch (message.what) {
                case 1:
                    if (hnw.v(this)) {
                        i();
                        a((Context) this, ((Boolean) message.obj).booleanValue());
                        m();
                        return;
                    }
                    return;
                case 2:
                    this.N = false;
                    this.q.setImageResource(R.drawable.jadx_deobf_0x000004d2);
                    this.q.setBackgroundResource(android.R.color.transparent);
                    this.p.setVisibility(8);
                    B();
                    i();
                    try {
                        this.f.updateViewLayout(this.h, this.g);
                        return;
                    } catch (Exception e2) {
                        return;
                    }
                case 3:
                    F();
                    if (hnw.w(this)) {
                        C();
                    } else {
                        C();
                        this.Q.obtainMessage(1, false).sendToTarget();
                    }
                    if (this.M) {
                        A();
                        return;
                    }
                    return;
                case 4:
                    this.k.setVisibility(0);
                    return;
                case 5:
                    MotionEvent motionEvent = (MotionEvent) message.obj;
                    int rawX = (int) (motionEvent.getRawX() - this.R.getX());
                    int rawY = (int) (motionEvent.getRawY() - this.R.getY());
                    h();
                    a(rawX, rawY);
                    return;
                case 6:
                    this.h.setVisibility(4);
                    return;
                case 7:
                    if (this.S != null) {
                        i = this.S.x;
                        i2 = this.S.y;
                    } else {
                        i = this.g.x;
                        i2 = this.g.y;
                    }
                    h();
                    a(i, i2);
                    return;
                case 9:
                    i();
                    if (((Boolean) message.obj).booleanValue()) {
                        y();
                    } else {
                        this.h.setVisibility(0);
                        if (this.E) {
                            this.g.x = 0;
                            this.l.clearAnimation();
                            this.l.setVisibility(8);
                            iml.k(this.l, 0.0f);
                        } else {
                            this.g.x = this.w;
                            this.m.clearAnimation();
                            this.m.setVisibility(8);
                            iml.k(this.m, 0.0f);
                        }
                        this.Q.sendEmptyMessageDelayed(2, b.longValue());
                    }
                    if (this.u == 6) {
                        hzc.a(this);
                        hzc.a("fw", "fw_wbf", (Number) 1);
                        return;
                    } else {
                        if (this.u != 0) {
                            hzc.a(this);
                            hzc.a("fw", "acs" + this.u, (Number) 1);
                            return;
                        }
                        return;
                    }
                case 10:
                    this.p.setVisibility(8);
                    this.q.setVisibility(0);
                    c(message.arg1);
                    return;
                case 11:
                    Intent intent = new Intent(this, (Class<?>) ICommandActivity.class);
                    intent.putExtra("extra.from", 4);
                    intent.addFlags(335544320);
                    startActivity(intent);
                    return;
                case 12:
                    this.Q.removeMessages(12);
                    q();
                    this.Q.sendEmptyMessageDelayed(12, 5000L);
                    return;
                case 13:
                    F();
                    return;
                case 1000:
                    String e3 = bma.e(this);
                    if (v() && !e3.equals("--") && !TextUtils.isEmpty(e3)) {
                        this.x = Integer.valueOf(e3).intValue();
                        return;
                    }
                    return;
                default:
                    return;
            }
        }
    }
}