190 lines
4.7 KiB
Smali
190 lines
4.7 KiB
Smali
.class public final Landroidx/core/view/ContentInfoCompat$a;
|
|
.super Ljava/lang/Object;
|
|
.source "ContentInfoCompat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x1f
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/view/ContentInfoCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/view/ContentInfo;Ljava/util/function/Predicate;)Landroid/util/Pair;
|
|
.locals 4
|
|
.param p0 # Landroid/view/ContentInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/util/function/Predicate;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/DoNotInline;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/ContentInfo;",
|
|
"Ljava/util/function/Predicate<",
|
|
"Landroid/content/ClipData$Item;",
|
|
">;)",
|
|
"Landroid/util/Pair<",
|
|
"Landroid/view/ContentInfo;",
|
|
"Landroid/view/ContentInfo;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/ContentInfo;->getClip()Landroid/content/ClipData;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Landroid/content/ClipData;->getItemCount()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v1, v3, :cond_2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/function/Predicate;->test(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
move-object p0, v2
|
|
|
|
.line 4
|
|
:cond_1
|
|
invoke-static {v0, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 5
|
|
:cond_2
|
|
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v1, Ls1/b;
|
|
|
|
invoke-direct {v1, p1}, Ls1/b;-><init>(Ljava/util/function/Predicate;)V
|
|
|
|
invoke-static {v0, v1}, Landroidx/core/view/ContentInfoCompat;->h(Landroid/content/ClipData;Lr1/p;)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
iget-object v0, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 7
|
|
invoke-static {v2, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 8
|
|
:cond_3
|
|
iget-object v0, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
.line 9
|
|
invoke-static {p0, v2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 10
|
|
:cond_4
|
|
new-instance v0, Landroid/view/ContentInfo$Builder;
|
|
|
|
invoke-direct {v0, p0}, Landroid/view/ContentInfo$Builder;-><init>(Landroid/view/ContentInfo;)V
|
|
|
|
iget-object v1, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v1, Landroid/content/ClipData;
|
|
|
|
.line 11
|
|
invoke-virtual {v0, v1}, Landroid/view/ContentInfo$Builder;->setClip(Landroid/content/ClipData;)Landroid/view/ContentInfo$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/ContentInfo$Builder;->build()Landroid/view/ContentInfo;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Landroid/view/ContentInfo$Builder;
|
|
|
|
invoke-direct {v1, p0}, Landroid/view/ContentInfo$Builder;-><init>(Landroid/view/ContentInfo;)V
|
|
|
|
iget-object p0, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast p0, Landroid/content/ClipData;
|
|
|
|
.line 12
|
|
invoke-virtual {v1, p0}, Landroid/view/ContentInfo$Builder;->setClip(Landroid/content/ClipData;)Landroid/view/ContentInfo$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ContentInfo$Builder;->build()Landroid/view/ContentInfo;
|
|
|
|
move-result-object p0
|
|
|
|
.line 13
|
|
invoke-static {v0, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|