|
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:設(shè)置行為|subClass:極簡設(shè)置|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:設(shè)置行為|subClass:極簡設(shè)置|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:設(shè)置行為|subClass:極簡設(shè)置|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長虹超級年貨,臘八節(jié)傾情獻禮
|