ZNDS智能电视网 推荐当贝市场

TV应用下载 / 资源分享区

软件下载 | 游戏 | 讨论 | 电视计算器

综合交流 / 评测 / 活动区

交流区 | 测硬件 | 网站活动 | Z币中心

新手入门 / 进阶 / 社区互助

新手 | 你问我答 | 免费刷机救砖 | ROM固件

查看: 17647|回复: 1
上一主题 下一主题
[讨论&交流]

CHIQ 55Q3T里找到这样一段代码,大家来研究一下啊!!!

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-17 12:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式 | 来自广西
package com.vwidget.vinterface;
import android.content.ComponentName;

CHIQ 55Q3T里找到这样一段代码,大家来研究一下啊!!!
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.Animation;
import com.changhong.softkeyboard.CHSoftKeyboardManager;
import com.vwidget.anmi.DownforRadioAnimation;
import com.vwidget.anmi.SlideCollpaseAnimation;
import com.vwidget.anmi.SlideExpandAnimation;
import com.vwidget.anmi.UpforRadioAnimation;
import com.vwidget.ui.VSetting;
import java.util.ArrayList;
class ThemeModeSet$2
  implements VRadioGroup.OnVRadioGroupListener
{
  ThemeModeSet$2(ThemeModeSet paramThemeModeSet) {}
  
  public void onCheckedChange(int paramInt) {}
  
  public void onClick(int paramInt) {}
  
  public boolean onKey(int paramInt1, KeyEvent paramKeyEvent, int paramInt2)
  {
    Object localObject = new String[10];
    localObject[0] = "ATV";
    localObject[1] = "AV";
    localObject[2] = "VGA";
    localObject[3] = "HDMI";
    localObject[4] = "HDMI2";
    localObject[5] = "HDMI3";
    localObject[6] = "HDMI4";
    localObject[7] = "USB";
    localObject[8] = "DTV";
    localObject[9] = "YPBPR";
    if (((ThemeModeSet.access$3(this.this$0) == 444) && (this.this$0.isCurrentSourceATV())) || (ThemeModeSet.access$3(this.this$0) == 444)) {
      this.this$0.Sourceid = localObject[7];
    }
    for (;;)
    {
      if ((paramInt1 == 23) && (paramKeyEvent.getAction() == 0))
      {
        VSetting.isDownUp = true;
        ThemeModeSet.access$4(this.this$0, paramInt2);
        this.this$0.mymode.refreshCheck(-1);
        localObject = (String)ThemeModeSet.access$5(this.this$0).get(((Integer)this.this$0.themes.get(paramInt2)).intValue());
        Log.d("CH_ER_COLLECT", "reportType:normal|saveType:append|sort:设置行为|subClass:极简设置|reportInfo:menu=" + this.this$0.Sourceid + ";item1=情景模式;value=" + (String)localObject);
        ThemeModeSet.access$7(this.this$0, ((Integer)this.this$0.themes.get(ThemeModeSet.access$6(this.this$0))).intValue());
      }
      if ((paramKeyEvent.getScanCode() != 232) || (paramKeyEvent.getAction() != 0)) {
        break;
      }
      VSetting.isDownUp = true;
      ThemeModeSet.access$4(this.this$0, paramInt2);
      this.this$0.mymode.refreshCheck(-1);
      paramKeyEvent = (String)ThemeModeSet.access$5(this.this$0).get(((Integer)this.this$0.themes.get(paramInt2)).intValue());
      Log.d("CH_ER_COLLECT", "reportType:normal|saveType:append|sort:设置行为|subClass:极简设置|reportInfo:menu=" + this.this$0.Sourceid + ";item1=情景模式;value=" + paramKeyEvent);
      ThemeModeSet.access$7(this.this$0, ((Integer)this.this$0.themes.get(ThemeModeSet.access$6(this.this$0))).intValue());
      return true;
      if ((ThemeModeSet.access$3(this.this$0) == 111) && (!this.this$0.isCurrentSourceYPBPR())) {
        this.this$0.Sourceid = localObject[1];
      } else if (ThemeModeSet.access$3(this.this$0) == 222) {
        this.this$0.Sourceid = localObject[2];
      } else if (ThemeModeSet.access$3(this.this$0) == 333) {
        this.this$0.Sourceid = localObject[3];
      } else if (ThemeModeSet.access$3(this.this$0) == 555) {
        this.this$0.Sourceid = localObject[4];
      } else if (ThemeModeSet.access$3(this.this$0) == 666) {
        this.this$0.Sourceid = localObject[5];
      } else if (ThemeModeSet.access$3(this.this$0) == 777) {
        this.this$0.Sourceid = localObject[6];
      } else if (this.this$0.isCurrentSourceATV()) {
        this.this$0.Sourceid = localObject[0];
      } else if (this.this$0.isCurrentSourceDTV()) {
        this.this$0.Sourceid = localObject[8];
      } else if (this.this$0.isCurrentSourceYPBPR()) {
        this.this$0.Sourceid = localObject[9];
      }
    }
    if ((paramInt1 == 4) && (paramKeyEvent.getAction() == 0))
    {
      VSetting.isDownUp = true;
      ThemeModeSet.access$2(this.this$0).leftItemfouce();
      return true;
    }
    if ((paramKeyEvent.getScanCode() == 235) && (paramKeyEvent.getAction() == 0))
    {
      VSetting.isDownUp = true;
      ThemeModeSet.access$2(this.this$0).leftItemfouce();
      return true;
    }
    if ((paramInt2 == 0) && (paramKeyEvent.getAction() == 0))
    {
      if ((paramInt1 != 19) || (this.this$0.xxx != 0)) {
        break label910;
      }
      this.this$0.xxx = 1;
    }
    for (;;)
    {
      if ((paramInt2 == ThemeModeSet.access$9(this.this$0) - 2) && (paramInt1 == 20) && (paramKeyEvent.getAction() == 0) && (ThemeModeSet.access$6(this.this$0) == ThemeModeSet.access$9(this.this$0) - 1) && (ThemeModeSet.access$0(this.this$0).getVisibility() == 8))
      {
        paramKeyEvent = new SlideExpandAnimation(ThemeModeSet.access$0(this.this$0));
        localObject = new SlideExpandAnimation(ThemeModeSet.access$1(this.this$0));
        UpforRadioAnimation localUpforRadioAnimation = new UpforRadioAnimation(true, true, false);
        this.this$0.radiogroup.getVRadioGroup().setAnimation(localUpforRadioAnimation);
        paramKeyEvent.setDuration(70L);
        ((Animation)localObject).setDuration(70L);
        ThemeModeSet.access$0(this.this$0).startAnimation(paramKeyEvent);
        ThemeModeSet.access$1(this.this$0).startAnimation((Animation)localObject);
        this.this$0.radiogroup.getVRadioGroup().startAnimation(localUpforRadioAnimation);
      }
      return false;
      label910:
      if ((paramInt1 == 22) && (this.this$0.xxx == 1))
      {
        this.this$0.xxx = 2;
        continue;
      }
      if ((paramInt1 == 22) && (this.this$0.xxx == 2))
      {
        localObject = this.this$0;
        ((ThemeModeSet)localObject).xxx += 1;
        if ((this.this$0.xxx == 3) && (this.this$0.inter.isTVSources()) && (!this.this$0.inter.isCurrentSourceHDMI4()))
        {
          if (this.this$0.chSKM == null) {
            this.this$0.chSKM = CHSoftKeyboardManager.getInstance(ThemeModeSet.access$8(this.this$0));
          }
          this.this$0.chSKM.processNumberKeyPanel(4127, 6);
          continue;
        }
        this.this$0.xxx = 0;
        continue;
      }
      if ((paramInt1 == 7) || (paramInt1 == 8) || (paramInt1 == 9) || (paramInt1 == 10) || (paramInt1 == 11) || (paramInt1 == 12) || (paramInt1 == 13) || (paramInt1 == 14) || (paramInt1 == 15) || (paramInt1 == 16))
      {
        localObject = this.this$0;
        ((ThemeModeSet)localObject).passwordStr += paramInt1 - 7;
        this.this$0.xxx = 0;
        if (this.this$0.passwordStr.endsWith("0816"))
        {
          if (this.this$0.chSKM.isPanelOnShow()) {
            this.this$0.chSKM.processNumberKeyPanel(4, 0);
          }
          ThemeModeSet.access$2(this.this$0).destroy();
          this.this$0.inter.enterFactoryMode();
          this.this$0.passwordStr = null;
          continue;
        }
        if (this.this$0.passwordStr.endsWith("0818"))
        {
          if (this.this$0.chSKM.isPanelOnShow()) {
            this.this$0.chSKM.processNumberKeyPanel(4, 0);
          }
          ThemeModeSet.access$2(this.this$0).destroy();
          try
          {
            localObject = new Intent();
            ((Intent)localObject).setComponent(new ComponentName("com.changhong.spanner", "com.changhong.spanner.display.MaintainMenu"));
            ((Intent)localObject).setFlags(268435456);
            ThemeModeSet.access$8(this.this$0).startActivity((Intent)localObject);
            this.this$0.passwordStr = null;
          }
          catch (Exception localException1)
          {
            localException1.printStackTrace();
          }
          continue;
        }
        Intent localIntent1;
        if (this.this$0.passwordStr.endsWith("0828"))
        {
          if (this.this$0.chSKM.isPanelOnShow()) {
            this.this$0.chSKM.processNumberKeyPanel(4, 0);
          }
          ThemeModeSet.access$2(this.this$0).destroy();
          localIntent1 = new Intent();
          localIntent1.setComponent(new ComponentName("com.changhong.spanner", "com.changhong.spanner.display.MaintainMenu"));
          localIntent1.addFlags(268435456);
          ThemeModeSet.access$8(this.this$0).startActivity(localIntent1);
          this.this$0.passwordStr = null;
          continue;
        }
        if (this.this$0.passwordStr.endsWith("0827"))
        {
          if (this.this$0.chSKM.isPanelOnShow()) {
            this.this$0.chSKM.processNumberKeyPanel(4, 0);
          }
          ThemeModeSet.access$2(this.this$0).destroy();
          try
          {
            localIntent1 = new Intent();
            localIntent1.seTCLassName("com.changhong.tool", "com.changhong.tool.TVtoolActivity");
            localIntent1.setFlags(268435456);
            ThemeModeSet.access$8(this.this$0).startActivity(localIntent1);
          }
          catch (Exception localException2)
          {
            localException2.printStackTrace();
          }
          continue;
        }
        if (this.this$0.passwordStr.endsWith("2417"))
        {
          if (this.this$0.chSKM.isPanelOnShow()) {
            this.this$0.chSKM.processNumberKeyPanel(4, 0);
          }
          ThemeModeSet.access$2(this.this$0).destroy();
        }
      }
      try
      {
        Intent localIntent2 = new Intent();
        localIntent2.setClassName("com.changhong.commerce.listMenu", "com.changhong.commerce.listMenu.HotelMenuActivity");
        localIntent2.setFlags(268435456);
        ThemeModeSet.access$8(this.this$0).startActivity(localIntent2);
        label1677:
        this.this$0.passwordStr = null;
        continue;
        if (!this.this$0.passwordStr.endsWith("8888")) {
          continue;
        }
        if (this.this$0.chSKM.isPanelOnShow()) {
          this.this$0.chSKM.processNumberKeyPanel(4, 0);
        }
        if ((this.this$0.isCurrentSourceATV()) || (this.this$0.isCurrentSourceDTV())) {
          ThemeModeSet.access$2(this.this$0).destroy();
        }
        new vMenuSystemInfoImage(ThemeModeSet.access$8(this.this$0), ThemeModeSet.access$2(this.this$0)) {}.show();
        this.this$0.passwordStr = null;
        continue;
        this.this$0.xxx = 0;
        this.this$0.passwordStr = null;
      }
      catch (Exception localException3)
      {
        break label1677;
      }
    }
  }
  
  public boolean onTouch(View paramView, MotionEvent paramMotionEvent, int paramInt)
  {
    switch (paramMotionEvent.getAction())
    {
    }
    do
    {
      return true;
      ThemeModeSet.access$4(this.this$0, paramInt);
      this.this$0.mymode.refreshCheck(-1);
      paramView = (String)ThemeModeSet.access$5(this.this$0).get(((Integer)this.this$0.themes.get(paramInt)).intValue());
      Log.d("CH_ER_COLLECT", "reportType:normal|saveType:append|sort:设置行为|subClass:极简设置|reportInfo:menu=" + this.this$0.Sourceid + ";item1=情景模式;value=" + paramView);
      ThemeModeSet.access$7(this.this$0, ((Integer)this.this$0.themes.get(ThemeModeSet.access$6(this.this$0))).intValue());
    } while (ThemeModeSet.access$0(this.this$0).getVisibility() != 0);
    paramView = new SlideCollpaseAnimation(ThemeModeSet.access$0(this.this$0));
    paramMotionEvent = new SlideCollpaseAnimation(ThemeModeSet.access$1(this.this$0));
    DownforRadioAnimation localDownforRadioAnimation = new DownforRadioAnimation(true, true, true);
    paramView.setDuration(70L);
    paramMotionEvent.setDuration(70L);
    this.this$0.radiogroup.getVRadioGroup().setAnimation(localDownforRadioAnimation);
    ThemeModeSet.access$0(this.this$0).startAnimation(paramView);
    ThemeModeSet.access$1(this.this$0).startAnimation(paramMotionEvent);
    this.this$0.radiogroup.getVRadioGroup().startAnimation(localDownforRadioAnimation);
    return true;
  }
}


上一篇:教你长虹电视免费看DTMB高清直播只要9.9元搞定!
下一篇:2018长虹超级年货,腊八节倾情献礼
沙发
 楼主| 发表于 2018-1-17 12:49 | 只看该作者 | 来自广西
0816 0818 0828 2827 8888 是不同的密码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|新帖|标签|软件|Sitemap|ZNDS智能电视网 ( 苏ICP备2023012627号 )

网络信息服务信用承诺书 | 增值电信业务经营许可证:苏B2-20221768 丨 苏公网安备 32011402011373号

GMT+8, 2024-5-2 14:19 , Processed in 0.053269 second(s), 13 queries , Redis On.

Powered by Discuz!

监督举报:report#znds.com (请将#替换为@)

© 2007-2024 ZNDS.Com

快速回复 返回顶部 返回列表