Rabbit-R1/switch port/smali/smali_classes3/io/sentry/SentryEnvelope.smali

264 lines
8.1 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public final Lio/sentry/SentryEnvelope;
.super Ljava/lang/Object;
.source "SentryEnvelope.java"
# instance fields
.field private final header:Lio/sentry/SentryEnvelopeHeader;
.field private final items:Ljava/lang/Iterable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Iterable<",
"Lio/sentry/SentryEnvelopeItem;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lio/sentry/SentryEnvelopeHeader;Ljava/lang/Iterable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/sentry/SentryEnvelopeHeader;",
"Ljava/lang/Iterable<",
"Lio/sentry/SentryEnvelopeItem;",
">;)V"
}
.end annotation
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "SentryEnvelopeHeader is required."
.line 33
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lio/sentry/SentryEnvelopeHeader;
iput-object p1, p0, Lio/sentry/SentryEnvelope;->header:Lio/sentry/SentryEnvelopeHeader;
const-string p1, "SentryEnvelope items are required."
.line 34
invoke-static {p2, p1}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
iput-object p1, p0, Lio/sentry/SentryEnvelope;->items:Ljava/lang/Iterable;
return-void
.end method
.method public constructor <init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Lio/sentry/SentryEnvelopeItem;)V
.locals 1
.line 48
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "SentryEnvelopeItem is required."
.line 49
invoke-static {p3, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 51
new-instance v0, Lio/sentry/SentryEnvelopeHeader;
invoke-direct {v0, p1, p2}, Lio/sentry/SentryEnvelopeHeader;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;)V
iput-object v0, p0, Lio/sentry/SentryEnvelope;->header:Lio/sentry/SentryEnvelopeHeader;
.line 52
new-instance p1, Ljava/util/ArrayList;
const/4 p2, 0x1
invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(I)V
.line 53
invoke-interface {p1, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iput-object p1, p0, Lio/sentry/SentryEnvelope;->items:Ljava/lang/Iterable;
return-void
.end method
.method public constructor <init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Ljava/lang/Iterable;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/sentry/protocol/SentryId;",
"Lio/sentry/protocol/SdkVersion;",
"Ljava/lang/Iterable<",
"Lio/sentry/SentryEnvelopeItem;",
">;)V"
}
.end annotation
.line 40
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 41
new-instance v0, Lio/sentry/SentryEnvelopeHeader;
invoke-direct {v0, p1, p2}, Lio/sentry/SentryEnvelopeHeader;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;)V
iput-object v0, p0, Lio/sentry/SentryEnvelope;->header:Lio/sentry/SentryEnvelopeHeader;
const-string p1, "SentryEnvelope items are required."
.line 42
invoke-static {p3, p1}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
iput-object p1, p0, Lio/sentry/SentryEnvelope;->items:Ljava/lang/Iterable;
return-void
.end method
.method public static from(Lio/sentry/ISerializer;Lio/sentry/ProfilingTraceData;JLio/sentry/protocol/SdkVersion;)Lio/sentry/SentryEnvelope;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lio/sentry/exception/SentryEnvelopeException;
}
.end annotation
const-string v0, "Serializer is required."
.line 87
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "Profiling trace data is required."
.line 88
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 90
new-instance v0, Lio/sentry/SentryEnvelope;
new-instance v1, Lio/sentry/protocol/SentryId;
.line 91
invoke-virtual {p1}, Lio/sentry/ProfilingTraceData;->getProfileId()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Lio/sentry/protocol/SentryId;-><init>(Ljava/lang/String;)V
.line 93
invoke-static {p1, p2, p3, p0}, Lio/sentry/SentryEnvelopeItem;->fromProfilingTrace(Lio/sentry/ProfilingTraceData;JLio/sentry/ISerializer;)Lio/sentry/SentryEnvelopeItem;
move-result-object p0
invoke-direct {v0, v1, p4, p0}, Lio/sentry/SentryEnvelope;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Lio/sentry/SentryEnvelopeItem;)V
return-object v0
.end method
.method public static from(Lio/sentry/ISerializer;Lio/sentry/SentryBaseEvent;Lio/sentry/protocol/SdkVersion;)Lio/sentry/SentryEnvelope;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "Serializer is required."
.line 74
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "item is required."
.line 75
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 77
new-instance v0, Lio/sentry/SentryEnvelope;
.line 78
invoke-virtual {p1}, Lio/sentry/SentryBaseEvent;->getEventId()Lio/sentry/protocol/SentryId;
move-result-object v1
invoke-static {p0, p1}, Lio/sentry/SentryEnvelopeItem;->fromEvent(Lio/sentry/ISerializer;Lio/sentry/SentryBaseEvent;)Lio/sentry/SentryEnvelopeItem;
move-result-object p0
invoke-direct {v0, v1, p2, p0}, Lio/sentry/SentryEnvelope;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Lio/sentry/SentryEnvelopeItem;)V
return-object v0
.end method
.method public static from(Lio/sentry/ISerializer;Lio/sentry/Session;Lio/sentry/protocol/SdkVersion;)Lio/sentry/SentryEnvelope;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "Serializer is required."
.line 62
invoke-static {p0, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
const-string v0, "session is required."
.line 63
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 65
new-instance v0, Lio/sentry/SentryEnvelope;
const/4 v1, 0x0
.line 66
invoke-static {p0, p1}, Lio/sentry/SentryEnvelopeItem;->fromSession(Lio/sentry/ISerializer;Lio/sentry/Session;)Lio/sentry/SentryEnvelopeItem;
move-result-object p0
invoke-direct {v0, v1, p2, p0}, Lio/sentry/SentryEnvelope;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/protocol/SdkVersion;Lio/sentry/SentryEnvelopeItem;)V
return-object v0
.end method
# virtual methods
.method public getHeader()Lio/sentry/SentryEnvelopeHeader;
.locals 0
iget-object p0, p0, Lio/sentry/SentryEnvelope;->header:Lio/sentry/SentryEnvelopeHeader;
return-object p0
.end method
.method public getItems()Ljava/lang/Iterable;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Iterable<",
"Lio/sentry/SentryEnvelopeItem;",
">;"
}
.end annotation
iget-object p0, p0, Lio/sentry/SentryEnvelope;->items:Ljava/lang/Iterable;
return-object p0
.end method