2020-11-09 19:03:49 +00:00
|
|
|
.class public final Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;
|
2020-10-19 23:59:54 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "DecoderInfo.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
2020-11-09 19:03:49 +00:00
|
|
|
value = Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
2020-10-19 23:59:54 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = "Companion"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;-><init>()V
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final isKnownSoftwareImplementation(Ljava/lang/String;)Z
|
|
|
|
.locals 4
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-static {}, Lcom/discord/utilities/analytics/hardware/DecoderInfo;->access$getSOFTWARE_IMPLEMENTATION_PREFIXES$cp()Ljava/util/List;
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
instance-of v1, v0, Ljava/util/Collection;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-static {p1, v1, v2, v3}, Ly/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
return v2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-11-09 19:03:49 +00:00
|
|
|
.method public final create(Landroid/media/MediaCodecInfo;)Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
2020-10-19 23:59:54 +00:00
|
|
|
.locals 9
|
|
|
|
|
|
|
|
const-string v0, "codecInfo"
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/media/MediaCodecInfo;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v0, "codecInfo.name"
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-static {v2, v0}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-10-19 23:59:54 +00:00
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-direct {p0, v2}, Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;->isKnownSoftwareImplementation(Ljava/lang/String;)Z
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
xor-int/lit8 v3, v0, 0x1
|
|
|
|
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
new-instance v0, Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/media/MediaCodecInfo;->getCanonicalName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/media/MediaCodecInfo;->isHardwareAccelerated()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/media/MediaCodecInfo;->isSoftwareOnly()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/utilities/analytics/hardware/DecoderInfo;-><init>(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;)V
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-09 19:03:49 +00:00
|
|
|
new-instance v0, Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/16 v7, 0x1c
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
2020-11-09 19:03:49 +00:00
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/discord/utilities/analytics/hardware/DecoderInfo;-><init>(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Boolean;Ljava/lang/Boolean;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-10-19 23:59:54 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|