229 lines
5.2 KiB
Smali
229 lines
5.2 KiB
Smali
.class Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$ScreenSwitchHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "ScreenSwitchUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "ScreenSwitchHandler"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 162
|
|
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>(Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$1;)V
|
|
.locals 0
|
|
|
|
.line 162
|
|
invoke-direct {p0}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils$ScreenSwitchHandler;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 3
|
|
|
|
.line 165
|
|
iget v0, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v1, 0x378
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 167
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "accelerometer_rotation"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v1, v0, :cond_7
|
|
|
|
.line 168
|
|
iget p1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
const/16 v0, 0x4b
|
|
|
|
if-le p1, v0, :cond_2
|
|
|
|
const/16 v0, 0x69
|
|
|
|
if-ge p1, v0, :cond_2
|
|
|
|
.line 170
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->b()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
.line 171
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "\u5207\u6362\u6210\u53cd\u6a2a\u5c4f"
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 172
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerManager;->b()Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 173
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerManager;->b()Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, -0x5a
|
|
|
|
invoke-interface {p1, v0}, Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;->c(I)V
|
|
|
|
.line 175
|
|
:cond_1
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->b(Z)Z
|
|
|
|
.line 176
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c(Z)Z
|
|
|
|
.line 177
|
|
invoke-static {v1}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->d(Z)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v0, 0xff
|
|
|
|
if-le p1, v0, :cond_4
|
|
|
|
const/16 v0, 0x11d
|
|
|
|
if-ge p1, v0, :cond_4
|
|
|
|
.line 180
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->d()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
.line 181
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "\u5207\u6362\u6210\u6b63\u6a2a\u5c4f"
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 182
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerManager;->b()Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 183
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayerManager;->b()Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, 0x5a
|
|
|
|
invoke-interface {p1, v0}, Lfm/jiecao/jcvideoplayer_lib/JCMediaPlayerListener;->c(I)V
|
|
|
|
.line 185
|
|
:cond_3
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->b(Z)Z
|
|
|
|
.line 186
|
|
invoke-static {v1}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c(Z)Z
|
|
|
|
.line 187
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->d(Z)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const/16 v0, 0x13b
|
|
|
|
if-le p1, v0, :cond_5
|
|
|
|
const/16 v0, 0x168
|
|
|
|
if-lt p1, v0, :cond_6
|
|
|
|
:cond_5
|
|
if-lez p1, :cond_7
|
|
|
|
const/16 v0, 0x2d
|
|
|
|
if-ge p1, v0, :cond_7
|
|
|
|
.line 190
|
|
:cond_6
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->e()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
.line 191
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "\u5207\u6362\u6210\u6b63\u7ad6\u5c4f"
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 192
|
|
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->o()Z
|
|
|
|
.line 193
|
|
invoke-static {v1}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->b(Z)Z
|
|
|
|
.line 194
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->c(Z)Z
|
|
|
|
.line 195
|
|
invoke-static {v2}, Lfm/jiecao/jcvideoplayer_lib/ScreenSwitchUtils;->d(Z)Z
|
|
|
|
:cond_7
|
|
:goto_0
|
|
return-void
|
|
.end method
|