mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
126 lines
2.6 KiB
Smali
126 lines
2.6 KiB
Smali
.class final Landroidx/fragment/app/LogWriter;
|
|
.super Ljava/io/Writer;
|
|
.source "LogWriter.java"
|
|
|
|
|
|
# instance fields
|
|
.field private mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
.field private final mTag:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Ljava/io/Writer;-><init>()V
|
|
|
|
.line 25
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x80
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
iput-object v0, p0, Landroidx/fragment/app/LogWriter;->mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
iput-object p1, p0, Landroidx/fragment/app/LogWriter;->mTag:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private flushBuilder()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/LogWriter;->mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
.line 55
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/fragment/app/LogWriter;->mTag:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Landroidx/fragment/app/LogWriter;->mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
.line 56
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
iget-object p0, p0, Landroidx/fragment/app/LogWriter;->mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 57
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 0
|
|
|
|
.line 35
|
|
invoke-direct {p0}, Landroidx/fragment/app/LogWriter;->flushBuilder()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public flush()V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Landroidx/fragment/app/LogWriter;->flushBuilder()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([CII)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-ge v0, p3, :cond_1
|
|
|
|
add-int v1, p2, v0
|
|
|
|
.line 44
|
|
aget-char v1, p1, v1
|
|
|
|
const/16 v2, 0xa
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
.line 46
|
|
invoke-direct {p0}, Landroidx/fragment/app/LogWriter;->flushBuilder()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Landroidx/fragment/app/LogWriter;->mBuilder:Ljava/lang/StringBuilder;
|
|
|
|
.line 49
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
:goto_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|