p.smali

.class public final Lcom/squareup/okhttp/internal/framed/p;
.super Ljava/lang/Object;
.source "Http2.java"

# interfaces
.implements Lcom/squareup/okhttp/internal/framed/ad;


# static fields
.field private static final bzi:Lokio/ByteString;

.field private static final logger:Ljava/util/logging/Logger;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 43
    const-class v0, Lcom/squareup/okhttp/internal/framed/r;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;

    move-result-object v0

    sput-object v0, Lcom/squareup/okhttp/internal/framed/p;->logger:Ljava/util/logging/Logger;

    .line 49
    const-string v0, "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"

    .line 50
    invoke-static {v0}, Lokio/ByteString;->encodeUtf8(Ljava/lang/String;)Lokio/ByteString;

    move-result-object v0

    sput-object v0, Lcom/squareup/okhttp/internal/framed/p;->bzi:Lokio/ByteString;

    .line 49
    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 42
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 668
    return-void
.end method

.method static synthetic HE()Lokio/ByteString;
    .registers 1

    .prologue
    .line 42
    sget-object v0, Lcom/squareup/okhttp/internal/framed/p;->bzi:Lokio/ByteString;

    return-object v0
.end method

.method static synthetic a(IBS)I
    .registers 7

    .prologue
    .line 2643
    and-int/lit8 v0, p1, 0x8

    if-eqz v0, :cond_6

    add-int/lit8 p0, p0, -0x1

    .line 2644
    :cond_6
    if-le p2, p0, :cond_20

    .line 2645
    const-string v0, "PROTOCOL_ERROR padding %s > remaining length %s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    invoke-static {p2}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;

    move-result-object v3

    aput-object v3, v1, v2

    const/4 v2, 0x1

    invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Lcom/squareup/okhttp/internal/framed/p;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;

    move-result-object v0

    throw v0

    .line 2647
    :cond_20
    sub-int v0, p0, p2

    int-to-short v0, v0

    .line 42
    return v0
.end method

.method static synthetic a(Lokio/f;)I
    .registers 3

    .prologue
    .line 42
    .line 1761
    invoke-interface {p0}, Lokio/f;->readByte()B

    move-result v0

    and-int/lit16 v0, v0, 0xff

    shl-int/lit8 v0, v0, 0x10

    .line 1762
    invoke-interface {p0}, Lokio/f;->readByte()B

    move-result v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x8

    or-int/2addr v0, v1

    .line 1763
    invoke-interface {p0}, Lokio/f;->readByte()B

    move-result v1

    and-int/lit16 v1, v1, 0xff

    or-int/2addr v0, v1

    .line 42
    return v0
.end method

.method private static varargs a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
    .registers 4

    .prologue
    .line 584
    new-instance v0, Ljava/io/IOException;

    invoke-static {p0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method static synthetic a(Lokio/e;I)V
    .registers 3

    .prologue
    .line 42
    .line 3767
    ushr-int/lit8 v0, p1, 0x10

    and-int/lit16 v0, v0, 0xff

    invoke-interface {p0, v0}, Lokio/e;->fB(I)Lokio/e;

    .line 3768
    ushr-int/lit8 v0, p1, 0x8

    and-int/lit16 v0, v0, 0xff

    invoke-interface {p0, v0}, Lokio/e;->fB(I)Lokio/e;

    .line 3769
    and-int/lit16 v0, p1, 0xff

    invoke-interface {p0, v0}, Lokio/e;->fB(I)Lokio/e;

    .line 42
    return-void
.end method

.method static synthetic b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
    .registers 3

    .prologue
    .line 42
    invoke-static {p0, p1}, Lcom/squareup/okhttp/internal/framed/p;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;

    move-result-object v0

    return-object v0
.end method

.method static synthetic c(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
    .registers 4

    .prologue
    .line 3580
    new-instance v0, Ljava/lang/IllegalArgumentException;

    invoke-static {p0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method static synthetic ya()Ljava/util/logging/Logger;
    .registers 1

    .prologue
    .line 42
    sget-object v0, Lcom/squareup/okhttp/internal/framed/p;->logger:Ljava/util/logging/Logger;

    return-object v0
.end method


# virtual methods
.method public final a(Lokio/f;Z)Lcom/squareup/okhttp/internal/framed/a;
    .registers 4

    .prologue
    .line 80
    new-instance v0, Lcom/squareup/okhttp/internal/framed/s;

    invoke-direct {v0, p1, p2}, Lcom/squareup/okhttp/internal/framed/s;-><init>(Lokio/f;Z)V

    return-object v0
.end method

.method public final a(Lokio/e;Z)Lcom/squareup/okhttp/internal/framed/c;
    .registers 4

    .prologue
    .line 84
    new-instance v0, Lcom/squareup/okhttp/internal/framed/t;

    invoke-direct {v0, p1, p2}, Lcom/squareup/okhttp/internal/framed/t;-><init>(Lokio/e;Z)V

    return-object v0
.end method