StatController$CppProxy.smali
.class final Lsg/bigo/nerv/StatController$CppProxy;
.super Lsg/bigo/nerv/StatController;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lsg/bigo/nerv/StatController;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "CppProxy"
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
# instance fields
.field private final destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final nativeRef:J
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 25
const-class v0, Lsg/bigo/nerv/StatController;
return-void
.end method
.method private constructor <init>(J)V
.registers 6
.line 32
invoke-direct {p0}, Lsg/bigo/nerv/StatController;-><init>()V
.line 29
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/nerv/StatController$CppProxy;->destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-eqz v2, :cond_14
.line 34
iput-wide p1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
return-void
.line 33
: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 private native native_sendStatToServer(J[BJI)I
.end method
.method private native native_setCallback(JLsg/bigo/nerv/StatCallback;)V
.end method
.method private native native_setStatToken(J[BJI)I
.end method
# virtual methods
.method public final _djinni_private_destroy()V
.registers 3
.line 40
iget-object v0, p0, Lsg/bigo/nerv/StatController$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 41
iget-wide v0, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/StatController$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 45
invoke-virtual {p0}, Lsg/bigo/nerv/StatController$CppProxy;->_djinni_private_destroy()V
.line 46
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public final sendStatToServer([BJI)I
.registers 14
.line 93
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_27
.line 95
:try_start_6
iget-wide v3, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v2, p0
move-object v5, p1
move-wide v6, p2
move v8, p4
invoke-direct/range {v2 .. v8}, Lsg/bigo/nerv/StatController$CppProxy;->native_sendStatToServer(J[BJI)I
move-result p1
:try_end_10
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_10} :catch_11
return p1
.line 98
:catch_11
:try_start_11
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_sendStatToServer(J[BJI)I
move-result p1
:try_end_1b
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_11 .. :try_end_1b} :catch_1c
return p1
.line 100
:catch_1c
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_sendStatToServer(J[BJI)I
move-result p1
return p1
.line 104
:cond_27
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_sendStatToServer(J[BJI)I
move-result p1
return p1
.end method
.method public final setCallback(Lsg/bigo/nerv/StatCallback;)V
.registers 4
.line 53
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_18
.line 55
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/StatController$CppProxy;->native_setCallback(JLsg/bigo/nerv/StatCallback;)V
:try_end_b
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c
return-void
.line 58
:catch_c
:try_start_c
iget-wide v0, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/StatController$CppProxy;->native_setCallback(JLsg/bigo/nerv/StatCallback;)V
:try_end_11
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12
return-void
.line 60
:catch_12
iget-wide v0, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/StatController$CppProxy;->native_setCallback(JLsg/bigo/nerv/StatCallback;)V
return-void
.line 64
:cond_18
iget-wide v0, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/StatController$CppProxy;->native_setCallback(JLsg/bigo/nerv/StatCallback;)V
return-void
.end method
.method public final setStatToken([BJI)I
.registers 14
.line 73
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_27
.line 75
:try_start_6
iget-wide v3, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v2, p0
move-object v5, p1
move-wide v6, p2
move v8, p4
invoke-direct/range {v2 .. v8}, Lsg/bigo/nerv/StatController$CppProxy;->native_setStatToken(J[BJI)I
move-result p1
:try_end_10
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_10} :catch_11
return p1
.line 78
:catch_11
:try_start_11
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_setStatToken(J[BJI)I
move-result p1
:try_end_1b
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_11 .. :try_end_1b} :catch_1c
return p1
.line 80
:catch_1c
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_setStatToken(J[BJI)I
move-result p1
return p1
.line 84
:cond_27
iget-wide v1, p0, Lsg/bigo/nerv/StatController$CppProxy;->nativeRef:J
move-object v0, p0
move-object v3, p1
move-wide v4, p2
move v6, p4
invoke-direct/range {v0 .. v6}, Lsg/bigo/nerv/StatController$CppProxy;->native_setStatToken(J[BJI)I
move-result p1
return p1
.end method