mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
599 lines
13 KiB
Smali
599 lines
13 KiB
Smali
.class public final Lio/sentry/Hint;
|
|
.super Ljava/lang/Object;
|
|
.source "Hint.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final PRIMITIVE_MAPPINGS:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Class<",
|
|
"*>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private final attachments:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lio/sentry/Attachment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final internalStorage:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private screenshot:Lio/sentry/Attachment;
|
|
|
|
.field private threadDump:Lio/sentry/Attachment;
|
|
|
|
.field private viewHierarchy:Lio/sentry/Attachment;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 17
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
sput-object v0, Lio/sentry/Hint;->PRIMITIVE_MAPPINGS:Ljava/util/Map;
|
|
|
|
const-string v1, "boolean"
|
|
|
|
.line 18
|
|
const-class v2, Ljava/lang/Boolean;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "char"
|
|
|
|
.line 19
|
|
const-class v2, Ljava/lang/Character;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "byte"
|
|
|
|
.line 20
|
|
const-class v2, Ljava/lang/Byte;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "short"
|
|
|
|
.line 21
|
|
const-class v2, Ljava/lang/Short;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "int"
|
|
|
|
.line 22
|
|
const-class v2, Ljava/lang/Integer;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "long"
|
|
|
|
.line 23
|
|
const-class v2, Ljava/lang/Long;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "float"
|
|
|
|
.line 24
|
|
const-class v2, Ljava/lang/Float;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v1, "double"
|
|
|
|
.line 25
|
|
const-class v2, Ljava/lang/Double;
|
|
|
|
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 28
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 29
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/sentry/Hint;->attachments:Ljava/util/List;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lio/sentry/Hint;->screenshot:Lio/sentry/Attachment;
|
|
|
|
iput-object v0, p0, Lio/sentry/Hint;->viewHierarchy:Lio/sentry/Attachment;
|
|
|
|
iput-object v0, p0, Lio/sentry/Hint;->threadDump:Lio/sentry/Attachment;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private isCastablePrimitive(Ljava/lang/Object;Ljava/lang/Class;)Z
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Class<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object p0, Lio/sentry/Hint;->PRIMITIVE_MAPPINGS:Ljava/util/Map;
|
|
|
|
.line 140
|
|
invoke-virtual {p2}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {p0, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Class;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 142
|
|
invoke-virtual {p2}, Ljava/lang/Class;->isPrimitive()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 144
|
|
invoke-virtual {p0, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static withAttachment(Lio/sentry/Attachment;)Lio/sentry/Hint;
|
|
.locals 1
|
|
|
|
.line 36
|
|
new-instance v0, Lio/sentry/Hint;
|
|
|
|
invoke-direct {v0}, Lio/sentry/Hint;-><init>()V
|
|
|
|
.line 37
|
|
invoke-virtual {v0, p0}, Lio/sentry/Hint;->addAttachment(Lio/sentry/Attachment;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static withAttachments(Ljava/util/List;)Lio/sentry/Hint;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lio/sentry/Attachment;",
|
|
">;)",
|
|
"Lio/sentry/Hint;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 42
|
|
new-instance v0, Lio/sentry/Hint;
|
|
|
|
invoke-direct {v0}, Lio/sentry/Hint;-><init>()V
|
|
|
|
.line 43
|
|
invoke-virtual {v0, p0}, Lio/sentry/Hint;->addAttachments(Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addAttachment(Lio/sentry/Attachment;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->attachments:Ljava/util/List;
|
|
|
|
.line 75
|
|
invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public addAttachments(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lio/sentry/Attachment;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->attachments:Ljava/util/List;
|
|
|
|
.line 81
|
|
invoke-interface {p0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public declared-synchronized clear()V
|
|
.locals 3
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 105
|
|
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 107
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 108
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
.line 109
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
const-string v2, "sentry:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 110
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 113
|
|
:cond_2
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public clearAttachments()V
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->attachments:Ljava/util/List;
|
|
|
|
.line 95
|
|
invoke-interface {p0}, Ljava/util/List;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public declared-synchronized get(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 52
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public declared-synchronized getAs(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 58
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 60
|
|
invoke-virtual {p2, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 61
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 62
|
|
:cond_0
|
|
:try_start_1
|
|
invoke-direct {p0, p1, p2}, Lio/sentry/Hint;->isCastablePrimitive(Ljava/lang/Object;Ljava/lang/Class;)Z
|
|
|
|
move-result p2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 63
|
|
monitor-exit p0
|
|
|
|
return-object p1
|
|
|
|
.line 65
|
|
:cond_1
|
|
monitor-exit p0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getAttachments()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lio/sentry/Attachment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 86
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->attachments:Ljava/util/List;
|
|
|
|
invoke-direct {v0, p0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getScreenshot()Lio/sentry/Attachment;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->screenshot:Lio/sentry/Attachment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getThreadDump()Lio/sentry/Attachment;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->threadDump:Lio/sentry/Attachment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getViewHierarchy()Lio/sentry/Attachment;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/Hint;->viewHierarchy:Lio/sentry/Attachment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public declared-synchronized remove(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 70
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 71
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public replaceAttachments(Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lio/sentry/Attachment;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 90
|
|
invoke-virtual {p0}, Lio/sentry/Hint;->clearAttachments()V
|
|
|
|
.line 91
|
|
invoke-virtual {p0, p1}, Lio/sentry/Hint;->addAttachments(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public declared-synchronized set(Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lio/sentry/Hint;->internalStorage:Ljava/util/Map;
|
|
|
|
.line 48
|
|
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 49
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setScreenshot(Lio/sentry/Attachment;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/Hint;->screenshot:Lio/sentry/Attachment;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThreadDump(Lio/sentry/Attachment;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/Hint;->threadDump:Lio/sentry/Attachment;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setViewHierarchy(Lio/sentry/Attachment;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/Hint;->viewHierarchy:Lio/sentry/Attachment;
|
|
|
|
return-void
|
|
.end method
|