165 lines
4.0 KiB
Smali
165 lines
4.0 KiB
Smali
.class public final Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "DecoderInfo.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
|
.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
|
|
|
|
invoke-direct {p0}, Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final isKnownSoftwareImplementation(Ljava/lang/String;)Z
|
|
.locals 4
|
|
|
|
invoke-static {}, Lcom/discord/utilities/analytics/hardware/DecoderInfo;->access$getSOFTWARE_IMPLEMENTATION_PREFIXES$cp()Ljava/util/List;
|
|
|
|
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
|
|
|
|
invoke-static {p1, v1, v2, v3}, Ly/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final create(Landroid/media/MediaCodecInfo;)Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
|
.locals 9
|
|
|
|
const-string v0, "codecInfo"
|
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/media/MediaCodecInfo;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v0, "codecInfo.name"
|
|
|
|
invoke-static {v2, v0}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, v2}, Lcom/discord/utilities/analytics/hardware/DecoderInfo$Companion;->isKnownSoftwareImplementation(Ljava/lang/String;)Z
|
|
|
|
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
|
|
|
|
new-instance v0, Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/discord/utilities/analytics/hardware/DecoderInfo;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x1c
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
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
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|