Lbs$CppProxy.smali

.class final Lsg/bigo/nerv/Lbs$CppProxy;
.super Lsg/bigo/nerv/Lbs;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lsg/bigo/nerv/Lbs;
.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 72
    const-class v0, Lsg/bigo/nerv/Lbs;

    return-void
.end method

.method private constructor <init>(J)V
    .registers 6

    .line 79
    invoke-direct {p0}, Lsg/bigo/nerv/Lbs;-><init>()V

    .line 76
    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/Lbs$CppProxy;->destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-eqz v2, :cond_14

    .line 81
    iput-wide p1, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    return-void

    .line 80
    :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 public static native init(Lsg/bigo/nerv/LbsConfig;Ljava/lang/String;Lsg/bigo/nerv/NetworkStatus;)Lsg/bigo/nerv/Lbs;
.end method

.method public static native instance()Lsg/bigo/nerv/Lbs;
.end method

.method private native nativeDestroy(J)V
.end method

.method private native native_currentLbsIP(J)Ljava/lang/String;
.end method

.method private native native_destroy(J)V
.end method

.method private native native_onForeground(JZ)V
.end method

.method private native native_requestFileServer(JJJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z
.end method

.method private native native_requestFileServerRaw(J[BLsg/bigo/nerv/RequestFileServerHandler;)Z
.end method

.method private native native_setLbsConfigDownloader(JLsg/bigo/nerv/LbsConfigDownloader;)V
.end method

.method private native native_setStatManager(JLsg/bigo/nerv/IStatManager;)V
.end method


# virtual methods
.method public final _djinni_private_destroy()V
    .registers 3

    .line 87
    iget-object v0, p0, Lsg/bigo/nerv/Lbs$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 88
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->nativeDestroy(J)V

    :cond_e
    return-void
.end method

.method public final currentLbsIP()Ljava/lang/String;
    .registers 3

    .line 220
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_1b

    .line 222
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_currentLbsIP(J)Ljava/lang/String;

    move-result-object v0
    :try_end_c
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d

    return-object v0

    .line 225
    :catch_d
    :try_start_d
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_currentLbsIP(J)Ljava/lang/String;

    move-result-object v0
    :try_end_13
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14

    return-object v0

    .line 227
    :catch_14
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_currentLbsIP(J)Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 231
    :cond_1b
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_currentLbsIP(J)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final destroy()V
    .registers 3

    .line 100
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_18

    .line 102
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_destroy(J)V
    :try_end_b
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c

    return-void

    .line 105
    :catch_c
    :try_start_c
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_destroy(J)V
    :try_end_11
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12

    return-void

    .line 107
    :catch_12
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_destroy(J)V

    return-void

    .line 111
    :cond_18
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_destroy(J)V

    return-void
.end method

.method protected final finalize()V
    .registers 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    .line 92
    invoke-virtual {p0}, Lsg/bigo/nerv/Lbs$CppProxy;->_djinni_private_destroy()V

    .line 93
    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    return-void
.end method

.method public final onForeground(Z)V
    .registers 4

    .line 160
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_18

    .line 162
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_onForeground(JZ)V
    :try_end_b
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c

    return-void

    .line 165
    :catch_c
    :try_start_c
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_onForeground(JZ)V
    :try_end_11
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12

    return-void

    .line 167
    :catch_12
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_onForeground(JZ)V

    return-void

    .line 171
    :cond_18
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_onForeground(JZ)V

    return-void
.end method

.method public final requestFileServer(JJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z
    .registers 25

    move-object v13, p0

    .line 180
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_4c

    .line 182
    :try_start_7
    iget-wide v1, v13, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    move-object v0, p0

    move-wide v3, p1

    move-wide/from16 v5, p3

    move-object/from16 v7, p5

    move-object/from16 v8, p6

    move/from16 v9, p7

    move/from16 v10, p8

    move/from16 v11, p9

    move-object/from16 v12, p10

    invoke-direct/range {v0 .. v12}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServer(JJJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result v0
    :try_end_1d
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_7 .. :try_end_1d} :catch_1e

    return v0

    .line 185
    :catch_1e
    :try_start_1e
    iget-wide v1, v13, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    move-object v0, p0

    move-wide v3, p1

    move-wide/from16 v5, p3

    move-object/from16 v7, p5

    move-object/from16 v8, p6

    move/from16 v9, p7

    move/from16 v10, p8

    move/from16 v11, p9

    move-object/from16 v12, p10

    invoke-direct/range {v0 .. v12}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServer(JJJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result v0
    :try_end_34
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_1e .. :try_end_34} :catch_35

    return v0

    .line 187
    :catch_35
    iget-wide v1, v13, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    move-object v0, p0

    move-wide v3, p1

    move-wide/from16 v5, p3

    move-object/from16 v7, p5

    move-object/from16 v8, p6

    move/from16 v9, p7

    move/from16 v10, p8

    move/from16 v11, p9

    move-object/from16 v12, p10

    invoke-direct/range {v0 .. v12}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServer(JJJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result v0

    return v0

    .line 191
    :cond_4c
    iget-wide v1, v13, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    move-object v0, p0

    move-wide v3, p1

    move-wide/from16 v5, p3

    move-object/from16 v7, p5

    move-object/from16 v8, p6

    move/from16 v9, p7

    move/from16 v10, p8

    move/from16 v11, p9

    move-object/from16 v12, p10

    invoke-direct/range {v0 .. v12}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServer(JJJLjava/lang/String;Ljava/lang/String;IZILsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result v0

    return v0
.end method

.method public final requestFileServerRaw([BLsg/bigo/nerv/RequestFileServerHandler;)Z
    .registers 5

    .line 200
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_1b

    .line 202
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServerRaw(J[BLsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result p1
    :try_end_c
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d

    return p1

    .line 205
    :catch_d
    :try_start_d
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServerRaw(J[BLsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result p1
    :try_end_13
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14

    return p1

    .line 207
    :catch_14
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServerRaw(J[BLsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result p1

    return p1

    .line 211
    :cond_1b
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/Lbs$CppProxy;->native_requestFileServerRaw(J[BLsg/bigo/nerv/RequestFileServerHandler;)Z

    move-result p1

    return p1
.end method

.method public final setLbsConfigDownloader(Lsg/bigo/nerv/LbsConfigDownloader;)V
    .registers 4

    .line 120
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_18

    .line 122
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setLbsConfigDownloader(JLsg/bigo/nerv/LbsConfigDownloader;)V
    :try_end_b
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c

    return-void

    .line 125
    :catch_c
    :try_start_c
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setLbsConfigDownloader(JLsg/bigo/nerv/LbsConfigDownloader;)V
    :try_end_11
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12

    return-void

    .line 127
    :catch_12
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setLbsConfigDownloader(JLsg/bigo/nerv/LbsConfigDownloader;)V

    return-void

    .line 131
    :cond_18
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setLbsConfigDownloader(JLsg/bigo/nerv/LbsConfigDownloader;)V

    return-void
.end method

.method public final setStatManager(Lsg/bigo/nerv/IStatManager;)V
    .registers 4

    .line 140
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_18

    .line 142
    :try_start_6
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setStatManager(JLsg/bigo/nerv/IStatManager;)V
    :try_end_b
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c

    return-void

    .line 145
    :catch_c
    :try_start_c
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setStatManager(JLsg/bigo/nerv/IStatManager;)V
    :try_end_11
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12

    return-void

    .line 147
    :catch_12
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setStatManager(JLsg/bigo/nerv/IStatManager;)V

    return-void

    .line 151
    :cond_18
    iget-wide v0, p0, Lsg/bigo/nerv/Lbs$CppProxy;->nativeRef:J

    invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/Lbs$CppProxy;->native_setStatManager(JLsg/bigo/nerv/IStatManager;)V

    return-void
.end method