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

202 lines
4.9 KiB

.class Lcom/via/vpai/MainActivity$5;
.super Landroid/content/BroadcastReceiver;
.source "MainActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/via/vpai/MainActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/via/vpai/MainActivity;
# direct methods
.method constructor <init>(Lcom/via/vpai/MainActivity;)V
.locals 0
.prologue
.line 341
iput-object p1, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 5
.prologue
const/4 v4, -0x1
.line 344
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
.line 347
const-string v1, "android.intent.action.SCREEN_OFF"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 349
const-string v1, "Vpai_MainActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "onReceive action : "
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/String;)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 350
iget-object v1, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-static {v1}, Lcom/via/vpai/MainActivity;->b(Lcom/via/vpai/MainActivity;)Lcom/viatech/VPaiMainView;
move-result-object v1
if-eqz v1, :cond_0
.line 351
iget-object v1, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-static {v1}, Lcom/via/vpai/MainActivity;->b(Lcom/via/vpai/MainActivity;)Lcom/viatech/VPaiMainView;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v1, v2}, Lcom/viatech/VPaiMainView;->onScreenEvent(Z)V
.line 354
:cond_0
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 355
const-string v1, "Vpai_MainActivity"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "onReceive action : "
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/String;)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 356
iget-object v1, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-static {v1}, Lcom/via/vpai/MainActivity;->b(Lcom/via/vpai/MainActivity;)Lcom/viatech/VPaiMainView;
move-result-object v1
if-eqz v1, :cond_1
.line 357
iget-object v1, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-static {v1}, Lcom/via/vpai/MainActivity;->b(Lcom/via/vpai/MainActivity;)Lcom/viatech/VPaiMainView;
move-result-object v1
const/4 v2, 0x1
invoke-virtual {v1, v2}, Lcom/viatech/VPaiMainView;->onScreenEvent(Z)V
.line 360
:cond_1
const-string v1, "android.intent.action.BATTERY_CHANGED"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
.line 362
const-string v0, "level"
invoke-virtual {p2, v0, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result v0
.line 363
const-string v1, "scale"
invoke-virtual {p2, v1, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result v1
.line 367
if-ltz v0, :cond_2
if-lez v1, :cond_2
.line 368
mul-int/lit8 v0, v0, 0x64
div-int v1, v0, v1
.line 369
iget-object v0, p0, Lcom/via/vpai/MainActivity$5;->a:Lcom/via/vpai/MainActivity;
invoke-virtual {v0}, Lcom/via/vpai/MainActivity;->getApplication()Landroid/app/Application;
move-result-object v0
check-cast v0, Lcom/viatech/VPaiApplication;
.line 370
sput v1, Lcom/viatech/VPaiApplication;->a:I
.line 374
:cond_2
return-void
.end method