AudioBitUtils.smali
.class public Lim/tpelyyftgw/ui/utils/translate/utils/AudioBitUtils;
.super Ljava/lang/Object;
.source "AudioBitUtils.java"
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 6
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static AverageShortByteArray(BBBBZ)[B
.registers 9
.param p0, "firstShortHighByte" # B
.param p1, "firstShortLowByte" # B
.param p2, "secondShortHighByte" # B
.param p3, "secondShortLowByte" # B
.param p4, "bigEnding" # Z
.line 68
invoke-static {p0, p1, p4}, Lim/tpelyyftgw/ui/utils/translate/utils/AudioBitUtils;->GetShort(BBZ)S
move-result v0
.line 69
.local v0, "firstShort":S
invoke-static {p2, p3, p4}, Lim/tpelyyftgw/ui/utils/translate/utils/AudioBitUtils;->GetShort(BBZ)S
move-result v1
.line 70
.local v1, "secondShort":S
div-int/lit8 v2, v0, 0x2
div-int/lit8 v3, v1, 0x2
add-int/2addr v2, v3
int-to-short v2, v2
invoke-static {v2, p4}, Lim/tpelyyftgw/ui/utils/translate/utils/AudioBitUtils;->GetBytes(SZ)[B
move-result-object v2
return-object v2
.end method
.method public static GetBytes(SZ)[B
.registers 6
.param p0, "shortValue" # S
.param p1, "bigEnding" # Z
.line 16
const/4 v0, 0x2
new-array v0, v0, [B
.line 18
.local v0, "byteArray":[B
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz p1, :cond_15
.line 19
and-int/lit16 v3, p0, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
.line 20
shr-int/lit8 v1, p0, 0x8
int-to-short p0, v1
.line 21
and-int/lit16 v1, p0, 0xff
int-to-byte v1, v1
aput-byte v1, v0, v2
goto :goto_22
.line 23
:cond_15
and-int/lit16 v3, p0, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v2
.line 24
shr-int/lit8 v2, p0, 0x8
int-to-short p0, v2
.line 25
and-int/lit16 v2, p0, 0xff
int-to-byte v2, v2
aput-byte v2, v0, v1
.line 28
:goto_22
return-object v0
.end method
.method public static GetInt(BBBBZ)S
.registers 7
.param p0, "firstByte" # B
.param p1, "secondByte" # B
.param p2, "thirdByte" # B
.param p3, "fourthByte" # B
.param p4, "bigEnding" # Z
.line 49
const/4 v0, 0x0
.line 51
.local v0, "shortValue":S
if-eqz p4, :cond_1c
.line 52
shl-int/lit8 v1, p0, 0x18
int-to-byte v1, v1
move p0, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 53
shl-int/lit8 v1, p1, 0x10
int-to-byte v1, v1
move p1, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 54
shl-int/lit8 v1, p2, 0x8
int-to-byte v1, v1
move p2, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 55
shl-int/lit8 v1, p3, 0x0
int-to-byte v1, v1
move p3, v1
or-int/2addr v1, v0
int-to-short v0, v1
goto :goto_34
.line 57
:cond_1c
shl-int/lit8 v1, p0, 0x0
int-to-byte v1, v1
move p0, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 58
shl-int/lit8 v1, p1, 0x8
int-to-byte v1, v1
move p1, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 59
shl-int/lit8 v1, p2, 0x10
int-to-byte v1, v1
move p2, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 60
shl-int/lit8 v1, p3, 0x18
int-to-byte v1, v1
move p3, v1
or-int/2addr v1, v0
int-to-short v0, v1
.line 63
:goto_34
return v0
.end method
.method public static GetShort(BBZ)S
.registers 5
.param p0, "firstByte" # B
.param p1, "secondByte" # B
.param p2, "bigEnding" # Z
.line 32
const/4 v0, 0x0
.line 34
.local v0, "shortValue":S
if-eqz p2, :cond_f
.line 35
and-int/lit16 v1, p0, 0xff
or-int/2addr v1, v0
int-to-short v0, v1
.line 36
shl-int/lit8 v1, v0, 0x8
int-to-short v0, v1
.line 37
and-int/lit16 v1, p1, 0xff
or-int/2addr v1, v0
int-to-short v0, v1
goto :goto_1a
.line 39
:cond_f
and-int/lit16 v1, p1, 0xff
or-int/2addr v1, v0
int-to-short v0, v1
.line 40
shl-int/lit8 v1, v0, 0x8
int-to-short v0, v1
.line 41
and-int/lit16 v1, p0, 0xff
or-int/2addr v1, v0
int-to-short v0, v1
.line 44
:goto_1a
return v0
.end method
.method public static isEmpty(Ljava/lang/CharSequence;)Z
.registers 2
.param p0, "text" # Ljava/lang/CharSequence;
.line 8
if-eqz p0, :cond_b
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
if-nez v0, :cond_9
goto :goto_b
.line 12
:cond_9
const/4 v0, 0x0
return v0
.line 9
:cond_b
:goto_b
const/4 v0, 0x1
return v0
.end method