549 lines
11 KiB
Smali
549 lines
11 KiB
Smali
.class public final Ls1/d;
|
|
.super Ljava/lang/Object;
|
|
.source "DisplayCutoutCompat.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/graphics/Rect;Ljava/util/List;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/graphics/Rect;",
|
|
"Ljava/util/List<",
|
|
"Landroid/graphics/Rect;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
new-instance v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-direct {v0, p1, p2}, Landroid/view/DisplayCutout;-><init>(Landroid/graphics/Rect;Ljava/util/List;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-direct {p0, v0}, Ls1/d;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lc1/l;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Lc1/l;)V
|
|
.locals 0
|
|
.param p1 # Lc1/l;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p6 # Lc1/l;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-static/range {p1 .. p6}, Ls1/d;->a(Lc1/l;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Lc1/l;)Landroid/view/DisplayCutout;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ls1/d;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
iput-object p1, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lc1/l;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Lc1/l;)Landroid/view/DisplayCutout;
|
|
.locals 8
|
|
.param p0 # Lc1/l;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Lc1/l;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-static {}, Landroidx/core/os/BuildCompat;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {p0}, Lc1/l;->h()Landroid/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
.line 3
|
|
invoke-virtual {p5}, Lc1/l;->h()Landroid/graphics/Insets;
|
|
|
|
move-result-object v7
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
invoke-direct/range {v1 .. v7}, Landroid/view/DisplayCutout;-><init>(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Insets;)V
|
|
|
|
return-object v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
sget p5, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v0, 0x1d
|
|
|
|
if-lt p5, v0, :cond_1
|
|
|
|
.line 5
|
|
new-instance p5, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {p0}, Lc1/l;->h()Landroid/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v1, p5
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
invoke-direct/range {v1 .. v6}, Landroid/view/DisplayCutout;-><init>(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;)V
|
|
|
|
return-object p5
|
|
|
|
:cond_1
|
|
const/16 v0, 0x1c
|
|
|
|
if-lt p5, v0, :cond_6
|
|
|
|
.line 6
|
|
new-instance p5, Landroid/graphics/Rect;
|
|
|
|
iget v0, p0, Lc1/l;->a:I
|
|
|
|
iget v1, p0, Lc1/l;->b:I
|
|
|
|
iget v2, p0, Lc1/l;->c:I
|
|
|
|
iget p0, p0, Lc1/l;->d:I
|
|
|
|
invoke-direct {p5, v0, v1, v2, p0}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
.line 7
|
|
new-instance p0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_2
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
if-eqz p3, :cond_4
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_4
|
|
if-eqz p4, :cond_5
|
|
|
|
.line 11
|
|
invoke-virtual {p0, p4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 12
|
|
:cond_5
|
|
new-instance p1, Landroid/view/DisplayCutout;
|
|
|
|
invoke-direct {p1, p5, p0}, Landroid/view/DisplayCutout;-><init>(Landroid/graphics/Rect;Ljava/util/List;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_6
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static i(Ljava/lang/Object;)Ls1/d;
|
|
.locals 1
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1
|
|
:cond_0
|
|
new-instance v0, Ls1/d;
|
|
|
|
invoke-direct {v0, p0}, Ls1/d;-><init>(Ljava/lang/Object;)V
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public b()Ljava/util/List;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Landroid/graphics/Rect;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getBoundingRects()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getSafeInsetBottom()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public d()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getSafeInsetLeft()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getSafeInsetRight()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 1
|
|
const-class v0, Ls1/d;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_1
|
|
check-cast p1, Ls1/d;
|
|
|
|
.line 3
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
iget-object p1, p1, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
invoke-static {v0, p1}, Lr1/h;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public f()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getSafeInsetTop()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public g()Lc1/l;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Landroidx/core/os/BuildCompat;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
invoke-virtual {v0}, Landroid/view/DisplayCutout;->getWaterfallInsets()Landroid/graphics/Insets;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lc1/l;->g(Landroid/graphics/Insets;)Lc1/l;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
sget-object v0, Lc1/l;->e:Lc1/l;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public h()Landroid/view/DisplayCutout;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0x1c
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
check-cast v0, Landroid/view/DisplayCutout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "DisplayCutoutCompat{"
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Ls1/d;->a:Ljava/lang/Object;
|
|
|
|
const-string v2, "}"
|
|
|
|
invoke-static {v0, v1, v2}, Lx/c;->a(Ljava/lang/StringBuilder;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|