Weather/smali_classes4/okhttp3/internal/http2/Settings.smali
2021-05-10 10:13:34 +02:00

251 lines
3.8 KiB
Smali

.class public final Lokhttp3/internal/http2/Settings;
.super Ljava/lang/Object;
.source "Settings.java"
# instance fields
.field private a:I
.field private final b:[I
# direct methods
.method public constructor <init>()V
.locals 1
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0xa
.line 51
new-array v0, v0, [I
iput-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
return-void
.end method
# virtual methods
.method a(II)Lokhttp3/internal/http2/Settings;
.locals 2
.line 59
iget-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
array-length v0, v0
if-lt p1, v0, :cond_0
return-object p0
:cond_0
const/4 v0, 0x1
shl-int/2addr v0, p1
.line 64
iget v1, p0, Lokhttp3/internal/http2/Settings;->a:I
or-int/2addr v0, v1
iput v0, p0, Lokhttp3/internal/http2/Settings;->a:I
.line 65
iget-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
aput p2, v0, p1
return-object p0
.end method
.method a()V
.locals 2
const/4 v0, 0x0
.line 54
iput v0, p0, Lokhttp3/internal/http2/Settings;->a:I
.line 55
iget-object v1, p0, Lokhttp3/internal/http2/Settings;->b:[I
invoke-static {v1, v0}, Ljava/util/Arrays;->fill([II)V
return-void
.end method
.method a(Lokhttp3/internal/http2/Settings;)V
.locals 2
const/4 v0, 0x0
:goto_0
const/16 v1, 0xa
if-ge v0, v1, :cond_1
.line 124
invoke-virtual {p1, v0}, Lokhttp3/internal/http2/Settings;->a(I)Z
move-result v1
if-nez v1, :cond_0
goto :goto_1
.line 125
:cond_0
invoke-virtual {p1, v0}, Lokhttp3/internal/http2/Settings;->b(I)I
move-result v1
invoke-virtual {p0, v0, v1}, Lokhttp3/internal/http2/Settings;->a(II)Lokhttp3/internal/http2/Settings;
:goto_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method a(I)Z
.locals 2
const/4 v0, 0x1
shl-int p1, v0, p1
.line 72
iget v1, p0, Lokhttp3/internal/http2/Settings;->a:I
and-int/2addr p1, v1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method b()I
.locals 1
.line 82
iget v0, p0, Lokhttp3/internal/http2/Settings;->a:I
invoke-static {v0}, Ljava/lang/Integer;->bitCount(I)I
move-result v0
return v0
.end method
.method b(I)I
.locals 1
.line 77
iget-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
aget p1, v0, p1
return p1
.end method
.method c()I
.locals 2
.line 88
iget v0, p0, Lokhttp3/internal/http2/Settings;->a:I
and-int/lit8 v0, v0, 0x2
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
const/4 v1, 0x1
aget v0, v0, v1
goto :goto_0
:cond_0
const/4 v0, -0x1
:goto_0
return v0
.end method
.method c(I)I
.locals 1
.line 100
iget v0, p0, Lokhttp3/internal/http2/Settings;->a:I
and-int/lit8 v0, v0, 0x10
if-eqz v0, :cond_0
iget-object p1, p0, Lokhttp3/internal/http2/Settings;->b:[I
const/4 v0, 0x4
aget p1, p1, v0
:cond_0
return p1
.end method
.method d()I
.locals 2
.line 115
iget v0, p0, Lokhttp3/internal/http2/Settings;->a:I
and-int/lit16 v0, v0, 0x80
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/internal/http2/Settings;->b:[I
const/4 v1, 0x7
aget v0, v0, v1
goto :goto_0
:cond_0
const v0, 0xffff
:goto_0
return v0
.end method
.method d(I)I
.locals 1
.line 105
iget v0, p0, Lokhttp3/internal/http2/Settings;->a:I
and-int/lit8 v0, v0, 0x20
if-eqz v0, :cond_0
iget-object p1, p0, Lokhttp3/internal/http2/Settings;->b:[I
const/4 v0, 0x5
aget p1, p1, v0
:cond_0
return p1
.end method