今奥全景相机
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.

358 lines
8.0 KiB

.class public Lcom/viatech/VPaiApplication;
.super Landroid/support/multidex/MultiDexApplication;
.source "VPaiApplication.java"
# static fields
.field public static a:I
.field public static b:Lcom/viatech/widget/VPaiToast;
.field public static c:J
.field public static d:I
.field public static e:Landroid/view/View$OnTouchListener;
.field private static f:Landroid/content/Context;
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
.line 30
const/4 v0, 0x0
sput v0, Lcom/viatech/VPaiApplication;->a:I
.line 36
new-instance v0, Lcom/viatech/VPaiApplication$1;
invoke-direct {v0}, Lcom/viatech/VPaiApplication$1;-><init>()V
sput-object v0, Lcom/viatech/VPaiApplication;->e:Landroid/view/View$OnTouchListener;
return-void
.end method
.method public constructor <init>()V
.locals 0
.prologue
.line 28
invoke-direct {p0}, Landroid/support/multidex/MultiDexApplication;-><init>()V
return-void
.end method
.method public static a()V
.locals 2
.prologue
.line 60
const-string v0, "Vpai_VPaiApplication"
const-string v1, "## initApp delay IDLE"
invoke-static {v0, v1}, Lcom/viatech/util/Util;->debugTimeUP(Ljava/lang/String;Ljava/lang/String;)V
.line 61
sget-object v0, Lcom/viatech/VPaiApplication;->f:Landroid/content/Context;
invoke-static {v0}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->init(Landroid/content/Context;)V
.line 62
new-instance v0, Lcom/viatech/widget/VPaiToast;
sget-object v1, Lcom/viatech/VPaiApplication;->f:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/viatech/widget/VPaiToast;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
.line 71
return-void
.end method
.method public static a(I)Z
.locals 1
.prologue
.line 105
const/16 v0, 0xf
if-ge p0, v0, :cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
.method public static b(I)V
.locals 1
.prologue
.line 113
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
if-eqz v0, :cond_0
.line 114
sget-object v0, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast;
invoke-virtual {v0, p0}, Lcom/viatech/widget/VPaiToast;->show(I)V
.line 115
:cond_0
return-void
.end method
.method public static c()Z
.locals 5
.prologue
const/4 v1, 0x0
.line 118
sget-object v0, Lcom/viatech/VPaiApplication;->f:Landroid/content/Context;
const-string v2, "activity"
invoke-virtual {v0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager;
.line 119
sget-object v2, Lcom/viatech/VPaiApplication;->f:Landroid/content/Context;
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v2
.line 120
invoke-virtual {v0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;
move-result-object v0
.line 121
if-nez v0, :cond_0
move v0, v1
.line 132
:goto_0
return v0
.line 125
:cond_0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_1
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager$RunningAppProcessInfo;
.line 127
iget-object v4, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->processName:Ljava/lang/String;
invoke-virtual {v4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_1
iget v0, v0, Landroid/app/ActivityManager$RunningAppProcessInfo;->importance:I
const/16 v4, 0x64
if-ne v0, v4, :cond_1
.line 128
const/4 v0, 0x1
goto :goto_0
:cond_2
move v0, v1
.line 132
goto :goto_0
.end method
.method private d()V
.locals 3
.prologue
.line 76
invoke-virtual {p0}, Lcom/viatech/VPaiApplication;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "013094640d"
const/4 v2, 0x1
invoke-static {v0, v1, v2}, Lcom/tencent/bugly/crashreport/a;->a(Landroid/content/Context;Ljava/lang/String;Z)V
.line 79
invoke-static {p0}, Lcom/viatech/common/ThumbnailCacheManager;->initialize(Landroid/content/Context;)V
.line 80
invoke-static {p0}, Lcom/viatech/util/SoundPoolUtil;->init(Landroid/content/Context;)V
.line 81
invoke-static {p0}, Lcom/viatech/Config;->a(Landroid/content/Context;)V
.line 87
sget-boolean v0, Lcom/viatech/a;->m:Z
if-eqz v0, :cond_0
.line 88
invoke-static {p0}, Lcom/viatech/util/weixin/WXManager;->initialize(Landroid/content/Context;)V
.line 91
:cond_0
invoke-static {p0}, Lcom/viatech/cloud/CloudConfig;->initialize(Landroid/content/Context;)V
.line 94
invoke-static {p0}, Lcom/a/a;->a(Landroid/content/Context;)V
.line 97
invoke-static {p0}, Lcom/via/vpaicloud/VPaiCloud;->init(Landroid/content/Context;)V
.line 98
sget-object v0, Lcom/viatech/a;->h:Ljava/lang/String;
sget-object v1, Lcom/viatech/a;->i:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/via/vpaicloud/VPaiCloud;->setDomain(Ljava/lang/String;Ljava/lang/String;)V
.line 99
sget v0, Lcom/viatech/a;->j:I
invoke-static {v0}, Lcom/via/vpaicloud/VPaiCloud;->setServer(I)V
.line 100
const-string v0, "Vpai_VPaiApplication"
const-string v1, "## initApp finished "
invoke-static {v0, v1}, Lcom/viatech/util/Util;->debugTimeUP(Ljava/lang/String;Ljava/lang/String;)V
.line 101
invoke-static {}, Lcom/viatech/util/SystemUtil;->showSystemParameter()V
.line 102
return-void
.end method
# virtual methods
.method public b()Z
.locals 1
.prologue
.line 109
sget v0, Lcom/viatech/VPaiApplication;->a:I
invoke-static {v0}, Lcom/viatech/VPaiApplication;->a(I)Z
move-result v0
return v0
.end method
.method public onCreate()V
.locals 4
.prologue
.line 45
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
sput-wide v0, Lcom/viatech/VPaiApplication;->c:J
.line 46
const-string v0, "Vpai_VPaiApplication"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "## onCreate @ "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
sget-wide v2, Lcom/viatech/VPaiApplication;->c:J
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 47
invoke-static {p0}, Lcom/viatech/util/Util;->getStatusBarHeight(Landroid/content/Context;)I
move-result v0
sput v0, Lcom/viatech/VPaiApplication;->d:I
.line 48
invoke-super {p0}, Landroid/support/multidex/MultiDexApplication;->onCreate()V
.line 49
sput-object p0, Lcom/viatech/VPaiApplication;->f:Landroid/content/Context;
.line 50
invoke-direct {p0}, Lcom/viatech/VPaiApplication;->d()V
.line 51
return-void
.end method
.method public onTerminate()V
.locals 2
.prologue
.line 55
invoke-super {p0}, Landroid/support/multidex/MultiDexApplication;->onTerminate()V
.line 56
const-string v0, "VPai_Application"
const-string v1, "## [onTerminate] ##"
invoke-static {v0, v1}, Lcom/viatech/util/Util;->debugTimeUP(Ljava/lang/String;Ljava/lang/String;)V
.line 57
return-void
.end method