今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3370 lines
93 KiB

.class public Lcom/viatech/camera/SettingActivity;
.super Landroid/app/Activity;
.source "SettingActivity.java"
# interfaces
.implements Lcom/viatech/device/VPaiDeviceConnectionListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/camera/SettingActivity$ViewHolder;,
Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
}
.end annotation
# static fields
.field public static final CAMERA_AUDIO_FLAG:Ljava/lang/String; = "CAMERA_AUDIO_FLAG"
.field public static final CAMERA_RESOLUTION:Ljava/lang/String; = "CAMERA_RESOLUTION"
.field public static final CAMERA_RESOLUTION_1536x768:Ljava/lang/String; = "1536x768"
.field public static final CAMERA_RESOLUTION_1920X960:Ljava/lang/String; = "1920x960"
.field public static final CAMERA_RESOLUTION_1920x960:Ljava/lang/String; = "1920x960"
.field public static final CAMERA_RESOLUTION_2048X1024:Ljava/lang/String; = "2048x1024"
.field public static final CAMERA_RESOLUTION_2880x1440:Ljava/lang/String; = "2880x1440"
.field public static final CAMERA_RESOLUTION_3072x1536:Ljava/lang/String; = "3072x1536"
.field public static final CAMERA_RESOLUTION_3840x1920:Ljava/lang/String; = "3840x1920"
.field public static final CAMERA_RESOLUTION_4608x2304:Ljava/lang/String; = "4608x2304"
.field public static final CAMERA_RESOLUTION_5760x2880:Ljava/lang/String; = "5760x2880"
.field public static final CAMERA_RESOLUTION_DEFAULT:Ljava/lang/String; = "2048x1024"
.field public static final CAMERA_RESOLUTION_PHOTO:Ljava/lang/String; = "CAMERA_RESOLUTION_PHOTO"
.field public static final CAMERA_SHUTDOWN_TIME:Ljava/lang/String; = "CAMERA_SHUTDOWN_TIME"
.field public static final CAMERA_SHUTDOWN_TIME_FIVE:Ljava/lang/String; = "5"
.field public static final CAMERA_SHUTDOWN_TIME_NEVER:Ljava/lang/String; = "0"
.field public static final CAMERA_SHUTDOWN_TIME_TEN:Ljava/lang/String; = "10"
.field public static final CAMERA_SUPPORT_4K:Ljava/lang/String; = "CAMERA_SUPPORT_4K"
.field public static final CAMERA_VTP_RESOLUTION_PHOTO_VP751_M01:Ljava/lang/String; = "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M01"
.field public static final CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02:Ljava/lang/String; = "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02"
.field public static final CAMERA_VTP_RESOLUTION_VP751_M01:Ljava/lang/String; = "CAMERA_VTP_RESOLUTION_VP751_M01"
.field public static final CAMERA_VTP_RESOLUTION_VP751_M02:Ljava/lang/String; = "CAMERA_VTP_RESOLUTION_VP751_M02"
.field private static final TAG:Ljava/lang/String; = "VPAI_SettingActivity"
.field public static sVPaiDeviceArgument:Lcom/viatech/device/VPaiDevice;
# instance fields
.field private final KEY_AUTHORIZE_CODE:Ljava/lang/String;
.field private final KEY_AUTHORIZE_NAME:Ljava/lang/String;
.field private final MSG_AUTHORIZE_INFO:I
.field private final MSG_AUTHORIZE_RESPONSE:I
.field private final MSG_AUTHORIZE_TIMEOUT:I
.field private final MSG_CLICK_STEPS:I
.field private final MSG_PROGRESSDIALOG_DISMISS:I
.field private deviceSDCapacityView:Landroid/widget/TextView;
.field private deviceSerialNoLayout:Landroid/widget/RelativeLayout;
.field private deviceSerialNoView:Landroid/widget/TextView;
.field private deviceTypeView:Landroid/widget/TextView;
.field private deviceVersionView:Landroid/widget/TextView;
.field private mAudioSwitch:Lcom/zcw/togglebutton/ToggleButton;
.field private mAuthorized:Z
.field private mCameraInternetInabledView:Landroid/widget/TextView;
.field private mCameraSettingView:Landroid/view/View;
.field private mClickCount:I
.field private mConfigHotpotPasswdView:Landroid/view/View;
.field private mDialogAuthorize:Landroid/app/ProgressDialog;
.field private mDialogManufactory:Landroid/app/AlertDialog;
.field mHandler:Landroid/os/Handler;
.field private mHotpotPasswdEdit:Landroid/widget/EditText;
.field private mHotpotPasswdSwitchView:Landroid/widget/TextView;
.field private mHotpotPasswdTips:Landroid/widget/TextView;
.field private mIsDestory:Z
.field private mOtherSetting:Landroid/widget/LinearLayout;
.field private mPasswdVisiable:Z
.field private mPhotoResolutionLL:Landroid/widget/LinearLayout;
.field private mPhotoResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
.field private mPhotoResolutionTv:Landroid/widget/TextView;
.field private mResolutionDialog:Landroid/app/Dialog;
.field private mResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
.field private mShutDownTime:Landroid/widget/TextView;
.field private mShutDownView:Landroid/widget/RelativeLayout;
.field private mSp:Landroid/content/SharedPreferences;
.field private mTestBt:Landroid/widget/Button;
.field private mTestEd:Landroid/widget/EditText;
.field private mTxtResolution:Landroid/widget/TextView;
.field private mVPaiDevice:Lcom/viatech/device/VPaiDevice;
# direct methods
.method public constructor <init>()V
.locals 1
.prologue
const/4 v0, 0x0
.line 70
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 107
iput-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mPasswdVisiable:Z
.line 116
iput-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mIsDestory:Z
.line 125
iput v0, p0, Lcom/viatech/camera/SettingActivity;->mClickCount:I
.line 126
iput-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mAuthorized:Z
.line 127
const/16 v0, 0x64
iput v0, p0, Lcom/viatech/camera/SettingActivity;->MSG_AUTHORIZE_RESPONSE:I
.line 128
const/16 v0, 0x65
iput v0, p0, Lcom/viatech/camera/SettingActivity;->MSG_AUTHORIZE_TIMEOUT:I
.line 129
const/16 v0, 0x66
iput v0, p0, Lcom/viatech/camera/SettingActivity;->MSG_AUTHORIZE_INFO:I
.line 130
const/16 v0, 0x67
iput v0, p0, Lcom/viatech/camera/SettingActivity;->MSG_PROGRESSDIALOG_DISMISS:I
.line 131
const/16 v0, 0x68
iput v0, p0, Lcom/viatech/camera/SettingActivity;->MSG_CLICK_STEPS:I
.line 132
const-string v0, "authorize_name"
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->KEY_AUTHORIZE_NAME:Ljava/lang/String;
.line 133
const-string v0, "authorize_code"
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->KEY_AUTHORIZE_CODE:Ljava/lang/String;
.line 134
const/4 v0, 0x0
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
.line 140
new-instance v0, Lcom/viatech/camera/SettingActivity$1;
invoke-direct {v0, p0}, Lcom/viatech/camera/SettingActivity$1;-><init>(Lcom/viatech/camera/SettingActivity;)V
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
return-void
.end method
.method static synthetic access$000(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.prologue
.line 70
invoke-direct {p0, p1, p2}, Lcom/viatech/camera/SettingActivity;->authorizeResult(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method static synthetic access$100(Lcom/viatech/camera/SettingActivity;)Landroid/app/ProgressDialog;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
return-object v0
.end method
.method static synthetic access$1000(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;)V
.locals 0
.prologue
.line 70
invoke-direct {p0, p1}, Lcom/viatech/camera/SettingActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;)V
return-void
.end method
.method static synthetic access$1100(Lcom/viatech/camera/SettingActivity;)Landroid/widget/TextView;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdTips:Landroid/widget/TextView;
return-object v0
.end method
.method static synthetic access$1200(Lcom/viatech/camera/SettingActivity;)Z
.locals 1
.prologue
.line 70
iget-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mAuthorized:Z
return v0
.end method
.method static synthetic access$1202(Lcom/viatech/camera/SettingActivity;Z)Z
.locals 0
.prologue
.line 70
iput-boolean p1, p0, Lcom/viatech/camera/SettingActivity;->mAuthorized:Z
return p1
.end method
.method static synthetic access$1300(Lcom/viatech/camera/SettingActivity;)V
.locals 0
.prologue
.line 70
invoke-direct {p0}, Lcom/viatech/camera/SettingActivity;->authorizationDialog()V
return-void
.end method
.method static synthetic access$1400(Lcom/viatech/camera/SettingActivity;)Landroid/content/SharedPreferences;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
return-object v0
.end method
.method static synthetic access$1500(Lcom/viatech/camera/SettingActivity;)Landroid/app/AlertDialog;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
return-object v0
.end method
.method static synthetic access$1600(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.prologue
.line 70
invoke-direct {p0, p1, p2}, Lcom/viatech/camera/SettingActivity;->authorization(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method static synthetic access$200(Lcom/viatech/camera/SettingActivity;)I
.locals 1
.prologue
.line 70
iget v0, p0, Lcom/viatech/camera/SettingActivity;->mClickCount:I
return v0
.end method
.method static synthetic access$202(Lcom/viatech/camera/SettingActivity;I)I
.locals 0
.prologue
.line 70
iput p1, p0, Lcom/viatech/camera/SettingActivity;->mClickCount:I
return p1
.end method
.method static synthetic access$208(Lcom/viatech/camera/SettingActivity;)I
.locals 2
.prologue
.line 70
iget v0, p0, Lcom/viatech/camera/SettingActivity;->mClickCount:I
add-int/lit8 v1, v0, 0x1
iput v1, p0, Lcom/viatech/camera/SettingActivity;->mClickCount:I
return v0
.end method
.method static synthetic access$300(Lcom/viatech/camera/SettingActivity;)Z
.locals 1
.prologue
.line 70
iget-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mPasswdVisiable:Z
return v0
.end method
.method static synthetic access$302(Lcom/viatech/camera/SettingActivity;Z)Z
.locals 0
.prologue
.line 70
iput-boolean p1, p0, Lcom/viatech/camera/SettingActivity;->mPasswdVisiable:Z
return p1
.end method
.method static synthetic access$400(Lcom/viatech/camera/SettingActivity;)Landroid/widget/EditText;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdEdit:Landroid/widget/EditText;
return-object v0
.end method
.method static synthetic access$500(Lcom/viatech/camera/SettingActivity;)Landroid/widget/TextView;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdSwitchView:Landroid/widget/TextView;
return-object v0
.end method
.method static synthetic access$600(Lcom/viatech/camera/SettingActivity;)Landroid/widget/EditText;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTestEd:Landroid/widget/EditText;
return-object v0
.end method
.method static synthetic access$700(Lcom/viatech/camera/SettingActivity;)Lcom/viatech/device/VPaiDevice;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
return-object v0
.end method
.method static synthetic access$800(Lcom/viatech/camera/SettingActivity;)Landroid/view/View;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
return-object v0
.end method
.method static synthetic access$900(Lcom/viatech/camera/SettingActivity;)Landroid/view/View;
.locals 1
.prologue
.line 70
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraSettingView:Landroid/view/View;
return-object v0
.end method
.method private authorization(Ljava/lang/String;Ljava/lang/String;)V
.locals 5
.prologue
const/16 v4, 0x65
const/4 v2, 0x0
.line 909
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
if-nez v0, :cond_0
.line 910
new-instance v0, Landroid/app/ProgressDialog;
const v1, 0x103012e
invoke-direct {v0, p0, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;I)V
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
.line 911
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V
.line 912
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
new-instance v1, Lcom/viatech/camera/SettingActivity$13;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$13;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
.line 918
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setCancelable(Z)V
.line 920
:cond_0
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
const v1, 0x7f070049
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 921
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V
.line 922
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const-wide/16 v2, 0x3a98
invoke-virtual {v0, v4, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
.line 923
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isUSBDevice()Z
move-result v0
if-eqz v0, :cond_1
.line 924
const-string v0, "VPAI_SettingActivity"
const-string v1, " >> authorization of USB Camera"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 925
new-instance v0, Ljava/lang/Thread;
new-instance v1, Lcom/viatech/camera/SettingActivity$14;
invoke-direct {v1, p0, p1, p2}, Lcom/viatech/camera/SettingActivity$14;-><init>(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;Ljava/lang/String;)V
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
.line 963
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
.line 1062
:goto_0
return-void
.line 965
:cond_1
const-string v0, "VPAI_SettingActivity"
const-string v1, " >> authorization of Web Camera"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 966
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
.line 968
:try_start_0
const-string v1, "action"
const-string v2, "devicereg"
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 969
const-string v1, "key"
invoke-virtual {v0, v1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 970
const-string v1, "manufactory"
invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 1054
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x65
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V
.line 1055
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
const v1, 0x7f0701aa
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 1056
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x67
const-wide/16 v2, 0x4b0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.line 1058
:catch_0
move-exception v0
.line 1059
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.end method
.method private authorizationDialog()V
.locals 9
.prologue
.line 835
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder;
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
.line 836
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/app/AlertDialog;->setCanceledOnTouchOutside(Z)V
.line 837
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V
.line 838
invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
.line 839
const v1, 0x7f03007a
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v8
.line 840
const v0, 0x7f0c027d
invoke-virtual {v8, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v2
check-cast v2, Landroid/widget/EditText;
.line 841
const v0, 0x7f0c027e
invoke-virtual {v8, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v3
check-cast v3, Landroid/widget/EditText;
.line 842
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v6
.line 843
const-string v0, "authorize_name"
const-string v1, "temp"
invoke-interface {v6, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
.line 844
invoke-virtual {v2, v4}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
.line 845
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {v2, v0}, Landroid/widget/EditText;->setSelection(I)V
.line 846
const-string v0, "authorize_code"
const-string v1, ""
invoke-interface {v6, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
.line 847
invoke-virtual {v3, v5}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
.line 848
invoke-virtual {v5}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {v3, v0}, Landroid/widget/EditText;->setSelection(I)V
.line 849
const v0, 0x7f0c027f
invoke-virtual {v8, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
move-object v7, v0
check-cast v7, Landroid/widget/Button;
.line 850
const v0, 0x7f0c0280
invoke-virtual {v8, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
.line 851
invoke-virtual {v0}, Landroid/widget/Button;->requestFocus()Z
.line 852
new-instance v1, Lcom/viatech/camera/SettingActivity$11;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$11;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 859
new-instance v0, Lcom/viatech/camera/SettingActivity$12;
move-object v1, p0
invoke-direct/range {v0 .. v6}, Lcom/viatech/camera/SettingActivity$12;-><init>(Lcom/viatech/camera/SettingActivity;Landroid/widget/EditText;Landroid/widget/EditText;Ljava/lang/String;Ljava/lang/String;Landroid/content/SharedPreferences;)V
invoke-virtual {v7, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 900
new-instance v0, Landroid/widget/LinearLayout$LayoutParams;
const/4 v1, -0x1
const/4 v2, -0x2
invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
.line 902
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
invoke-virtual {v1, v8, v0}, Landroid/app/AlertDialog;->addContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
.line 903
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogManufactory:Landroid/app/AlertDialog;
invoke-virtual {v0}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;
move-result-object v0
const/high16 v1, 0x20000
invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V
.line 906
return-void
.end method
.method private authorizeResult(Ljava/lang/String;Ljava/lang/String;)V
.locals 10
.prologue
.line 1066
:try_start_0
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x65
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V
.line 1068
const/4 v0, 0x0
.line 1069
invoke-static {}, Lcom/viatech/camera/RemoteCameraConnectManager;->instance()Lcom/viatech/camera/RemoteCameraConnectManager;
move-result-object v1
if-eqz v1, :cond_0
.line 1070
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v0, v0, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
.line 1072
:cond_0
const-string v1, "VPAI_SettingActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "authorizeResult >> authorization manufactory:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, ", json:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, ", devinfo:"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1073
if-eqz v0, :cond_1
iget-object v1, v0, Lcom/viatech/device/DeviceInfo;->product:Ljava/lang/String;
if-eqz v1, :cond_1
iget-object v1, v0, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
if-eqz v1, :cond_1
iget-object v1, v0, Lcom/viatech/device/DeviceInfo;->deviceid:Ljava/lang/String;
if-eqz v1, :cond_1
iget-object v1, v0, Lcom/viatech/device/DeviceInfo;->deviceid:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
const/16 v2, 0xa
if-ge v1, v2, :cond_2
.line 1074
:cond_1
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
const v1, 0x7f0701a6
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 1075
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x67
const-wide/16 v2, 0x4b0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
.line 1204
:goto_0
return-void
.line 1079
:cond_2
new-instance v2, Lorg/json/JSONObject;
invoke-direct {v2, p2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 1080
const-string v1, "f"
invoke-virtual {v2, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
.line 1081
if-eqz v3, :cond_3
const-string v1, "devicereg"
invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_4
.line 1082
:cond_3
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
const v1, 0x7f0701aa
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 1083
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x67
const-wide/16 v2, 0x4b0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.line 1201
:catch_0
move-exception v0
.line 1202
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.line 1087
:cond_4
:try_start_1
const-string v1, ""
.line 1088
const-string v4, "ret"
const/4 v5, -0x1
invoke-virtual {v2, v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
move-result v4
.line 1089
const-string v5, "err"
invoke-virtual {v2, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
.line 1090
const-string v6, "checksum"
invoke-virtual {v2, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
.line 1091
const-string v7, "count"
const/4 v8, -0x1
invoke-virtual {v2, v7, v8}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
move-result v7
.line 1092
new-instance v8, Ljava/lang/StringBuilder;
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
const-string v9, "strResult:f:"
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v8
invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v8, ", ret:"
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v3
const-string v8, ", err:"
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v5, ", checksum:"
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
const-string v5, ", count:"
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v3
const-string v5, "\n"
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
.line 1093
const-string v5, "VPAI_SettingActivity"
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
const-string v8, ">>> getTestResult() , strResult="
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1095
sparse-switch v4, :sswitch_data_0
.line 1187
const-string v0, "servmsg"
invoke-virtual {v2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 1190
:goto_1
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
if-nez v1, :cond_5
.line 1191
const v0, 0x7f0701ac
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
.line 1194
:cond_5
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v2, 0x66
invoke-virtual {v1, v2}, Landroid/os/Handler;->removeMessages(I)V
.line 1195
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v2, 0x66
invoke-virtual {v1, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
move-result-object v1
.line 1196
invoke-virtual {v1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v2
const-string v3, "text"
invoke-virtual {v2, v3, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 1197
invoke-virtual {v1}, Landroid/os/Message;->sendToTarget()V
.line 1199
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x67
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V
.line 1200
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v1, 0x67
const-wide/16 v2, 0xfa0
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
goto/16 :goto_0
.line 1097
:sswitch_0
if-eqz v6, :cond_6
invoke-virtual {v6}, Ljava/lang/String;->length()I
move-result v0
if-nez v0, :cond_7
.line 1098
:cond_6
const v0, 0x7f0701ab
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_1
.line 1101
:cond_7
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.line 1103
:try_start_2
const-string v2, "action"
const-string v3, "devicereg"
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 1104
const-string v2, "manufactory"
invoke-virtual {v0, v2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 1105
const-string v2, "checksum"
invoke-virtual {v0, v2, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 1106
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mDialogAuthorize:Landroid/app/ProgressDialog;
const v2, 0x7f07004a
invoke-virtual {p0, v2}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V
.line 1107
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHandler:Landroid/os/Handler;
const/16 v2, 0x65
const-wide/16 v4, 0x4e20
invoke-virtual {v0, v2, v4, v5}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
.line 1153
const v0, 0x7f0701aa
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
goto/16 :goto_0
.line 1156
:catch_1
move-exception v0
.line 1157
:try_start_3
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
move-object v0, v1
.line 1161
goto/16 :goto_1
.line 1163
:sswitch_1
const-string v1, "smalleye"
iget-object v2, v0, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_b
.line 1164
const-string v1, "b346a64503eda2e521aa34daa9e2769c40e8b1c8"
.line 1165
const-string v2, "VPAI_SettingActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, ">>> mDeviceInfo.devcheck: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
iget-object v4, v0, Lcom/viatech/device/DeviceInfo;->devcheck:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1166
iget-object v2, v0, Lcom/viatech/device/DeviceInfo;->devcheck:Ljava/lang/String;
if-eqz v2, :cond_8
iget-object v2, v0, Lcom/viatech/device/DeviceInfo;->devcheck:Ljava/lang/String;
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v2
if-eqz v2, :cond_8
iget-object v2, v0, Lcom/viatech/device/DeviceInfo;->devcheck:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_9
.line 1167
:cond_8
const v0, 0x7f0701a7
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_1
.line 1169
:cond_9
if-eqz v6, :cond_a
iget-object v0, v0, Lcom/viatech/device/DeviceInfo;->devcheck:Ljava/lang/String;
invoke-virtual {v6, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_a
.line 1170
const v0, 0x7f0701ad
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_1
.line 1173
:cond_a
const v0, 0x7f0701a7
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_1
.line 1177
:cond_b
const v0, 0x7f0701a7
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_1
.line 1181
:sswitch_2
const v0, 0x7f0701a8
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
goto/16 :goto_1
.line 1184
:sswitch_3
const v0, 0x7f0701a9
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
move-result-object v0
goto/16 :goto_1
.line 1095
:sswitch_data_0
.sparse-switch
0x0 -> :sswitch_0
0x1 -> :sswitch_1
0x2 -> :sswitch_2
0x1f4 -> :sswitch_3
.end sparse-switch
.end method
.method private initOtherSetting()V
.locals 6
.prologue
const v5, 0x7f070193
const v4, 0x7f070104
.line 564
const v0, 0x7f0c011a
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mOtherSetting:Landroid/widget/LinearLayout;
.line 565
const v0, 0x7f0c011b
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mShutDownView:Landroid/widget/RelativeLayout;
.line 566
const v0, 0x7f0c011c
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mShutDownTime:Landroid/widget/TextView;
.line 568
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v0, v0, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
.line 569
iget v0, v0, Lcom/viatech/device/DeviceInfo;->idletime:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 570
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mOtherSetting:Landroid/widget/LinearLayout;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 572
:cond_0
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v1, "CAMERA_SHUTDOWN_TIME"
const-string v2, "5"
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 573
const-string v1, ""
.line 574
const-string v1, "0"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 575
invoke-virtual {p0, v5}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
.line 579
:goto_0
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mShutDownTime:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 580
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 581
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "5"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {p0, v4}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 582
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "10"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {p0, v4}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 583
invoke-virtual {p0, v5}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 584
new-instance v2, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
invoke-direct {v2, v1, p0, v0}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;-><init>(Ljava/util/List;Landroid/content/Context;Ljava/lang/String;)V
.line 585
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mShutDownView:Landroid/widget/RelativeLayout;
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mShutDownTime:Landroid/widget/TextView;
const-string v3, "CAMERA_SHUTDOWN_TIME"
invoke-direct {p0, v0, v1, v2, v3}, Lcom/viatech/camera/SettingActivity;->setDialogChoice(Landroid/view/View;Landroid/widget/TextView;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Ljava/lang/String;)V
.line 586
return-void
.line 577
:cond_1
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p0, v4}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_0
.end method
.method private initView()V
.locals 7
.prologue
const/4 v6, 0x0
const/16 v5, 0x8
.line 209
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
.line 211
const v0, 0x7f0c010c
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraSettingView:Landroid/view/View;
.line 212
const v0, 0x7f0c0123
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
.line 214
const v0, 0x7f0c0119
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraInternetInabledView:Landroid/widget/TextView;
.line 216
const v0, 0x7f0c0124
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdTips:Landroid/widget/TextView;
.line 217
const v0, 0x7f0c0125
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/EditText;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdEdit:Landroid/widget/EditText;
.line 218
const v0, 0x7f0c0126
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdSwitchView:Landroid/widget/TextView;
.line 219
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mHotpotPasswdSwitchView:Landroid/widget/TextView;
new-instance v1, Lcom/viatech/camera/SettingActivity$2;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$2;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 240
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 241
const v0, 0x7f0c010e
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTxtResolution:Landroid/widget/TextView;
.line 242
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
move-result v0
if-eqz v0, :cond_8
.line 243
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v2, "CAMERA_SUPPORT_4K"
const/4 v3, 0x1
invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v2
.line 244
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v3, "CAMERA_VTP_RESOLUTION_VP751_M02"
const-string v4, "3840x1920"
invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 245
if-nez v2, :cond_0
.line 246
const-string v0, "1920x960"
.line 248
:cond_0
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_1
.line 249
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
const-string v3, "VP751 M01"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_6
.line 251
const-string v2, "1536x768"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 252
const-string v2, "3072x1536"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 262
:cond_1
:goto_0
const-string v2, "VPAI_SettingActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "video_resolution:"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 263
new-instance v2, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
invoke-direct {v2, v1, p0, v0}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;-><init>(Ljava/util/List;Landroid/content/Context;Ljava/lang/String;)V
iput-object v2, p0, Lcom/viatech/camera/SettingActivity;->mResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
.line 264
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mTxtResolution:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 286
:goto_1
const v0, 0x7f0c010d
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mTxtResolution:Landroid/widget/TextView;
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
const-string v3, "CAMERA_RESOLUTION"
invoke-direct {p0, v0, v1, v2, v3}, Lcom/viatech/camera/SettingActivity;->setDialogChoice(Landroid/view/View;Landroid/widget/TextView;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Ljava/lang/String;)V
.line 288
const v0, 0x7f0c010f
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/LinearLayout;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionLL:Landroid/widget/LinearLayout;
.line 289
const v0, 0x7f0c0110
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionTv:Landroid/widget/TextView;
.line 290
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
move-result v0
if-eqz v0, :cond_b
.line 291
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionLL:Landroid/widget/LinearLayout;
invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V
.line 295
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 296
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
move-result v0
if-eqz v0, :cond_3
.line 297
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v2, "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02"
const-string v3, "3840x1920"
invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 298
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_2
.line 299
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
const-string v3, "VP751 M01"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_9
.line 300
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v2, "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02"
const-string v3, "3072x1536"
invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 301
const-string v2, "3072x1536"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 302
const-string v2, "4608x2304"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 311
:cond_2
:goto_2
const-string v2, "VPAI_SettingActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "photo_resolution:"
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 312
new-instance v2, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
invoke-direct {v2, v1, p0, v0}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;-><init>(Ljava/util/List;Landroid/content/Context;Ljava/lang/String;)V
iput-object v2, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
.line 313
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionTv:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 314
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionLL:Landroid/widget/LinearLayout;
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionTv:Landroid/widget/TextView;
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
const-string v3, "CAMERA_RESOLUTION_PHOTO"
invoke-direct {p0, v0, v1, v2, v3}, Lcom/viatech/camera/SettingActivity;->setDialogChoice(Landroid/view/View;Landroid/widget/TextView;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Ljava/lang/String;)V
.line 322
:cond_3
:goto_3
const v0, 0x7f0c0113
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/EditText;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTestEd:Landroid/widget/EditText;
.line 323
const v0, 0x7f0c0112
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTestBt:Landroid/widget/Button;
.line 324
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTestBt:Landroid/widget/Button;
new-instance v1, Lcom/viatech/camera/SettingActivity$3;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$3;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 370
const v0, 0x7f0c0115
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/zcw/togglebutton/ToggleButton;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mAudioSwitch:Lcom/zcw/togglebutton/ToggleButton;
.line 371
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v1, "CAMERA_AUDIO_FLAG"
invoke-interface {v0, v1, v6}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
.line 372
if-eqz v0, :cond_c
.line 373
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mAudioSwitch:Lcom/zcw/togglebutton/ToggleButton;
invoke-virtual {v0}, Lcom/zcw/togglebutton/ToggleButton;->setToggleOn()V
.line 377
:goto_4
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mAudioSwitch:Lcom/zcw/togglebutton/ToggleButton;
new-instance v1, Lcom/viatech/camera/SettingActivity$4;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$4;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Lcom/zcw/togglebutton/ToggleButton;->setOnToggleChanged(Lcom/zcw/togglebutton/ToggleButton$OnToggleChanged;)V
.line 396
const v0, 0x7f0c0118
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/viatech/camera/SettingActivity$5;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$5;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 409
const v0, 0x7f0c0117
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/viatech/camera/SettingActivity$6;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$6;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 446
const v0, 0x7f0c011d
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceTypeView:Landroid/widget/TextView;
.line 447
const v0, 0x7f0c011f
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoView:Landroid/widget/TextView;
.line 448
const v0, 0x7f0c011e
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoLayout:Landroid/widget/RelativeLayout;
.line 449
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoLayout:Landroid/widget/RelativeLayout;
new-instance v1, Lcom/viatech/camera/SettingActivity$7;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$7;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 492
const v0, 0x7f0c0120
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceVersionView:Landroid/widget/TextView;
.line 493
const v0, 0x7f0c0122
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSDCapacityView:Landroid/widget/TextView;
.line 495
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isUSBDevice()Z
move-result v0
if-eqz v0, :cond_4
.line 496
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSDCapacityView:Landroid/widget/TextView;
invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V
.line 500
:cond_4
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v0, v0, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
invoke-direct {p0, v0}, Lcom/viatech/camera/SettingActivity;->showDeviceInfo(Lcom/viatech/device/DeviceInfo;)V
.line 503
const v0, 0x7f0c0127
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/viatech/camera/SettingActivity$8;
invoke-direct {v1, p0}, Lcom/viatech/camera/SettingActivity$8;-><init>(Lcom/viatech/camera/SettingActivity;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 553
invoke-direct {p0}, Lcom/viatech/camera/SettingActivity;->initOtherSetting()V
.line 555
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isUSBDevice()Z
move-result v0
if-eqz v0, :cond_5
.line 556
const v0, 0x7f0c0116
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V
.line 557
const v0, 0x7f0c0114
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V
.line 558
const v0, 0x7f0c0121
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V
.line 561
:cond_5
return-void
.line 253
:cond_6
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
const-string v3, "VP751 M02"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_7
.line 255
const-string v2, "1920x960"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 256
const-string v2, "2880x1440"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 257
const-string v2, "3840x1920"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_0
.line 259
:cond_7
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_0
.line 266
:cond_8
const-string v0, "1920x960"
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 267
const-string v0, "2048x1024"
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 268
new-instance v0, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v3, "CAMERA_RESOLUTION"
const-string v4, "2048x1024"
invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v1, p0, v2}, Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;-><init>(Ljava/util/List;Landroid/content/Context;Ljava/lang/String;)V
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mResolutionListAdapter:Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;
.line 269
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mTxtResolution:Landroid/widget/TextView;
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v2, "CAMERA_RESOLUTION"
const-string v3, "2048x1024"
invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto/16 :goto_1
.line 303
:cond_9
iget-object v2, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v2, v2, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v2, v2, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
const-string v3, "VP751 M02"
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_a
.line 304
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mSp:Landroid/content/SharedPreferences;
const-string v2, "CAMERA_VTP_RESOLUTION_PHOTO_VP751_M02"
const-string v3, "3840x1920"
invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 305
const-string v2, "3840x1920"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 306
const-string v2, "5760x2880"
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_2
.line 308
:cond_a
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_2
.line 318
:cond_b
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mPhotoResolutionLL:Landroid/widget/LinearLayout;
invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V
goto/16 :goto_3
.line 375
:cond_c
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mAudioSwitch:Lcom/zcw/togglebutton/ToggleButton;
invoke-virtual {v0}, Lcom/zcw/togglebutton/ToggleButton;->setToggleOff()V
goto/16 :goto_4
.end method
.method public static isPhoneResolutionSupported(Ljava/lang/String;)Z
.locals 2
.prologue
const/4 v0, 0x0
.line 1285
if-eqz p0, :cond_1
.line 1286
const-string v1, "2048x1024"
invoke-virtual {v1, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_0
const-string v1, "1920x960"
invoke-virtual {v1, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1
:cond_0
const/4 v0, 0x1
.line 1288
:cond_1
return v0
.end method
.method private setActionBarMidtitleAndUpIndicator(Ljava/lang/String;)V
.locals 7
.prologue
const/4 v6, 0x1
const/4 v5, -0x2
const/4 v4, 0x0
.line 729
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 730
if-nez v0, :cond_0
.line 742
:goto_0
return-void
.line 731
:cond_0
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V
.line 732
const v1, 0x7f07005c
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(I)V
.line 733
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V
.line 734
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V
.line 735
new-instance v1, Landroid/widget/TextView;
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 736
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 737
const/4 v2, -0x1
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
.line 738
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f0800c0
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F
move-result v2
invoke-virtual {v1, v4, v2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 739
new-instance v2, Landroid/app/ActionBar$LayoutParams;
const/16 v3, 0x11
invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V
invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V
.line 741
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V
goto :goto_0
.end method
.method private setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V
.locals 7
.prologue
const/4 v6, 0x0
const/4 v5, -0x2
const/4 v4, 0x1
.line 711
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 712
if-nez v0, :cond_0
.line 726
:goto_0
return-void
.line 713
:cond_0
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V
.line 714
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x12
if-lt v1, v2, :cond_1
.line 715
invoke-virtual {v0, p2}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V
.line 716
:cond_1
const/4 v1, 0x0
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V
.line 717
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V
.line 718
invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V
.line 719
new-instance v1, Landroid/widget/TextView;
invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
.line 720
invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 721
const/4 v2, -0x1
invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
.line 722
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f0800c0
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F
move-result v2
invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V
.line 723
new-instance v2, Landroid/app/ActionBar$LayoutParams;
const/16 v3, 0x11
invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;-><init>(III)V
invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V
.line 725
invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V
goto :goto_0
.end method
.method private setDialogChoice(Landroid/view/View;Landroid/widget/TextView;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Ljava/lang/String;)V
.locals 7
.prologue
.line 589
new-instance v6, Landroid/widget/ListView;
invoke-direct {v6, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V
.line 590
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder;
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V
.line 591
const-string v1, "CAMERA_SHUTDOWN_TIME"
invoke-virtual {p4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 592
const v1, 0x7f070085
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;
.line 594
:cond_0
const-string v1, "CAMERA_RESOLUTION"
invoke-virtual {p4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 595
const v1, 0x7f0701df
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;
.line 597
:cond_1
const-string v1, "CAMERA_RESOLUTION_PHOTO"
invoke-virtual {p4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
.line 598
const v1, 0x7f0701ef
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;
.line 600
:cond_2
invoke-virtual {v0, v6}, Lcom/viatech/widget/VPaiDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
.line 601
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object v5
.line 602
const/4 v0, 0x1
invoke-virtual {v6, v0}, Landroid/widget/ListView;->setDividerHeight(I)V
.line 604
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f020245
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-virtual {v6, v0}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V
.line 605
invoke-virtual {v6, p3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V
.line 606
new-instance v0, Lcom/viatech/camera/SettingActivity$9;
move-object v1, p0
move-object v2, p3
move-object v3, p2
move-object v4, p4
invoke-direct/range {v0 .. v5}, Lcom/viatech/camera/SettingActivity$9;-><init>(Lcom/viatech/camera/SettingActivity;Lcom/viatech/camera/SettingActivity$ResolutionListAdapter;Landroid/widget/TextView;Ljava/lang/String;Landroid/app/AlertDialog;)V
invoke-virtual {v6, v0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
.line 674
new-instance v0, Lcom/viatech/camera/SettingActivity$10;
invoke-direct {v0, p0, p4, v5}, Lcom/viatech/camera/SettingActivity$10;-><init>(Lcom/viatech/camera/SettingActivity;Ljava/lang/String;Landroid/app/AlertDialog;)V
invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 693
return-void
.end method
.method private showDeviceInfo(Lcom/viatech/device/DeviceInfo;)V
.locals 10
.prologue
const/4 v9, 0x1
const/4 v8, 0x0
.line 786
iget-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mIsDestory:Z
if-eqz v0, :cond_0
.line 832
:goto_0
return-void
.line 787
:cond_0
if-eqz p1, :cond_7
.line 788
const-string v0, "VPAI_SettingActivity"
const-string v1, "showDeviceInfo()"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 789
const-string v0, ""
.line 791
iget-object v1, p1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
if-eqz v1, :cond_1
iget-object v1, p1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
.line 792
iget-object v0, p1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
const-string v1, "_"
invoke-virtual {v0, v1, v8}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I
move-result v0
.line 793
if-lez v0, :cond_2
.line 794
iget-object v1, p1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-virtual {v1, v8, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
.line 799
:cond_1
:goto_1
const-string v1, "V720"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_3
.line 800
const-string v0, "VPai Stand"
.line 806
:goto_2
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v1}, Lcom/viatech/device/VPaiDevice;->isVTPDevice()Z
move-result v1
if-eqz v1, :cond_5
.line 807
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceTypeView:Landroid/widget/TextView;
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v1, v1, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
iget-object v1, v1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 811
:goto_3
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoView:Landroid/widget/TextView;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, ""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p1, Lcom/viatech/device/DeviceInfo;->deviceid:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 812
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceVersionView:Landroid/widget/TextView;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, ""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget v2, p1, Lcom/viatech/device/DeviceInfo;->version:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 813
const v0, 0x7f07016b
new-array v1, v9, [Ljava/lang/Object;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, ""
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget-wide v4, p1, Lcom/viatech/device/DeviceInfo;->sdsize:J
iget-wide v6, p1, Lcom/viatech/device/DeviceInfo;->sdused:J
sub-long/2addr v4, v6
const-wide/32 v6, 0xf4240
div-long/2addr v4, v6
invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "MB"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
aput-object v2, v1, v8
invoke-virtual {p0, v0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 814
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->deviceSDCapacityView:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 815
iget v0, p1, Lcom/viatech/device/DeviceInfo;->stationenabled:I
if-ne v0, v9, :cond_6
.line 816
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraInternetInabledView:Landroid/widget/TextView;
const v1, 0x7f070130
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 820
:goto_4
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraInternetInabledView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V
.line 821
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSDCapacityView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V
.line 822
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceVersionView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V
.line 823
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V
.line 824
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceTypeView:Landroid/widget/TextView;
invoke-virtual {v0}, Landroid/widget/TextView;->invalidate()V
goto/16 :goto_0
.line 796
:cond_2
iget-object v0, p1, Lcom/viatech/device/DeviceInfo;->module:Ljava/lang/String;
goto/16 :goto_1
.line 801
:cond_3
const-string v1, "V760"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_4
.line 802
const-string v0, "VPai Slide"
goto/16 :goto_2
.line 804
:cond_4
const-string v0, "VPai Clip"
goto/16 :goto_2
.line 809
:cond_5
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->deviceTypeView:Landroid/widget/TextView;
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto/16 :goto_3
.line 818
:cond_6
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraInternetInabledView:Landroid/widget/TextView;
const v1, 0x7f070064
invoke-virtual {p0, v1}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_4
.line 826
:cond_7
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceTypeView:Landroid/widget/TextView;
const-string v1, ""
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 827
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSerialNoView:Landroid/widget/TextView;
const-string v1, ""
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 828
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceVersionView:Landroid/widget/TextView;
const-string v1, ""
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 829
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->deviceSDCapacityView:Landroid/widget/TextView;
const-string v1, ""
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 830
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraInternetInabledView:Landroid/widget/TextView;
const-string v1, ""
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto/16 :goto_0
.end method
# virtual methods
.method public getConnectedWifiSsid()Ljava/lang/String;
.locals 2
.prologue
.line 769
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "wifi"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/wifi/WifiManager;
.line 770
invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;
move-result-object v0
.line 771
invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public isWifiNetworkConnected()Z
.locals 3
.prologue
const/4 v1, 0x1
.line 775
const-string v0, "connectivity"
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
.line 776
if-eqz v0, :cond_0
.line 777
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
move-result-object v0
.line 778
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I
move-result v2
if-ne v2, v1, :cond_0
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;
move-result-object v0
sget-object v2, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;
if-ne v0, v2, :cond_0
move v0, v1
.line 782
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public onBackPressed()V
.locals 3
.prologue
.line 754
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
move-result v0
if-nez v0, :cond_1
.line 755
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
const v1, 0x7f04001e
invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V
.line 756
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mCameraSettingView:Landroid/view/View;
const v1, 0x7f04001d
invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
.line 757
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 758
const v0, 0x7f070056
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
const v1, 0x7f020081
invoke-direct {p0, v0, v1}, Lcom/viatech/camera/SettingActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V
.line 759
const-string v0, "input_method"
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
.line 760
invoke-virtual {v0}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z
move-result v1
if-eqz v1, :cond_0
.line 761
iget-object v1, p0, Lcom/viatech/camera/SettingActivity;->mConfigHotpotPasswdView:Landroid/view/View;
invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
.line 766
:cond_0
:goto_0
return-void
.line 765
:cond_1
invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V
goto :goto_0
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 3
.prologue
.line 189
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 190
const v0, 0x7f030031
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->setContentView(I)V
.line 191
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V
.line 193
sget-object v0, Lcom/viatech/camera/SettingActivity;->sVPaiDeviceArgument:Lcom/viatech/device/VPaiDevice;
iput-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
.line 194
const/4 v0, 0x0
sput-object v0, Lcom/viatech/camera/SettingActivity;->sVPaiDeviceArgument:Lcom/viatech/device/VPaiDevice;
.line 195
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z
move-result v0
if-eqz v0, :cond_0
.line 196
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0, p0}, Lcom/viatech/device/VPaiDevice;->registerConnCallback(Lcom/viatech/device/VPaiDeviceConnectionListener;)V
.line 199
:cond_0
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 200
if-eqz v0, :cond_1
.line 201
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f02023d
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 202
const v0, 0x7f070056
invoke-virtual {p0, v0}, Lcom/viatech/camera/SettingActivity;->getString(I)Ljava/lang/String;
move-result-object v0
const v1, 0x7f020081
invoke-direct {p0, v0, v1}, Lcom/viatech/camera/SettingActivity;->setActionBarMidtitleAndUpIndicator(Ljava/lang/String;I)V
.line 205
:cond_1
invoke-direct {p0}, Lcom/viatech/camera/SettingActivity;->initView()V
.line 206
return-void
.end method
.method protected onDestroy()V
.locals 1
.prologue
.line 703
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/viatech/camera/SettingActivity;->mIsDestory:Z
.line 704
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
.line 705
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z
move-result v0
if-eqz v0, :cond_0
.line 706
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0, p0}, Lcom/viatech/device/VPaiDevice;->unregisterConnCallback(Lcom/viatech/device/VPaiDeviceConnectionListener;)V
.line 708
:cond_0
return-void
.end method
.method public onDeviceConnectionChanged(Lcom/viatech/device/VPaiDevice;Lcom/viatech/device/DeviceInfo;)V
.locals 1
.prologue
.line 1208
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
if-ne v0, p1, :cond_1
if-nez p2, :cond_1
.line 1209
:cond_0
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->finish()V
.line 1211
:cond_1
return-void
.end method
.method public onDeviceInfoChanged(Lcom/viatech/device/DeviceInfo;)V
.locals 0
.prologue
.line 1216
return-void
.end method
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
.locals 2
.prologue
.line 746
invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
move-result v0
const v1, 0x102002c
if-ne v0, v1, :cond_0
.line 747
invoke-virtual {p0}, Lcom/viatech/camera/SettingActivity;->onBackPressed()V
.line 749
:cond_0
const/4 v0, 0x1
return v0
.end method
.method protected onResume()V
.locals 1
.prologue
.line 697
invoke-super {p0}, Landroid/app/Activity;->onResume()V
.line 698
iget-object v0, p0, Lcom/viatech/camera/SettingActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice;
iget-object v0, v0, Lcom/viatech/device/VPaiDevice;->mDeviceInfo:Lcom/viatech/device/DeviceInfo;
invoke-direct {p0, v0}, Lcom/viatech/camera/SettingActivity;->showDeviceInfo(Lcom/viatech/device/DeviceInfo;)V
.line 699
return-void
.end method