Add Discord APKTool decompilation (Smali source for modding)

- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
.class public abstract Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
# direct methods
.method public constructor <init>()V
.locals 0
.line 40
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static initializeInstanceForTests()V
.locals 1
.line 44
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;-><init>()V
return-void
.end method
# virtual methods
.method public abstract addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;)V
.end method
.method public abstract addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
.end method
.method public abstract apply(Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;Ljavax/net/ssl/SSLSocket;Z)V
.end method
.method public abstract code(Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;)I
.end method
.method public abstract connectionBecameIdle(Lcom/mbridge/msdk/thrid/okhttp/ConnectionPool;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;)Z
.end method
.method public abstract deduplicate(Lcom/mbridge/msdk/thrid/okhttp/ConnectionPool;Lcom/mbridge/msdk/thrid/okhttp/Address;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;)Ljava/net/Socket;
.end method
.method public abstract equalsNonHost(Lcom/mbridge/msdk/thrid/okhttp/Address;Lcom/mbridge/msdk/thrid/okhttp/Address;)Z
.end method
.method public abstract get(Lcom/mbridge/msdk/thrid/okhttp/ConnectionPool;Lcom/mbridge/msdk/thrid/okhttp/Address;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/Route;)Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.end method
.method public abstract isInvalidHttpUrlHost(Ljava/lang/IllegalArgumentException;)Z
.end method
.method public abstract newWebSocketCall(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Call;
.end method
.method public abstract put(Lcom/mbridge/msdk/thrid/okhttp/ConnectionPool;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;)V
.end method
.method public abstract routeDatabase(Lcom/mbridge/msdk/thrid/okhttp/ConnectionPool;)Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
.end method
.method public abstract setCache(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient$Builder;Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;)V
.end method
.method public abstract streamAllocation(Lcom/mbridge/msdk/thrid/okhttp/Call;)Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.end method
.method public abstract timeoutExit(Lcom/mbridge/msdk/thrid/okhttp/Call;Ljava/io/IOException;)Ljava/io/IOException;
.end method

View File

@@ -0,0 +1,82 @@
.class public abstract Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field protected final name:Ljava/lang/String;
# direct methods
.method public varargs constructor <init>(Ljava/lang/String;[Ljava/lang/Object;)V
.locals 0
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 25
invoke-static {p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;->name:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public abstract execute()V
.end method
.method public final run()V
.locals 3
.line 29
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v0
.line 30
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;->name:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 32
:try_start_0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;->execute()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 34
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
return-void
:catchall_0
move-exception v1
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v2
invoke-virtual {v2, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 35
throw v1
.end method

View File

@@ -0,0 +1,65 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/Util$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/Util;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator<",
"Ljava/lang/String;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 81
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 81
check-cast p1, Ljava/lang/String;
check-cast p2, Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util$1;->compare(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
return p1
.end method
.method public compare(Ljava/lang/String;Ljava/lang/String;)I
.locals 0
.line 83
invoke-virtual {p1, p2}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I
move-result p1
return p1
.end method

View File

@@ -0,0 +1,58 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/Util$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/concurrent/ThreadFactory;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->threadFactory(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# instance fields
.field final synthetic val$daemon:Z
.field final synthetic val$name:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Z)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util$2;->val$name:Ljava/lang/String;
iput-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util$2;->val$daemon:Z
.line 245
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.locals 2
.line 247
new-instance v0, Ljava/lang/Thread;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util$2;->val$name:Ljava/lang/String;
invoke-direct {v0, p1, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
iget-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util$2;->val$daemon:Z
.line 248
invoke-virtual {v0, p1}, Ljava/lang/Thread;->setDaemon(Z)V
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/Version;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static userAgent()Ljava/lang/String;
.locals 1
const-string v0, "okhttp/3.12.13"
return-object v0
.end method

View File

@@ -0,0 +1,15 @@
.class public interface abstract annotation Lcom/mbridge/msdk/thrid/okhttp/internal/annotations/EverythingIsNonNull;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljava/lang/annotation/Documented;
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation

View File

@@ -0,0 +1,190 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cacheWritingResponse(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field cacheRequestClosed:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;
.field final synthetic val$cacheBody:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.field final synthetic val$cacheRequest:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
.field final synthetic val$source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;Lcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheRequest:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheBody:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 169
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
if-nez v0, :cond_0
const/16 v0, 0x64
.line 205
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->discard(Lcom/mbridge/msdk/thrid/okio/Source;ILjava/util/concurrent/TimeUnit;)Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheRequest:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
.line 207
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;->abort()V
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 209
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Source;->close()V
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 176
invoke-interface {v1, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p2
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
const-wide/16 v1, -0x1
cmp-long v3, p2, v1
if-nez v3, :cond_1
iget-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
if-nez p1, :cond_0
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheBody:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 188
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okio/Sink;->close()V
:cond_0
return-wide v1
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheBody:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 193
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->buffer()Lcom/mbridge/msdk/thrid/okio/Buffer;
move-result-object v3
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v0
sub-long v4, v0, p2
move-object v2, p1
move-wide v6, p2
invoke-virtual/range {v2 .. v7}, Lcom/mbridge/msdk/thrid/okio/Buffer;->copyTo(Lcom/mbridge/msdk/thrid/okio/Buffer;JJ)Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheBody:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 194
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->emitCompleteSegments()Lcom/mbridge/msdk/thrid/okio/BufferedSink;
return-wide p2
:catch_0
move-exception p1
iget-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
if-nez p2, :cond_2
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->cacheRequestClosed:Z
iget-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$cacheRequest:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
.line 180
invoke-interface {p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;->abort()V
.line 182
:cond_2
throw p1
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;->val$source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 200
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Source;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,788 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/Interceptor;
# instance fields
.field final cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;)V
.locals 0
.line 52
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
return-void
.end method
.method private cacheWritingResponse(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p1, :cond_0
return-object p2
.line 163
:cond_0
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;->body()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object v0
if-nez v0, :cond_1
return-object p2
.line 166
:cond_1
invoke-virtual {p2}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v1
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->source()Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v1
.line 167
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Sink;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v0
.line 169
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;
invoke-direct {v2, p0, v1, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor$1;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;Lcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
const-string p1, "Content-Type"
.line 213
invoke-virtual {p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 214
invoke-virtual {p2}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->contentLength()J
move-result-wide v0
.line 215
invoke-virtual {p2}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p2
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
.line 216
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v2
invoke-direct {v3, p1, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
invoke-virtual {p2, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 217
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.end method
.method private static combine(Lcom/mbridge/msdk/thrid/okhttp/Headers;Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Headers;
.locals 7
.line 224
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;-><init>()V
.line 226
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result v1
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v3, v1, :cond_3
.line 227
invoke-virtual {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object v4
.line 228
invoke-virtual {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v5
const-string v6, "Warning"
.line 229
invoke-virtual {v6, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_0
const-string v6, "1"
invoke-virtual {v5, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_0
goto :goto_1
.line 232
:cond_0
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->isContentSpecificHeader(Ljava/lang/String;)Z
move-result v6
if-nez v6, :cond_1
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->isEndToEnd(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_1
.line 233
invoke-virtual {p1, v4}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
if-nez v6, :cond_2
:cond_1
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 234
invoke-virtual {v6, v0, v4, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
:cond_2
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 238
:cond_3
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result p0
:goto_2
if-ge v2, p0, :cond_5
.line 239
invoke-virtual {p1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object v1
.line 240
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->isContentSpecificHeader(Ljava/lang/String;)Z
move-result v3
if-nez v3, :cond_4
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->isEndToEnd(Ljava/lang/String;)Z
move-result v3
if-eqz v3, :cond_4
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 241
invoke-virtual {p1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v0, v1, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
:cond_4
add-int/lit8 v2, v2, 0x1
goto :goto_2
.line 245
:cond_5
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object p0
return-object p0
.end method
.method public static isContentSpecificHeader(Ljava/lang/String;)Z
.locals 1
const-string v0, "Content-Length"
.line 268
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "Content-Encoding"
.line 269
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "Content-Type"
.line 270
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method public static isEndToEnd(Ljava/lang/String;)Z
.locals 1
const-string v0, "Connection"
.line 253
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Keep-Alive"
.line 254
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Proxy-Authenticate"
.line 255
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Proxy-Authorization"
.line 256
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "TE"
.line 257
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Trailers"
.line 258
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Transfer-Encoding"
.line 259
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "Upgrade"
.line 260
invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p0
if-nez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method private static stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 1
if-eqz p0, :cond_0
.line 149
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
if-eqz v0, :cond_0
.line 150
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p0
:cond_0
return-object p0
.end method
# virtual methods
.method public intercept(Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
if-eqz v0, :cond_0
.line 58
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v1
invoke-interface {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->get(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 60
:goto_0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v1
.line 62
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v4
invoke-direct {v3, v1, v2, v4, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;-><init>(JLcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->get()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
move-result-object v1
.line 63
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->networkRequest:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 64
iget-object v3, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
if-eqz v4, :cond_1
.line 67
invoke-interface {v4, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->trackResponse(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;)V
:cond_1
if-eqz v0, :cond_2
if-nez v3, :cond_2
.line 71
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v1
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
:cond_2
if-nez v2, :cond_3
if-nez v3, :cond_3
.line 76
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;-><init>()V
.line 77
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->request(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_1_1:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
.line 78
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->protocol(Lcom/mbridge/msdk/thrid/okhttp/Protocol;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
const/16 v0, 0x1f8
.line 79
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->code(I)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
const-string v0, "Unsatisfiable Request (only-if-cached)"
.line 80
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->message(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->EMPTY_RESPONSE:Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.line 81
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
const-wide/16 v0, -0x1
.line 82
invoke-virtual {p1, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->sentRequestAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 83
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->receivedResponseAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 84
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
:cond_3
if-nez v2, :cond_4
.line 89
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->cacheResponse(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.line 94
:cond_4
:try_start_0
invoke-interface {p1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez p1, :cond_5
if-eqz v0, :cond_5
.line 98
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
:cond_5
if-eqz v3, :cond_7
.line 104
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->code()I
move-result v0
const/16 v1, 0x130
if-ne v0, v1, :cond_6
.line 105
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 106
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Response;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v2
invoke-static {v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->combine(Lcom/mbridge/msdk/thrid/okhttp/Headers;Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->headers(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 107
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->sentRequestAtMillis()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->sentRequestAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 108
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->receivedResponseAtMillis()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->receivedResponseAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 109
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->cacheResponse(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 110
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->networkResponse(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 111
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v0
.line 112
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object p1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->close()V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
.line 116
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->trackConditionalCacheHit()V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
.line 117
invoke-interface {p1, v3, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->update(Lcom/mbridge/msdk/thrid/okhttp/Response;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
.line 120
:cond_6
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
.line 124
:cond_7
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 125
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->cacheResponse(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
.line 126
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->stripBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->networkResponse(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 127
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
if-eqz v0, :cond_9
.line 130
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->hasBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Z
move-result v0
if-eqz v0, :cond_8
invoke-static {p1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->isCacheable(Lcom/mbridge/msdk/thrid/okhttp/Response;Lcom/mbridge/msdk/thrid/okhttp/Request;)Z
move-result v0
if-eqz v0, :cond_8
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
.line 132
invoke-interface {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->put(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
move-result-object v0
.line 133
invoke-direct {p0, v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cacheWritingResponse(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.line 136
:cond_8
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->method()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpMethod;->invalidatesCache(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_9
:try_start_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheInterceptor;->cache:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
.line 138
invoke-interface {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;->remove(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
:catch_0
:cond_9
return-object p1
:catchall_0
move-exception p1
if-eqz v0, :cond_a
.line 98
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
.line 100
:cond_a
throw p1
.end method

View File

@@ -0,0 +1,16 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract abort()V
.end method
.method public abstract body()Lcom/mbridge/msdk/thrid/okio/Sink;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View File

@@ -0,0 +1,856 @@
.class public Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Factory"
.end annotation
# instance fields
.field private ageSeconds:I
.field final cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.field private etag:Ljava/lang/String;
.field private expires:Ljava/util/Date;
.field private lastModified:Ljava/util/Date;
.field private lastModifiedString:Ljava/lang/String;
.field final nowMillis:J
.field private receivedResponseMillis:J
.field final request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.field private sentRequestMillis:J
.field private servedDate:Ljava/util/Date;
.field private servedDateString:Ljava/lang/String;
# direct methods
.method public constructor <init>(JLcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
.locals 3
.line 158
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->ageSeconds:I
iput-wide p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->nowMillis:J
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
if-eqz p4, :cond_5
.line 164
invoke-virtual {p4}, Lcom/mbridge/msdk/thrid/okhttp/Response;->sentRequestAtMillis()J
move-result-wide p1
iput-wide p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->sentRequestMillis:J
.line 165
invoke-virtual {p4}, Lcom/mbridge/msdk/thrid/okhttp/Response;->receivedResponseAtMillis()J
move-result-wide p1
iput-wide p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->receivedResponseMillis:J
.line 166
invoke-virtual {p4}, Lcom/mbridge/msdk/thrid/okhttp/Response;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object p1
.line 167
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result p2
const/4 p3, 0x0
:goto_0
if-ge p3, p2, :cond_5
.line 168
invoke-virtual {p1, p3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object p4
.line 169
invoke-virtual {p1, p3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v1
const-string v2, "Date"
.line 170
invoke-virtual {v2, p4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_0
.line 171
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->parse(Ljava/lang/String;)Ljava/util/Date;
move-result-object p4
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDate:Ljava/util/Date;
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDateString:Ljava/lang/String;
goto :goto_1
:cond_0
const-string v2, "Expires"
.line 173
invoke-virtual {v2, p4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_1
.line 174
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->parse(Ljava/lang/String;)Ljava/util/Date;
move-result-object p4
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->expires:Ljava/util/Date;
goto :goto_1
:cond_1
const-string v2, "Last-Modified"
.line 175
invoke-virtual {v2, p4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_2
.line 176
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->parse(Ljava/lang/String;)Ljava/util/Date;
move-result-object p4
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModified:Ljava/util/Date;
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModifiedString:Ljava/lang/String;
goto :goto_1
:cond_2
const-string v2, "ETag"
.line 178
invoke-virtual {v2, p4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_3
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->etag:Ljava/lang/String;
goto :goto_1
:cond_3
const-string v2, "Age"
.line 180
invoke-virtual {v2, p4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p4
if-eqz p4, :cond_4
.line 181
invoke-static {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->parseSeconds(Ljava/lang/String;I)I
move-result p4
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->ageSeconds:I
:cond_4
:goto_1
add-int/lit8 p3, p3, 0x1
goto :goto_0
:cond_5
return-void
.end method
.method private cacheResponseAge()J
.locals 9
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDate:Ljava/util/Date;
const-wide/16 v1, 0x0
if-eqz v0, :cond_0
iget-wide v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->receivedResponseMillis:J
.line 319
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v5
sub-long/2addr v3, v5
invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->max(JJ)J
move-result-wide v1
:cond_0
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->ageSeconds:I
const/4 v3, -0x1
if-eq v0, v3, :cond_1
.line 321
sget-object v3, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
int-to-long v4, v0
.line 322
invoke-virtual {v3, v4, v5}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v3
invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->max(JJ)J
move-result-wide v1
:cond_1
iget-wide v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->receivedResponseMillis:J
iget-wide v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->sentRequestMillis:J
sub-long v5, v3, v5
iget-wide v7, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->nowMillis:J
sub-long/2addr v7, v3
add-long/2addr v1, v5
add-long/2addr v1, v7
return-wide v1
.end method
.method private computeFreshnessLifetime()J
.locals 7
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.line 289
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
.line 290
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v1
const/4 v2, -0x1
if-eq v1, v2, :cond_0
.line 291
sget-object v1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v0
int-to-long v2, v0
invoke-virtual {v1, v2, v3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v0
return-wide v0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->expires:Ljava/util/Date;
const-wide/16 v1, 0x0
if-eqz v0, :cond_3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDate:Ljava/util/Date;
if-eqz v0, :cond_1
.line 294
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v3
goto :goto_0
:cond_1
iget-wide v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->receivedResponseMillis:J
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->expires:Ljava/util/Date;
.line 296
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v5
sub-long/2addr v5, v3
cmp-long v0, v5, v1
if-lez v0, :cond_2
move-wide v1, v5
:cond_2
return-wide v1
:cond_3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModified:Ljava/util/Date;
if-eqz v0, :cond_5
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.line 299
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->query()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_5
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDate:Ljava/util/Date;
if-eqz v0, :cond_4
.line 305
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v3
goto :goto_1
:cond_4
iget-wide v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->sentRequestMillis:J
:goto_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModified:Ljava/util/Date;
.line 307
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v5
sub-long/2addr v3, v5
cmp-long v0, v3, v1
if-lez v0, :cond_5
const-wide/16 v0, 0xa
.line 308
div-long v1, v3, v0
:cond_5
return-wide v1
.end method
.method private getCandidate()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
.locals 13
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
const/4 v1, 0x0
if-nez v0, :cond_0
.line 207
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 211
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->isHttps()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->handshake()Lcom/mbridge/msdk/thrid/okhttp/Handshake;
move-result-object v0
if-nez v0, :cond_1
.line 212
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 218
invoke-static {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->isCacheable(Lcom/mbridge/msdk/thrid/okhttp/Response;Lcom/mbridge/msdk/thrid/okhttp/Request;)Z
move-result v0
if-nez v0, :cond_2
.line 219
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
:cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 222
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
.line 223
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache()Z
move-result v2
if-nez v2, :cond_d
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->hasConditions(Lcom/mbridge/msdk/thrid/okhttp/Request;)Z
move-result v2
if-eqz v2, :cond_3
goto/16 :goto_3
:cond_3
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.line 227
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v2
.line 229
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponseAge()J
move-result-wide v3
.line 230
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->computeFreshnessLifetime()J
move-result-wide v5
.line 232
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v7
const/4 v8, -0x1
if-eq v7, v8, :cond_4
.line 233
sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v9
int-to-long v9, v9
invoke-virtual {v7, v9, v10}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v9
invoke-static {v5, v6, v9, v10}, Ljava/lang/Math;->min(JJ)J
move-result-wide v5
.line 237
:cond_4
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds()I
move-result v7
const-wide/16 v9, 0x0
if-eq v7, v8, :cond_5
.line 238
sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->minFreshSeconds()I
move-result v11
int-to-long v11, v11
invoke-virtual {v7, v11, v12}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v11
goto :goto_0
:cond_5
move-wide v11, v9
.line 242
:goto_0
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->mustRevalidate()Z
move-result v7
if-nez v7, :cond_6
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds()I
move-result v7
if-eq v7, v8, :cond_6
.line 243
sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxStaleSeconds()I
move-result v0
int-to-long v8, v0
invoke-virtual {v7, v8, v9}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v9
.line 246
:cond_6
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noCache()Z
move-result v0
if-nez v0, :cond_9
add-long/2addr v11, v3
add-long/2addr v9, v5
cmp-long v0, v11, v9
if-gez v0, :cond_9
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.line 247
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
cmp-long v2, v11, v5
const-string v5, "Warning"
if-ltz v2, :cond_7
const-string v2, "110 HttpURLConnection \"Response is stale\""
.line 249
invoke-virtual {v0, v5, v2}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->addHeader(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
:cond_7
const-wide/32 v6, 0x5265c00
cmp-long v2, v3, v6
if-lez v2, :cond_8
.line 252
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->isFreshnessLifetimeHeuristic()Z
move-result v2
if-eqz v2, :cond_8
const-string v2, "113 HttpURLConnection \"Heuristic expiration\""
.line 253
invoke-virtual {v0, v5, v2}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->addHeader(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.line 255
:cond_8
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v0
invoke-direct {v2, v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v2
:cond_9
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->etag:Ljava/lang/String;
if-eqz v0, :cond_a
const-string v1, "If-None-Match"
goto :goto_2
:cond_a
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModified:Ljava/util/Date;
const-string v2, "If-Modified-Since"
if-eqz v0, :cond_b
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->lastModifiedString:Ljava/lang/String;
:goto_1
move-object v1, v2
goto :goto_2
:cond_b
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDate:Ljava/util/Date;
if-eqz v0, :cond_c
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->servedDateString:Ljava/lang/String;
goto :goto_1
:goto_2
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 275
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v2
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
move-result-object v2
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 276
invoke-virtual {v3, v2, v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.line 278
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
move-result-object v0
.line 279
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->headers(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
move-result-object v0
.line 280
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v0
.line 281
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
invoke-direct {v1, v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v1
.line 272
:cond_c
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
.line 224
:cond_d
:goto_3
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
return-object v0
.end method
.method private static hasConditions(Lcom/mbridge/msdk/thrid/okhttp/Request;)Z
.locals 1
const-string v0, "If-Modified-Since"
.line 343
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_1
const-string v0, "If-None-Match"
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method private isFreshnessLifetimeHeuristic()Z
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.line 334
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->expires:Ljava/util/Date;
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
# virtual methods
.method public get()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
.locals 2
.line 191
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->getCandidate()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
move-result-object v0
.line 193
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->networkRequest:Lcom/mbridge/msdk/thrid/okhttp/Request;
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v1
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->onlyIfCached()Z
move-result v1
if-eqz v1, :cond_0
.line 195
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
const/4 v1, 0x0
invoke-direct {v0, v1, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
:cond_0
return-object v0
.end method

View File

@@ -0,0 +1,175 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy$Factory;
}
.end annotation
# instance fields
.field public final cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
.field public final networkRequest:Lcom/mbridge/msdk/thrid/okhttp/Request;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
.locals 0
.line 65
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->networkRequest:Lcom/mbridge/msdk/thrid/okhttp/Request;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;->cacheResponse:Lcom/mbridge/msdk/thrid/okhttp/Response;
return-void
.end method
.method public static isCacheable(Lcom/mbridge/msdk/thrid/okhttp/Response;Lcom/mbridge/msdk/thrid/okhttp/Request;)Z
.locals 3
.line 76
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->code()I
move-result v0
const/16 v1, 0xc8
const/4 v2, 0x0
if-eq v0, v1, :cond_2
const/16 v1, 0x19a
if-eq v0, v1, :cond_2
const/16 v1, 0x19e
if-eq v0, v1, :cond_2
const/16 v1, 0x1f5
if-eq v0, v1, :cond_2
const/16 v1, 0xcb
if-eq v0, v1, :cond_2
const/16 v1, 0xcc
if-eq v0, v1, :cond_2
const/16 v1, 0x133
if-eq v0, v1, :cond_0
const/16 v1, 0x134
if-eq v0, v1, :cond_2
const/16 v1, 0x194
if-eq v0, v1, :cond_2
const/16 v1, 0x195
if-eq v0, v1, :cond_2
packed-switch v0, :pswitch_data_0
goto :goto_0
:cond_0
:pswitch_0
const-string v0, "Expires"
.line 96
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_2
.line 97
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->maxAgeSeconds()I
move-result v0
const/4 v1, -0x1
if-ne v0, v1, :cond_2
.line 98
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPublic()Z
move-result v0
if-nez v0, :cond_2
.line 99
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->isPrivate()Z
move-result v0
if-eqz v0, :cond_1
goto :goto_1
:cond_1
:goto_0
return v2
.line 110
:cond_2
:goto_1
:pswitch_1
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object p0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore()Z
move-result p0
if-nez p0, :cond_3
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->cacheControl()Lcom/mbridge/msdk/thrid/okhttp/CacheControl;
move-result-object p0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/CacheControl;->noStore()Z
move-result p0
if-nez p0, :cond_3
const/4 v2, 0x1
:cond_3
return v2
:pswitch_data_0
.packed-switch 0x12c
:pswitch_1
:pswitch_1
:pswitch_0
.end packed-switch
.end method

View File

@@ -0,0 +1,152 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 173
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 6
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 175
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 176
iget-boolean v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->initialized:Z
const/4 v3, 0x0
const/4 v4, 0x1
xor-int/2addr v2, v4
iget-boolean v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->closed:Z
or-int/2addr v2, v5
if-eqz v2, :cond_0
.line 177
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-void
:catchall_0
move-exception v1
goto :goto_2
.line 181
:cond_0
:try_start_1
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->trimToSize()V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catch_0
:try_start_2
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 183
iput-boolean v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->mostRecentTrimFailed:Z
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:goto_0
:try_start_3
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 187
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->journalRebuildRequired()Z
move-result v1
if-eqz v1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 188
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->rebuildJournal()V
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 189
iput v3, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->redundantOpCount:I
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
.catchall {:try_start_3 .. :try_end_3} :catchall_0
goto :goto_1
:catch_1
:try_start_4
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 192
iput-boolean v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->mostRecentRebuildFailed:Z
.line 193
invoke-static {}, Lcom/mbridge/msdk/thrid/okio/Okio;->blackhole()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object v2
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Sink;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v2
iput-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->journalWriter:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 195
:cond_1
:goto_1
monitor-exit v0
return-void
:goto_2
monitor-exit v0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
throw v1
.end method

View File

@@ -0,0 +1,56 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$2;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->newJournalWriter()Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;Lcom/mbridge/msdk/thrid/okio/Sink;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$2;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 320
invoke-direct {p0, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;-><init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
return-void
.end method
# virtual methods
.method public onException(Ljava/io/IOException;)V
.locals 1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$2;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
const/4 v0, 0x1
.line 324
iput-boolean v0, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->hasJournalErrors:Z
return-void
.end method

View File

@@ -0,0 +1,259 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->snapshots()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;",
">;"
}
.end annotation
# instance fields
.field final delegate:Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Iterator<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;",
">;"
}
.end annotation
.end field
.field nextSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.field removeSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 753
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 755
new-instance v0, Ljava/util/ArrayList;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->lruEntries:Ljava/util/LinkedHashMap;
invoke-virtual {p1}, Ljava/util/LinkedHashMap;->values()Ljava/util/Collection;
move-result-object p1
invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->delegate:Ljava/util/Iterator;
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 5
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->nextSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 767
monitor-enter v0
:try_start_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 769
iget-boolean v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->closed:Z
const/4 v3, 0x0
if-eqz v2, :cond_1
monitor-exit v0
return v3
:catchall_0
move-exception v1
goto :goto_1
:cond_1
:goto_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->delegate:Ljava/util/Iterator;
.line 771
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_4
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->delegate:Ljava/util/Iterator;
.line 772
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 773
iget-boolean v4, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->readable:Z
if-nez v4, :cond_2
goto :goto_0
.line 774
:cond_2
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->snapshot()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
move-result-object v2
if-nez v2, :cond_3
goto :goto_0
:cond_3
iput-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->nextSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.line 777
monitor-exit v0
return v1
.line 779
:cond_4
monitor-exit v0
return v3
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public next()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.locals 2
.line 786
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->nextSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->removeSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
const/4 v1, 0x0
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->nextSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
return-object v0
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.line 753
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->next()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
move-result-object v0
return-object v0
.end method
.method public remove()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->removeSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
if-eqz v0, :cond_0
const/4 v1, 0x0
:try_start_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 796
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v2, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->remove(Ljava/lang/String;)Z
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:catch_0
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->removeSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
goto :goto_0
:catchall_0
move-exception v0
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$3;->removeSnapshot:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.line 802
throw v0
:goto_0
return-void
.line 794
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "remove() before next()"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View File

@@ -0,0 +1,64 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->newSink(I)Lcom/mbridge/msdk/thrid/okio/Sink;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;Lcom/mbridge/msdk/thrid/okio/Sink;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.line 932
invoke-direct {p0, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;-><init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
return-void
.end method
# virtual methods
.method public onException(Ljava/io/IOException;)V
.locals 1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.line 935
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
monitor-enter p1
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.line 936
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->detach()V
.line 937
monitor-exit p1
return-void
:catchall_0
move-exception v0
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,491 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "Editor"
.end annotation
# instance fields
.field private done:Z
.field final entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.field final written:[Z
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 865
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 867
iget-boolean p2, p2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->readable:Z
if-eqz p2, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
iget p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
new-array p1, p1, [Z
:goto_0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->written:[Z
return-void
.end method
# virtual methods
.method public abort()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 964
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
if-nez v1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 968
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
if-ne v1, p0, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
const/4 v2, 0x0
.line 969
invoke-virtual {v1, p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->completeEdit(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;Z)V
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
:cond_0
:goto_0
const/4 v1, 0x1
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
.line 972
monitor-exit v0
return-void
.line 966
:cond_1
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1}, Ljava/lang/IllegalStateException;-><init>()V
throw v1
.line 972
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public abortUnlessCommitted()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 976
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
if-nez v1, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 977
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ne v1, p0, :cond_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
const/4 v2, 0x0
.line 979
invoke-virtual {v1, p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->completeEdit(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;Z)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
.line 983
:catch_0
:cond_0
:goto_0
:try_start_2
monitor-exit v0
return-void
:goto_1
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw v1
.end method
.method public commit()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 948
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
if-nez v1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 952
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
const/4 v2, 0x1
if-ne v1, p0, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 953
invoke-virtual {v1, p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->completeEdit(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;Z)V
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
:cond_0
:goto_0
iput-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
.line 956
monitor-exit v0
return-void
.line 950
:cond_1
new-instance v1, Ljava/lang/IllegalStateException;
invoke-direct {v1}, Ljava/lang/IllegalStateException;-><init>()V
throw v1
.line 956
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public detach()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 877
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
if-ne v0, p0, :cond_1
const/4 v0, 0x0
:goto_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 878
iget v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
if-ge v0, v2, :cond_0
.line 880
:try_start_0
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->fileSystem:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
iget-object v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->dirtyFiles:[Ljava/io/File;
aget-object v2, v2, v0
invoke-interface {v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;->delete(Ljava/io/File;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
const/4 v1, 0x0
.line 885
iput-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
:cond_1
return-void
.end method
.method public newSink(I)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 4
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 915
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
if-nez v1, :cond_2
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 919
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
if-eq v2, p0, :cond_0
.line 920
invoke-static {}, Lcom/mbridge/msdk/thrid/okio/Okio;->blackhole()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
monitor-exit v0
return-object p1
:catchall_0
move-exception p1
goto :goto_0
.line 922
:cond_0
iget-boolean v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->readable:Z
if-nez v2, :cond_1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->written:[Z
const/4 v3, 0x1
.line 923
aput-boolean v3, v2, p1
.line 925
:cond_1
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->dirtyFiles:[Ljava/io/File;
aget-object p1, v1, p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 928
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->fileSystem:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
invoke-interface {v1, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;->sink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
:try_end_1
.catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 932
:try_start_2
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;
invoke-direct {v1, p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor$1;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;Lcom/mbridge/msdk/thrid/okio/Sink;)V
monitor-exit v0
return-object v1
.line 930
:catch_0
invoke-static {}, Lcom/mbridge/msdk/thrid/okio/Okio;->blackhole()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
monitor-exit v0
return-object p1
.line 917
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
.line 940
:goto_0
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p1
.end method
.method public newSource(I)Lcom/mbridge/msdk/thrid/okio/Source;
.locals 4
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 894
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->done:Z
if-nez v1, :cond_2
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->entry:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.line 898
iget-boolean v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->readable:Z
const/4 v3, 0x0
if-eqz v2, :cond_1
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eq v2, p0, :cond_0
goto :goto_0
:cond_0
:try_start_1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 902
iget-object v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->fileSystem:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->cleanFiles:[Ljava/io/File;
aget-object p1, v1, p1
invoke-interface {v2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;->source(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object p1
:try_end_1
.catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
monitor-exit v0
return-object p1
:catchall_0
move-exception p1
goto :goto_1
.line 904
:catch_0
monitor-exit v0
return-object v3
.line 899
:cond_1
:goto_0
monitor-exit v0
return-object v3
.line 896
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
.line 906
:goto_1
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p1
.end method

View File

@@ -0,0 +1,388 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "Entry"
.end annotation
# instance fields
.field final cleanFiles:[Ljava/io/File;
.field currentEditor:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.field final dirtyFiles:[Ljava/io/File;
.field final key:Ljava/lang/String;
.field final lengths:[J
.field readable:Z
.field sequenceNumber:J
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;Ljava/lang/String;)V
.locals 6
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 1012
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->key:Ljava/lang/String;
.line 1015
iget v0, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
new-array v1, v0, [J
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 1016
new-array v1, v0, [Ljava/io/File;
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->cleanFiles:[Ljava/io/File;
.line 1017
new-array v0, v0, [Ljava/io/File;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->dirtyFiles:[Ljava/io/File;
.line 1020
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const/16 p2, 0x2e
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 1021
invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I
move-result p2
const/4 v1, 0x0
.line 1022
:goto_0
iget v2, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
if-ge v1, v2, :cond_0
.line 1023
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->cleanFiles:[Ljava/io/File;
.line 1024
new-instance v3, Ljava/io/File;
iget-object v4, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->directory:Ljava/io/File;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-direct {v3, v4, v5}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
aput-object v3, v2, v1
const-string v2, ".tmp"
.line 1025
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->dirtyFiles:[Ljava/io/File;
.line 1026
new-instance v3, Ljava/io/File;
iget-object v4, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->directory:Ljava/io/File;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
invoke-direct {v3, v4, v5}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
aput-object v3, v2, v1
.line 1027
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->setLength(I)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method private invalidLengths([Ljava/lang/String;)Ljava/io/IOException;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1058
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "unexpected journal line: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public setLengths([Ljava/lang/String;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1035
array-length v0, p1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
iget v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
if-ne v0, v1, :cond_1
const/4 v0, 0x0
.line 1040
:goto_0
:try_start_0
array-length v1, p1
if-ge v0, v1, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 1041
aget-object v2, p1, v0
invoke-static {v2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v2
aput-wide v2, v1, v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.line 1044
:catch_0
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->invalidLengths([Ljava/lang/String;)Ljava/io/IOException;
move-result-object p1
throw p1
.line 1036
:cond_1
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->invalidLengths([Ljava/lang/String;)Ljava/io/IOException;
move-result-object p1
throw p1
.end method
.method public snapshot()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.locals 10
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 1067
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 1069
iget v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
new-array v0, v0, [Lcom/mbridge/msdk/thrid/okio/Source;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 1070
invoke-virtual {v1}, [J->clone()Ljava/lang/Object;
move-result-object v1
move-object v7, v1
check-cast v7, [J
const/4 v8, 0x0
move v1, v8
:goto_0
:try_start_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 1072
iget v3, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
if-ge v1, v3, :cond_0
.line 1073
iget-object v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->fileSystem:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->cleanFiles:[Ljava/io/File;
aget-object v3, v3, v1
invoke-interface {v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;->source(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object v2
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 1075
:cond_0
new-instance v9, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->key:Ljava/lang/String;
iget-wide v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->sequenceNumber:J
move-object v1, v9
move-object v6, v0
invoke-direct/range {v1 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;Ljava/lang/String;J[Lcom/mbridge/msdk/thrid/okio/Source;[J)V
:try_end_0
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object v9
:catch_0
:goto_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 1078
iget v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->valueCount:I
if-ge v8, v2, :cond_1
.line 1079
aget-object v2, v0, v8
if-eqz v2, :cond_1
.line 1080
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
add-int/lit8 v8, v8, 0x1
goto :goto_1
.line 1088
:cond_1
:try_start_1
invoke-virtual {v1, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->removeEntry(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;)Z
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
const/4 v0, 0x0
return-object v0
.line 1067
:cond_2
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.end method
.method public writeLengths(Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Entry;->lengths:[J
.line 1052
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-wide v3, v0, v2
const/16 v5, 0x20
.line 1053
invoke-interface {p1, v5}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v5
invoke-interface {v5, v3, v4}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeDecimalLong(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method

View File

@@ -0,0 +1,139 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "Snapshot"
.end annotation
# instance fields
.field private final key:Ljava/lang/String;
.field private final lengths:[J
.field private final sequenceNumber:J
.field private final sources:[Lcom/mbridge/msdk/thrid/okio/Source;
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;Ljava/lang/String;J[Lcom/mbridge/msdk/thrid/okio/Source;[J)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
.line 816
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
iput-wide p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->sequenceNumber:J
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->sources:[Lcom/mbridge/msdk/thrid/okio/Source;
iput-object p6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->lengths:[J
return-void
.end method
.method public static synthetic access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;)Ljava/lang/String;
.locals 0
.line 810
iget-object p0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
return-object p0
.end method
# virtual methods
.method public close()V
.locals 4
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->sources:[Lcom/mbridge/msdk/thrid/okio/Source;
.line 851
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 852
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public edit()Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
iget-wide v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->sequenceNumber:J
.line 833
invoke-virtual {v0, v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache;->edit(Ljava/lang/String;J)Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Editor;
move-result-object v0
return-object v0
.end method
.method public getLength(I)J
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->lengths:[J
.line 847
aget-wide v1, v0, p1
return-wide v1
.end method
.method public getSource(I)Lcom/mbridge/msdk/thrid/okio/Source;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->sources:[Lcom/mbridge/msdk/thrid/okio/Source;
.line 840
aget-object p1, v0, p1
return-object p1
.end method
.method public key()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/DiskLruCache$Snapshot;->key:Ljava/lang/String;
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,140 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;
.super Lcom/mbridge/msdk/thrid/okio/ForwardingSink;
.source "SourceFile"
# instance fields
.field private hasErrors:Z
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
.locals 0
.line 28
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;-><init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
return-void
.end method
# virtual methods
.method public close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
return-void
.line 57
:cond_0
:try_start_0
invoke-super {p0}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const/4 v1, 0x1
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
.line 60
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
:goto_0
return-void
.end method
.method public flush()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
return-void
.line 47
:cond_0
:try_start_0
invoke-super {p0}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;->flush()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const/4 v1, 0x1
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
.line 50
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
:goto_0
return-void
.end method
.method public onException(Ljava/io/IOException;)V
.locals 0
return-void
.end method
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
if-eqz v0, :cond_0
.line 33
invoke-virtual {p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->skip(J)V
return-void
.line 37
:cond_0
:try_start_0
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
const/4 p2, 0x1
iput-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->hasErrors:Z
.line 40
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache/FaultHidingSink;->onException(Ljava/io/IOException;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,38 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/cache/InternalCache;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract get(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract put(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheRequest;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract remove(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract trackConditionalCacheHit()V
.end method
.method public abstract trackResponse(Lcom/mbridge/msdk/thrid/okhttp/internal/cache/CacheStrategy;)V
.end method
.method public abstract update(Lcom/mbridge/msdk/thrid/okhttp/Response;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
.end method

View File

@@ -0,0 +1,131 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final fileChannel:Ljava/nio/channels/FileChannel;
# direct methods
.method public constructor <init>(Ljava/nio/channels/FileChannel;)V
.locals 0
.line 39
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
return-void
.end method
# virtual methods
.method public read(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p4, v0
if-ltz v2, :cond_1
:goto_0
cmp-long v2, p4, v0
if-lez v2, :cond_0
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
move-wide v4, p1
move-wide v6, p4
move-object v8, p3
.line 63
invoke-virtual/range {v3 .. v8}, Ljava/nio/channels/FileChannel;->transferTo(JJLjava/nio/channels/WritableByteChannel;)J
move-result-wide v2
add-long/2addr p1, v2
sub-long/2addr p4, v2
goto :goto_0
:cond_0
return-void
.line 60
:cond_1
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
invoke-direct {p1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
throw p1
.end method
.method public write(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p4, v0
if-ltz v2, :cond_1
.line 45
invoke-virtual {p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v2
cmp-long v2, p4, v2
if-gtz v2, :cond_1
:goto_0
cmp-long v2, p4, v0
if-lez v2, :cond_0
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
move-object v4, p3
move-wide v5, p1
move-wide v7, p4
.line 48
invoke-virtual/range {v3 .. v8}, Ljava/nio/channels/FileChannel;->transferFrom(Ljava/nio/channels/ReadableByteChannel;JJ)J
move-result-wide v2
add-long/2addr p1, v2
sub-long/2addr p4, v2
goto :goto_0
:cond_0
return-void
.line 45
:cond_1
new-instance p1, Ljava/lang/IndexOutOfBoundsException;
invoke-direct {p1}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
throw p1
.end method

View File

@@ -0,0 +1,577 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "RelaySource"
.end annotation
# instance fields
.field private fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
.field private sourcePos:J
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.field private final timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 224
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 225
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Timeout;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
.line 228
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
invoke-virtual {p1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object p1
invoke-direct {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;-><init>(Ljava/nio/channels/FileChannel;)V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
return-void
.end method
# virtual methods
.method public close()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 348
monitor-enter v1
:try_start_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 349
iget v3, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->sourceCount:I
add-int/lit8 v3, v3, -0x1
iput v3, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->sourceCount:I
if-nez v3, :cond_1
.line 351
iget-object v3, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
.line 352
iput-object v0, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
move-object v0, v3
goto :goto_0
:catchall_0
move-exception v0
goto :goto_1
.line 354
:cond_1
:goto_0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_2
.line 357
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
:cond_2
return-void
.line 354
:goto_1
:try_start_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 21
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v1, p0
move-wide/from16 v2, p2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
if-eqz v0, :cond_6
iget-object v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 258
monitor-enter v4
:goto_0
:try_start_0
iget-wide v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 260
iget-wide v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamPos:J
cmp-long v5, v5, v7
const-wide/16 v9, 0x20
if-nez v5, :cond_4
.line 262
iget-boolean v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->complete:Z
const-wide/16 v11, -0x1
if-eqz v5, :cond_0
monitor-exit v4
return-wide v11
:catchall_0
move-exception v0
goto/16 :goto_4
.line 265
:cond_0
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamReader:Ljava/lang/Thread;
if-eqz v5, :cond_1
iget-object v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
.line 266
invoke-virtual {v5, v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->waitUntilNotified(Ljava/lang/Object;)V
goto :goto_0
.line 271
:cond_1
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v5
iput-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamReader:Ljava/lang/Thread;
.line 273
monitor-exit v4
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const/4 v4, 0x0
:try_start_1
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 302
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstream:Lcom/mbridge/msdk/thrid/okio/Source;
iget-object v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-wide v13, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->bufferMaxSize:J
invoke-interface {v5, v6, v13, v14}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v5
cmp-long v0, v5, v11
if-nez v0, :cond_2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 306
invoke-virtual {v0, v7, v8}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->commit(J)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_2
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 332
monitor-enter v2
:try_start_2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 333
iput-object v4, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamReader:Ljava/lang/Thread;
.line 334
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
.line 335
monitor-exit v2
return-wide v11
:catchall_1
move-exception v0
monitor-exit v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v0
:catchall_2
move-exception v0
goto :goto_3
.line 311
:cond_2
:try_start_3
invoke-static {v5, v6, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 312
iget-object v11, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
const-wide/16 v13, 0x0
move-object/from16 v12, p1
move-wide v15, v2
invoke-virtual/range {v11 .. v16}, Lcom/mbridge/msdk/thrid/okio/Buffer;->copyTo(Lcom/mbridge/msdk/thrid/okio/Buffer;JJ)Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-wide v11, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
add-long/2addr v11, v2
iput-wide v11, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
iget-object v15, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
add-long v16, v7, v9
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 316
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 317
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->clone()Lcom/mbridge/msdk/thrid/okio/Buffer;
move-result-object v18
move-wide/from16 v19, v5
.line 316
invoke-virtual/range {v15 .. v20}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->write(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-object v7, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 319
monitor-enter v7
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
:try_start_4
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 321
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v8, v0, v5, v6}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 322
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v8
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
iget-wide v10, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->bufferMaxSize:J
cmp-long v8, v8, v10
if-lez v8, :cond_3
.line 323
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v8
iget-object v10, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
iget-wide v10, v10, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->bufferMaxSize:J
sub-long/2addr v8, v10
invoke-virtual {v0, v8, v9}, Lcom/mbridge/msdk/thrid/okio/Buffer;->skip(J)V
goto :goto_1
:catchall_3
move-exception v0
goto :goto_2
:cond_3
:goto_1
iget-object v8, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 327
iget-wide v9, v8, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamPos:J
add-long/2addr v9, v5
iput-wide v9, v8, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamPos:J
.line 328
monitor-exit v7
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_3
.line 332
monitor-enter v8
:try_start_5
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 333
iput-object v4, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamReader:Ljava/lang/Thread;
.line 334
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
.line 335
monitor-exit v8
return-wide v2
:catchall_4
move-exception v0
monitor-exit v8
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_4
throw v0
.line 328
:goto_2
:try_start_6
monitor-exit v7
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_3
:try_start_7
throw v0
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_2
:goto_3
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 332
monitor-enter v2
:try_start_8
iget-object v3, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 333
iput-object v4, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamReader:Ljava/lang/Thread;
.line 334
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
.line 335
monitor-exit v2
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_5
.line 336
throw v0
:catchall_5
move-exception v0
.line 335
:try_start_9
monitor-exit v2
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_5
throw v0
.line 276
:cond_4
:try_start_a
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v5
sub-long v5, v7, v5
iget-wide v11, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
cmp-long v0, v11, v5
if-gez v0, :cond_5
.line 281
monitor-exit v4
:try_end_a
.catchall {:try_start_a .. :try_end_a} :catchall_0
sub-long/2addr v7, v11
.line 293
invoke-static {v2, v3, v7, v8}, Ljava/lang/Math;->min(JJ)J
move-result-wide v2
iget-object v11, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->fileOperator:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
iget-wide v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
add-long v12, v4, v9
move-object/from16 v14, p1
move-wide v15, v2
.line 294
invoke-virtual/range {v11 .. v16}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->read(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-wide v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
add-long/2addr v4, v2
iput-wide v4, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
return-wide v2
:cond_5
sub-long/2addr v7, v11
.line 285
:try_start_b
invoke-static {v2, v3, v7, v8}, Ljava/lang/Math;->min(JJ)J
move-result-wide v2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.line 286
iget-object v9, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-wide v7, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
sub-long v11, v7, v5
move-object/from16 v10, p1
move-wide v13, v2
invoke-virtual/range {v9 .. v14}, Lcom/mbridge/msdk/thrid/okio/Buffer;->copyTo(Lcom/mbridge/msdk/thrid/okio/Buffer;JJ)Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-wide v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
add-long/2addr v5, v2
iput-wide v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->sourcePos:J
.line 288
monitor-exit v4
return-wide v2
.line 289
:goto_4
monitor-exit v4
:try_end_b
.catchall {:try_start_b .. :try_end_b} :catchall_0
throw v0
.line 252
:cond_6
new-instance v0, Ljava/lang/IllegalStateException;
const-string v2, "closed"
invoke-direct {v0, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;->timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
return-object v0
.end method

View File

@@ -0,0 +1,557 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;
}
.end annotation
# static fields
.field private static final FILE_HEADER_SIZE:J = 0x20L
.field static final PREFIX_CLEAN:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field static final PREFIX_DIRTY:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field private static final SOURCE_FILE:I = 0x2
.field private static final SOURCE_UPSTREAM:I = 0x1
# instance fields
.field final buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field final bufferMaxSize:J
.field complete:Z
.field file:Ljava/io/RandomAccessFile;
.field private final metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field sourceCount:I
.field upstream:Lcom/mbridge/msdk/thrid/okio/Source;
.field final upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field upstreamPos:J
.field upstreamReader:Ljava/lang/Thread;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, "OkHttp cache v1\n"
.line 45
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->PREFIX_CLEAN:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, "OkHttp DIRTY :(\n"
.line 46
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->PREFIX_DIRTY:Lcom/mbridge/msdk/thrid/okio/ByteString;
return-void
.end method
.method private constructor <init>(Ljava/io/RandomAccessFile;Lcom/mbridge/msdk/thrid/okio/Source;JLcom/mbridge/msdk/thrid/okio/ByteString;J)V
.locals 1
.line 107
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 79
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 94
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstream:Lcom/mbridge/msdk/thrid/okio/Source;
if-nez p2, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->complete:Z
iput-wide p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstreamPos:J
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
iput-wide p6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->bufferMaxSize:J
return-void
.end method
.method public static edit(Ljava/io/File;Lcom/mbridge/msdk/thrid/okio/Source;Lcom/mbridge/msdk/thrid/okio/ByteString;J)Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 126
new-instance v8, Ljava/io/RandomAccessFile;
const-string v0, "rw"
invoke-direct {v8, p0, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 127
new-instance p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
const-wide/16 v3, 0x0
move-object v0, p0
move-object v1, v8
move-object v2, p1
move-object v5, p2
move-wide v6, p3
invoke-direct/range {v0 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;-><init>(Ljava/io/RandomAccessFile;Lcom/mbridge/msdk/thrid/okio/Source;JLcom/mbridge/msdk/thrid/okio/ByteString;J)V
const-wide/16 p1, 0x0
.line 130
invoke-virtual {v8, p1, p2}, Ljava/io/RandomAccessFile;->setLength(J)V
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->PREFIX_DIRTY:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-wide/16 v3, -0x1
const-wide/16 v5, -0x1
move-object v1, p0
.line 131
invoke-direct/range {v1 .. v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->writeHeader(Lcom/mbridge/msdk/thrid/okio/ByteString;JJ)V
return-object p0
.end method
.method public static read(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 144
new-instance v1, Ljava/io/RandomAccessFile;
const-string v0, "rw"
invoke-direct {v1, p0, v0}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V
.line 145
new-instance p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object v0
invoke-direct {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;-><init>(Ljava/nio/channels/FileChannel;)V
.line 148
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
const-wide/16 v3, 0x0
const-wide/16 v6, 0x20
move-object v2, p0
move-object v5, v0
.line 149
invoke-virtual/range {v2 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->read(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->PREFIX_CLEAN:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 150
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v3
int-to-long v3, v3
invoke-virtual {v0, v3, v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString(J)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v3
.line 151
invoke-virtual {v3, v2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
.line 152
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readLong()J
move-result-wide v8
.line 153
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readLong()J
move-result-wide v6
.line 156
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
const-wide/16 v2, 0x20
add-long v3, v8, v2
move-object v2, p0
move-object v5, v0
.line 157
invoke-virtual/range {v2 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->read(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
.line 158
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString()Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v5
.line 161
new-instance p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;
const/4 v2, 0x0
const-wide/16 v6, 0x0
move-object v0, p0
move-wide v3, v8
invoke-direct/range {v0 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;-><init>(Ljava/io/RandomAccessFile;Lcom/mbridge/msdk/thrid/okio/Source;JLcom/mbridge/msdk/thrid/okio/ByteString;J)V
return-object p0
.line 151
:cond_0
new-instance p0, Ljava/io/IOException;
const-string v0, "unreadable cache file"
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method private writeHeader(Lcom/mbridge/msdk/thrid/okio/ByteString;JJ)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 166
new-instance v3, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
.line 167
invoke-virtual {v3, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 168
invoke-virtual {v3, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeLong(J)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 169
invoke-virtual {v3, p4, p5}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeLong(J)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 170
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide p1
const-wide/16 p3, 0x20
cmp-long p1, p1, p3
if-nez p1, :cond_0
.line 172
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
invoke-virtual {p1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object p1
invoke-direct {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;-><init>(Ljava/nio/channels/FileChannel;)V
const-wide/16 v1, 0x0
const-wide/16 v4, 0x20
.line 173
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->write(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
return-void
.line 170
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
.end method
.method private writeMetadata(J)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 177
new-instance v3, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 178
invoke-virtual {v3, v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 180
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
invoke-virtual {v1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object v1
invoke-direct {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;-><init>(Ljava/nio/channels/FileChannel;)V
const-wide/16 v1, 0x20
add-long/2addr v1, p1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 181
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result p1
int-to-long v4, p1
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/FileOperator;->write(JLcom/mbridge/msdk/thrid/okio/Buffer;J)V
return-void
.end method
# virtual methods
.method public commit(J)V
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 186
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->writeMetadata(J)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
.line 187
invoke-virtual {v0}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/nio/channels/FileChannel;->force(Z)V
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->PREFIX_CLEAN:Lcom/mbridge/msdk/thrid/okio/ByteString;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 190
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
int-to-long v6, v0
move-object v2, p0
move-wide v4, p1
invoke-direct/range {v2 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->writeHeader(Lcom/mbridge/msdk/thrid/okio/ByteString;JJ)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
.line 191
invoke-virtual {p1}, Ljava/io/RandomAccessFile;->getChannel()Ljava/nio/channels/FileChannel;
move-result-object p1
invoke-virtual {p1, v1}, Ljava/nio/channels/FileChannel;->force(Z)V
.line 194
monitor-enter p0
const/4 p1, 0x1
:try_start_0
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->complete:Z
.line 196
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstream:Lcom/mbridge/msdk/thrid/okio/Source;
.line 198
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
const/4 p1, 0x0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->upstream:Lcom/mbridge/msdk/thrid/okio/Source;
return-void
:catchall_0
move-exception p1
.line 196
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public isClosed()Z
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public metadata()Lcom/mbridge/msdk/thrid/okio/ByteString;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->metadata:Lcom/mbridge/msdk/thrid/okio/ByteString;
return-object v0
.end method
.method public newSource()Lcom/mbridge/msdk/thrid/okio/Source;
.locals 1
.line 216
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->file:Ljava/io/RandomAccessFile;
if-nez v0, :cond_0
.line 217
monitor-exit p0
const/4 v0, 0x0
return-object v0
:catchall_0
move-exception v0
goto :goto_0
:cond_0
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->sourceCount:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;->sourceCount:I
.line 219
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 221
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay$RelaySource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/cache2/Relay;)V
return-object v0
.line 219
:goto_0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,81 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectInterceptor;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/Interceptor;
# instance fields
.field public final client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;)V
.locals 0
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectInterceptor;->client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
return-void
.end method
# virtual methods
.method public intercept(Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 36
move-object v0, p1
check-cast v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
.line 37
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v1
.line 38
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
move-result-object v2
.line 41
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->method()Ljava/lang/String;
move-result-object v3
const-string v4, "GET"
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
xor-int/lit8 v3, v3, 0x1
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectInterceptor;->client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
.line 42
invoke-virtual {v2, v4, p1, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->newStream(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;Z)Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
move-result-object p1
.line 43
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->connection()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
move-result-object v3
.line 45
invoke-virtual {v0, v1, v2, p1, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,288 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final connectionSpecs:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;",
">;"
}
.end annotation
.end field
.field private isFallback:Z
.field private isFallbackPossible:Z
.field private nextModeIndex:I
# direct methods
.method public constructor <init>(Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;",
">;)V"
}
.end annotation
.line 47
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->nextModeIndex:I
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
return-void
.end method
.method private isFallbackPossible(Ljavax/net/ssl/SSLSocket;)Z
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->nextModeIndex:I
:goto_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
.line 140
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
.line 141
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;
invoke-virtual {v1, p1}, Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;->isCompatible(Ljavax/net/ssl/SSLSocket;)Z
move-result v1
if-eqz v1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
const/4 p1, 0x0
return p1
.end method
# virtual methods
.method public configureSecureSocket(Ljavax/net/ssl/SSLSocket;)Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->nextModeIndex:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
.line 60
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
:goto_0
if-ge v0, v1, :cond_1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
.line 61
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;
.line 62
invoke-virtual {v2, p1}, Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;->isCompatible(Ljavax/net/ssl/SSLSocket;)Z
move-result v3
if-eqz v3, :cond_0
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->nextModeIndex:I
goto :goto_1
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
const/4 v2, 0x0
:goto_1
if-eqz v2, :cond_2
.line 79
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallbackPossible(Ljavax/net/ssl/SSLSocket;)Z
move-result v0
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallbackPossible:Z
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallback:Z
.line 81
invoke-virtual {v0, v2, p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->apply(Lcom/mbridge/msdk/thrid/okhttp/ConnectionSpec;Ljavax/net/ssl/SSLSocket;Z)V
return-object v2
.line 73
:cond_2
new-instance v0, Ljava/net/UnknownServiceException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unable to find acceptable protocols. isFallback="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallback:Z
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
const-string v2, ", modes="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->connectionSpecs:Ljava/util/List;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, ", supported protocols="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 76
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/util/Arrays;->toString([Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public connectionFailed(Ljava/io/IOException;)Z
.locals 4
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallback:Z
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/ConnectionSpecSelector;->isFallbackPossible:Z
const/4 v2, 0x0
if-nez v1, :cond_0
return v2
.line 102
:cond_0
instance-of v1, p1, Ljava/net/ProtocolException;
if-eqz v1, :cond_1
return v2
.line 109
:cond_1
instance-of v1, p1, Ljava/io/InterruptedIOException;
if-eqz v1, :cond_2
return v2
.line 115
:cond_2
instance-of v1, p1, Ljavax/net/ssl/SSLHandshakeException;
if-eqz v1, :cond_3
.line 118
invoke-virtual {p1}, Ljava/lang/Throwable;->getCause()Ljava/lang/Throwable;
move-result-object v3
instance-of v3, v3, Ljava/security/cert/CertificateException;
if-eqz v3, :cond_3
return v2
.line 122
:cond_3
instance-of v3, p1, Ljavax/net/ssl/SSLPeerUnverifiedException;
if-eqz v3, :cond_4
return v2
:cond_4
if-nez v1, :cond_6
.line 129
instance-of v1, p1, Ljavax/net/ssl/SSLProtocolException;
if-nez v1, :cond_6
instance-of p1, p1, Ljavax/net/ssl/SSLException;
if-eqz p1, :cond_5
goto :goto_0
:cond_5
move v0, v2
:cond_6
:goto_0
return v0
.end method

View File

@@ -0,0 +1,63 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection$1;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/ws/RealWebSocket$Streams;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->newWebSocketStreams(Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;)Lcom/mbridge/msdk/thrid/okhttp/internal/ws/RealWebSocket$Streams;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.field final synthetic val$streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ZLcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okio/BufferedSink;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection$1;->val$streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.line 546
invoke-direct {p0, p2, p3, p4}, Lcom/mbridge/msdk/thrid/okhttp/internal/ws/RealWebSocket$Streams;-><init>(ZLcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
return-void
.end method
# virtual methods
.method public close()V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection$1;->val$streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
const/4 v1, 0x1
.line 549
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->codec()Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
move-result-object v2
const-wide/16 v3, -0x1
const/4 v5, 0x0
invoke-virtual/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->streamFinished(ZLcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;JLjava/io/IOException;)V
return-void
.end method

View File

@@ -0,0 +1,114 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final failedRoutes:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/mbridge/msdk/thrid/okhttp/Route;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 29
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->failedRoutes:Ljava/util/Set;
return-void
.end method
# virtual methods
.method public declared-synchronized connected(Lcom/mbridge/msdk/thrid/okhttp/Route;)V
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->failedRoutes:Ljava/util/Set;
.line 38
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 39
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized failed(Lcom/mbridge/msdk/thrid/okhttp/Route;)V
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->failedRoutes:Ljava/util/Set;
.line 33
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 34
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized shouldPostpone(Lcom/mbridge/msdk/thrid/okhttp/Route;)Z
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->failedRoutes:Ljava/util/Set;
.line 43
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method

View File

@@ -0,0 +1,55 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;
.super Ljava/lang/RuntimeException;
.source "SourceFile"
# instance fields
.field private firstException:Ljava/io/IOException;
.field private lastException:Ljava/io/IOException;
# direct methods
.method public constructor <init>(Ljava/io/IOException;)V
.locals 0
.line 31
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->firstException:Ljava/io/IOException;
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->lastException:Ljava/io/IOException;
return-void
.end method
# virtual methods
.method public addConnectException(Ljava/io/IOException;)V
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->firstException:Ljava/io/IOException;
.line 45
invoke-static {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->addSuppressedIfPossible(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->lastException:Ljava/io/IOException;
return-void
.end method
.method public getFirstConnectException()Ljava/io/IOException;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->firstException:Ljava/io/IOException;
return-object v0
.end method
.method public getLastConnectException()Ljava/io/IOException;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteException;->lastException:Ljava/io/IOException;
return-object v0
.end method

View File

@@ -0,0 +1,137 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Selection"
.end annotation
# instance fields
.field private nextRouteIndex:I
.field private final routes:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Route;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Route;",
">;)V"
}
.end annotation
.line 222
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->nextRouteIndex:I
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->routes:Ljava/util/List;
return-void
.end method
# virtual methods
.method public getAll()Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Route;",
">;"
}
.end annotation
.line 238
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->routes:Ljava/util/List;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
return-object v0
.end method
.method public hasNext()Z
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->nextRouteIndex:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->routes:Ljava/util/List;
.line 227
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public next()Lcom/mbridge/msdk/thrid/okhttp/Route;
.locals 3
.line 231
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->routes:Ljava/util/List;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->nextRouteIndex:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;->nextRouteIndex:I
.line 234
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/mbridge/msdk/thrid/okhttp/Route;
return-object v0
.line 232
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method

View File

@@ -0,0 +1,797 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;
}
.end annotation
# instance fields
.field private final address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.field private final call:Lcom/mbridge/msdk/thrid/okhttp/Call;
.field private final eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
.field private inetSocketAddresses:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/net/InetSocketAddress;",
">;"
}
.end annotation
.end field
.field private nextProxyIndex:I
.field private final postponedRoutes:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Route;",
">;"
}
.end annotation
.end field
.field private proxies:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/net/Proxy;",
">;"
}
.end annotation
.end field
.field private final routeDatabase:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/Address;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;)V
.locals 1
.line 57
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 47
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
.line 51
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
.line 54
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->postponedRoutes:Ljava/util/List;
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->routeDatabase:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
.line 63
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Address;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object p2
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Address;->proxy()Ljava/net/Proxy;
move-result-object p1
invoke-direct {p0, p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->resetNextProxy(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;Ljava/net/Proxy;)V
return-void
.end method
.method public static getHostString(Ljava/net/InetSocketAddress;)Ljava/lang/String;
.locals 1
.line 205
invoke-virtual {p0}, Ljava/net/InetSocketAddress;->getAddress()Ljava/net/InetAddress;
move-result-object v0
if-nez v0, :cond_0
.line 210
invoke-virtual {p0}, Ljava/net/InetSocketAddress;->getHostName()Ljava/lang/String;
move-result-object p0
return-object p0
.line 214
:cond_0
invoke-virtual {v0}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private hasNextProxy()Z
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->nextProxyIndex:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
.line 139
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method private nextProxy()Ljava/net/Proxy;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 144
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->hasNextProxy()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->nextProxyIndex:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->nextProxyIndex:I
.line 148
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/net/Proxy;
.line 149
invoke-direct {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->resetNextInetSocketAddress(Ljava/net/Proxy;)V
return-object v0
.line 145
:cond_0
new-instance v0, Ljava/net/SocketException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "No route to "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Address;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v2
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->host()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "; exhausted proxy configurations: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/net/SocketException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private resetNextInetSocketAddress(Ljava/net/Proxy;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 156
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
.line 160
invoke-virtual {p1}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v1, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v1, :cond_2
invoke-virtual {p1}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v1, Ljava/net/Proxy$Type;->SOCKS:Ljava/net/Proxy$Type;
if-ne v0, v1, :cond_0
goto :goto_0
.line 164
:cond_0
invoke-virtual {p1}, Ljava/net/Proxy;->address()Ljava/net/SocketAddress;
move-result-object v0
.line 165
instance-of v1, v0, Ljava/net/InetSocketAddress;
if-eqz v1, :cond_1
.line 169
check-cast v0, Ljava/net/InetSocketAddress;
.line 170
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->getHostString(Ljava/net/InetSocketAddress;)Ljava/lang/String;
move-result-object v1
.line 171
invoke-virtual {v0}, Ljava/net/InetSocketAddress;->getPort()I
move-result v0
goto :goto_1
.line 166
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Proxy.address() is not an InetSocketAddress: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 167
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 161
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Address;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 162
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Address;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->port()I
move-result v0
:goto_1
const/4 v2, 0x1
if-lt v0, v2, :cond_6
const v2, 0xffff
if-gt v0, v2, :cond_6
.line 179
invoke-virtual {p1}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object p1
sget-object v2, Ljava/net/Proxy$Type;->SOCKS:Ljava/net/Proxy$Type;
if-ne p1, v2, :cond_3
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
.line 180
invoke-static {v1, v0}, Ljava/net/InetSocketAddress;->createUnresolved(Ljava/lang/String;I)Ljava/net/InetSocketAddress;
move-result-object v0
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_3
:cond_3
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
.line 182
invoke-virtual {p1, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->dnsStart(Lcom/mbridge/msdk/thrid/okhttp/Call;Ljava/lang/String;)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 185
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Address;->dns()Lcom/mbridge/msdk/thrid/okhttp/Dns;
move-result-object p1
invoke-interface {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Dns;->lookup(Ljava/lang/String;)Ljava/util/List;
move-result-object p1
.line 186
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result v2
if-nez v2, :cond_5
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
.line 190
invoke-virtual {v2, v3, v1, p1}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->dnsEnd(Lcom/mbridge/msdk/thrid/okhttp/Call;Ljava/lang/String;Ljava/util/List;)V
.line 192
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
:goto_2
if-ge v2, v1, :cond_4
.line 193
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/net/InetAddress;
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
.line 194
new-instance v5, Ljava/net/InetSocketAddress;
invoke-direct {v5, v3, v0}, Ljava/net/InetSocketAddress;-><init>(Ljava/net/InetAddress;I)V
invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v2, v2, 0x1
goto :goto_2
:cond_4
:goto_3
return-void
.line 187
:cond_5
new-instance p1, Ljava/net/UnknownHostException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Address;->dns()Lcom/mbridge/msdk/thrid/okhttp/Dns;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " returned no addresses for "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
throw p1
.line 175
:cond_6
new-instance p1, Ljava/net/SocketException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "No route to "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ":"
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, "; port is out of range"
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/net/SocketException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method private resetNextProxy(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;Ljava/net/Proxy;)V
.locals 1
const/4 v0, 0x0
if-eqz p2, :cond_0
.line 126
invoke-static {p2}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
goto :goto_1
:cond_0
iget-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 129
invoke-virtual {p2}, Lcom/mbridge/msdk/thrid/okhttp/Address;->proxySelector()Ljava/net/ProxySelector;
move-result-object p2
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->uri()Ljava/net/URI;
move-result-object p1
invoke-virtual {p2, p1}, Ljava/net/ProxySelector;->select(Ljava/net/URI;)Ljava/util/List;
move-result-object p1
if-eqz p1, :cond_1
.line 130
invoke-interface {p1}, Ljava/util/List;->isEmpty()Z
move-result p2
if-nez p2, :cond_1
.line 131
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
move-result-object p1
goto :goto_0
:cond_1
const/4 p1, 0x1
new-array p1, p1, [Ljava/net/Proxy;
sget-object p2, Ljava/net/Proxy;->NO_PROXY:Ljava/net/Proxy;
aput-object p2, p1, v0
.line 132
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->immutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
:goto_0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->proxies:Ljava/util/List;
:goto_1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->nextProxyIndex:I
return-void
.end method
# virtual methods
.method public connectFailed(Lcom/mbridge/msdk/thrid/okhttp/Route;Ljava/io/IOException;)V
.locals 3
.line 113
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Route;->proxy()Ljava/net/Proxy;
move-result-object v0
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v1, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v1, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Address;->proxySelector()Ljava/net/ProxySelector;
move-result-object v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 115
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Address;->proxySelector()Ljava/net/ProxySelector;
move-result-object v0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
.line 116
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/Address;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v1
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->uri()Ljava/net/URI;
move-result-object v1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Route;->proxy()Ljava/net/Proxy;
move-result-object v2
invoke-virtual {v2}, Ljava/net/Proxy;->address()Ljava/net/SocketAddress;
move-result-object v2
.line 115
invoke-virtual {v0, v1, v2, p2}, Ljava/net/ProxySelector;->connectFailed(Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V
:cond_0
iget-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->routeDatabase:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
.line 119
invoke-virtual {p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->failed(Lcom/mbridge/msdk/thrid/okhttp/Route;)V
return-void
.end method
.method public hasNext()Z
.locals 1
.line 70
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->hasNextProxy()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->postponedRoutes:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 v0, 0x1
:goto_1
return v0
.end method
.method public next()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 74
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->hasNext()Z
move-result v0
if-eqz v0, :cond_5
.line 79
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 80
:cond_0
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->hasNextProxy()Z
move-result v1
if-eqz v1, :cond_3
.line 84
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->nextProxy()Ljava/net/Proxy;
move-result-object v1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
.line 85
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_2
.line 86
new-instance v4, Lcom/mbridge/msdk/thrid/okhttp/Route;
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->address:Lcom/mbridge/msdk/thrid/okhttp/Address;
iget-object v6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->inetSocketAddresses:Ljava/util/List;
invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/net/InetSocketAddress;
invoke-direct {v4, v5, v1, v6}, Lcom/mbridge/msdk/thrid/okhttp/Route;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Address;Ljava/net/Proxy;Ljava/net/InetSocketAddress;)V
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->routeDatabase:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;
.line 87
invoke-virtual {v5, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteDatabase;->shouldPostpone(Lcom/mbridge/msdk/thrid/okhttp/Route;)Z
move-result v5
if-eqz v5, :cond_1
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->postponedRoutes:Ljava/util/List;
.line 88
invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 90
:cond_1
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 94
:cond_2
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_0
.line 99
:cond_3
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_4
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->postponedRoutes:Ljava/util/List;
.line 101
invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector;->postponedRoutes:Ljava/util/List;
.line 102
invoke-interface {v1}, Ljava/util/List;->clear()V
.line 105
:cond_4
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;
invoke-direct {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RouteSelector$Selection;-><init>(Ljava/util/List;)V
return-object v1
.line 75
:cond_5
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method

View File

@@ -0,0 +1,39 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation$StreamAllocationReference;
.super Ljava/lang/ref/WeakReference;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "StreamAllocationReference"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;",
">;"
}
.end annotation
# instance fields
.field public final callStackTrace:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Ljava/lang/Object;)V
.locals 0
.line 538
invoke-direct {p0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation$StreamAllocationReference;->callStackTrace:Ljava/lang/Object;
return-void
.end method

View File

@@ -0,0 +1,404 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/BridgeInterceptor;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/Interceptor;
# instance fields
.field private final cookieJar:Lcom/mbridge/msdk/thrid/okhttp/CookieJar;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/CookieJar;)V
.locals 0
.line 44
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/BridgeInterceptor;->cookieJar:Lcom/mbridge/msdk/thrid/okhttp/CookieJar;
return-void
.end method
.method private cookieHeader(Ljava/util/List;)Ljava/lang/String;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Cookie;",
">;)",
"Ljava/lang/String;"
}
.end annotation
.line 122
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 123
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
if-lez v2, :cond_0
const-string v3, "; "
.line 125
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 127
:cond_0
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/mbridge/msdk/thrid/okhttp/Cookie;
.line 128
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Cookie;->name()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v4, 0x3d
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Cookie;->value()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 130
:cond_1
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
# virtual methods
.method public intercept(Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 50
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v0
.line 51
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
move-result-object v1
.line 53
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->body()Lcom/mbridge/msdk/thrid/okhttp/RequestBody;
move-result-object v2
const-wide/16 v3, -0x1
const-string v5, "Content-Type"
const-string v6, "Content-Length"
if-eqz v2, :cond_2
.line 55
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/RequestBody;->contentType()Lcom/mbridge/msdk/thrid/okhttp/MediaType;
move-result-object v7
if-eqz v7, :cond_0
.line 57
invoke-virtual {v7}, Lcom/mbridge/msdk/thrid/okhttp/MediaType;->toString()Ljava/lang/String;
move-result-object v7
invoke-virtual {v1, v5, v7}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
.line 60
:cond_0
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/RequestBody;->contentLength()J
move-result-wide v7
cmp-long v2, v7, v3
const-string v9, "Transfer-Encoding"
if-eqz v2, :cond_1
.line 62
invoke-static {v7, v8}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v6, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
.line 63
invoke-virtual {v1, v9}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->removeHeader(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
goto :goto_0
:cond_1
const-string v2, "chunked"
.line 65
invoke-virtual {v1, v9, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
.line 66
invoke-virtual {v1, v6}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->removeHeader(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
:cond_2
:goto_0
const-string v2, "Host"
.line 70
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
const/4 v8, 0x0
if-nez v7, :cond_3
.line 71
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v7
invoke-static {v7, v8}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->hostHeader(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;Z)Ljava/lang/String;
move-result-object v7
invoke-virtual {v1, v2, v7}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
:cond_3
const-string v2, "Connection"
.line 74
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
if-nez v7, :cond_4
const-string v7, "Keep-Alive"
.line 75
invoke-virtual {v1, v2, v7}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
:cond_4
const-string v2, "Accept-Encoding"
.line 81
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
const-string v9, "gzip"
if-nez v7, :cond_5
const-string v7, "Range"
invoke-virtual {v0, v7}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
if-nez v7, :cond_5
.line 83
invoke-virtual {v1, v2, v9}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
const/4 v8, 0x1
:cond_5
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/BridgeInterceptor;->cookieJar:Lcom/mbridge/msdk/thrid/okhttp/CookieJar;
.line 86
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v7
invoke-interface {v2, v7}, Lcom/mbridge/msdk/thrid/okhttp/CookieJar;->loadForRequest(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Ljava/util/List;
move-result-object v2
.line 87
invoke-interface {v2}, Ljava/util/List;->isEmpty()Z
move-result v7
if-nez v7, :cond_6
const-string v7, "Cookie"
.line 88
invoke-direct {p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/BridgeInterceptor;->cookieHeader(Ljava/util/List;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v7, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
:cond_6
const-string v2, "User-Agent"
.line 91
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
if-nez v7, :cond_7
.line 92
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/Version;->userAgent()Ljava/lang/String;
move-result-object v7
invoke-virtual {v1, v2, v7}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;
.line 95
:cond_7
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/Request$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v1
invoke-interface {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/BridgeInterceptor;->cookieJar:Lcom/mbridge/msdk/thrid/okhttp/CookieJar;
.line 97
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v2
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v7
invoke-static {v1, v2, v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->receiveHeaders(Lcom/mbridge/msdk/thrid/okhttp/CookieJar;Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;Lcom/mbridge/msdk/thrid/okhttp/Headers;)V
.line 99
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v1
.line 100
invoke-virtual {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->request(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
if-eqz v8, :cond_8
const-string v1, "Content-Encoding"
.line 103
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v9, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_8
.line 104
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->hasBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Z
move-result v2
if-eqz v2, :cond_8
.line 105
new-instance v2, Lcom/mbridge/msdk/thrid/okio/GzipSource;
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v7
invoke-virtual {v7}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->source()Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v7
invoke-direct {v2, v7}, Lcom/mbridge/msdk/thrid/okio/GzipSource;-><init>(Lcom/mbridge/msdk/thrid/okio/Source;)V
.line 106
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v7
invoke-virtual {v7}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
move-result-object v7
.line 107
invoke-virtual {v7, v1}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->removeAll(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
move-result-object v1
.line 108
invoke-virtual {v1, v6}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->removeAll(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
move-result-object v1
.line 109
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v1
.line 110
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->headers(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.line 111
invoke-virtual {p1, v5}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 112
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v2
invoke-direct {v1, p1, v3, v4, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.line 115
:cond_8
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,51 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;
.super Lcom/mbridge/msdk/thrid/okio/ForwardingSink;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "CountingSink"
.end annotation
# instance fields
.field successfulCount:J
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
.locals 0
.line 145
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;-><init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
return-void
.end method
# virtual methods
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 149
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/ForwardingSink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J
add-long/2addr v0, p2
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J
return-void
.end method

View File

@@ -0,0 +1,506 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/Interceptor;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;
}
.end annotation
# instance fields
.field private final forWebSocket:Z
# direct methods
.method public constructor <init>(Z)V
.locals 0
.line 36
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor;->forWebSocket:Z
return-void
.end method
# virtual methods
.method public intercept(Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 11
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 41
check-cast p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
.line 42
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpStream()Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
move-result-object v0
.line 43
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
move-result-object v1
.line 44
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection()Lcom/mbridge/msdk/thrid/okhttp/Connection;
move-result-object v2
check-cast v2, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.line 45
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v3
.line 47
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
.line 49
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v6
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v7
invoke-virtual {v6, v7}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->requestHeadersStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
.line 50
invoke-interface {v0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->writeRequestHeaders(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.line 51
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v6
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v7
invoke-virtual {v6, v7, v3}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->requestHeadersEnd(Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.line 54
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Request;->method()Ljava/lang/String;
move-result-object v6
invoke-static {v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpMethod;->permitsRequestBody(Ljava/lang/String;)Z
move-result v6
const/4 v7, 0x0
if-eqz v6, :cond_2
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Request;->body()Lcom/mbridge/msdk/thrid/okhttp/RequestBody;
move-result-object v6
if-eqz v6, :cond_2
const-string v6, "Expect"
.line 58
invoke-virtual {v3, v6}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
const-string v8, "100-continue"
invoke-virtual {v8, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_0
.line 59
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->flushRequest()V
.line 60
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v6
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v7
invoke-virtual {v6, v7}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->responseHeadersStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
const/4 v6, 0x1
.line 61
invoke-interface {v0, v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v7
:cond_0
if-nez v7, :cond_1
.line 66
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v2
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v6
invoke-virtual {v2, v6}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->requestBodyStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
.line 67
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Request;->body()Lcom/mbridge/msdk/thrid/okhttp/RequestBody;
move-result-object v2
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/RequestBody;->contentLength()J
move-result-wide v8
.line 68
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;
.line 69
invoke-interface {v0, v3, v8, v9}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->createRequestBody(Lcom/mbridge/msdk/thrid/okhttp/Request;J)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object v6
invoke-direct {v2, v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;-><init>(Lcom/mbridge/msdk/thrid/okio/Sink;)V
.line 70
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Sink;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v6
.line 72
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/Request;->body()Lcom/mbridge/msdk/thrid/okhttp/RequestBody;
move-result-object v8
invoke-virtual {v8, v6}, Lcom/mbridge/msdk/thrid/okhttp/RequestBody;->writeTo(Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.line 73
invoke-interface {v6}, Lcom/mbridge/msdk/thrid/okio/Sink;->close()V
.line 74
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v6
.line 75
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v8
iget-wide v9, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J
invoke-virtual {v6, v8, v9, v10}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->requestBodyEnd(Lcom/mbridge/msdk/thrid/okhttp/Call;J)V
goto :goto_0
.line 76
:cond_1
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->isMultiplexed()Z
move-result v2
if-nez v2, :cond_2
.line 80
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->noNewStreams()V
.line 84
:cond_2
:goto_0
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->finishRequest()V
const/4 v2, 0x0
if-nez v7, :cond_3
.line 87
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v6
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object v7
invoke-virtual {v6, v7}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->responseHeadersStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
.line 88
invoke-interface {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v7
.line 92
:cond_3
invoke-virtual {v7, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->request(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v6
.line 93
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->connection()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
move-result-object v7
invoke-virtual {v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->handshake()Lcom/mbridge/msdk/thrid/okhttp/Handshake;
move-result-object v7
invoke-virtual {v6, v7}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->handshake(Lcom/mbridge/msdk/thrid/okhttp/Handshake;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v6
.line 94
invoke-virtual {v6, v4, v5}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->sentRequestAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v6
.line 95
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
invoke-virtual {v6, v7, v8}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->receivedResponseAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v6
.line 96
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v6
.line 98
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response;->code()I
move-result v7
const/16 v8, 0x64
if-ne v7, v8, :cond_4
.line 102
invoke-interface {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v2
.line 105
invoke-virtual {v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->request(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v2
.line 106
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->connection()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
move-result-object v3
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->handshake()Lcom/mbridge/msdk/thrid/okhttp/Handshake;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->handshake(Lcom/mbridge/msdk/thrid/okhttp/Handshake;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v2
.line 107
invoke-virtual {v2, v4, v5}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->sentRequestAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v2
.line 108
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v3
invoke-virtual {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->receivedResponseAtMillis(J)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v2
.line 109
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v6
.line 111
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response;->code()I
move-result v7
.line 114
:cond_4
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
move-result-object v2
.line 115
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call()Lcom/mbridge/msdk/thrid/okhttp/Call;
move-result-object p1
invoke-virtual {v2, p1, v6}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->responseHeadersEnd(Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/Response;)V
iget-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/CallServerInterceptor;->forWebSocket:Z
if-eqz p1, :cond_5
const/16 p1, 0x65
if-ne v7, p1, :cond_5
.line 119
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->EMPTY_RESPONSE:Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.line 120
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 121
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
goto :goto_1
.line 123
:cond_5
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response;->newBuilder()Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 124
invoke-interface {v0, v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;->openResponseBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->body(Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p1
.line 125
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
.line 128
:goto_1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object v0
const-string v2, "Connection"
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v3, "close"
invoke-virtual {v3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_6
.line 129
invoke-virtual {p1, v2}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v3, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_7
.line 130
:cond_6
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->noNewStreams()V
:cond_7
const/16 v0, 0xcc
if-eq v7, v0, :cond_8
const/16 v0, 0xcd
if-ne v7, v0, :cond_9
.line 133
:cond_8
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->contentLength()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-gtz v0, :cond_a
:cond_9
return-object p1
.line 134
:cond_a
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "HTTP "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v2, " had non-zero Content-Length: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 135
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object p1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;->contentLength()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View File

@@ -0,0 +1,55 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final DISCARD_STREAM_TIMEOUT_MILLIS:I = 0x64
# virtual methods
.method public abstract cancel()V
.end method
.method public abstract createRequestBody(Lcom/mbridge/msdk/thrid/okhttp/Request;J)Lcom/mbridge/msdk/thrid/okio/Sink;
.end method
.method public abstract finishRequest()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract flushRequest()V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract openResponseBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract writeRequestHeaders(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View File

@@ -0,0 +1,71 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate$1;
.super Ljava/lang/ThreadLocal;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Ljava/text/DateFormat;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 38
invoke-direct {p0}, Ljava/lang/ThreadLocal;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic initialValue()Ljava/lang/Object;
.locals 1
.line 38
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate$1;->initialValue()Ljava/text/DateFormat;
move-result-object v0
return-object v0
.end method
.method public initialValue()Ljava/text/DateFormat;
.locals 3
.line 41
new-instance v0, Ljava/text/SimpleDateFormat;
const-string v1, "EEE, dd MMM yyyy HH:mm:ss \'GMT\'"
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
const/4 v1, 0x0
.line 42
invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setLenient(Z)V
.line 43
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->UTC:Ljava/util/TimeZone;
invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
return-object v0
.end method

View File

@@ -0,0 +1,244 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final BROWSER_COMPATIBLE_DATE_FORMATS:[Ljava/text/DateFormat;
.field private static final BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS:[Ljava/lang/String;
.field public static final MAX_DATE:J = 0xe677d21fdbffL
.field private static final STANDARD_DATE_FORMAT:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Ljava/text/DateFormat;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 16
.line 37
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate$1;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate$1;-><init>()V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->STANDARD_DATE_FORMAT:Ljava/lang/ThreadLocal;
const-string v1, "EEE, dd MMM yyyy HH:mm:ss zzz"
const-string v2, "EEEE, dd-MMM-yy HH:mm:ss zzz"
const-string v3, "EEE MMM d HH:mm:ss yyyy"
const-string v4, "EEE, dd-MMM-yyyy HH:mm:ss z"
const-string v5, "EEE, dd-MMM-yyyy HH-mm-ss z"
const-string v6, "EEE, dd MMM yy HH:mm:ss z"
const-string v7, "EEE dd-MMM-yyyy HH:mm:ss z"
const-string v8, "EEE dd MMM yyyy HH:mm:ss z"
const-string v9, "EEE dd-MMM-yyyy HH-mm-ss z"
const-string v10, "EEE dd-MMM-yy HH:mm:ss z"
const-string v11, "EEE dd MMM yy HH:mm:ss z"
const-string v12, "EEE,dd-MMM-yy HH:mm:ss z"
const-string v13, "EEE,dd-MMM-yyyy HH:mm:ss z"
const-string v14, "EEE, dd-MM-yyyy HH:mm:ss z"
const-string v15, "EEE MMM d yyyy HH:mm:ss z"
filled-new-array/range {v1 .. v15}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS:[Ljava/lang/String;
array-length v0, v0
.line 71
new-array v0, v0, [Ljava/text/DateFormat;
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->BROWSER_COMPATIBLE_DATE_FORMATS:[Ljava/text/DateFormat;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 117
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static format(Ljava/util/Date;)Ljava/lang/String;
.locals 1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->STANDARD_DATE_FORMAT:Ljava/lang/ThreadLocal;
.line 114
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/text/DateFormat;
invoke-virtual {v0, p0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static parse(Ljava/lang/String;)Ljava/util/Date;
.locals 10
.line 76
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
return-object v1
.line 80
:cond_0
new-instance v0, Ljava/text/ParsePosition;
const/4 v2, 0x0
invoke-direct {v0, v2}, Ljava/text/ParsePosition;-><init>(I)V
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->STANDARD_DATE_FORMAT:Ljava/lang/ThreadLocal;
.line 81
invoke-virtual {v3}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/text/DateFormat;
invoke-virtual {v3, p0, v0}, Ljava/text/DateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
move-result-object v3
.line 82
invoke-virtual {v0}, Ljava/text/ParsePosition;->getIndex()I
move-result v4
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v5
if-ne v4, v5, :cond_1
return-object v3
:cond_1
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS:[Ljava/lang/String;
.line 87
monitor-enter v3
.line 88
:try_start_0
array-length v4, v3
move v5, v2
:goto_0
if-ge v5, v4, :cond_4
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->BROWSER_COMPATIBLE_DATE_FORMATS:[Ljava/text/DateFormat;
.line 89
aget-object v7, v6, v5
if-nez v7, :cond_2
.line 91
new-instance v7, Ljava/text/SimpleDateFormat;
sget-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpDate;->BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS:[Ljava/lang/String;
aget-object v8, v8, v5
sget-object v9, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-direct {v7, v8, v9}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
.line 94
sget-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->UTC:Ljava/util/TimeZone;
invoke-virtual {v7, v8}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
.line 95
aput-object v7, v6, v5
goto :goto_1
:catchall_0
move-exception p0
goto :goto_2
.line 97
:cond_2
:goto_1
invoke-virtual {v0, v2}, Ljava/text/ParsePosition;->setIndex(I)V
.line 98
invoke-virtual {v7, p0, v0}, Ljava/text/DateFormat;->parse(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
move-result-object v6
.line 99
invoke-virtual {v0}, Ljava/text/ParsePosition;->getIndex()I
move-result v7
if-eqz v7, :cond_3
.line 105
monitor-exit v3
return-object v6
:cond_3
add-int/lit8 v5, v5, 0x1
goto :goto_0
.line 108
:cond_4
monitor-exit v3
return-object v1
:goto_2
monitor-exit v3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,199 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpMethod;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
.line 48
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static invalidatesCache(Ljava/lang/String;)Z
.locals 1
const-string v0, "POST"
.line 20
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "PATCH"
.line 21
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "PUT"
.line 22
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "DELETE"
.line 23
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "MOVE"
.line 24
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method public static permitsRequestBody(Ljava/lang/String;)Z
.locals 1
const-string v0, "GET"
.line 36
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
const-string v0, "HEAD"
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-nez p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static redirectsToGet(Ljava/lang/String;)Z
.locals 1
const-string v0, "PROPFIND"
.line 45
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
xor-int/lit8 p0, p0, 0x1
return p0
.end method
.method public static redirectsWithBody(Ljava/lang/String;)Z
.locals 1
const-string v0, "PROPFIND"
.line 40
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
return p0
.end method
.method public static requiresRequestBody(Ljava/lang/String;)Z
.locals 1
const-string v0, "POST"
.line 28
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "PUT"
.line 29
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "PATCH"
.line 30
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "PROPPATCH"
.line 31
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "REPORT"
.line 32
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method

View File

@@ -0,0 +1,625 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
# instance fields
.field private final call:Lcom/mbridge/msdk/thrid/okhttp/Call;
.field private calls:I
.field private final connectTimeout:I
.field private final connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.field private final eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
.field private final httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
.field private final index:I
.field private final interceptors:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Interceptor;",
">;"
}
.end annotation
.end field
.field private final readTimeout:I
.field private final request:Lcom/mbridge/msdk/thrid/okhttp/Request;
.field private final streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.field private final writeTimeout:I
# direct methods
.method public constructor <init>(Ljava/util/List;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ILcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;III)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/Interceptor;",
">;",
"Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;",
"Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;",
"I",
"Lcom/mbridge/msdk/thrid/okhttp/Request;",
"Lcom/mbridge/msdk/thrid/okhttp/Call;",
"Lcom/mbridge/msdk/thrid/okhttp/EventListener;",
"III)V"
}
.end annotation
.line 52
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
iput p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
iput-object p6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
iput-object p7, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iput-object p8, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iput p9, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connectTimeout:I
iput p10, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->readTimeout:I
iput p11, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->writeTimeout:I
return-void
.end method
# virtual methods
.method public call()Lcom/mbridge/msdk/thrid/okhttp/Call;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
return-object v0
.end method
.method public connectTimeoutMillis()I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connectTimeout:I
return v0
.end method
.method public connection()Lcom/mbridge/msdk/thrid/okhttp/Connection;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
return-object v0
.end method
.method public eventListener()Lcom/mbridge/msdk/thrid/okhttp/EventListener;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
return-object v0
.end method
.method public httpStream()Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
return-object v0
.end method
.method public proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.line 121
invoke-virtual {p0, p1, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object p1
return-object p1
.end method
.method public proceed(Lcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;)Lcom/mbridge/msdk/thrid/okhttp/Response;
.locals 17
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v0, p0
iget v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
iget-object v2, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
.line 126
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
if-ge v1, v2, :cond_8
iget v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->calls:I
const/4 v2, 0x1
add-int/2addr v1, v2
iput v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->calls:I
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
const-string v3, "network interceptor "
if-eqz v1, :cond_1
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
.line 131
invoke-virtual/range {p1 .. p1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v4
invoke-virtual {v1, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->supportsUrl(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
.line 132
:cond_0
new-instance v1, Ljava/lang/IllegalStateException;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
sub-int/2addr v5, v2
invoke-interface {v3, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v2, " must retain the same host and port"
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:cond_1
:goto_0
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
const-string v4, " must call proceed() exactly once"
if-eqz v1, :cond_3
iget v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->calls:I
if-gt v1, v2, :cond_2
goto :goto_1
.line 138
:cond_2
new-instance v1, Ljava/lang/IllegalStateException;
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
sub-int/2addr v6, v2
invoke-interface {v3, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.line 143
:cond_3
:goto_1
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
iget-object v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
add-int/lit8 v10, v5, 0x1
iget-object v12, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iget-object v13, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connectTimeout:I
iget v15, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->readTimeout:I
iget v11, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->writeTimeout:I
move-object v5, v1
move-object/from16 v7, p2
move-object/from16 v8, p3
move-object/from16 v9, p4
move/from16 v16, v11
move-object/from16 v11, p1
invoke-direct/range {v5 .. v16}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;-><init>(Ljava/util/List;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ILcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;III)V
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
.line 146
invoke-interface {v5, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/mbridge/msdk/thrid/okhttp/Interceptor;
.line 147
invoke-interface {v5, v1}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor;->intercept(Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;)Lcom/mbridge/msdk/thrid/okhttp/Response;
move-result-object v6
if-eqz p3, :cond_5
iget v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
add-int/2addr v7, v2
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
.line 150
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v8
if-ge v7, v8, :cond_5
iget v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->calls:I
if-ne v1, v2, :cond_4
goto :goto_2
.line 151
:cond_4
new-instance v1, Ljava/lang/IllegalStateException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:cond_5
:goto_2
const-string v1, "interceptor "
if-eqz v6, :cond_7
.line 160
invoke-virtual {v6}, Lcom/mbridge/msdk/thrid/okhttp/Response;->body()Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
move-result-object v2
if-eqz v2, :cond_6
return-object v6
.line 161
:cond_6
new-instance v2, Ljava/lang/IllegalStateException;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " returned a response with no body"
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v2
.line 157
:cond_7
new-instance v2, Ljava/lang/NullPointerException;
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " returned null"
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v2
.line 126
:cond_8
new-instance v1, Ljava/lang/AssertionError;
invoke-direct {v1}, Ljava/lang/AssertionError;-><init>()V
throw v1
.end method
.method public readTimeoutMillis()I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->readTimeout:I
return v0
.end method
.method public request()Lcom/mbridge/msdk/thrid/okhttp/Request;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
return-object v0
.end method
.method public streamAllocation()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
return-object v0
.end method
.method public withConnectTimeout(ILjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
.locals 16
move-object/from16 v0, p0
const-string v1, "timeout"
move/from16 v2, p1
int-to-long v2, v2
move-object/from16 v4, p2
.line 75
invoke-static {v1, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
move-result v13
.line 76
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget-object v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iget-object v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
iget v9, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
iget-object v10, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
iget-object v11, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iget-object v12, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->readTimeout:I
iget v15, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->writeTimeout:I
move-object v4, v1
invoke-direct/range {v4 .. v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;-><init>(Ljava/util/List;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ILcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;III)V
return-object v1
.end method
.method public withReadTimeout(ILjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
.locals 16
move-object/from16 v0, p0
const-string v1, "timeout"
move/from16 v2, p1
int-to-long v2, v2
move-object/from16 v4, p2
.line 85
invoke-static {v1, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
move-result v14
.line 86
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget-object v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iget-object v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
iget v9, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
iget-object v10, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
iget-object v11, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iget-object v12, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget v13, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connectTimeout:I
iget v15, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->writeTimeout:I
move-object v4, v1
invoke-direct/range {v4 .. v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;-><init>(Ljava/util/List;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ILcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;III)V
return-object v1
.end method
.method public withWriteTimeout(ILjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
.locals 16
move-object/from16 v0, p0
const-string v1, "timeout"
move/from16 v2, p1
int-to-long v2, v2
move-object/from16 v4, p2
.line 95
invoke-static {v1, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
move-result v15
.line 96
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
iget-object v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iget-object v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->httpCodec:Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
iget v9, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->index:I
iget-object v10, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->request:Lcom/mbridge/msdk/thrid/okhttp/Request;
iget-object v11, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
iget-object v12, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget v13, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->connectTimeout:I
iget v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->readTimeout:I
move-object v4, v1
invoke-direct/range {v4 .. v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;-><init>(Ljava/util/List;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;ILcom/mbridge/msdk/thrid/okhttp/Request;Lcom/mbridge/msdk/thrid/okhttp/Call;Lcom/mbridge/msdk/thrid/okhttp/EventListener;III)V
return-object v1
.end method
.method public writeTimeoutMillis()I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealInterceptorChain;->writeTimeout:I
return v0
.end method

View File

@@ -0,0 +1,67 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
.super Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.source "SourceFile"
# instance fields
.field private final contentLength:J
.field private final contentTypeString:Ljava/lang/String;
.field private final source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
# direct methods
.method public constructor <init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
.locals 0
.line 33
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
iput-wide p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->contentLength:J
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
return-void
.end method
# virtual methods
.method public contentLength()J
.locals 2
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->contentLength:J
return-wide v0
.end method
.method public contentType()Lcom/mbridge/msdk/thrid/okhttp/MediaType;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->contentTypeString:Ljava/lang/String;
if-eqz v0, :cond_0
.line 40
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/MediaType;->parse(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/MediaType;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public source()Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
return-object v0
.end method

View File

@@ -0,0 +1,137 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/RequestLine;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static get(Lcom/mbridge/msdk/thrid/okhttp/Request;Ljava/net/Proxy$Type;)Ljava/lang/String;
.locals 2
.line 33
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 34
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->method()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x20
.line 35
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 37
invoke-static {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RequestLine;->includeAuthorityInRequestLine(Lcom/mbridge/msdk/thrid/okhttp/Request;Ljava/net/Proxy$Type;)Z
move-result p1
if-eqz p1, :cond_0
.line 38
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
goto :goto_0
.line 40
:cond_0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object p0
invoke-static {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RequestLine;->requestPath(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Ljava/lang/String;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
const-string p0, " HTTP/1.1"
.line 43
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 44
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static includeAuthorityInRequestLine(Lcom/mbridge/msdk/thrid/okhttp/Request;Ljava/net/Proxy$Type;)Z
.locals 0
.line 52
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->isHttps()Z
move-result p0
if-nez p0, :cond_0
sget-object p0, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
if-ne p1, p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public static requestPath(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Ljava/lang/String;
.locals 2
.line 60
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->encodedPath()Ljava/lang/String;
move-result-object v0
.line 61
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->encodedQuery()Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_0
.line 62
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v0, 0x3f
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:cond_0
return-object v0
.end method

View File

@@ -0,0 +1,373 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final HTTP_CONTINUE:I = 0x64
.field public static final HTTP_PERM_REDIRECT:I = 0x134
.field public static final HTTP_TEMP_REDIRECT:I = 0x133
# instance fields
.field public final code:I
.field public final message:Ljava/lang/String;
.field public final protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/Protocol;ILjava/lang/String;)V
.locals 0
.line 34
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
iput p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->message:Ljava/lang/String;
return-void
.end method
.method public static get(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
.locals 3
.line 41
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->protocol()Lcom/mbridge/msdk/thrid/okhttp/Protocol;
move-result-object v1
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->code()I
move-result v2
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->message()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, v1, v2, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Protocol;ILjava/lang/String;)V
return-object v0
.end method
.method public static parse(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "HTTP/1."
.line 51
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
const/4 v1, 0x4
const/16 v2, 0x20
const-string v3, "Unexpected status line: "
if-eqz v0, :cond_3
.line 52
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v0
const/16 v4, 0x9
if-lt v0, v4, :cond_2
const/16 v0, 0x8
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
move-result v0
if-ne v0, v2, :cond_2
const/4 v0, 0x7
.line 55
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
move-result v0
add-int/lit8 v0, v0, -0x30
if-nez v0, :cond_0
.line 58
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_1_0:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
goto :goto_0
:cond_0
const/4 v5, 0x1
if-ne v0, v5, :cond_1
.line 60
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_1_1:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
goto :goto_0
.line 62
:cond_1
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.line 53
:cond_2
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
const-string v0, "ICY "
.line 64
invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_7
.line 66
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_1_0:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
move v4, v1
.line 73
:goto_0
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v5
add-int/lit8 v6, v4, 0x3
if-lt v5, v6, :cond_6
.line 78
:try_start_0
invoke-virtual {p0, v4, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v5
invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v5
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
.line 86
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v7
if-le v7, v6, :cond_5
.line 87
invoke-virtual {p0, v6}, Ljava/lang/String;->charAt(I)C
move-result v6
if-ne v6, v2, :cond_4
add-int/2addr v4, v1
.line 90
invoke-virtual {p0, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p0
goto :goto_1
.line 88
:cond_4
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
:cond_5
const-string p0, ""
.line 93
:goto_1
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
invoke-direct {v1, v0, v5, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;-><init>(Lcom/mbridge/msdk/thrid/okhttp/Protocol;ILjava/lang/String;)V
return-object v1
.line 80
:catch_0
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.line 74
:cond_6
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.line 69
:cond_7
new-instance v0, Ljava/net/ProtocolException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method public toString()Ljava/lang/String;
.locals 3
.line 97
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
.line 98
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_1_0:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
if-ne v1, v2, :cond_0
const-string v1, "HTTP/1.0"
goto :goto_0
:cond_0
const-string v1, "HTTP/1.1"
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x20
.line 99
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->message:Ljava/lang/String;
if-eqz v2, :cond_1
.line 101
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->message:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 103
:cond_1
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,3 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http/UnrepeatableRequestBody;
.super Ljava/lang/Object;
.source "SourceFile"

View File

@@ -0,0 +1,14 @@
.class synthetic Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation

View File

@@ -0,0 +1,207 @@
.class abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x401
name = "AbstractSource"
.end annotation
# instance fields
.field protected bytesRead:J
.field protected closed:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.field protected final timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
# direct methods
.method private constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
.locals 2
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 352
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 353
new-instance v0, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okio/Source;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object p1
invoke-direct {v0, p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;-><init>(Lcom/mbridge/msdk/thrid/okio/Timeout;)V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->bytesRead:J
return-void
.end method
.method public synthetic constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$1;)V
.locals 0
.line 352
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
return-void
.end method
# virtual methods
.method public final endOfInput(ZLjava/io/IOException;)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 379
iget v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v2, 0x6
if-ne v1, v2, :cond_0
return-void
:cond_0
const/4 v3, 0x5
if-ne v1, v3, :cond_2
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
.line 382
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->detachTimeout(Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;)V
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 384
iput v2, v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 385
iget-object v3, v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
if-eqz v3, :cond_1
xor-int/lit8 v4, p1, 0x1
iget-wide v6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->bytesRead:J
move-object v8, p2
.line 386
invoke-virtual/range {v3 .. v8}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->streamFinished(ZLcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;JLjava/io/IOException;)V
:cond_1
return-void
.line 380
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
iget v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 363
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
invoke-interface {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
const-wide/16 v0, 0x0
cmp-long p3, p1, v0
if-lez p3, :cond_0
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->bytesRead:J
add-long/2addr v0, p1
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->bytesRead:J
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
goto :goto_1
:cond_0
:goto_0
return-wide p1
:goto_1
const/4 p2, 0x0
.line 369
invoke-virtual {p0, p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
.line 370
throw p1
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
return-object v0
.end method

View File

@@ -0,0 +1,237 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "ChunkedSink"
.end annotation
# instance fields
.field private closed:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.field private final timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 321
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 318
new-instance v0, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okio/Sink;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object p1
invoke-direct {v0, p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;-><init>(Lcom/mbridge/msdk/thrid/okio/Timeout;)V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
return-void
.end method
# virtual methods
.method public declared-synchronized close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->closed:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
.line 344
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
:try_start_1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->closed:Z
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 346
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
const-string v1, "0\r\n\r\n"
invoke-interface {v0, v1}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
.line 347
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->detachTimeout(Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
const/4 v1, 0x3
.line 348
iput v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 349
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->closed:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
.line 339
monitor-exit p0
return-void
:cond_0
:try_start_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 340
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->flush()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 341
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
return-object v0
.end method
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->closed:Z
if-nez v0, :cond_1
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 332
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {v0, p2, p3}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeHexadecimalUnsignedLong(J)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 333
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
const-string v1, "\r\n"
invoke-interface {v0, v1}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 334
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 335
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {p1, v1}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
return-void
.line 329
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,388 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "ChunkedSource"
.end annotation
# static fields
.field private static final NO_CHUNK_YET:J = -0x1L
# instance fields
.field private bytesRemainingInChunk:J
.field private hasMoreChunks:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.field private final url:Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)V
.locals 2
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
const/4 v0, 0x0
.line 439
invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$1;)V
const-wide/16 v0, -0x1
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->hasMoreChunks:Z
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->url:Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
return-void
.end method
.method private readChunkSize()V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
const-wide/16 v2, -0x1
cmp-long v0, v0, v2
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 466
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String;
:cond_0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 469
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readHexadecimalUnsignedLong()J
move-result-wide v0
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 470
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readUtf8LineStrict()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
iget-wide v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
const-wide/16 v3, 0x0
cmp-long v1, v1, v3
if-ltz v1, :cond_3
.line 471
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
const-string v1, ";"
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v1
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz v1, :cond_3
goto :goto_0
:catch_0
move-exception v0
goto :goto_1
:cond_1
:goto_0
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
cmp-long v0, v0, v3
if-nez v0, :cond_2
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->hasMoreChunks:Z
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 480
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;->cookieJar()Lcom/mbridge/msdk/thrid/okhttp/CookieJar;
move-result-object v0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->url:Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->readHeaders()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v2
invoke-static {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->receiveHeaders(Lcom/mbridge/msdk/thrid/okhttp/CookieJar;Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;Lcom/mbridge/msdk/thrid/okhttp/Headers;)V
const/4 v0, 0x1
const/4 v1, 0x0
.line 481
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_2
return-void
.line 472
:cond_3
:try_start_1
new-instance v1, Ljava/net/ProtocolException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "expected chunk size and optional extensions but was \""
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\""
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v1
:try_end_1
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
.line 476
:goto_1
new-instance v1, Ljava/net/ProtocolException;
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v1
.end method
# virtual methods
.method public close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->hasMoreChunks:Z
if-eqz v0, :cond_1
const/16 v0, 0x64
.line 487
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->discard(Lcom/mbridge/msdk/thrid/okio/Source;ILjava/util/concurrent/TimeUnit;)Z
move-result v0
if-nez v0, :cond_1
const/4 v0, 0x0
const/4 v1, 0x0
.line 488
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_5
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-nez v2, :cond_4
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->hasMoreChunks:Z
const-wide/16 v3, -0x1
if-nez v2, :cond_0
return-wide v3
:cond_0
iget-wide v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
cmp-long v0, v5, v0
if-eqz v0, :cond_1
cmp-long v0, v5, v3
if-nez v0, :cond_2
.line 449
:cond_1
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->readChunkSize()V
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->hasMoreChunks:Z
if-nez v0, :cond_2
return-wide v3
:cond_2
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
.line 453
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
cmp-long p3, p1, v3
if-eqz p3, :cond_3
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
sub-long/2addr v0, p1
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;->bytesRemainingInChunk:J
return-wide p1
.line 455
:cond_3
new-instance p1, Ljava/net/ProtocolException;
const-string p2, "unexpected end of stream"
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
const/4 p2, 0x0
.line 456
invoke-virtual {p0, p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
.line 457
throw p1
.line 445
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 444
:cond_5
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,229 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FixedLengthSink"
.end annotation
# instance fields
.field private bytesRemaining:J
.field private closed:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.field private final timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;J)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 280
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 276
new-instance v0, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {p1}, Lcom/mbridge/msdk/thrid/okio/Sink;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object p1
invoke-direct {v0, p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;-><init>(Lcom/mbridge/msdk/thrid/okio/Timeout;)V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
iput-wide p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
return-void
.end method
# virtual methods
.method public close()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->closed:Z
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-gtz v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
.line 308
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->detachTimeout(Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
const/4 v1, 0x3
.line 309
iput v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
return-void
.line 307
:cond_1
new-instance v0, Ljava/net/ProtocolException;
const-string v1, "unexpected end of stream"
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public flush()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 301
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->flush()V
return-void
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->timeout:Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
return-object v0
.end method
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->closed:Z
if-nez v0, :cond_1
.line 290
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v1
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->checkOffsetAndCount(JJJ)V
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
cmp-long v0, p2, v0
if-gtz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.line 295
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
invoke-interface {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Sink;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
sub-long/2addr v0, p2
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
return-void
.line 292
:cond_0
new-instance p1, Ljava/net/ProtocolException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "expected "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;->bytesRemaining:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, " bytes but received "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
.line 289
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,216 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "FixedLengthSource"
.end annotation
# instance fields
.field private bytesRemaining:J
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;J)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
const/4 v0, 0x0
.line 395
invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$1;)V
iput-wide p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->bytesRemaining:J
const-wide/16 v1, 0x0
cmp-long p1, p2, v1
if-nez p1, :cond_0
const/4 p1, 0x1
.line 398
invoke-virtual {p0, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_0
return-void
.end method
# virtual methods
.method public close()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->bytesRemaining:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-eqz v0, :cond_1
const/16 v0, 0x64
.line 424
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->discard(Lcom/mbridge/msdk/thrid/okio/Source;ILjava/util/concurrent/TimeUnit;)Z
move-result v0
if-nez v0, :cond_1
const/4 v0, 0x0
const/4 v1, 0x0
.line 425
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_4
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-nez v2, :cond_3
iget-wide v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->bytesRemaining:J
cmp-long v4, v2, v0
const-wide/16 v5, -0x1
if-nez v4, :cond_0
return-wide v5
.line 407
:cond_0
invoke-static {v2, v3, p2, p3}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
cmp-long p3, p1, v5
if-eqz p3, :cond_2
iget-wide v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->bytesRemaining:J
sub-long/2addr v2, p1
iput-wide v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;->bytesRemaining:J
cmp-long p3, v2, v0
if-nez p3, :cond_1
const/4 p3, 0x1
const/4 v0, 0x0
.line 416
invoke-virtual {p0, p3, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_1
return-wide p1
.line 409
:cond_2
new-instance p1, Ljava/net/ProtocolException;
const-string p2, "unexpected end of stream"
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
const/4 p2, 0x0
.line 410
invoke-virtual {p0, p2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
.line 411
throw p1
.line 404
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 403
:cond_4
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,154 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "UnknownLengthSource"
.end annotation
# instance fields
.field private inputExhausted:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
const/4 v0, 0x0
.line 498
invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$1;)V
return-void
.end method
# virtual methods
.method public close()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;->inputExhausted:Z
if-nez v0, :cond_1
const/4 v0, 0x0
const/4 v1, 0x0
.line 519
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-ltz v0, :cond_3
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->closed:Z
if-nez v0, :cond_2
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;->inputExhausted:Z
const-wide/16 v1, -0x1
if-eqz v0, :cond_0
return-wide v1
.line 507
:cond_0
invoke-super {p0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
cmp-long p3, p1, v1
if-nez p3, :cond_1
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;->inputExhausted:Z
const/4 p2, 0x0
.line 510
invoke-virtual {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;->endOfInput(ZLjava/io/IOException;)V
return-wide v1
:cond_1
return-wide p1
.line 504
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 503
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method

View File

@@ -0,0 +1,991 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$AbstractSource;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;
}
.end annotation
# static fields
.field private static final HEADER_LIMIT:I = 0x40000
.field private static final STATE_CLOSED:I = 0x6
.field private static final STATE_IDLE:I = 0x0
.field private static final STATE_OPEN_REQUEST_BODY:I = 0x1
.field private static final STATE_OPEN_RESPONSE_BODY:I = 0x4
.field private static final STATE_READING_RESPONSE_BODY:I = 0x5
.field private static final STATE_READ_RESPONSE_HEADERS:I = 0x3
.field private static final STATE_WRITING_REQUEST_BODY:I = 0x2
# instance fields
.field final client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
.field private headerLimit:J
.field final sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.field final source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.field state:I
.field final streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.locals 2
.line 90
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const-wide/32 v0, 0x40000
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->headerLimit:J
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->client:Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
return-void
.end method
.method private readHeaderLine()Ljava/lang/String;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
iget-wide v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->headerLimit:J
.line 215
invoke-interface {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readUtf8LineStrict(J)Ljava/lang/String;
move-result-object v0
iget-wide v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->headerLimit:J
.line 216
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v3
int-to-long v3, v3
sub-long/2addr v1, v3
iput-wide v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->headerLimit:J
return-object v0
.end method
# virtual methods
.method public cancel()V
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.line 113
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->connection()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
move-result-object v0
if-eqz v0, :cond_0
.line 114
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->cancel()V
:cond_0
return-void
.end method
.method public createRequestBody(Lcom/mbridge/msdk/thrid/okhttp/Request;J)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 2
const-string v0, "Transfer-Encoding"
.line 98
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "chunked"
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_0
.line 100
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newChunkedSink()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
return-object p1
:cond_0
const-wide/16 v0, -0x1
cmp-long p1, p2, v0
if-eqz p1, :cond_1
.line 105
invoke-virtual {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newFixedLengthSink(J)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
return-object p1
.line 108
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Cannot stream a request body without chunked encoding or a known content length!"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public detachTimeout(Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;)V
.locals 2
.line 268
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;->delegate()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object v0
.line 269
sget-object v1, Lcom/mbridge/msdk/thrid/okio/Timeout;->NONE:Lcom/mbridge/msdk/thrid/okio/Timeout;
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;->setDelegate(Lcom/mbridge/msdk/thrid/okio/Timeout;)Lcom/mbridge/msdk/thrid/okio/ForwardingTimeout;
.line 270
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->clearDeadline()Lcom/mbridge/msdk/thrid/okio/Timeout;
.line 271
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->clearTimeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
return-void
.end method
.method public finishRequest()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 166
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->flush()V
return-void
.end method
.method public flushRequest()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 162
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->flush()V
return-void
.end method
.method public isClosed()Z
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x6
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public newChunkedSink()Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 3
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
const/4 v0, 0x2
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 233
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSink;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
return-object v0
.line 231
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "state: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public newChunkedSource(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Lcom/mbridge/msdk/thrid/okio/Source;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x4
if-ne v0, v1, :cond_0
const/4 v0, 0x5
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 251
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;
invoke-direct {v0, p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$ChunkedSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)V
return-object v0
.line 249
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "state: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public newFixedLengthSink(J)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
const/4 v0, 0x2
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 239
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;
invoke-direct {v0, p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSink;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;J)V
return-object v0
.line 237
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public newFixedLengthSource(J)Lcom/mbridge/msdk/thrid/okio/Source;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x4
if-ne v0, v1, :cond_0
const/4 v0, 0x5
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 245
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;
invoke-direct {v0, p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$FixedLengthSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;J)V
return-object v0
.line 243
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public newUnknownLengthSource()Lcom/mbridge/msdk/thrid/okio/Source;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x4
if-ne v0, v1, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
if-eqz v0, :cond_0
const/4 v1, 0x5
iput v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
.line 258
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->noNewStreams()V
.line 259
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec$UnknownLengthSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;)V
return-object v0
.line 256
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "streamAllocation == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 255
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "state: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public openResponseBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.line 134
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
invoke-virtual {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->responseBodyStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
const-string v0, "Content-Type"
.line 135
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 137
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->hasBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Z
move-result v1
if-nez v1, :cond_0
const-wide/16 v1, 0x0
.line 138
invoke-virtual {p0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newFixedLengthSource(J)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object p1
.line 139
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object p1
invoke-direct {v3, v0, v1, v2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
return-object v3
:cond_0
const-string v1, "Transfer-Encoding"
.line 142
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, "chunked"
invoke-virtual {v2, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
const-wide/16 v2, -0x1
if-eqz v1, :cond_1
.line 143
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Response;->request()Lcom/mbridge/msdk/thrid/okhttp/Request;
move-result-object p1
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newChunkedSource(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object p1
.line 144
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object p1
invoke-direct {v1, v0, v2, v3, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
return-object v1
.line 147
:cond_1
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->contentLength(Lcom/mbridge/msdk/thrid/okhttp/Response;)J
move-result-wide v4
cmp-long p1, v4, v2
if-eqz p1, :cond_2
.line 149
invoke-virtual {p0, v4, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newFixedLengthSource(J)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object p1
.line 150
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object p1
invoke-direct {v1, v0, v4, v5, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
return-object v1
.line 153
:cond_2
new-instance p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->newUnknownLengthSource()Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object v1
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v1
invoke-direct {p1, v0, v2, v3, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
return-object p1
.end method
.method public readHeaders()Lcom/mbridge/msdk/thrid/okhttp/Headers;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 222
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;-><init>()V
.line 224
:goto_0
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->readHeaderLine()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
if-eqz v2, :cond_0
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 225
invoke-virtual {v2, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;)V
goto :goto_0
.line 227
:cond_0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v0
return-object v0
.end method
.method public readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
const/4 v1, 0x1
const/4 v2, 0x3
if-eq v0, v1, :cond_1
if-ne v0, v2, :cond_0
goto :goto_0
.line 185
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "state: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.line 189
:cond_1
:goto_0
:try_start_0
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->readHeaderLine()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->parse(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
move-result-object v0
.line 191
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
invoke-direct {v1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;-><init>()V
iget-object v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
.line 192
invoke-virtual {v1, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->protocol(Lcom/mbridge/msdk/thrid/okhttp/Protocol;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v1
iget v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
.line 193
invoke-virtual {v1, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->code(I)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v1
iget-object v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->message:Ljava/lang/String;
.line 194
invoke-virtual {v1, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->message(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v1
.line 195
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->readHeaders()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v3
invoke-virtual {v1, v3}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->headers(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v1
const/16 v3, 0x64
if-eqz p1, :cond_2
.line 197
iget p1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
if-ne p1, v3, :cond_2
const/4 p1, 0x0
return-object p1
:catch_0
move-exception p1
goto :goto_1
.line 199
:cond_2
iget p1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
if-ne p1, v3, :cond_3
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
return-object v1
:cond_3
const/4 p1, 0x4
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
.line 208
:goto_1
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "unexpected end of stream on "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 209
invoke-virtual {v0, p1}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
.line 210
throw v0
.end method
.method public writeRequest(Lcom/mbridge/msdk/thrid/okhttp/Headers;Ljava/lang/String;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 172
invoke-interface {v0, p2}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object p2
const-string v0, "\r\n"
invoke-interface {p2, v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 173
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result p2
const/4 v1, 0x0
:goto_0
if-ge v1, p2, :cond_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 174
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v2
const-string v3, ": "
.line 175
invoke-interface {v2, v3}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v2
.line 176
invoke-virtual {p1, v1}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v2
.line 177
invoke-interface {v2, v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.line 179
invoke-interface {p1, v0}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
const/4 p1, 0x1
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
return-void
.line 171
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->state:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeRequestHeaders(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.line 129
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->connection()Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/RealConnection;->route()Lcom/mbridge/msdk/thrid/okhttp/Route;
move-result-object v0
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Route;->proxy()Ljava/net/Proxy;
move-result-object v0
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
.line 128
invoke-static {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RequestLine;->get(Lcom/mbridge/msdk/thrid/okhttp/Request;Ljava/net/Proxy$Type;)Ljava/lang/String;
move-result-object v0
.line 130
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object p1
invoke-virtual {p0, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http1/Http1Codec;->writeRequest(Lcom/mbridge/msdk/thrid/okhttp/Headers;Ljava/lang/String;)V
return-void
.end method

View File

@@ -0,0 +1,14 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ConnectionShutdownException;
.super Ljava/io/IOException;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.locals 0
.line 24
invoke-direct {p0}, Ljava/io/IOException;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,271 @@
.class public final enum Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum COMPRESSION_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum CONNECT_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum ENHANCE_YOUR_CALM:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum FLOW_CONTROL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum HTTP_1_1_REQUIRED:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum INADEQUATE_SECURITY:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum INTERNAL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum NO_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum PROTOCOL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field public static final enum REFUSED_STREAM:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
# instance fields
.field public final httpCode:I
# direct methods
.method static constructor <clinit>()V
.locals 14
.line 21
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v1, "NO_ERROR"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->NO_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 23
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v2, "PROTOCOL_ERROR"
const/4 v3, 0x1
invoke-direct {v1, v2, v3, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 25
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v3, "INTERNAL_ERROR"
const/4 v4, 0x2
invoke-direct {v2, v3, v4, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->INTERNAL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 27
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v4, "FLOW_CONTROL_ERROR"
const/4 v5, 0x3
invoke-direct {v3, v4, v5, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 29
new-instance v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v5, "REFUSED_STREAM"
const/4 v6, 0x4
const/4 v7, 0x7
invoke-direct {v4, v5, v6, v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->REFUSED_STREAM:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 31
new-instance v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v6, "CANCEL"
const/4 v8, 0x5
const/16 v9, 0x8
invoke-direct {v5, v6, v8, v9}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 33
new-instance v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v8, "COMPRESSION_ERROR"
const/4 v10, 0x6
const/16 v11, 0x9
invoke-direct {v6, v8, v10, v11}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->COMPRESSION_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 35
new-instance v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v10, "CONNECT_ERROR"
const/16 v12, 0xa
invoke-direct {v8, v10, v7, v12}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CONNECT_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 37
new-instance v10, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v7, "ENHANCE_YOUR_CALM"
const/16 v13, 0xb
invoke-direct {v10, v7, v9, v13}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v10, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->ENHANCE_YOUR_CALM:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 39
new-instance v9, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v7, "INADEQUATE_SECURITY"
const/16 v13, 0xc
invoke-direct {v9, v7, v11, v13}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v9, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->INADEQUATE_SECURITY:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 41
new-instance v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
const-string v7, "HTTP_1_1_REQUIRED"
const/16 v13, 0xd
invoke-direct {v11, v7, v12, v13}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->HTTP_1_1_REQUIRED:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
move-object v7, v8
move-object v8, v10
move-object v10, v11
filled-new-array/range {v0 .. v10}, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->$VALUES:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 45
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->httpCode:I
return-void
.end method
.method public static fromHttp2(I)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.locals 5
.line 50
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->values()[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 51
iget v4, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->httpCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.locals 1
const-class v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 19
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
return-object p0
.end method
.method public static values()[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.locals 1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->$VALUES:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 19
invoke-virtual {v0}, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
return-object v0
.end method

View File

@@ -0,0 +1,19 @@
.class interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Listener"
.end annotation
# virtual methods
.method public abstract onHeaders(Lcom/mbridge/msdk/thrid/okhttp/Headers;)V
.end method

View File

@@ -0,0 +1,263 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
}
.end annotation
# static fields
.field public static final PSEUDO_PREFIX:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final RESPONSE_STATUS:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final RESPONSE_STATUS_UTF8:Ljava/lang/String; = ":status"
.field public static final TARGET_AUTHORITY:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final TARGET_AUTHORITY_UTF8:Ljava/lang/String; = ":authority"
.field public static final TARGET_METHOD:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final TARGET_METHOD_UTF8:Ljava/lang/String; = ":method"
.field public static final TARGET_PATH:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final TARGET_PATH_UTF8:Ljava/lang/String; = ":path"
.field public static final TARGET_SCHEME:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public static final TARGET_SCHEME_UTF8:Ljava/lang/String; = ":scheme"
# instance fields
.field final hpackSize:I
.field public final name:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field public final value:Lcom/mbridge/msdk/thrid/okio/ByteString;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, ":"
.line 25
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->PSEUDO_PREFIX:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, ":status"
.line 33
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->RESPONSE_STATUS:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, ":method"
.line 34
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_METHOD:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, ":path"
.line 35
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_PATH:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, ":scheme"
.line 36
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_SCHEME:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v0, ":authority"
.line 37
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_AUTHORITY:Lcom/mbridge/msdk/thrid/okio/ByteString;
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.locals 0
.line 55
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 58
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result p1
add-int/lit8 p1, p1, 0x20
invoke-virtual {p2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result p2
add-int/2addr p1, p2
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->hpackSize:I
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
.locals 0
.line 52
invoke-static {p2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p2
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Lcom/mbridge/msdk/thrid/okio/ByteString;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 48
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p1
invoke-static {p2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p2
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Lcom/mbridge/msdk/thrid/okio/ByteString;)V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
.line 62
instance-of v0, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 63
check-cast p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 64
iget-object v2, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 65
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public hashCode()I
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 72
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->hashCode()I
move-result v0
const/16 v1, 0x20f
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x1f
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 73
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->hashCode()I
move-result v0
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 78
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->utf8()Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->utf8()Ljava/lang/String;
move-result-object v1
filled-new-array {v0, v1}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "%s: %s"
invoke-static {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,816 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Writer"
.end annotation
# static fields
.field private static final SETTINGS_HEADER_TABLE_SIZE:I = 0x1000
.field private static final SETTINGS_HEADER_TABLE_SIZE_LIMIT:I = 0x4000
# instance fields
.field dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.field dynamicTableByteCount:I
.field private emitDynamicTableSizeUpdate:Z
.field headerCount:I
.field headerTableSizeSetting:I
.field maxDynamicTableByteCount:I
.field nextHeaderIndex:I
.field private final out:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field private smallestHeaderTableSizeSetting:I
.field private final useCompression:Z
# direct methods
.method public constructor <init>(IZLcom/mbridge/msdk/thrid/okio/Buffer;)V
.locals 1
.line 400
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const v0, 0x7fffffff
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->smallestHeaderTableSizeSetting:I
const/16 v0, 0x8
new-array v0, v0, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
array-length v0, v0
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerTableSizeSetting:I
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
iput-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->useCompression:Z
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Buffer;)V
.locals 2
const/16 v0, 0x1000
const/4 v1, 0x1
.line 397
invoke-direct {p0, v0, v1, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;-><init>(IZLcom/mbridge/msdk/thrid/okio/Buffer;)V
return-void
.end method
.method private adjustDynamicTableByteCount()V
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
if-ge v0, v1, :cond_1
if-nez v0, :cond_0
.line 583
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->clearDynamicTable()V
goto :goto_0
:cond_0
sub-int/2addr v1, v0
.line 585
invoke-direct {p0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->evictToRecoverBytes(I)I
:cond_1
:goto_0
return-void
.end method
.method private clearDynamicTable()V
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
const/4 v1, 0x0
.line 408
invoke-static {v0, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;Ljava/lang/Object;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 409
array-length v0, v0
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
return-void
.end method
.method private evictToRecoverBytes(I)I
.locals 4
const/4 v0, 0x0
if-lez p1, :cond_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 419
array-length v1, v1
add-int/lit8 v1, v1, -0x1
:goto_0
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
if-lt v1, v2, :cond_0
if-lez p1, :cond_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 420
aget-object v2, v2, v1
iget v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->hpackSize:I
sub-int/2addr p1, v2
iget v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
sub-int/2addr v3, v2
iput v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
add-int/lit8 v2, v2, -0x1
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
add-int/lit8 v0, v0, 0x1
add-int/lit8 v1, v1, -0x1
goto :goto_0
:cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
add-int/lit8 v1, v2, 0x1
add-int/lit8 v2, v2, 0x1
add-int/2addr v2, v0
iget v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
.line 425
invoke-static {p1, v1, p1, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
add-int/lit8 v2, v1, 0x1
add-int/lit8 v1, v1, 0x1
add-int/2addr v1, v0
const/4 v3, 0x0
.line 427
invoke-static {p1, v2, v1, v3}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V
iget p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
add-int/2addr p1, v0
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
:cond_1
return v0
.end method
.method private insertIntoDynamicTable(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;)V
.locals 6
.line 434
iget v0, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->hpackSize:I
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
if-le v0, v1, :cond_0
.line 438
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->clearDynamicTable()V
return-void
:cond_0
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
add-int/2addr v2, v0
sub-int/2addr v2, v1
.line 444
invoke-direct {p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->evictToRecoverBytes(I)I
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
add-int/lit8 v1, v1, 0x1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 446
array-length v3, v2
if-le v1, v3, :cond_1
.line 447
array-length v1, v2
mul-int/lit8 v1, v1, 0x2
new-array v1, v1, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 448
array-length v3, v2
array-length v4, v2
const/4 v5, 0x0
invoke-static {v2, v5, v1, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 449
array-length v2, v2
add-int/lit8 v2, v2, -0x1
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
iput-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
:cond_1
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
add-int/lit8 v2, v1, -0x1
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 453
aput-object p1, v2, v1
iget p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerCount:I
iget p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
add-int/2addr p1, v0
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTableByteCount:I
return-void
.end method
# virtual methods
.method public setHeaderTableSizeSetting(I)V
.locals 1
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->headerTableSizeSetting:I
const/16 v0, 0x4000
.line 566
invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I
move-result p1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
if-ne v0, p1, :cond_0
return-void
:cond_0
if-ge p1, v0, :cond_1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->smallestHeaderTableSizeSetting:I
.line 572
invoke-static {v0, p1}, Ljava/lang/Math;->min(II)I
move-result v0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->smallestHeaderTableSizeSetting:I
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->emitDynamicTableSizeUpdate:Z
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
.line 577
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->adjustDynamicTableByteCount()V
return-void
.end method
.method public writeByteString(Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->useCompression:Z
const/16 v1, 0x7f
if-eqz v0, :cond_0
.line 552
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->get()Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->encodedLength(Lcom/mbridge/msdk/thrid/okio/ByteString;)I
move-result v0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v2
if-ge v0, v2, :cond_0
.line 553
new-instance v0, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
.line 554
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->get()Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
move-result-object v2
invoke-virtual {v2, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->encode(Lcom/mbridge/msdk/thrid/okio/ByteString;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.line 555
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->readByteString()Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object p1
.line 556
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
const/16 v2, 0x80
invoke-virtual {p0, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 557
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/Buffer;
goto :goto_0
.line 559
:cond_0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
const/4 v2, 0x0
invoke-virtual {p0, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 560
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/Buffer;
:goto_0
return-void
.end method
.method public writeHeaders(Ljava/util/List;)V
.locals 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->emitDynamicTableSizeUpdate:Z
const/4 v1, 0x0
if-eqz v0, :cond_1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->smallestHeaderTableSizeSetting:I
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
const/16 v3, 0x20
const/16 v4, 0x1f
if-ge v0, v2, :cond_0
.line 464
invoke-virtual {p0, v0, v4, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
:cond_0
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->emitDynamicTableSizeUpdate:Z
const v0, 0x7fffffff
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->smallestHeaderTableSizeSetting:I
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->maxDynamicTableByteCount:I
.line 468
invoke-virtual {p0, v0, v4, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
.line 471
:cond_1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
move v2, v1
:goto_0
if-ge v2, v0, :cond_b
.line 472
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 473
iget-object v4, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {v4}, Lcom/mbridge/msdk/thrid/okio/ByteString;->toAsciiLowercase()Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v4
.line 474
iget-object v5, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
.line 478
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->NAME_TO_FIRST_INDEX:Ljava/util/Map;
invoke-interface {v6, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/Integer;
const/4 v7, 0x1
const/4 v8, -0x1
if-eqz v6, :cond_4
.line 480
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
move-result v6
add-int/lit8 v9, v6, 0x1
if-le v9, v7, :cond_3
const/16 v10, 0x8
if-ge v9, v10, :cond_3
.line 486
sget-object v10, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
aget-object v11, v10, v6
iget-object v11, v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-static {v11, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v11
if-eqz v11, :cond_2
move v6, v9
goto :goto_1
.line 488
:cond_2
aget-object v10, v10, v9
iget-object v10, v10, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-static {v10, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v10
if-eqz v10, :cond_3
add-int/lit8 v6, v6, 0x2
move v12, v9
move v9, v6
move v6, v12
goto :goto_1
:cond_3
move v6, v9
move v9, v8
goto :goto_1
:cond_4
move v6, v8
move v9, v6
:goto_1
if-ne v9, v8, :cond_7
iget v10, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
add-int/2addr v10, v7
iget-object v7, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 495
array-length v7, v7
:goto_2
if-ge v10, v7, :cond_7
iget-object v11, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 496
aget-object v11, v11, v10
iget-object v11, v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-static {v11, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v11
if-eqz v11, :cond_6
iget-object v11, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->dynamicTable:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 497
aget-object v11, v11, v10
iget-object v11, v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->value:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-static {v11, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v11
if-eqz v11, :cond_5
iget v7, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
sub-int/2addr v10, v7
.line 498
sget-object v7, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
array-length v7, v7
add-int v9, v10, v7
goto :goto_3
:cond_5
if-ne v6, v8, :cond_6
iget v6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->nextHeaderIndex:I
sub-int v6, v10, v6
.line 501
sget-object v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
array-length v11, v11
add-int/2addr v6, v11
:cond_6
add-int/lit8 v10, v10, 0x1
goto :goto_2
:cond_7
:goto_3
if-eq v9, v8, :cond_8
const/16 v3, 0x7f
const/16 v4, 0x80
.line 509
invoke-virtual {p0, v9, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
goto :goto_4
:cond_8
const/16 v7, 0x40
if-ne v6, v8, :cond_9
iget-object v6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 512
invoke-virtual {v6, v7}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 513
invoke-virtual {p0, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeByteString(Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.line 514
invoke-virtual {p0, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeByteString(Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.line 515
invoke-direct {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->insertIntoDynamicTable(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;)V
goto :goto_4
.line 516
:cond_9
sget-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->PSEUDO_PREFIX:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {v4, v8}, Lcom/mbridge/msdk/thrid/okio/ByteString;->startsWith(Lcom/mbridge/msdk/thrid/okio/ByteString;)Z
move-result v8
if-eqz v8, :cond_a
sget-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_AUTHORITY:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {v8, v4}, Lcom/mbridge/msdk/thrid/okio/ByteString;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_a
const/16 v3, 0xf
.line 519
invoke-virtual {p0, v6, v3, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
.line 520
invoke-virtual {p0, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeByteString(Lcom/mbridge/msdk/thrid/okio/ByteString;)V
goto :goto_4
:cond_a
const/16 v4, 0x3f
.line 523
invoke-virtual {p0, v6, v4, v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeInt(III)V
.line 524
invoke-virtual {p0, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->writeByteString(Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.line 525
invoke-direct {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->insertIntoDynamicTable(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;)V
:goto_4
add-int/lit8 v2, v2, 0x1
goto/16 :goto_0
:cond_b
return-void
.end method
.method public writeInt(III)V
.locals 1
if-ge p1, p2, :cond_0
iget-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
or-int/2addr p1, p3
.line 534
invoke-virtual {p2, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer;
return-void
:cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
or-int/2addr p3, p2
.line 539
invoke-virtual {v0, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer;
sub-int/2addr p1, p2
:goto_0
const/16 p2, 0x80
if-lt p1, p2, :cond_1
and-int/lit8 p3, p1, 0x7f
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
or-int/2addr p2, p3
.line 545
invoke-virtual {v0, p2}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer;
ushr-int/lit8 p1, p1, 0x7
goto :goto_0
:cond_1
iget-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;->out:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 548
invoke-virtual {p2, p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/Buffer;
return-void
.end method

View File

@@ -0,0 +1,720 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Writer;,
Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack$Reader;
}
.end annotation
# static fields
.field static final NAME_TO_FIRST_INDEX:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lcom/mbridge/msdk/thrid/okio/ByteString;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private static final PREFIX_4_BITS:I = 0xf
.field private static final PREFIX_5_BITS:I = 0x1f
.field private static final PREFIX_6_BITS:I = 0x3f
.field private static final PREFIX_7_BITS:I = 0x7f
.field static final STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
# direct methods
.method static constructor <clinit>()V
.locals 65
.line 47
new-instance v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v0, v1
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_AUTHORITY:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v15, ""
invoke-direct {v1, v2, v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v1, v2
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_METHOD:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v4, "GET"
invoke-direct {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v2, v4
const-string v5, "POST"
invoke-direct {v4, v3, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v3, v4
sget-object v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_PATH:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v6, "/"
invoke-direct {v4, v5, v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v4, v6
const-string v7, "/index.html"
invoke-direct {v6, v5, v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v5, v6
sget-object v7, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_SCHEME:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v8, "http"
invoke-direct {v6, v7, v8}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v6, v8
const-string v9, "https"
invoke-direct {v8, v7, v9}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v7, v8
sget-object v14, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->RESPONSE_STATUS:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v9, "200"
invoke-direct {v8, v14, v9}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v9, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v8, v9
const-string v10, "204"
invoke-direct {v9, v14, v10}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v10, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v9, v10
const-string v11, "206"
invoke-direct {v10, v14, v11}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v11, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v10, v11
const-string v12, "304"
invoke-direct {v11, v14, v12}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v12, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v11, v12
const-string v13, "400"
invoke-direct {v12, v14, v13}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v13, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v12, v13
move-object/from16 v61, v0
const-string v0, "404"
invoke-direct {v13, v14, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v13, v0
move-object/from16 v62, v1
const-string v1, "500"
invoke-direct {v0, v14, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v14, v0
const-string v1, "accept-charset"
invoke-direct {v0, v1, v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object v1, v15
move-object v15, v0
move-object/from16 v63, v2
const-string v2, "accept-encoding"
move-object/from16 v64, v3
const-string v3, "gzip, deflate"
invoke-direct {v0, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v16, v0
const-string v2, "accept-language"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v17, v0
const-string v2, "accept-ranges"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v18, v0
const-string v2, "accept"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v19, v0
const-string v2, "access-control-allow-origin"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v20, v0
const-string v2, "age"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v21, v0
const-string v2, "allow"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v22, v0
const-string v2, "authorization"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v23, v0
const-string v2, "cache-control"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v24, v0
const-string v2, "content-disposition"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v25, v0
const-string v2, "content-encoding"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v26, v0
const-string v2, "content-language"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v27, v0
const-string v2, "content-length"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v28, v0
const-string v2, "content-location"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v29, v0
const-string v2, "content-range"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v30, v0
const-string v2, "content-type"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v31, v0
const-string v2, "cookie"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v32, v0
const-string v2, "date"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v33, v0
const-string v2, "etag"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v34, v0
const-string v2, "expect"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v35, v0
const-string v2, "expires"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v36, v0
const-string v2, "from"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v37, v0
const-string v2, "host"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v38, v0
const-string v2, "if-match"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v39, v0
const-string v2, "if-modified-since"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v40, v0
const-string v2, "if-none-match"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v41, v0
const-string v2, "if-range"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v42, v0
const-string v2, "if-unmodified-since"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v43, v0
const-string v2, "last-modified"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v44, v0
const-string v2, "link"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v45, v0
const-string v2, "location"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v46, v0
const-string v2, "max-forwards"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v47, v0
const-string v2, "proxy-authenticate"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v48, v0
const-string v2, "proxy-authorization"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v49, v0
const-string v2, "range"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v50, v0
const-string v2, "referer"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v51, v0
const-string v2, "refresh"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v52, v0
const-string v2, "retry-after"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v53, v0
const-string v2, "server"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v54, v0
const-string v2, "set-cookie"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v55, v0
const-string v2, "strict-transport-security"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v56, v0
const-string v2, "transfer-encoding"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v57, v0
const-string v2, "user-agent"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v58, v0
const-string v2, "vary"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v59, v0
const-string v2, "via"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-object/from16 v60, v0
const-string v2, "www-authenticate"
invoke-direct {v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Ljava/lang/String;Ljava/lang/String;)V
move-object/from16 v0, v61
move-object/from16 v1, v62
move-object/from16 v2, v63
move-object/from16 v3, v64
filled-new-array/range {v0 .. v60}, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 354
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->nameToFirstIndex()Ljava/util/Map;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->NAME_TO_FIRST_INDEX:Ljava/util/Map;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 111
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static checkLowercase(Lcom/mbridge/msdk/thrid/okio/ByteString;)Lcom/mbridge/msdk/thrid/okio/ByteString;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 596
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_2
.line 597
invoke-virtual {p0, v1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->getByte(I)B
move-result v2
const/16 v3, 0x41
if-lt v2, v3, :cond_1
const/16 v3, 0x5a
if-le v2, v3, :cond_0
goto :goto_1
.line 599
:cond_0
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "PROTOCOL_ERROR response malformed: mixed case name: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->utf8()Ljava/lang/String;
move-result-object p0
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
:goto_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return-object p0
.end method
.method private static nameToFirstIndex()Ljava/util/Map;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Lcom/mbridge/msdk/thrid/okio/ByteString;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.line 357
new-instance v0, Ljava/util/LinkedHashMap;
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
array-length v1, v1
invoke-direct {v0, v1}, Ljava/util/LinkedHashMap;-><init>(I)V
const/4 v1, 0x0
:goto_0
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Hpack;->STATIC_HEADER_TABLE:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
.line 358
array-length v3, v2
if-ge v1, v3, :cond_1
.line 359
aget-object v3, v2, v1
iget-object v3, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-interface {v0, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_0
.line 360
aget-object v2, v2, v1
iget-object v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->name:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 363
:cond_1
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,564 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field static final BINARY:[Ljava/lang/String;
.field static final CONNECTION_PREFACE:Lcom/mbridge/msdk/thrid/okio/ByteString;
.field static final FLAGS:[Ljava/lang/String;
.field static final FLAG_ACK:B = 0x1t
.field static final FLAG_COMPRESSED:B = 0x20t
.field static final FLAG_END_HEADERS:B = 0x4t
.field static final FLAG_END_PUSH_PROMISE:B = 0x4t
.field static final FLAG_END_STREAM:B = 0x1t
.field static final FLAG_NONE:B = 0x0t
.field static final FLAG_PADDED:B = 0x8t
.field static final FLAG_PRIORITY:B = 0x20t
.field private static final FRAME_NAMES:[Ljava/lang/String;
.field static final INITIAL_MAX_FRAME_SIZE:I = 0x4000
.field static final TYPE_CONTINUATION:B = 0x9t
.field static final TYPE_DATA:B = 0x0t
.field static final TYPE_GOAWAY:B = 0x7t
.field static final TYPE_HEADERS:B = 0x1t
.field static final TYPE_PING:B = 0x6t
.field static final TYPE_PRIORITY:B = 0x2t
.field static final TYPE_PUSH_PROMISE:B = 0x5t
.field static final TYPE_RST_STREAM:B = 0x3t
.field static final TYPE_SETTINGS:B = 0x4t
.field static final TYPE_WINDOW_UPDATE:B = 0x8t
# direct methods
.method static constructor <clinit>()V
.locals 13
const-string v0, "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
.line 25
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->CONNECTION_PREFACE:Lcom/mbridge/msdk/thrid/okio/ByteString;
const-string v1, "DATA"
const-string v2, "HEADERS"
const-string v3, "PRIORITY"
const-string v4, "RST_STREAM"
const-string v5, "SETTINGS"
const-string v6, "PUSH_PROMISE"
const-string v7, "PING"
const-string v8, "GOAWAY"
const-string v9, "WINDOW_UPDATE"
const-string v10, "CONTINUATION"
filled-new-array/range {v1 .. v10}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FRAME_NAMES:[Ljava/lang/String;
const/16 v0, 0x40
new-array v0, v0, [Ljava/lang/String;
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FLAGS:[Ljava/lang/String;
const/16 v0, 0x100
new-array v0, v0, [Ljava/lang/String;
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
const/4 v0, 0x0
move v1, v0
:goto_0
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
.line 71
array-length v3, v2
const/16 v4, 0x20
if-ge v1, v3, :cond_0
.line 72
invoke-static {v1}, Ljava/lang/Integer;->toBinaryString(I)Ljava/lang/String;
move-result-object v3
filled-new-array {v3}, [Ljava/lang/Object;
move-result-object v3
const-string v5, "%8s"
invoke-static {v5, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
const/16 v5, 0x30
invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object v3
aput-object v3, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FLAGS:[Ljava/lang/String;
const-string v2, ""
.line 75
aput-object v2, v1, v0
const-string v2, "END_STREAM"
const/4 v3, 0x1
.line 76
aput-object v2, v1, v3
filled-new-array {v3}, [I
move-result-object v2
const-string v3, "PADDED"
const/16 v5, 0x8
.line 80
aput-object v3, v1, v5
.line 81
aget v3, v2, v0
or-int/lit8 v6, v3, 0x8
.line 82
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
aget-object v3, v1, v3
invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "|PADDED"
invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
aput-object v7, v1, v6
const-string v6, "END_HEADERS"
const/4 v7, 0x4
.line 85
aput-object v6, v1, v7
const-string v6, "PRIORITY"
.line 86
aput-object v6, v1, v4
const-string v6, "END_HEADERS|PRIORITY"
const/16 v8, 0x24
.line 87
aput-object v6, v1, v8
filled-new-array {v7, v4, v8}, [I
move-result-object v1
move v4, v0
:goto_1
const/4 v6, 0x3
if-ge v4, v6, :cond_1
.line 92
aget v6, v1, v4
.line 93
aget v7, v2, v0
sget-object v8, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FLAGS:[Ljava/lang/String;
or-int v9, v7, v6
.line 94
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
aget-object v11, v8, v7
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v11, 0x7c
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
aget-object v12, v8, v6
invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v10
aput-object v10, v8, v9
or-int/2addr v9, v5
.line 95
new-instance v10, Ljava/lang/StringBuilder;
invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V
aget-object v7, v8, v7
invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
aget-object v6, v8, v6
invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
aput-object v6, v8, v9
add-int/lit8 v4, v4, 0x1
goto :goto_1
:cond_1
:goto_2
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FLAGS:[Ljava/lang/String;
.line 100
array-length v2, v1
if-ge v0, v2, :cond_3
.line 101
aget-object v2, v1, v0
if-nez v2, :cond_2
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
aget-object v2, v2, v0
aput-object v2, v1, v0
:cond_2
add-int/lit8 v0, v0, 0x1
goto :goto_2
:cond_3
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 105
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static formatFlags(BB)Ljava/lang/String;
.locals 2
if-nez p1, :cond_0
const-string p0, ""
return-object p0
:cond_0
const/4 v0, 0x2
if-eq p0, v0, :cond_6
const/4 v0, 0x3
if-eq p0, v0, :cond_6
const/4 v0, 0x4
if-eq p0, v0, :cond_4
const/4 v0, 0x6
if-eq p0, v0, :cond_4
const/4 v0, 0x7
if-eq p0, v0, :cond_6
const/16 v0, 0x8
if-eq p0, v0, :cond_6
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FLAGS:[Ljava/lang/String;
.line 158
array-length v1, v0
if-ge p1, v1, :cond_1
aget-object v0, v0, p1
goto :goto_0
:cond_1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
aget-object v0, v0, p1
:goto_0
const/4 v1, 0x5
if-ne p0, v1, :cond_2
and-int/lit8 v1, p1, 0x4
if-eqz v1, :cond_2
const-string p0, "HEADERS"
const-string p1, "PUSH_PROMISE"
.line 161
invoke-virtual {v0, p0, p1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_2
if-nez p0, :cond_3
and-int/lit8 p0, p1, 0x20
if-eqz p0, :cond_3
const-string p0, "PRIORITY"
const-string p1, "COMPRESSED"
.line 163
invoke-virtual {v0, p0, p1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
return-object p0
:cond_3
return-object v0
:cond_4
const/4 p0, 0x1
if-ne p1, p0, :cond_5
const-string p0, "ACK"
goto :goto_1
:cond_5
sget-object p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
.line 151
aget-object p0, p0, p1
:goto_1
return-object p0
:cond_6
sget-object p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->BINARY:[Ljava/lang/String;
.line 156
aget-object p0, p0, p1
return-object p0
.end method
.method public static frameLog(ZIIBB)Ljava/lang/String;
.locals 2
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->FRAME_NAMES:[Ljava/lang/String;
.line 135
array-length v1, v0
if-ge p3, v1, :cond_0
aget-object v0, v0, p3
goto :goto_0
:cond_0
invoke-static {p3}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "0x%02x"
invoke-static {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
.line 136
:goto_0
invoke-static {p3, p4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->formatFlags(BB)Ljava/lang/String;
move-result-object p3
const/4 p4, 0x5
new-array p4, p4, [Ljava/lang/Object;
if-eqz p0, :cond_1
const-string p0, "<<"
goto :goto_1
:cond_1
const-string p0, ">>"
:goto_1
const/4 v1, 0x0
aput-object p0, p4, v1
const/4 p0, 0x1
.line 137
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, p4, p0
const/4 p0, 0x2
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, p4, p0
const/4 p0, 0x3
aput-object v0, p4, p0
const/4 p0, 0x4
aput-object p3, p4, p0
const-string p0, "%s 0x%08x %5d %-13s %s"
invoke-static {p0, p4}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static varargs illegalArgument(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/IllegalArgumentException;
.locals 1
.line 109
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static varargs ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 113
new-instance v0, Ljava/io/IOException;
invoke-static {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View File

@@ -0,0 +1,145 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;
.super Lcom/mbridge/msdk/thrid/okio/ForwardingSource;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "StreamFinishingSource"
.end annotation
# instance fields
.field bytesRead:J
.field completed:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;Lcom/mbridge/msdk/thrid/okio/Source;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;
.line 200
invoke-direct {p0, p2}, Lcom/mbridge/msdk/thrid/okio/ForwardingSource;-><init>(Lcom/mbridge/msdk/thrid/okio/Source;)V
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->completed:Z
const-wide/16 p1, 0x0
iput-wide p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->bytesRead:J
return-void
.end method
.method private endOfInput(Ljava/io/IOException;)V
.locals 7
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->completed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->completed:Z
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;
.line 224
iget-object v1, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
const/4 v2, 0x0
iget-wide v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->bytesRead:J
move-object v6, p1
invoke-virtual/range {v1 .. v6}, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->streamFinished(ZLcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;JLjava/io/IOException;)V
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 217
invoke-super {p0}, Lcom/mbridge/msdk/thrid/okio/ForwardingSource;->close()V
const/4 v0, 0x0
.line 218
invoke-direct {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->endOfInput(Ljava/io/IOException;)V
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 205
:try_start_0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/ForwardingSource;->delegate()Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object v0
invoke-interface {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
const-wide/16 v0, 0x0
cmp-long p3, p1, v0
if-lez p3, :cond_0
iget-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->bytesRead:J
add-long/2addr v0, p1
iput-wide v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->bytesRead:J
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
goto :goto_1
:cond_0
:goto_0
return-wide p1
.line 211
:goto_1
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;->endOfInput(Ljava/io/IOException;)V
.line 212
throw p1
.end method

View File

@@ -0,0 +1,701 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpCodec;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;
}
.end annotation
# static fields
.field private static final CONNECTION:Ljava/lang/String; = "connection"
.field private static final ENCODING:Ljava/lang/String; = "encoding"
.field private static final HOST:Ljava/lang/String; = "host"
.field private static final HTTP_2_SKIPPED_REQUEST_HEADERS:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private static final HTTP_2_SKIPPED_RESPONSE_HEADERS:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private static final KEEP_ALIVE:Ljava/lang/String; = "keep-alive"
.field private static final PROXY_CONNECTION:Ljava/lang/String; = "proxy-connection"
.field private static final TE:Ljava/lang/String; = "te"
.field private static final TRANSFER_ENCODING:Ljava/lang/String; = "transfer-encoding"
.field private static final UPGRADE:Ljava/lang/String; = "upgrade"
# instance fields
.field private final chain:Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
.field private final connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field private final protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
.field private stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.field final streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
# direct methods
.method static constructor <clinit>()V
.locals 12
const-string v0, "connection"
const-string v1, "host"
const-string v2, "keep-alive"
const-string v3, "proxy-connection"
const-string v4, "te"
const-string v5, "transfer-encoding"
const-string v6, "encoding"
const-string v7, "upgrade"
const-string v8, ":method"
const-string v9, ":path"
const-string v10, ":scheme"
const-string v11, ":authority"
filled-new-array/range {v0 .. v11}, [Ljava/lang/String;
move-result-object v0
.line 69
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->immutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->HTTP_2_SKIPPED_REQUEST_HEADERS:Ljava/util/List;
const-string v1, "connection"
const-string v2, "host"
const-string v3, "keep-alive"
const-string v4, "proxy-connection"
const-string v5, "te"
const-string v6, "transfer-encoding"
const-string v7, "encoding"
const-string v8, "upgrade"
filled-new-array/range {v1 .. v8}, [Ljava/lang/String;
move-result-object v0
.line 82
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Util;->immutableList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->HTTP_2_SKIPPED_RESPONSE_HEADERS:Ljava/util/List;
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
.locals 0
.line 99
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->chain:Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 103
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/OkHttpClient;->protocols()Ljava/util/List;
move-result-object p1
sget-object p2, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->H2_PRIOR_KNOWLEDGE:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
invoke-interface {p1, p2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
sget-object p2, Lcom/mbridge/msdk/thrid/okhttp/Protocol;->HTTP_2:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
:goto_0
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
return-void
.end method
.method public static http2HeadersList(Lcom/mbridge/msdk/thrid/okhttp/Request;)Ljava/util/List;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/mbridge/msdk/thrid/okhttp/Request;",
")",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;"
}
.end annotation
.line 140
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->headers()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v0
.line 141
new-instance v1, Ljava/util/ArrayList;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result v2
add-int/lit8 v2, v2, 0x4
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 142
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_METHOD:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->method()Ljava/lang/String;
move-result-object v4
invoke-direct {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 143
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_PATH:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object v4
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RequestLine;->requestPath(Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;)Ljava/lang/String;
move-result-object v4
invoke-direct {v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-string v2, "Host"
.line 144
invoke-virtual {p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Request;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_0
.line 146
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
sget-object v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_AUTHORITY:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-direct {v3, v4, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 148
:cond_0
new-instance v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;->TARGET_SCHEME:Lcom/mbridge/msdk/thrid/okio/ByteString;
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Request;->url()Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;
move-result-object p0
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->scheme()Ljava/lang/String;
move-result-object p0
invoke-direct {v2, v3, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 150
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result p0
const/4 v2, 0x0
:goto_0
if-ge v2, p0, :cond_2
.line 152
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object v3
sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {v3, v4}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okio/ByteString;->encodeUtf8(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okio/ByteString;
move-result-object v3
sget-object v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->HTTP_2_SKIPPED_REQUEST_HEADERS:Ljava/util/List;
.line 153
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/ByteString;->utf8()Ljava/lang/String;
move-result-object v5
invoke-interface {v4, v5}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_1
.line 154
new-instance v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;
invoke-virtual {v0, v2}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v5
invoke-direct {v4, v3, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;-><init>(Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;)V
invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_2
return-object v1
.end method
.method public static readHttp2HeadersList(Lcom/mbridge/msdk/thrid/okhttp/Headers;Lcom/mbridge/msdk/thrid/okhttp/Protocol;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 164
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;-><init>()V
.line 165
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_2
.line 166
invoke-virtual {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->name(I)Ljava/lang/String;
move-result-object v4
.line 167
invoke-virtual {p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/Headers;->value(I)Ljava/lang/String;
move-result-object v5
const-string v6, ":status"
.line 168
invoke-virtual {v4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_0
.line 169
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "HTTP/1.1 "
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->parse(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;
move-result-object v2
goto :goto_1
:cond_0
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->HTTP_2_SKIPPED_RESPONSE_HEADERS:Ljava/util/List;
.line 170
invoke-interface {v6, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_1
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 171
invoke-virtual {v6, v0, v4, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->addLenient(Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;Ljava/lang/String;Ljava/lang/String;)V
:cond_1
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
if-eqz v2, :cond_3
.line 176
new-instance p0, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;-><init>()V
.line 177
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->protocol(Lcom/mbridge/msdk/thrid/okhttp/Protocol;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
iget p1, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->code:I
.line 178
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->code(I)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
iget-object p1, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http/StatusLine;->message:Ljava/lang/String;
.line 179
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->message(Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
.line 180
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/Headers$Builder;->build()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;->headers(Lcom/mbridge/msdk/thrid/okhttp/Headers;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object p0
return-object p0
.line 174
:cond_3
new-instance p0, Ljava/net/ProtocolException;
const-string p1, "Expected \':status\' header not present"
invoke-direct {p0, p1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public cancel()V
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
if-eqz v0, :cond_0
.line 192
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->closeLater(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
:cond_0
return-void
.end method
.method public createRequestBody(Lcom/mbridge/msdk/thrid/okhttp/Request;J)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 109
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->getSink()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
return-object p1
.end method
.method public finishRequest()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 127
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->getSink()Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object v0
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Sink;->close()V
return-void
.end method
.method public flushRequest()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 123
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->flush()V
return-void
.end method
.method public openResponseBody(Lcom/mbridge/msdk/thrid/okhttp/Response;)Lcom/mbridge/msdk/thrid/okhttp/ResponseBody;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->streamAllocation:Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;
.line 184
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->eventListener:Lcom/mbridge/msdk/thrid/okhttp/EventListener;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/connection/StreamAllocation;->call:Lcom/mbridge/msdk/thrid/okhttp/Call;
invoke-virtual {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/EventListener;->responseBodyStart(Lcom/mbridge/msdk/thrid/okhttp/Call;)V
const-string v0, "Content-Type"
.line 185
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/Response;->header(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 186
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/HttpHeaders;->contentLength(Lcom/mbridge/msdk/thrid/okhttp/Response;)J
move-result-wide v1
.line 187
new-instance p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->getSource()Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object v3
invoke-direct {p1, p0, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec$StreamFinishingSource;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;Lcom/mbridge/msdk/thrid/okio/Source;)V
.line 188
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object p1
invoke-direct {v3, v0, v1, v2, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http/RealResponseBody;-><init>(Ljava/lang/String;JLcom/mbridge/msdk/thrid/okio/BufferedSource;)V
return-object v3
.end method
.method public readResponseHeaders(Z)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 131
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->takeHeaders()Lcom/mbridge/msdk/thrid/okhttp/Headers;
move-result-object v0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->protocol:Lcom/mbridge/msdk/thrid/okhttp/Protocol;
.line 132
invoke-static {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->readHttp2HeadersList(Lcom/mbridge/msdk/thrid/okhttp/Headers;Lcom/mbridge/msdk/thrid/okhttp/Protocol;)Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;
move-result-object v0
if-eqz p1, :cond_0
sget-object p1, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->instance:Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;
.line 133
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/Internal;->code(Lcom/mbridge/msdk/thrid/okhttp/Response$Builder;)I
move-result p1
const/16 v1, 0x64
if-ne p1, v1, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
return-object v0
.end method
.method public writeRequestHeaders(Lcom/mbridge/msdk/thrid/okhttp/Request;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
if-eqz v0, :cond_0
return-void
.line 115
:cond_0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/Request;->body()Lcom/mbridge/msdk/thrid/okhttp/RequestBody;
move-result-object v0
if-eqz v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
.line 116
:goto_0
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->http2HeadersList(Lcom/mbridge/msdk/thrid/okhttp/Request;)Ljava/util/List;
move-result-object p1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 117
invoke-virtual {v1, p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->newStream(Ljava/util/List;Z)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
move-result-object p1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 118
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object p1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->chain:Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->readTimeoutMillis()I
move-result v0
int-to-long v0, v0
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okio/Timeout;
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->stream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 119
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object p1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Codec;->chain:Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okhttp/Interceptor$Chain;->writeTimeoutMillis()I
move-result v0
int-to-long v0, v0
invoke-virtual {p1, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lcom/mbridge/msdk/thrid/okio/Timeout;
return-void
.end method

View File

@@ -0,0 +1,68 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeSynResetLater(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field final synthetic val$streamId:I
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->val$streamId:I
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 339
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 3
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->val$streamId:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 342
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeSynReset(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$1;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 344
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,70 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeWindowUpdateLater(IJ)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$streamId:I
.field final synthetic val$unacknowledgedBytesRead:J
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;IJ)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->val$streamId:I
iput-wide p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->val$unacknowledgedBytesRead:J
.line 360
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 4
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 363
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writer:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->val$streamId:I
iget-wide v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->val$unacknowledgedBytesRead:J
invoke-virtual {v0, v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;->windowUpdate(IJ)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$2;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 365
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,48 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$3;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->sendDegradedPingLater()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 599
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$3;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
const/4 v1, 0x0
const/4 v2, 0x2
.line 601
invoke-virtual {v0, v1, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writePing(ZII)V
return-void
.end method

View File

@@ -0,0 +1,115 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushRequestLater(ILjava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$requestHeaders:Ljava/util/List;
.field final synthetic val$streamId:I
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$streamId:I
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
.line 915
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 917
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$streamId:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
invoke-interface {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->onRequest(ILjava/util/List;)Z
move-result v0
if-eqz v0, :cond_0
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 920
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writer:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$streamId:I
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;->rstStream(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 921
monitor-enter v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 922
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$4;->val$streamId:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 923
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
throw v1
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
:cond_0
:goto_0
return-void
.end method

View File

@@ -0,0 +1,129 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushHeadersLater(ILjava/util/List;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$inFinished:Z
.field final synthetic val$requestHeaders:Ljava/util/List;
.field final synthetic val$streamId:I
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;Z)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$streamId:I
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$requestHeaders:Ljava/util/List;
iput-boolean p6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$inFinished:Z
.line 937
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 4
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 939
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$streamId:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$requestHeaders:Ljava/util/List;
iget-boolean v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$inFinished:Z
invoke-interface {v0, v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->onHeaders(ILjava/util/List;Z)Z
move-result v0
if-eqz v0, :cond_0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 941
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writer:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$streamId:I
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;->rstStream(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
:cond_0
if-nez v0, :cond_1
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$inFinished:Z
if-eqz v0, :cond_2
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 943
monitor-enter v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 944
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$5;->val$streamId:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 945
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
throw v1
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
:cond_2
:goto_0
return-void
.end method

View File

@@ -0,0 +1,135 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushDataLater(ILcom/mbridge/msdk/thrid/okio/BufferedSource;IZ)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field final synthetic val$byteCount:I
.field final synthetic val$inFinished:Z
.field final synthetic val$streamId:I
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILcom/mbridge/msdk/thrid/okio/Buffer;IZ)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$streamId:I
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iput p6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$byteCount:I
iput-boolean p7, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$inFinished:Z
.line 966
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 5
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 969
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$streamId:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$buffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$byteCount:I
iget-boolean v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$inFinished:Z
invoke-interface {v0, v1, v2, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->onData(ILcom/mbridge/msdk/thrid/okio/BufferedSource;IZ)Z
move-result v0
if-eqz v0, :cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 970
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writer:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$streamId:I
sget-object v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Writer;->rstStream(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
:cond_0
if-nez v0, :cond_1
iget-boolean v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$inFinished:Z
if-eqz v0, :cond_2
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 972
monitor-enter v0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 973
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$6;->val$streamId:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 974
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
throw v1
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
:cond_2
:goto_0
return-void
.end method

View File

@@ -0,0 +1,89 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushResetLater(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.field final synthetic val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.field final synthetic val$streamId:I
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->val$streamId:I
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
.line 983
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 985
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->val$streamId:I
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->val$errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-interface {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->onReset(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 986
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 987
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$7;->val$streamId:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
.line 988
monitor-exit v0
return-void
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method

View File

@@ -0,0 +1,151 @@
.class public Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
# instance fields
.field client:Z
.field hostname:Ljava/lang/String;
.field listener:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
.field pingIntervalMillis:I
.field pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
.field sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
.field socket:Ljava/net/Socket;
.field source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
# direct methods
.method public constructor <init>(Z)V
.locals 1
.line 623
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 614
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;->REFUSE_INCOMING_STREAMS:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->listener:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
.line 615
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
iput-boolean p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->client:Z
return-void
.end method
# virtual methods
.method public build()Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.locals 1
.line 657
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-direct {v0, p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;)V
return-object v0
.end method
.method public listener(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->listener:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
return-object p0
.end method
.method public pingIntervalMillis(I)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.locals 0
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->pingIntervalMillis:I
return-object p0
.end method
.method public pushObserver(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->pushObserver:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
return-object p0
.end method
.method public socket(Ljava/net/Socket;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 628
invoke-virtual {p1}, Ljava/net/Socket;->getRemoteSocketAddress()Ljava/net/SocketAddress;
move-result-object v0
check-cast v0, Ljava/net/InetSocketAddress;
invoke-virtual {v0}, Ljava/net/InetSocketAddress;->getHostName()Ljava/lang/String;
move-result-object v0
.line 629
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->source(Ljava/net/Socket;)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object v1
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Source;)Lcom/mbridge/msdk/thrid/okio/BufferedSource;
move-result-object v1
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->sink(Ljava/net/Socket;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object v2
invoke-static {v2}, Lcom/mbridge/msdk/thrid/okio/Okio;->buffer(Lcom/mbridge/msdk/thrid/okio/Sink;)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
move-result-object v2
.line 628
invoke-virtual {p0, p1, v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->socket(Ljava/net/Socket;Ljava/lang/String;Lcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
move-result-object p1
return-object p1
.end method
.method public socket(Ljava/net/Socket;Ljava/lang/String;Lcom/mbridge/msdk/thrid/okio/BufferedSource;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;
.locals 0
.line 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->socket:Ljava/net/Socket;
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->hostname:Ljava/lang/String;
iput-object p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Builder;->sink:Lcom/mbridge/msdk/thrid/okio/BufferedSink;
return-object p0
.end method

View File

@@ -0,0 +1,119 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "IntervalPingRunnable"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
.locals 1
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 393
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "OkHttp %s ping"
invoke-direct {p0, v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 5
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 398
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 399
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$100(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)J
move-result-wide v1
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$200(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)J
move-result-wide v3
cmp-long v1, v1, v3
const/4 v2, 0x1
const/4 v3, 0x0
if-gez v1, :cond_0
move v1, v2
goto :goto_0
:cond_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 402
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$208(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)J
move v1, v3
.line 405
:goto_0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v1, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 407
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
goto :goto_1
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$IntervalPingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 409
invoke-virtual {v0, v3, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writePing(ZII)V
:goto_1
return-void
:catchall_0
move-exception v1
.line 405
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method

View File

@@ -0,0 +1,43 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener$1;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1001
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;-><init>()V
return-void
.end method
# virtual methods
.method public onStream(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1003
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->REFUSED_STREAM:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->close(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
return-void
.end method

View File

@@ -0,0 +1,58 @@
.class public abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "Listener"
.end annotation
# static fields
.field public static final REFUSE_INCOMING_STREAMS:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 1001
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener$1;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener$1;-><init>()V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;->REFUSE_INCOMING_STREAMS:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1000
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onSettings(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
.locals 0
return-void
.end method
.method public abstract onStream(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method

View File

@@ -0,0 +1,78 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "PingRunnable"
.end annotation
# instance fields
.field final payload1:I
.field final payload2:I
.field final reply:Z
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;ZII)V
.locals 2
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
.line 380
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
filled-new-array {p1, v0, v1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "OkHttp %s ping %08x%08x"
invoke-direct {p0, v0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
iput-boolean p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->reply:Z
iput p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->payload1:I
iput p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->payload2:I
return-void
.end method
# virtual methods
.method public execute()V
.locals 4
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->reply:Z
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->payload1:I
iget v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$PingRunnable;->payload2:I
.line 387
invoke-virtual {v0, v1, v2, v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writePing(ZII)V
return-void
.end method

View File

@@ -0,0 +1,103 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->headers(ZIILjava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
.field final synthetic val$newStream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
iput-object p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->val$newStream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 739
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 4
:try_start_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
.line 742
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->listener:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->val$newStream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;->onStream(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 744
invoke-static {}, Lcom/mbridge/msdk/thrid/okhttp/internal/platform/Platform;->get()Lcom/mbridge/msdk/thrid/okhttp/internal/platform/Platform;
move-result-object v1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Http2Connection.Listener failure for "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
iget-object v3, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget-object v3, v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->hostname:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
const/4 v3, 0x4
invoke-virtual {v1, v3, v2, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/platform/Platform;->log(ILjava/lang/String;Ljava/lang/Throwable;)V
:try_start_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$1;->val$newStream:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 746
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->close(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:goto_0
return-void
.end method

View File

@@ -0,0 +1,56 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->settings(ZLcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
.field final synthetic val$clearPrevious:Z
.field final synthetic val$settings:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;ZLcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
iput-boolean p4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->val$clearPrevious:Z
iput-object p5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->val$settings:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
.line 774
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->val$clearPrevious:Z
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$2;->val$settings:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
.line 776
invoke-virtual {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->applyAndAckSettings(ZLcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
return-void
.end method

View File

@@ -0,0 +1,48 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$3;
.super Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->applyAndAckSettings(ZLcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
# direct methods
.method public varargs constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;Ljava/lang/String;[Ljava/lang/Object;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$3;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
.line 813
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable$3;->this$1:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;
.line 815
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->listener:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;
invoke-virtual {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection$Listener;->onSettings(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;)V
return-void
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,271 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ContinuationSource"
.end annotation
# instance fields
.field flags:B
.field left:I
.field length:I
.field padding:S
.field private final source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.field streamId:I
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/BufferedSource;)V
.locals 0
.line 359
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
return-void
.end method
.method private readContinuationHeader()V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->streamId:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 388
invoke-static {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader;->readMedium(Lcom/mbridge/msdk/thrid/okio/BufferedSource;)I
move-result v1
iput v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->left:I
iput v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->length:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 389
invoke-interface {v1}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readByte()B
move-result v1
and-int/lit16 v1, v1, 0xff
int-to-byte v1, v1
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 390
invoke-interface {v2}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readByte()B
move-result v2
and-int/lit16 v2, v2, 0xff
int-to-byte v2, v2
iput-byte v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->flags:B
.line 391
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader;->logger:Ljava/util/logging/Logger;
sget-object v3, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
invoke-virtual {v2, v3}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
move-result v3
if-eqz v3, :cond_0
iget v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->streamId:I
iget v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->length:I
iget-byte v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->flags:B
const/4 v6, 0x1
invoke-static {v6, v3, v4, v1, v5}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->frameLog(ZIIBB)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
:cond_0
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 392
invoke-interface {v2}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->readInt()I
move-result v2
const v3, 0x7fffffff
and-int/2addr v2, v3
iput v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->streamId:I
const/16 v3, 0x9
if-ne v1, v3, :cond_2
if-ne v2, v0, :cond_1
return-void
:cond_1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, "TYPE_CONTINUATION streamId changed"
.line 394
invoke-static {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.line 393
:cond_2
invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v0
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "%s != TYPE_CONTINUATION"
invoke-static {v1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
move-result-object v0
throw v0
.end method
# virtual methods
.method public close()V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
return-void
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:goto_0
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->left:I
const-wide/16 v1, -0x1
if-nez v0, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
iget-short v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->padding:S
int-to-long v3, v3
.line 365
invoke-interface {v0, v3, v4}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->skip(J)V
const/4 v0, 0x0
iput-short v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->padding:S
iget-byte v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->flags:B
and-int/lit8 v0, v0, 0x4
if-eqz v0, :cond_0
return-wide v1
.line 368
:cond_0
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->readContinuationHeader()V
goto :goto_0
:cond_1
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
int-to-long v4, v0
.line 372
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
invoke-interface {v3, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide p1
cmp-long p3, p1, v1
if-nez p3, :cond_2
return-wide v1
:cond_2
iget p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->left:I
int-to-long v0, p3
sub-long/2addr v0, p1
long-to-int p3, v0
iput p3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->left:I
return-wide p1
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$ContinuationSource;->source:Lcom/mbridge/msdk/thrid/okio/BufferedSource;
.line 379
invoke-interface {v0}, Lcom/mbridge/msdk/thrid/okio/Source;->timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,76 @@
.class interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader$Handler;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Reader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Handler"
.end annotation
# virtual methods
.method public abstract ackSettings()V
.end method
.method public abstract alternateService(ILjava/lang/String;Lcom/mbridge/msdk/thrid/okio/ByteString;Ljava/lang/String;IJ)V
.end method
.method public abstract data(ZILcom/mbridge/msdk/thrid/okio/BufferedSource;I)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract goAway(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;Lcom/mbridge/msdk/thrid/okio/ByteString;)V
.end method
.method public abstract headers(ZIILjava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(ZII",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;)V"
}
.end annotation
.end method
.method public abstract ping(ZII)V
.end method
.method public abstract priority(IIIZ)V
.end method
.method public abstract pushPromise(IILjava/util/List;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(II",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;)V"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract rstStream(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.end method
.method public abstract settings(ZLcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
.end method
.method public abstract windowUpdate(IJ)V
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,512 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FramingSink"
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z = false
.field private static final EMIT_BUFFER_SIZE:J = 0x4000L
# instance fields
.field closed:Z
.field finished:Z
.field private final sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 538
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 545
new-instance p1, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
return-void
.end method
.method private emitFrame(Z)V
.locals 11
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 568
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 569
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;->enter()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
:goto_0
:try_start_1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 571
iget-wide v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J
const-wide/16 v4, 0x0
cmp-long v2, v2, v4
if-gtz v2, :cond_0
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->finished:Z
if-nez v2, :cond_0
iget-boolean v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->closed:Z
if-nez v2, :cond_0
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
if-nez v2, :cond_0
.line 572
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->waitForIo()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
move-exception p1
goto :goto_4
.line 575
:cond_0
:try_start_2
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 578
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->checkOutNotClosed()V
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 579
iget-wide v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v3
invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->min(JJ)J
move-result-wide v9
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 580
iget-wide v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J
sub-long/2addr v2, v9
iput-wide v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->bytesLeftInWriteWindow:J
.line 581
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
.line 583
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;->enter()V
:try_start_3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 585
iget-object v5, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget v6, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->id:I
if-eqz p1, :cond_1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v0
cmp-long p1, v9, v0
if-nez p1, :cond_1
const/4 p1, 0x1
:goto_1
move v7, p1
goto :goto_2
:catchall_1
move-exception p1
goto :goto_3
:cond_1
const/4 p1, 0x0
goto :goto_1
:goto_2
iget-object v8, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-virtual/range {v5 .. v10}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeData(IZLcom/mbridge/msdk/thrid/okio/Buffer;J)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 587
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
return-void
:goto_3
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
.line 588
throw p1
:catchall_2
move-exception p1
goto :goto_5
:goto_4
:try_start_4
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 575
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
.line 576
throw p1
.line 581
:goto_5
monitor-exit v0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_2
throw p1
.end method
# virtual methods
.method public close()V
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 608
monitor-enter v0
:try_start_0
iget-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->closed:Z
if-eqz v1, :cond_0
.line 609
monitor-exit v0
return-void
:catchall_0
move-exception v1
goto :goto_1
.line 610
:cond_0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 611
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->sink:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;
iget-boolean v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->finished:Z
const/4 v1, 0x1
if-nez v0, :cond_2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 613
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v2
const-wide/16 v4, 0x0
cmp-long v0, v2, v4
if-lez v0, :cond_1
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 614
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v2
cmp-long v0, v2, v4
if-lez v0, :cond_2
.line 615
invoke-direct {p0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->emitFrame(Z)V
goto :goto_0
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 619
iget-object v2, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget v3, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->id:I
const/4 v4, 0x1
const/4 v5, 0x0
const-wide/16 v6, 0x0
invoke-virtual/range {v2 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeData(IZLcom/mbridge/msdk/thrid/okio/Buffer;J)V
:cond_2
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 622
monitor-enter v2
:try_start_1
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->closed:Z
.line 624
monitor-exit v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 625
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->flush()V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 626
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->cancelStreamIfNecessary()V
return-void
:catchall_1
move-exception v0
.line 624
:try_start_2
monitor-exit v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v0
.line 610
:goto_1
:try_start_3
monitor-exit v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
throw v1
.end method
.method public flush()V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 593
monitor-enter v0
:try_start_0
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 594
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->checkOutNotClosed()V
.line 595
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 596
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_0
const/4 v0, 0x0
.line 597
invoke-direct {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->emitFrame(Z)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 598
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->flush()V
goto :goto_0
:cond_0
return-void
:catchall_0
move-exception v1
.line 595
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 603
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->writeTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
return-object v0
.end method
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 556
invoke-virtual {v0, p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
:goto_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->sendBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 557
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide p1
const-wide/16 v0, 0x4000
cmp-long p1, p1, v0
if-ltz p1, :cond_0
const/4 p1, 0x0
.line 558
invoke-direct {p0, p1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSink;->emitFrame(Z)V
goto :goto_0
:cond_0
return-void
.end method

View File

@@ -0,0 +1,782 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okio/Source;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FramingSource"
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
# instance fields
.field closed:Z
.field finished:Z
.field private final maxByteCount:J
.field private final readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field private final receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;J)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 348
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 331
new-instance p1, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 334
new-instance p1, Lcom/mbridge/msdk/thrid/okio/Buffer;
invoke-direct {p1}, Lcom/mbridge/msdk/thrid/okio/Buffer;-><init>()V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iput-wide p2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->maxByteCount:J
return-void
.end method
.method private updateConnectionFlowControl(J)V
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 429
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-virtual {v0, p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->updateConnectionFlowControl(J)V
return-void
.end method
# virtual methods
.method public close()V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 495
monitor-enter v0
const/4 v1, 0x1
:try_start_0
iput-boolean v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->closed:Z
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 497
invoke-virtual {v1}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v1
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 498
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->clear()V
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 499
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Ljava/util/Deque;
move-result-object v3
invoke-interface {v3}, Ljava/util/Collection;->isEmpty()Z
move-result v3
if-nez v3, :cond_0
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
invoke-static {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$100(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
move-result-object v3
if-eqz v3, :cond_0
.line 500
new-instance v3, Ljava/util/ArrayList;
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Ljava/util/Deque;
move-result-object v4
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 501
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Ljava/util/Deque;
move-result-object v4
invoke-interface {v4}, Ljava/util/Collection;->clear()V
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 502
invoke-static {v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$100(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
move-result-object v4
goto :goto_0
:catchall_0
move-exception v1
goto :goto_2
:cond_0
const/4 v3, 0x0
move-object v4, v3
:goto_0
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 504
invoke-virtual {v5}, Ljava/lang/Object;->notifyAll()V
.line 505
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const-wide/16 v5, 0x0
cmp-long v0, v1, v5
if-lez v0, :cond_1
.line 507
invoke-direct {p0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
:cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 509
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->cancelStreamIfNecessary()V
if-eqz v4, :cond_2
.line 511
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/mbridge/msdk/thrid/okhttp/Headers;
.line 512
invoke-interface {v4, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;->onHeaders(Lcom/mbridge/msdk/thrid/okhttp/Headers;)V
goto :goto_1
:cond_2
return-void
.line 505
:goto_2
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
.locals 16
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
move-object/from16 v1, p0
move-wide/from16 v2, p2
const-wide/16 v4, 0x0
cmp-long v0, v2, v4
if-ltz v0, :cond_9
:goto_0
iget-object v6, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 363
monitor-enter v6
:try_start_0
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 364
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;->enter()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 366
iget-object v7, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
if-eqz v7, :cond_0
goto :goto_1
:cond_0
const/4 v7, 0x0
:goto_1
iget-boolean v9, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->closed:Z
if-nez v9, :cond_8
.line 374
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Ljava/util/Deque;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$100(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
move-result-object v0
if-eqz v0, :cond_1
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 376
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$000(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Ljava/util/Deque;
move-result-object v0
invoke-interface {v0}, Ljava/util/Deque;->removeFirst()Ljava/lang/Object;
move-result-object v0
move-object v8, v0
check-cast v8, Lcom/mbridge/msdk/thrid/okhttp/Headers;
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 377
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->access$100(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;
move-result-object v0
move-object/from16 v13, p1
move-object v10, v0
:goto_2
const-wide/16 v11, -0x1
goto :goto_3
:catchall_0
move-exception v0
goto/16 :goto_4
:cond_1
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 379
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v11
cmp-long v0, v11, v4
if-lez v0, :cond_3
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 381
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v11
invoke-static {v2, v3, v11, v12}, Ljava/lang/Math;->min(JJ)J
move-result-wide v11
move-object/from16 v13, p1
invoke-virtual {v0, v13, v11, v12}, Lcom/mbridge/msdk/thrid/okio/Buffer;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v11
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 382
iget-wide v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->unacknowledgedBytesRead:J
add-long/2addr v14, v11
iput-wide v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->unacknowledgedBytesRead:J
if-nez v7, :cond_2
.line 384
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->okHttpSettings:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
.line 386
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->getInitialWindowSize()I
move-result v0
div-int/lit8 v0, v0, 0x2
int-to-long v8, v0
cmp-long v0, v14, v8
if-ltz v0, :cond_2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 389
iget-object v8, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
iget v9, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->id:I
iget-wide v14, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->unacknowledgedBytesRead:J
invoke-virtual {v8, v9, v14, v15}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->writeWindowUpdateLater(IJ)V
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 390
iput-wide v4, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->unacknowledgedBytesRead:J
:cond_2
const/4 v8, 0x0
const/4 v10, 0x0
goto :goto_3
:cond_3
move-object/from16 v13, p1
iget-boolean v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->finished:Z
if-nez v0, :cond_4
if-nez v7, :cond_4
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 394
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->waitForIo()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 398
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
monitor-exit v6
goto/16 :goto_0
:catchall_1
move-exception v0
goto :goto_5
:cond_4
const/4 v8, 0x0
const/4 v10, 0x0
goto :goto_2
:goto_3
iget-object v0, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
.line 400
monitor-exit v6
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-eqz v8, :cond_5
if-eqz v10, :cond_5
.line 405
invoke-interface {v10, v8}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header$Listener;->onHeaders(Lcom/mbridge/msdk/thrid/okhttp/Headers;)V
goto/16 :goto_0
:cond_5
const-wide/16 v2, -0x1
cmp-long v0, v11, v2
if-eqz v0, :cond_6
.line 411
invoke-direct {v1, v11, v12}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
return-wide v11
:cond_6
if-nez v7, :cond_7
return-wide v2
.line 420
:cond_7
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/StreamResetException;
invoke-direct {v0, v7}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/StreamResetException;-><init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
throw v0
.line 372
:cond_8
:try_start_3
new-instance v0, Ljava/io/IOException;
const-string v2, "stream closed"
invoke-direct {v0, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:goto_4
:try_start_4
iget-object v2, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 398
iget-object v2, v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
invoke-virtual {v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->exitAndThrowIfTimedOut()V
.line 399
throw v0
.line 400
:goto_5
monitor-exit v6
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
throw v0
.line 353
:cond_9
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "byteCount < 0: "
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public receive(Lcom/mbridge/msdk/thrid/okio/BufferedSource;J)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:cond_0
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-lez v2, :cond_8
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 442
monitor-enter v2
:try_start_0
iget-boolean v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->finished:Z
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 444
invoke-virtual {v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v4
add-long/2addr v4, p2
iget-wide v6, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->maxByteCount:J
cmp-long v4, v4, v6
const/4 v5, 0x0
const/4 v6, 0x1
if-lez v4, :cond_1
move v4, v6
goto :goto_1
:cond_1
move v4, v5
.line 445
:goto_1
monitor-exit v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v4, :cond_2
.line 449
invoke-interface {p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->skip(J)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 450
sget-object p2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {p1, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->closeLater(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
return-void
:cond_2
if-eqz v3, :cond_3
.line 456
invoke-interface {p1, p2, p3}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->skip(J)V
return-void
:cond_3
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 461
invoke-interface {p1, v2, p2, p3}, Lcom/mbridge/msdk/thrid/okio/Source;->read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
move-result-wide v2
const-wide/16 v7, -0x1
cmp-long v4, v2, v7
if-eqz v4, :cond_7
sub-long/2addr p2, v2
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 469
monitor-enter v2
:try_start_1
iget-boolean v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->closed:Z
if-eqz v3, :cond_4
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 471
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v3
iget-object v5, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 472
invoke-virtual {v5}, Lcom/mbridge/msdk/thrid/okio/Buffer;->clear()V
goto :goto_2
:catchall_0
move-exception p1
goto :goto_3
:cond_4
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 474
invoke-virtual {v3}, Lcom/mbridge/msdk/thrid/okio/Buffer;->size()J
move-result-wide v3
cmp-long v3, v3, v0
if-nez v3, :cond_5
move v5, v6
:cond_5
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->readBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
iget-object v4, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->receiveBuffer:Lcom/mbridge/msdk/thrid/okio/Buffer;
.line 475
invoke-virtual {v3, v4}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writeAll(Lcom/mbridge/msdk/thrid/okio/Source;)J
if-eqz v5, :cond_6
iget-object v3, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 477
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
:cond_6
move-wide v3, v0
.line 480
:goto_2
monitor-exit v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
cmp-long v0, v3, v0
if-lez v0, :cond_0
.line 482
invoke-direct {p0, v3, v4}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->updateConnectionFlowControl(J)V
goto :goto_0
.line 480
:goto_3
:try_start_2
monitor-exit v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p1
.line 462
:cond_7
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
:catchall_1
move-exception p1
.line 445
:try_start_3
monitor-exit v2
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
throw p1
:cond_8
return-void
.end method
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$FramingSource;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 488
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->readTimeout:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
return-object v0
.end method

View File

@@ -0,0 +1,99 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;
.super Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "StreamTimeout"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;)V
.locals 0
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 665
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;-><init>()V
return-void
.end method
# virtual methods
.method public exitAndThrowIfTimedOut()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 680
invoke-virtual {p0}, Lcom/mbridge/msdk/thrid/okio/AsyncTimeout;->exit()Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
.end method
.method public newTimeoutException(Ljava/io/IOException;)Ljava/io/IOException;
.locals 2
.line 672
new-instance v0, Ljava/net/SocketTimeoutException;
const-string v1, "timeout"
invoke-direct {v0, v1}, Ljava/net/SocketTimeoutException;-><init>(Ljava/lang/String;)V
if-eqz p1, :cond_0
.line 674
invoke-virtual {v0, p1}, Ljava/lang/Throwable;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_0
return-object v0
.end method
.method public timedOut()V
.locals 2
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 667
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->closeLater(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream$StreamTimeout;->this$0:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;
.line 668
iget-object v0, v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Stream;->connection:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Http2Connection;->sendDegradedPingLater()V
return-void
.end method

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Node"
.end annotation
# instance fields
.field final children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
.field final symbol:I
.field final terminalBits:I
# direct methods
.method public constructor <init>()V
.locals 1
.line 208
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x100
new-array v0, v0, [Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->symbol:I
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->terminalBits:I
return-void
.end method
.method public constructor <init>(II)V
.locals 1
.line 220
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->symbol:I
and-int/lit8 p1, p2, 0x7
if-nez p1, :cond_0
const/16 p1, 0x8
:cond_0
iput p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->terminalBits:I
return-void
.end method

View File

@@ -0,0 +1,990 @@
.class Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
}
.end annotation
# static fields
.field private static final CODES:[I
.field private static final CODE_LENGTHS:[B
.field private static final INSTANCE:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
# instance fields
.field private final root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
# direct methods
.method static constructor <clinit>()V
.locals 2
const/16 v0, 0x100
new-array v1, v0, [I
fill-array-data v1, :array_0
sput-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODES:[I
new-array v0, v0, [B
fill-array-data v0, :array_1
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODE_LENGTHS:[B
.line 79
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;-><init>()V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->INSTANCE:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
return-void
:array_0
.array-data 4
0x1ff8
0x7fffd8
0xfffffe2
0xfffffe3
0xfffffe4
0xfffffe5
0xfffffe6
0xfffffe7
0xfffffe8
0xffffea
0x3ffffffc # 1.9999995f
0xfffffe9
0xfffffea
0x3ffffffd # 1.9999996f
0xfffffeb
0xfffffec
0xfffffed
0xfffffee
0xfffffef
0xffffff0
0xffffff1
0xffffff2
0x3ffffffe # 1.9999998f
0xffffff3
0xffffff4
0xffffff5
0xffffff6
0xffffff7
0xffffff8
0xffffff9
0xffffffa
0xffffffb
0x14
0x3f8
0x3f9
0xffa
0x1ff9
0x15
0xf8
0x7fa
0x3fa
0x3fb
0xf9
0x7fb
0xfa
0x16
0x17
0x18
0x0
0x1
0x2
0x19
0x1a
0x1b
0x1c
0x1d
0x1e
0x1f
0x5c
0xfb
0x7ffc
0x20
0xffb
0x3fc
0x1ffa
0x21
0x5d
0x5e
0x5f
0x60
0x61
0x62
0x63
0x64
0x65
0x66
0x67
0x68
0x69
0x6a
0x6b
0x6c
0x6d
0x6e
0x6f
0x70
0x71
0x72
0xfc
0x73
0xfd
0x1ffb
0x7fff0
0x1ffc
0x3ffc
0x22
0x7ffd
0x3
0x23
0x4
0x24
0x5
0x25
0x26
0x27
0x6
0x74
0x75
0x28
0x29
0x2a
0x7
0x2b
0x76
0x2c
0x8
0x9
0x2d
0x77
0x78
0x79
0x7a
0x7b
0x7ffe
0x7fc
0x3ffd
0x1ffd
0xffffffc
0xfffe6
0x3fffd2
0xfffe7
0xfffe8
0x3fffd3
0x3fffd4
0x3fffd5
0x7fffd9
0x3fffd6
0x7fffda
0x7fffdb
0x7fffdc
0x7fffdd
0x7fffde
0xffffeb
0x7fffdf
0xffffec
0xffffed
0x3fffd7
0x7fffe0
0xffffee
0x7fffe1
0x7fffe2
0x7fffe3
0x7fffe4
0x1fffdc
0x3fffd8
0x7fffe5
0x3fffd9
0x7fffe6
0x7fffe7
0xffffef
0x3fffda
0x1fffdd
0xfffe9
0x3fffdb
0x3fffdc
0x7fffe8
0x7fffe9
0x1fffde
0x7fffea
0x3fffdd
0x3fffde
0xfffff0
0x1fffdf
0x3fffdf
0x7fffeb
0x7fffec
0x1fffe0
0x1fffe1
0x3fffe0
0x1fffe2
0x7fffed
0x3fffe1
0x7fffee
0x7fffef
0xfffea
0x3fffe2
0x3fffe3
0x3fffe4
0x7ffff0
0x3fffe5
0x3fffe6
0x7ffff1
0x3ffffe0
0x3ffffe1
0xfffeb
0x7fff1
0x3fffe7
0x7ffff2
0x3fffe8
0x1ffffec
0x3ffffe2
0x3ffffe3
0x3ffffe4
0x7ffffde
0x7ffffdf
0x3ffffe5
0xfffff1
0x1ffffed
0x7fff2
0x1fffe3
0x3ffffe6
0x7ffffe0
0x7ffffe1
0x3ffffe7
0x7ffffe2
0xfffff2
0x1fffe4
0x1fffe5
0x3ffffe8
0x3ffffe9
0xffffffd
0x7ffffe3
0x7ffffe4
0x7ffffe5
0xfffec
0xfffff3
0xfffed
0x1fffe6
0x3fffe9
0x1fffe7
0x1fffe8
0x7ffff3
0x3fffea
0x3fffeb
0x1ffffee
0x1ffffef
0xfffff4
0xfffff5
0x3ffffea
0x7ffff4
0x3ffffeb
0x7ffffe6
0x3ffffec
0x3ffffed
0x7ffffe7
0x7ffffe8
0x7ffffe9
0x7ffffea
0x7ffffeb
0xffffffe
0x7ffffec
0x7ffffed
0x7ffffee
0x7ffffef
0x7fffff0
0x3ffffee
.end array-data
:array_1
.array-data 1
0xdt
0x17t
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x18t
0x1et
0x1ct
0x1ct
0x1et
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1et
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x1ct
0x6t
0xat
0xat
0xct
0xdt
0x6t
0x8t
0xbt
0xat
0xat
0x8t
0xbt
0x8t
0x6t
0x6t
0x6t
0x5t
0x5t
0x5t
0x6t
0x6t
0x6t
0x6t
0x6t
0x6t
0x6t
0x7t
0x8t
0xft
0x6t
0xct
0xat
0xdt
0x6t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x7t
0x8t
0x7t
0x8t
0xdt
0x13t
0xdt
0xet
0x6t
0xft
0x5t
0x6t
0x5t
0x6t
0x5t
0x6t
0x6t
0x6t
0x5t
0x7t
0x7t
0x6t
0x6t
0x6t
0x5t
0x6t
0x7t
0x6t
0x5t
0x5t
0x6t
0x7t
0x7t
0x7t
0x7t
0x7t
0xft
0xbt
0xet
0xdt
0x1ct
0x14t
0x16t
0x14t
0x14t
0x16t
0x16t
0x16t
0x17t
0x16t
0x17t
0x17t
0x17t
0x17t
0x17t
0x18t
0x17t
0x18t
0x18t
0x16t
0x17t
0x18t
0x17t
0x17t
0x17t
0x17t
0x15t
0x16t
0x17t
0x16t
0x17t
0x17t
0x18t
0x16t
0x15t
0x14t
0x16t
0x16t
0x17t
0x17t
0x15t
0x17t
0x16t
0x16t
0x18t
0x15t
0x16t
0x17t
0x17t
0x15t
0x15t
0x16t
0x15t
0x17t
0x16t
0x17t
0x17t
0x14t
0x16t
0x16t
0x16t
0x17t
0x16t
0x16t
0x17t
0x1at
0x1at
0x14t
0x13t
0x16t
0x17t
0x16t
0x19t
0x1at
0x1at
0x1at
0x1bt
0x1bt
0x1at
0x18t
0x19t
0x13t
0x15t
0x1at
0x1bt
0x1bt
0x1at
0x1bt
0x18t
0x15t
0x15t
0x1at
0x1at
0x1ct
0x1bt
0x1bt
0x1bt
0x14t
0x18t
0x14t
0x15t
0x16t
0x15t
0x15t
0x17t
0x16t
0x16t
0x19t
0x19t
0x18t
0x18t
0x1at
0x17t
0x1at
0x1bt
0x1at
0x1at
0x1bt
0x1bt
0x1bt
0x1bt
0x1bt
0x1ct
0x1bt
0x1bt
0x1bt
0x1bt
0x1bt
0x1at
.end array-data
.end method
.method private constructor <init>()V
.locals 1
.line 87
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 85
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;-><init>()V
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
.line 88
invoke-direct {p0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->buildTree()V
return-void
.end method
.method private addCode(IIB)V
.locals 4
.line 173
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
invoke-direct {v0, p1, p3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;-><init>(II)V
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
:goto_0
const/16 v1, 0x8
if-le p3, v1, :cond_2
add-int/lit8 p3, p3, -0x8
int-to-byte p3, p3
ushr-int v1, p2, p3
and-int/lit16 v1, v1, 0xff
.line 179
iget-object v2, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
if-eqz v2, :cond_1
.line 182
aget-object v3, v2, v1
if-nez v3, :cond_0
.line 183
new-instance v3, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
invoke-direct {v3}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;-><init>()V
aput-object v3, v2, v1
.line 185
:cond_0
iget-object p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
aget-object p1, p1, v1
goto :goto_0
.line 180
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "invalid dictionary: prefix not unique"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
sub-int/2addr v1, p3
shl-int/2addr p2, v1
and-int/lit16 p2, p2, 0xff
const/4 p3, 0x1
shl-int/2addr p3, v1
move v1, p2
:goto_1
add-int v2, p2, p3
if-ge v1, v2, :cond_3
.line 192
iget-object v2, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
aput-object v0, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_3
return-void
.end method
.method private buildTree()V
.locals 3
const/4 v0, 0x0
:goto_0
sget-object v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODE_LENGTHS:[B
.line 167
array-length v2, v1
if-ge v0, v2, :cond_0
sget-object v2, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODES:[I
.line 168
aget v2, v2, v0
aget-byte v1, v1, v0
invoke-direct {p0, v0, v2, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->addCode(IIB)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public static get()Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
.locals 1
sget-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->INSTANCE:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;
return-object v0
.end method
# virtual methods
.method public decode([B)[B
.locals 6
.line 129
new-instance v0, Ljava/io/ByteArrayOutputStream;
invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
const/4 v2, 0x0
move v3, v2
move v4, v3
.line 133
:goto_0
array-length v5, p1
if-ge v2, v5, :cond_2
.line 134
aget-byte v5, p1, v2
and-int/lit16 v5, v5, 0xff
shl-int/lit8 v3, v3, 0x8
or-int/2addr v3, v5
add-int/lit8 v4, v4, 0x8
:goto_1
const/16 v5, 0x8
if-lt v4, v5, :cond_1
add-int/lit8 v5, v4, -0x8
ushr-int v5, v3, v5
and-int/lit16 v5, v5, 0xff
.line 139
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
aget-object v1, v1, v5
.line 140
iget-object v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
if-nez v5, :cond_0
.line 142
iget v5, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->symbol:I
invoke-virtual {v0, v5}, Ljava/io/ByteArrayOutputStream;->write(I)V
.line 143
iget v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->terminalBits:I
sub-int/2addr v4, v1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
goto :goto_1
:cond_0
add-int/lit8 v4, v4, -0x8
goto :goto_1
:cond_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_2
:goto_2
if-lez v4, :cond_4
rsub-int/lit8 p1, v4, 0x8
shl-int p1, v3, p1
and-int/lit16 p1, p1, 0xff
.line 154
iget-object v1, v1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
aget-object p1, v1, p1
.line 155
iget-object v1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->children:[Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
if-nez v1, :cond_4
iget v1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->terminalBits:I
if-le v1, v4, :cond_3
goto :goto_3
.line 158
:cond_3
iget v1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->symbol:I
invoke-virtual {v0, v1}, Ljava/io/ByteArrayOutputStream;->write(I)V
.line 159
iget p1, p1, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;->terminalBits:I
sub-int/2addr v4, p1
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->root:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman$Node;
goto :goto_2
.line 163
:cond_4
:goto_3
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p1
return-object p1
.end method
.method public encode(Lcom/mbridge/msdk/thrid/okio/ByteString;Lcom/mbridge/msdk/thrid/okio/BufferedSink;)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
const/4 v2, 0x0
move v3, v2
.line 95
:goto_0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v4
const/16 v5, 0xff
if-ge v2, v4, :cond_1
.line 96
invoke-virtual {p1, v2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->getByte(I)B
move-result v4
and-int/2addr v4, v5
sget-object v5, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODES:[I
.line 97
aget v5, v5, v4
sget-object v6, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODE_LENGTHS:[B
.line 98
aget-byte v4, v6, v4
shl-long/2addr v0, v4
int-to-long v5, v5
or-long/2addr v0, v5
add-int/2addr v3, v4
:goto_1
const/16 v4, 0x8
if-lt v3, v4, :cond_0
add-int/lit8 v3, v3, -0x8
shr-long v4, v0, v3
long-to-int v4, v4
.line 106
invoke-interface {p2, v4}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
goto :goto_1
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
if-lez v3, :cond_2
rsub-int/lit8 p1, v3, 0x8
shl-long/2addr v0, p1
ushr-int p1, v5, v3
int-to-long v2, p1
or-long/2addr v0, v2
long-to-int p1, v0
.line 113
invoke-interface {p2, p1}, Lcom/mbridge/msdk/thrid/okio/BufferedSink;->writeByte(I)Lcom/mbridge/msdk/thrid/okio/BufferedSink;
:cond_2
return-void
.end method
.method public encodedLength(Lcom/mbridge/msdk/thrid/okio/ByteString;)I
.locals 5
const-wide/16 v0, 0x0
const/4 v2, 0x0
.line 120
:goto_0
invoke-virtual {p1}, Lcom/mbridge/msdk/thrid/okio/ByteString;->size()I
move-result v3
if-ge v2, v3, :cond_0
.line 121
invoke-virtual {p1, v2}, Lcom/mbridge/msdk/thrid/okio/ByteString;->getByte(I)B
move-result v3
and-int/lit16 v3, v3, 0xff
sget-object v4, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Huffman;->CODE_LENGTHS:[B
.line 122
aget-byte v3, v4, v3
int-to-long v3, v3
add-long/2addr v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
const-wide/16 v2, 0x7
add-long/2addr v0, v2
const/4 p1, 0x3
shr-long/2addr v0, p1
long-to-int p1, v0
return p1
.end method

View File

@@ -0,0 +1,86 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 76
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onData(ILcom/mbridge/msdk/thrid/okio/BufferedSource;IZ)Z
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
int-to-long p3, p3
.line 88
invoke-interface {p2, p3, p4}, Lcom/mbridge/msdk/thrid/okio/BufferedSource;->skip(J)V
const/4 p1, 0x1
return p1
.end method
.method public onHeaders(ILjava/util/List;Z)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;Z)Z"
}
.end annotation
const/4 p1, 0x1
return p1
.end method
.method public onRequest(ILjava/util/List;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;)Z"
}
.end annotation
const/4 p1, 0x1
return p1
.end method
.method public onReset(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.locals 0
return-void
.end method

View File

@@ -0,0 +1,57 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 76
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver$1;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver$1;-><init>()V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;->CANCEL:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/PushObserver;
return-void
.end method
# virtual methods
.method public abstract onData(ILcom/mbridge/msdk/thrid/okio/BufferedSource;IZ)Z
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract onHeaders(ILjava/util/List;Z)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;Z)Z"
}
.end annotation
.end method
.method public abstract onRequest(ILjava/util/List;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/util/List<",
"Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Header;",
">;)Z"
}
.end annotation
.end method
.method public abstract onReset(ILcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.end method

View File

@@ -0,0 +1,320 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field static final COUNT:I = 0xa
.field static final DEFAULT_INITIAL_WINDOW_SIZE:I = 0xffff
.field static final ENABLE_PUSH:I = 0x2
.field static final HEADER_TABLE_SIZE:I = 0x1
.field static final INITIAL_WINDOW_SIZE:I = 0x7
.field static final MAX_CONCURRENT_STREAMS:I = 0x4
.field static final MAX_FRAME_SIZE:I = 0x5
.field static final MAX_HEADER_LIST_SIZE:I = 0x6
# instance fields
.field private set:I
.field private final values:[I
# direct methods
.method public constructor <init>()V
.locals 1
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0xa
new-array v0, v0, [I
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
return-void
.end method
# virtual methods
.method public clear()V
.locals 2
const/4 v0, 0x0
iput v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
.line 55
invoke-static {v1, v0}, Ljava/util/Arrays;->fill([II)V
return-void
.end method
.method public get(I)I
.locals 1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
.line 77
aget p1, v0, p1
return p1
.end method
.method public getEnablePush(Z)Z
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit8 v0, v0, 0x4
const/4 v1, 0x1
if-eqz v0, :cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v0, 0x2
.line 94
aget p1, p1, v0
if-ne p1, v1, :cond_1
goto :goto_0
:cond_0
if-eqz p1, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public getHeaderTableSize()I
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit8 v0, v0, 0x2
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v1, 0x1
.line 88
aget v0, v0, v1
goto :goto_0
:cond_0
const/4 v0, -0x1
:goto_0
return v0
.end method
.method public getInitialWindowSize()I
.locals 2
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit16 v0, v0, 0x80
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v1, 0x7
.line 114
aget v0, v0, v1
goto :goto_0
:cond_0
const v0, 0xffff
:goto_0
return v0
.end method
.method public getMaxConcurrentStreams(I)I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit8 v0, v0, 0x10
if-eqz v0, :cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v0, 0x4
.line 99
aget p1, p1, v0
:cond_0
return p1
.end method
.method public getMaxFrameSize(I)I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit8 v0, v0, 0x20
if-eqz v0, :cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v0, 0x5
.line 104
aget p1, p1, v0
:cond_0
return p1
.end method
.method public getMaxHeaderListSize(I)I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
and-int/lit8 v0, v0, 0x40
if-eqz v0, :cond_0
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
const/4 v0, 0x6
.line 109
aget p1, p1, v0
:cond_0
return p1
.end method
.method public isSet(I)Z
.locals 2
const/4 v0, 0x1
shl-int p1, v0, p1
iget v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set: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 public merge(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;)V
.locals 2
const/4 v0, 0x0
:goto_0
const/16 v1, 0xa
if-ge v0, v1, :cond_1
.line 123
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->isSet(I)Z
move-result v1
if-nez v1, :cond_0
goto :goto_1
.line 124
:cond_0
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->get(I)I
move-result v1
invoke-virtual {p0, v0, v1}, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set(II)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
:goto_1
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public set(II)Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;
.locals 3
if-ltz p1, :cond_1
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->values:[I
.line 59
array-length v1, v0
if-lt p1, v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x1
shl-int/2addr v1, p1
iget v2, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
or-int/2addr v1, v2
iput v1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
.line 65
aput p2, v0, p1
:cond_1
:goto_0
return-object p0
.end method
.method public size()I
.locals 1
iget v0, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/Settings;->set:I
.line 82
invoke-static {v0}, Ljava/lang/Integer;->bitCount(I)I
move-result v0
return v0
.end method

View File

@@ -0,0 +1,34 @@
.class public final Lcom/mbridge/msdk/thrid/okhttp/internal/http2/StreamResetException;
.super Ljava/io/IOException;
.source "SourceFile"
# instance fields
.field public final errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
# direct methods
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;)V
.locals 2
.line 25
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "stream was reset: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/internal/http2/StreamResetException;->errorCode:Lcom/mbridge/msdk/thrid/okhttp/internal/http2/ErrorCode;
return-void
.end method

View File

@@ -0,0 +1,330 @@
.class final Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 42
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public appendingSink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.line 59
:try_start_0
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->appendingSink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
:try_end_0
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
.line 62
:catch_0
invoke-virtual {p1}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
.line 63
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->appendingSink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
return-object p1
.end method
.method public delete(Ljava/io/File;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 69
invoke-virtual {p1}, Ljava/io/File;->delete()Z
move-result v0
if-nez v0, :cond_1
invoke-virtual {p1}, Ljava/io/File;->exists()Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
.line 70
:cond_0
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "failed to delete "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
:goto_0
return-void
.end method
.method public deleteContents(Ljava/io/File;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 90
invoke-virtual {p1}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object v0
if-eqz v0, :cond_3
.line 94
array-length p1, v0
const/4 v1, 0x0
:goto_0
if-ge v1, p1, :cond_2
aget-object v2, v0, v1
.line 95
invoke-virtual {v2}, Ljava/io/File;->isDirectory()Z
move-result v3
if-eqz v3, :cond_0
.line 96
invoke-virtual {p0, v2}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem$1;->deleteContents(Ljava/io/File;)V
.line 98
:cond_0
invoke-virtual {v2}, Ljava/io/File;->delete()Z
move-result v3
if-eqz v3, :cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 99
:cond_1
new-instance p1, Ljava/io/IOException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "failed to delete "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
return-void
.line 92
:cond_3
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "not a readable directory: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public exists(Ljava/io/File;)Z
.locals 0
.line 75
invoke-virtual {p1}, Ljava/io/File;->exists()Z
move-result p1
return p1
.end method
.method public rename(Ljava/io/File;Ljava/io/File;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 83
invoke-virtual {p0, p2}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem$1;->delete(Ljava/io/File;)V
.line 84
invoke-virtual {p1, p2}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
move-result v0
if-eqz v0, :cond_0
return-void
.line 85
:cond_0
new-instance v0, Ljava/io/IOException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "failed to rename "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " to "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public sink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.line 49
:try_start_0
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->sink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
:try_end_0
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
.line 52
:catch_0
invoke-virtual {p1}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
.line 53
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->sink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
move-result-object p1
return-object p1
.end method
.method public size(Ljava/io/File;)J
.locals 2
.line 79
invoke-virtual {p1}, Ljava/io/File;->length()J
move-result-wide v0
return-wide v0
.end method
.method public source(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Source;
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.line 44
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->source(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Source;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,78 @@
.class public interface abstract Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final SYSTEM:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 42
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem$1;
invoke-direct {v0}, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem$1;-><init>()V
sput-object v0, Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;->SYSTEM:Lcom/mbridge/msdk/thrid/okhttp/internal/io/FileSystem;
return-void
.end method
# virtual methods
.method public abstract appendingSink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.end method
.method public abstract delete(Ljava/io/File;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract deleteContents(Ljava/io/File;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract exists(Ljava/io/File;)Z
.end method
.method public abstract rename(Ljava/io/File;Ljava/io/File;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.end method
.method public abstract sink(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Sink;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.end method
.method public abstract size(Ljava/io/File;)J
.end method
.method public abstract source(Ljava/io/File;)Lcom/mbridge/msdk/thrid/okio/Source;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.end method

Some files were not shown because too many files have changed in this diff Show More