Event4XReporter.smali
.class public Lcom/tencent/liteav/base/datareport/Event4XReporter;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lcom/tencent/liteav/base/annotations/JNINamespace;
value = "liteav"
.end annotation
# static fields
.field private static final INVALID_INSTANCE:I = 0x0
.field public static final REPORT_EVENT:I = 0x1
.field public static final REPORT_STATUS:I = 0x2
.field private static final TAG:Ljava/lang/String; = "Event4XReporter"
# instance fields
.field private mNativeEvent4XReporterAndroid:J
# direct methods
.method public constructor <init>(IILjava/lang/String;ZI)V
.registers 8
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
.line 16
iput-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
.line 29
invoke-static {p1, p2, p3, p4, p5}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeCreate(IILjava/lang/String;ZI)J
move-result-wide p1
iput-wide p1, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
return-void
.end method
.method private static native nativeCreate(IILjava/lang/String;ZI)J
.end method
.method private static native nativeDestroy(J)V
.end method
.method private static native nativeGetColdDownTime(J)I
.end method
.method private static native nativeSendReport(J)V
.end method
.method private static native nativeSetCommonIntValue(JLjava/lang/String;J)V
.end method
.method private static native nativeSetCommonStringValue(JLjava/lang/String;Ljava/lang/String;)V
.end method
.method private static native nativeSetEventIntValue(JLjava/lang/String;J)V
.end method
.method private static native nativeSetEventStringValue(JLjava/lang/String;Ljava/lang/String;)V
.end method
# virtual methods
.method public declared-synchronized destroy()V
.registers 6
monitor-enter p0
.line 40
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_12
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-nez v4, :cond_b
.line 41
monitor-exit p0
return-void
.line 43
:cond_b
:try_start_b
invoke-static {v0, v1}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeDestroy(J)V
.line 44
iput-wide v2, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
:try_end_10
.catchall {:try_start_b .. :try_end_10} :catchall_12
.line 45
monitor-exit p0
return-void
:catchall_12
move-exception v0
monitor-exit p0
throw v0
.end method
.method protected finalize()V
.registers 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 34
invoke-super {p0}, Ljava/lang/Object;->finalize()V
.line 35
invoke-virtual {p0}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->destroy()V
return-void
.end method
.method public getColdDownTime()I
.registers 5
.line 88
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-nez v2, :cond_b
const/16 v0, 0x2710
return v0
.line 91
:cond_b
invoke-static {v0, v1}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeGetColdDownTime(J)I
move-result v0
return v0
.end method
.method public declared-synchronized reportDau(IILjava/lang/String;)V
.registers 8
monitor-enter p0
.line 95
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_2d
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-nez v2, :cond_b
.line 96
monitor-exit p0
return-void
:cond_b
:try_start_b
const-string v2, "event_id"
.line 98
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-static {v0, v1, v2, p1}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetEventStringValue(JLjava/lang/String;Ljava/lang/String;)V
.line 99
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-string p1, "err_code"
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p2
invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetEventStringValue(JLjava/lang/String;Ljava/lang/String;)V
.line 100
iget-wide p1, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-string v0, "err_info"
invoke-static {p1, p2, v0, p3}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetEventStringValue(JLjava/lang/String;Ljava/lang/String;)V
.line 101
iget-wide p1, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
invoke-static {p1, p2}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSendReport(J)V
:try_end_2b
.catchall {:try_start_b .. :try_end_2b} :catchall_2d
.line 102
monitor-exit p0
return-void
:catchall_2d
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized sendReport()V
.registers 5
monitor-enter p0
.line 81
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_10
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-nez v2, :cond_b
.line 82
monitor-exit p0
return-void
.line 84
:cond_b
:try_start_b
invoke-static {v0, v1}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSendReport(J)V
:try_end_e
.catchall {:try_start_b .. :try_end_e} :catchall_10
.line 85
monitor-exit p0
return-void
:catchall_10
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized setCommonIntValue(Ljava/lang/String;J)V
.registers 8
monitor-enter p0
.line 52
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_11
if-nez p1, :cond_c
goto :goto_11
.line 55
:cond_c
invoke-static {v0, v1, p1, p2, p3}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetCommonIntValue(JLjava/lang/String;J)V
:try_end_f
.catchall {:try_start_1 .. :try_end_f} :catchall_13
.line 56
monitor-exit p0
return-void
.line 53
:cond_11
:goto_11
monitor-exit p0
return-void
:catchall_13
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized setCommonStringValue(Ljava/lang/String;Ljava/lang/String;)V
.registers 7
monitor-enter p0
.line 58
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_13
if-eqz p1, :cond_13
if-nez p2, :cond_e
goto :goto_13
.line 61
:cond_e
invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetCommonStringValue(JLjava/lang/String;Ljava/lang/String;)V
:try_end_11
.catchall {:try_start_1 .. :try_end_11} :catchall_15
.line 62
monitor-exit p0
return-void
.line 59
:cond_13
:goto_13
monitor-exit p0
return-void
:catchall_15
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized setEventIntValue(Ljava/lang/String;J)V
.registers 8
monitor-enter p0
.line 68
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_11
if-nez p1, :cond_c
goto :goto_11
.line 71
:cond_c
invoke-static {v0, v1, p1, p2, p3}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetEventIntValue(JLjava/lang/String;J)V
:try_end_f
.catchall {:try_start_1 .. :try_end_f} :catchall_13
.line 72
monitor-exit p0
return-void
.line 69
:cond_11
:goto_11
monitor-exit p0
return-void
:catchall_13
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized setEventStringValue(Ljava/lang/String;Ljava/lang/String;)V
.registers 7
monitor-enter p0
.line 74
:try_start_1
iget-wide v0, p0, Lcom/tencent/liteav/base/datareport/Event4XReporter;->mNativeEvent4XReporterAndroid:J
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-eqz v2, :cond_13
if-eqz p1, :cond_13
if-nez p2, :cond_e
goto :goto_13
.line 77
:cond_e
invoke-static {v0, v1, p1, p2}, Lcom/tencent/liteav/base/datareport/Event4XReporter;->nativeSetEventStringValue(JLjava/lang/String;Ljava/lang/String;)V
:try_end_11
.catchall {:try_start_1 .. :try_end_11} :catchall_15
.line 78
monitor-exit p0
return-void
.line 75
:cond_13
:goto_13
monitor-exit p0
return-void
:catchall_15
move-exception p1
monitor-exit p0
throw p1
.end method