Files
rr3-apk/smali_classes4/com/mbridge/msdk/nativex/view/BaseMBMediaView$e.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

314 lines
7.6 KiB
Smali

.class final Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/hardware/SensorEventListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "e"
.end annotation
# instance fields
.field final synthetic a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
# direct methods
.method private constructor <init>(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2453
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$1;)V
.locals 0
.line 2453
invoke-direct {p0, p1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;-><init>(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)V
return-void
.end method
# virtual methods
.method public final onAccuracyChanged(Landroid/hardware/Sensor;I)V
.locals 0
return-void
.end method
.method public final onSensorChanged(Landroid/hardware/SensorEvent;)V
.locals 12
iget-object v0, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2464
invoke-static {v0}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->B(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)Z
move-result v0
if-eqz v0, :cond_0
return-void
.line 2469
:cond_0
:try_start_0
iget-object p1, p1, Landroid/hardware/SensorEvent;->values:[F
const/4 v0, 0x0
.line 2471
aget v1, p1, v0
neg-float v1, v1
const/4 v2, 0x1
.line 2472
aget v3, p1, v2
neg-float v3, v3
const/4 v4, 0x2
.line 2473
aget p1, p1, v4
neg-float p1, p1
mul-float v4, v1, v1
mul-float v5, v3, v3
add-float/2addr v4, v5
const/high16 v5, 0x40800000 # 4.0f
mul-float/2addr v4, v5
mul-float/2addr p1, p1
cmpl-float p1, v4, p1
const/4 v4, -0x1
const/16 v5, 0x168
if-ltz p1, :cond_2
neg-float p1, v3
float-to-double v6, p1
float-to-double v8, v1
.line 2478
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->atan2(DD)D
move-result-wide v6
double-to-float p1, v6
const v1, 0x42652ee1
mul-float/2addr p1, v1
.line 2479
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p1
rsub-int/lit8 p1, p1, 0x5a
:goto_0
if-lt p1, v5, :cond_1
add-int/lit16 p1, p1, -0x168
goto :goto_0
:cond_1
:goto_1
if-gez p1, :cond_3
add-int/lit16 p1, p1, 0x168
goto :goto_1
:catchall_0
move-exception p1
goto/16 :goto_2
:cond_2
move p1, v4
:cond_3
iget-object v1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2488
invoke-static {v1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->C(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)F
move-result v1
iget-object v3, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2489
invoke-virtual {v3}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v3
invoke-static {v3}, Lcom/mbridge/msdk/foundation/tools/ak;->g(Landroid/content/Context;)I
move-result v3
const-wide/16 v6, 0xc8
const/16 v8, 0x87
const/16 v9, 0x2d
if-le p1, v9, :cond_4
if-lt p1, v8, :cond_5
:cond_4
const/16 v10, 0x13b
const/16 v11, 0xe1
if-le p1, v11, :cond_6
if-ge p1, v10, :cond_6
:cond_5
int-to-float p1, v3
cmpl-float p1, v1, p1
if-ltz p1, :cond_b
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2492
invoke-static {p1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->D(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)Z
move-result p1
if-nez p1, :cond_b
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2493
invoke-static {p1, v2}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->b(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;Z)Z
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2494
invoke-static {p1, v2}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->c(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;Z)Z
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2496
invoke-static {p1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->I(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)Landroid/os/Handler;
move-result-object p1
new-instance v0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e$1;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e$1;-><init>(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;)V
invoke-virtual {p1, v0, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_3
:cond_6
if-le p1, v8, :cond_7
if-lt p1, v11, :cond_a
:cond_7
if-le p1, v10, :cond_8
if-lt p1, v5, :cond_a
:cond_8
if-ltz p1, :cond_9
if-le p1, v9, :cond_a
:cond_9
if-ne p1, v4, :cond_b
:cond_a
int-to-float p1, v3
cmpg-float p1, v1, p1
if-gtz p1, :cond_b
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2520
invoke-static {p1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->D(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)Z
move-result p1
if-eqz p1, :cond_b
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2521
invoke-static {p1, v0}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->b(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;Z)Z
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2522
invoke-static {p1, v0}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->c(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;Z)Z
iget-object p1, p0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;->a:Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;
.line 2524
invoke-static {p1}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;->I(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView;)Landroid/os/Handler;
move-result-object p1
new-instance v0, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e$2;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e$2;-><init>(Lcom/mbridge/msdk/nativex/view/BaseMBMediaView$e;)V
invoke-virtual {p1, v0, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_3
:goto_2
const-string v0, "BaseMBMediaView"
.line 2545
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1, p1}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_b
:goto_3
return-void
.end method