- 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
314 lines
8.1 KiB
Smali
314 lines
8.1 KiB
Smali
.class public final Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;,
|
|
Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final aspectRatioUpdateDispatcher:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;
|
|
|
|
.field public resizeMode:I
|
|
|
|
.field public videoAspectRatio:F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 97
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 101
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->resizeMode:I
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 106
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/google/android/exoplayer2/ui/R$styleable;->AspectRatioFrameLayout:[I
|
|
|
|
.line 107
|
|
invoke-virtual {p1, p2, v1, v0, v0}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 109
|
|
:try_start_0
|
|
sget p2, Lcom/google/android/exoplayer2/ui/R$styleable;->AspectRatioFrameLayout_resize_mode:I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->resizeMode:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 111
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 112
|
|
throw p2
|
|
|
|
.line 114
|
|
:cond_0
|
|
:goto_0
|
|
new-instance p1, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-direct {p1, p0, p2}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;-><init>(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$1;)V
|
|
|
|
iput-object p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->aspectRatioUpdateDispatcher:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$100(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;)Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onMeasure(II)V
|
|
.locals 8
|
|
|
|
.line 158
|
|
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
iget p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
const/4 p2, 0x0
|
|
|
|
cmpg-float p1, p1, p2
|
|
|
|
if-gtz p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 164
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result p1
|
|
|
|
.line 165
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v1, p1
|
|
|
|
int-to-float v2, v0
|
|
|
|
div-float v3, v1, v2
|
|
|
|
iget v4, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
div-float/2addr v4, v3
|
|
|
|
const/high16 v5, 0x3f800000 # 1.0f
|
|
|
|
sub-float/2addr v4, v5
|
|
|
|
.line 168
|
|
invoke-static {v4}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v5
|
|
|
|
const v6, 0x3c23d70a # 0.01f
|
|
|
|
cmpg-float v5, v5, v6
|
|
|
|
if-gtz v5, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->aspectRatioUpdateDispatcher:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;
|
|
|
|
iget p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 170
|
|
invoke-virtual {p1, p2, v3, v0}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;->scheduleUpdate(FFZ)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget v5, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->resizeMode:I
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-eqz v5, :cond_6
|
|
|
|
if-eq v5, v6, :cond_5
|
|
|
|
const/4 v7, 0x2
|
|
|
|
if-eq v5, v7, :cond_4
|
|
|
|
const/4 v7, 0x4
|
|
|
|
if-eq v5, v7, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
cmpl-float p2, v4, p2
|
|
|
|
if-lez p2, :cond_3
|
|
|
|
iget p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
:goto_0
|
|
mul-float/2addr v2, p1
|
|
|
|
float-to-int p1, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
:goto_1
|
|
div-float/2addr v1, p2
|
|
|
|
float-to-int v0, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
iget p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
iget p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
cmpl-float p2, v4, p2
|
|
|
|
if-lez p2, :cond_7
|
|
|
|
iget p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
iget p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
goto :goto_0
|
|
|
|
:goto_2
|
|
iget-object p2, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->aspectRatioUpdateDispatcher:Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;
|
|
|
|
iget v1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
.line 200
|
|
invoke-virtual {p2, v1, v3, v6}, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioUpdateDispatcher;->scheduleUpdate(FFZ)V
|
|
|
|
const/high16 p2, 0x40000000 # 2.0f
|
|
|
|
.line 202
|
|
invoke-static {p1, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
.line 203
|
|
invoke-static {v0, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p2
|
|
|
|
.line 201
|
|
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAspectRatio(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
cmpl-float v0, v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->videoAspectRatio:F
|
|
|
|
.line 125
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAspectRatioListener(Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout$AspectRatioListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setResizeMode(I)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->resizeMode:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput p1, p0, Lcom/google/android/exoplayer2/ui/AspectRatioFrameLayout;->resizeMode:I
|
|
|
|
.line 152
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|