WsGlobalSettings$CppProxy.smali
.class final Lsg/bigo/websocket/WsGlobalSettings$CppProxy;
.super Lsg/bigo/websocket/WsGlobalSettings;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lsg/bigo/websocket/WsGlobalSettings;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "CppProxy"
.end annotation
# instance fields
.field private final destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final nativeRef:J
# direct methods
.method private constructor <init>(J)V
.registers 6
.line 45
invoke-direct {p0}, Lsg/bigo/websocket/WsGlobalSettings;-><init>()V
.line 42
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object v0, p0, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-eqz v2, :cond_14
.line 47
iput-wide p1, p0, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->nativeRef:J
return-void
.line 46
:cond_14
new-instance p1, Ljava/lang/RuntimeException;
const-string p2, "nativeRef is zero"
invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private native nativeDestroy(J)V
.end method
.method public static native setLoggerProvider(Lsg/bigo/websocket/LoggerProvider;ZI)V
.end method
# virtual methods
.method public final _djinni_private_destroy()V
.registers 3
.line 53
iget-object v0, p0, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
move-result v0
if-nez v0, :cond_e
.line 54
iget-wide v0, p0, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->nativeDestroy(J)V
:cond_e
return-void
.end method
.method protected final finalize()V
.registers 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 58
invoke-virtual {p0}, Lsg/bigo/websocket/WsGlobalSettings$CppProxy;->_djinni_private_destroy()V
.line 59
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method