mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
95 lines
2.1 KiB
Smali
95 lines
2.1 KiB
Smali
.class public Lorg/webrtc/CallSessionFileRotatingLogSink;
|
|
.super Ljava/lang/Object;
|
|
.source "CallSessionFileRotatingLogSink.java"
|
|
|
|
|
|
# instance fields
|
|
.field private nativeSink:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;ILorg/webrtc/Logging$Severity;)V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 28
|
|
invoke-virtual {p3}, Lorg/webrtc/Logging$Severity;->ordinal()I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p1, p2, p3}, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeAddSink(Ljava/lang/String;II)J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeSink:J
|
|
|
|
return-void
|
|
|
|
.line 26
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "dirPath may not be null."
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static getLogData(Ljava/lang/String;)[B
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 20
|
|
invoke-static {p0}, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeGetLogData(Ljava/lang/String;)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 18
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "dirPath may not be null."
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private static native nativeAddSink(Ljava/lang/String;II)J
|
|
.end method
|
|
|
|
.method private static native nativeDeleteSink(J)V
|
|
.end method
|
|
|
|
.method private static native nativeGetLogData(Ljava/lang/String;)[B
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispose()V
|
|
.locals 5
|
|
|
|
iget-wide v0, p0, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeSink:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 33
|
|
invoke-static {v0, v1}, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeDeleteSink(J)V
|
|
|
|
iput-wide v2, p0, Lorg/webrtc/CallSessionFileRotatingLogSink;->nativeSink:J
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|