FileInputStream$CppProxy.smali
.class final Lsg/bigo/nerv/FileInputStream$CppProxy;
.super Lsg/bigo/nerv/FileInputStream;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lsg/bigo/nerv/FileInputStream;
.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 36
const-class v0, Lsg/bigo/nerv/FileInputStream;
return-void
.end method
.method private constructor <init>(J)V
.registers 6
.line 43
invoke-direct {p0}, Lsg/bigo/nerv/FileInputStream;-><init>()V
.line 40
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/FileInputStream$CppProxy;->destroyed:Ljava/util/concurrent/atomic/AtomicBoolean;
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-eqz v2, :cond_14
.line 45
iput-wide p1, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
return-void
.line 44
: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_bad(J)Z
.end method
.method private native native_close(J)V
.end method
.method private native native_eof(J)Z
.end method
.method private native native_errorCode(J)J
.end method
.method private native native_good(J)Z
.end method
.method private native native_read(JI)Ljava/nio/ByteBuffer;
.end method
.method private native native_readCount(J)I
.end method
.method private native native_seek(JJ)V
.end method
.method private native native_size(J)J
.end method
.method private native native_streamStat(J)Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(J)",
"Ljava/util/HashMap<",
"Ljava/lang/Integer;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end method
# virtual methods
.method public final _djinni_private_destroy()V
.registers 3
.line 51
iget-object v0, p0, Lsg/bigo/nerv/FileInputStream$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 52
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeDestroy(J)V
:cond_e
return-void
.end method
.method public final bad()Z
.registers 3
.line 84
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 86
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_bad(J)Z
move-result v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return v0
.line 89
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_bad(J)Z
move-result v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return v0
.line 91
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_bad(J)Z
move-result v0
return v0
.line 95
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_bad(J)Z
move-result v0
return v0
.end method
.method public final close()V
.registers 3
.line 164
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_18
.line 166
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_close(J)V
:try_end_b
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c
return-void
.line 169
:catch_c
:try_start_c
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_close(J)V
:try_end_11
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12
return-void
.line 171
:catch_12
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_close(J)V
return-void
.line 175
:cond_18
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_close(J)V
return-void
.end method
.method public final eof()Z
.registers 3
.line 104
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 106
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_eof(J)Z
move-result v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return v0
.line 109
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_eof(J)Z
move-result v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return v0
.line 111
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_eof(J)Z
move-result v0
return v0
.line 115
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_eof(J)Z
move-result v0
return v0
.end method
.method public final errorCode()J
.registers 3
.line 184
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 186
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_errorCode(J)J
move-result-wide v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return-wide v0
.line 189
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_errorCode(J)J
move-result-wide v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return-wide v0
.line 191
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_errorCode(J)J
move-result-wide v0
return-wide v0
.line 195
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_errorCode(J)J
move-result-wide v0
return-wide v0
.end method
.method protected final finalize()V
.registers 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 56
invoke-virtual {p0}, Lsg/bigo/nerv/FileInputStream$CppProxy;->_djinni_private_destroy()V
.line 57
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
.end method
.method public final good()Z
.registers 3
.line 64
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 66
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_good(J)Z
move-result v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return v0
.line 69
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_good(J)Z
move-result v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return v0
.line 71
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_good(J)Z
move-result v0
return v0
.line 75
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_good(J)Z
move-result v0
return v0
.end method
.method public final read(I)Ljava/nio/ByteBuffer;
.registers 4
.line 124
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 126
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_read(JI)Ljava/nio/ByteBuffer;
move-result-object p1
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return-object p1
.line 129
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_read(JI)Ljava/nio/ByteBuffer;
move-result-object p1
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return-object p1
.line 131
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_read(JI)Ljava/nio/ByteBuffer;
move-result-object p1
return-object p1
.line 135
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_read(JI)Ljava/nio/ByteBuffer;
move-result-object p1
return-object p1
.end method
.method public final readCount()I
.registers 3
.line 144
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 146
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_readCount(J)I
move-result v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return v0
.line 149
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_readCount(J)I
move-result v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return v0
.line 151
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_readCount(J)I
move-result v0
return v0
.line 155
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_readCount(J)I
move-result v0
return v0
.end method
.method public final seek(J)V
.registers 5
.line 204
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_18
.line 206
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_seek(JJ)V
:try_end_b
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_b} :catch_c
return-void
.line 209
:catch_c
:try_start_c
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_seek(JJ)V
:try_end_11
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_c .. :try_end_11} :catch_12
return-void
.line 211
:catch_12
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_seek(JJ)V
return-void
.line 215
:cond_18
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1, p1, p2}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_seek(JJ)V
return-void
.end method
.method public final size()J
.registers 3
.line 224
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 226
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_size(J)J
move-result-wide v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return-wide v0
.line 229
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_size(J)J
move-result-wide v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return-wide v0
.line 231
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_size(J)J
move-result-wide v0
return-wide v0
.line 235
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_size(J)J
move-result-wide v0
return-wide v0
.end method
.method public final streamStat()Ljava/util/HashMap;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/HashMap<",
"Ljava/lang/Integer;",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 244
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_1b
.line 246
:try_start_6
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_streamStat(J)Ljava/util/HashMap;
move-result-object v0
:try_end_c
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_c} :catch_d
return-object v0
.line 249
:catch_d
:try_start_d
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_streamStat(J)Ljava/util/HashMap;
move-result-object v0
:try_end_13
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_d .. :try_end_13} :catch_14
return-object v0
.line 251
:catch_14
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_streamStat(J)Ljava/util/HashMap;
move-result-object v0
return-object v0
.line 255
:cond_1b
iget-wide v0, p0, Lsg/bigo/nerv/FileInputStream$CppProxy;->nativeRef:J
invoke-direct {p0, v0, v1}, Lsg/bigo/nerv/FileInputStream$CppProxy;->native_streamStat(J)Ljava/util/HashMap;
move-result-object v0
return-object v0
.end method