.class public final Lokhttp3/internal/http2/Http2Connection$ReaderRunnable; .super Ljava/lang/Object; .source "Http2Connection.kt" # interfaces .implements Lokhttp3/internal/http2/Http2Reader$Handler; .implements Lkotlin/jvm/functions/Function0; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/http2/Http2Connection; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "ReaderRunnable" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lokhttp3/internal/http2/Http2Reader$Handler;", "Lkotlin/jvm/functions/Function0<", "Lkotlin/Unit;", ">;" } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nHttp2Connection.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http2Connection.kt\nokhttp3/internal/http2/Http2Connection$ReaderRunnable\n+ 2 TaskQueue.kt\nokhttp3/internal/concurrent/TaskQueue\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 4 Util.kt\nokhttp3/internal/Util\n*L\n1#1,1006:1\n92#2,11:1007\n92#2,11:1018\n92#2,11:1031\n92#2,11:1043\n37#3,2:1029\n37#3,2:1054\n556#4:1042\n556#4:1056\n*E\n*S KotlinDebug\n*F\n+ 1 Http2Connection.kt\nokhttp3/internal/http2/Http2Connection$ReaderRunnable\n*L\n687#1,11:1007\n715#1,11:1018\n758#1,11:1031\n806#1,11:1043\n753#1,2:1029\n824#1,2:1054\n797#1:1042\n841#1:1056\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0008\u0010\u0008\u0086\u0004\u0018\u00002\u00020\u00012\u0008\u0012\u0004\u0012\u00020\u00030\u0002B\u000f\u0008\u0000\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0006J\u0008\u0010\t\u001a\u00020\u0003H\u0016J8\u0010\n\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u000e2\u0006\u0010\u0012\u001a\u00020\u000c2\u0006\u0010\u0013\u001a\u00020\u0014H\u0016J\u0016\u0010\u0015\u001a\u00020\u00032\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0019J(\u0010\u001a\u001a\u00020\u00032\u0006\u0010\u001b\u001a\u00020\u00172\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u000cH\u0016J \u0010\u001f\u001a\u00020\u00032\u0006\u0010 \u001a\u00020\u000c2\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u0010H\u0016J.\u0010$\u001a\u00020\u00032\u0006\u0010\u001b\u001a\u00020\u00172\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010%\u001a\u00020\u000c2\u000c\u0010&\u001a\u0008\u0012\u0004\u0012\u00020(0\'H\u0016J\t\u0010)\u001a\u00020\u0003H\u0096\u0002J \u0010*\u001a\u00020\u00032\u0006\u0010+\u001a\u00020\u00172\u0006\u0010,\u001a\u00020\u000c2\u0006\u0010-\u001a\u00020\u000cH\u0016J(\u0010.\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010/\u001a\u00020\u000c2\u0006\u00100\u001a\u00020\u000c2\u0006\u00101\u001a\u00020\u0017H\u0016J&\u00102\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u00103\u001a\u00020\u000c2\u000c\u00104\u001a\u0008\u0012\u0004\u0012\u00020(0\'H\u0016J\u0018\u00105\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010!\u001a\u00020\"H\u0016J\u0018\u0010\u0018\u001a\u00020\u00032\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0019H\u0016J\u0018\u00106\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u00107\u001a\u00020\u0014H\u0016R\u0014\u0010\u0004\u001a\u00020\u0005X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0007\u0010\u0008\u00a8\u00068" } d2 = { "Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;", "Lokhttp3/internal/http2/Http2Reader$Handler;", "Lkotlin/Function0;", "", "reader", "Lokhttp3/internal/http2/Http2Reader;", "(Lokhttp3/internal/http2/Http2Connection;Lokhttp3/internal/http2/Http2Reader;)V", "getReader$okhttp", "()Lokhttp3/internal/http2/Http2Reader;", "ackSettings", "alternateService", "streamId", "", "origin", "", "protocol", "Lokio/ByteString;", "host", "port", "maxAge", "", "applyAndAckSettings", "clearPrevious", "", "settings", "Lokhttp3/internal/http2/Settings;", "data", "inFinished", "source", "Lokio/BufferedSource;", "length", "goAway", "lastGoodStreamId", "errorCode", "Lokhttp3/internal/http2/ErrorCode;", "debugData", "headers", "associatedStreamId", "headerBlock", "", "Lokhttp3/internal/http2/Header;", "invoke", "ping", "ack", "payload1", "payload2", "priority", "streamDependency", "weight", "exclusive", "pushPromise", "promisedStreamId", "requestHeaders", "rstStream", "windowUpdate", "windowSizeIncrement", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private final reader:Lokhttp3/internal/http2/Http2Reader; .field final synthetic this$0:Lokhttp3/internal/http2/Http2Connection; # direct methods .method public constructor (Lokhttp3/internal/http2/Http2Connection;Lokhttp3/internal/http2/Http2Reader;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lokhttp3/internal/http2/Http2Reader;", ")V" } .end annotation const-string v0, "reader" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 609 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; return-void .end method # virtual methods .method public ackSettings()V .locals 0 return-void .end method .method public alternateService(ILjava/lang/String;Lokio/ByteString;Ljava/lang/String;IJ)V .locals 0 const-string p0, "origin" invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p0, "protocol" invoke-static {p3, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p0, "host" invoke-static {p4, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V return-void .end method .method public final applyAndAckSettings(ZLokhttp3/internal/http2/Settings;)V .locals 21 move-object/from16 v12, p0 move-object/from16 v0, p2 const-string v1, "settings" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 734 new-instance v13, Lkotlin/jvm/internal/Ref$LongRef; invoke-direct {v13}, Lkotlin/jvm/internal/Ref$LongRef;->()V .line 735 new-instance v14, Lkotlin/jvm/internal/Ref$ObjectRef; invoke-direct {v14}, Lkotlin/jvm/internal/Ref$ObjectRef;->()V .line 736 new-instance v15, Lkotlin/jvm/internal/Ref$ObjectRef; invoke-direct {v15}, Lkotlin/jvm/internal/Ref$ObjectRef;->()V iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 737 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getWriter()Lokhttp3/internal/http2/Http2Writer; move-result-object v16 monitor-enter v16 :try_start_0 iget-object v11, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 738 monitor-enter v11 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_3 :try_start_1 iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 739 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getPeerSettings()Lokhttp3/internal/http2/Settings; move-result-object v1 if-eqz p1, :cond_0 move-object v2, v0 goto :goto_0 .line 743 :cond_0 new-instance v2, Lokhttp3/internal/http2/Settings; invoke-direct {v2}, Lokhttp3/internal/http2/Settings;->()V .line 744 invoke-virtual {v2, v1}, Lokhttp3/internal/http2/Settings;->merge(Lokhttp3/internal/http2/Settings;)V .line 745 invoke-virtual {v2, v0}, Lokhttp3/internal/http2/Settings;->merge(Lokhttp3/internal/http2/Settings;)V .line 746 sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; .line 740 :goto_0 iput-object v2, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; .line 749 iget-object v2, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v2, Lokhttp3/internal/http2/Settings; invoke-virtual {v2}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I move-result v2 int-to-long v2, v2 .line 750 invoke-virtual {v1}, Lokhttp3/internal/http2/Settings;->getInitialWindowSize()I move-result v1 int-to-long v4, v1 sub-long/2addr v2, v4 iput-wide v2, v13, Lkotlin/jvm/internal/Ref$LongRef;->element:J .line 752 iget-wide v1, v13, Lkotlin/jvm/internal/Ref$LongRef;->element:J const-wide/16 v9, 0x0 cmp-long v1, v1, v9 const/4 v8, 0x0 if-eqz v1, :cond_3 iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getStreams$okhttp()Ljava/util/Map; move-result-object v1 invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z move-result v1 if-eqz v1, :cond_1 goto :goto_1 :cond_1 iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 753 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getStreams$okhttp()Ljava/util/Map; move-result-object v1 invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection; move-result-object v1 new-array v2, v8, [Lokhttp3/internal/http2/Http2Stream; .line 1030 invoke-interface {v1, v2}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object v1 if-eqz v1, :cond_2 check-cast v1, [Lokhttp3/internal/http2/Http2Stream; goto :goto_2 :cond_2 new-instance v0, Ljava/lang/NullPointerException; const-string v1, "null cannot be cast to non-null type kotlin.Array" invoke-direct {v0, v1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw v0 :cond_3 :goto_1 const/4 v1, 0x0 .line 751 :goto_2 iput-object v1, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 756 iget-object v2, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v2, Lokhttp3/internal/http2/Settings; invoke-virtual {v1, v2}, Lokhttp3/internal/http2/Http2Connection;->setPeerSettings(Lokhttp3/internal/http2/Settings;)V iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 758 invoke-static {v1}, Lokhttp3/internal/http2/Http2Connection;->access$getSettingsListenerQueue$p(Lokhttp3/internal/http2/Http2Connection;)Lokhttp3/internal/concurrent/TaskQueue; move-result-object v7 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V iget-object v2, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v2}, Lokhttp3/internal/http2/Http2Connection;->getConnectionName$okhttp()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, " onSettings" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v4 const/4 v5, 0x1 .line 1035 new-instance v17, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$applyAndAckSettings$$inlined$synchronized$lambda$1; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_2 move-object/from16 v1, v17 move-object v2, v4 move v3, v5 move-object/from16 v6, p0 move-object/from16 v18, v7 move-object v7, v15 move/from16 v19, v8 move/from16 v8, p1 move-object/from16 v9, p2 move-object v10, v13 move-object/from16 v20, v11 move-object v11, v14 :try_start_2 invoke-direct/range {v1 .. v11}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$applyAndAckSettings$$inlined$synchronized$lambda$1;->(Ljava/lang/String;ZLjava/lang/String;ZLokhttp3/internal/http2/Http2Connection$ReaderRunnable;Lkotlin/jvm/internal/Ref$ObjectRef;ZLokhttp3/internal/http2/Settings;Lkotlin/jvm/internal/Ref$LongRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V move-object/from16 v0, v17 check-cast v0, Lokhttp3/internal/concurrent/Task; move-object/from16 v1, v18 const-wide/16 v2, 0x0 invoke-virtual {v1, v0, v2, v3}, Lokhttp3/internal/concurrent/TaskQueue;->schedule(Lokhttp3/internal/concurrent/Task;J)V .line 761 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 .line 738 :try_start_3 monitor-exit v20 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_3 :try_start_4 iget-object v0, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 763 invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->getWriter()Lokhttp3/internal/http2/Http2Writer; move-result-object v0 iget-object v1, v15, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v1, Lokhttp3/internal/http2/Settings; invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Writer;->applyAndAckSettings(Lokhttp3/internal/http2/Settings;)V :try_end_4 .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_0 .catchall {:try_start_4 .. :try_end_4} :catchall_3 goto :goto_3 :catch_0 move-exception v0 :try_start_5 iget-object v1, v12, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 765 invoke-static {v1, v0}, Lokhttp3/internal/http2/Http2Connection;->access$failConnection(Lokhttp3/internal/http2/Http2Connection;Ljava/io/IOException;)V .line 767 :goto_3 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_3 .line 737 monitor-exit v16 .line 768 iget-object v0, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v0, [Lokhttp3/internal/http2/Http2Stream; if-eqz v0, :cond_4 .line 769 iget-object v0, v14, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v0, [Lokhttp3/internal/http2/Http2Stream; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V array-length v1, v0 move/from16 v8, v19 :goto_4 if-ge v8, v1, :cond_4 aget-object v2, v0, v8 .line 770 monitor-enter v2 .line 771 :try_start_6 iget-wide v3, v13, Lkotlin/jvm/internal/Ref$LongRef;->element:J invoke-virtual {v2, v3, v4}, Lokhttp3/internal/http2/Http2Stream;->addBytesToWriteWindow(J)V .line 772 sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_0 .line 770 monitor-exit v2 add-int/lit8 v8, v8, 0x1 goto :goto_4 :catchall_0 move-exception v0 monitor-exit v2 throw v0 :cond_4 return-void :catchall_1 move-exception v0 goto :goto_5 :catchall_2 move-exception v0 move-object/from16 v20, v11 .line 738 :goto_5 :try_start_7 monitor-exit v20 throw v0 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_3 :catchall_3 move-exception v0 .line 737 monitor-exit v16 throw v0 .end method .method public data(ZILokio/BufferedSource;I)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 639 invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Http2Connection;->pushedStream$okhttp(I)Z move-result v0 if-eqz v0, :cond_0 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 640 invoke-virtual {p0, p2, p3, p4, p1}, Lokhttp3/internal/http2/Http2Connection;->pushDataLater$okhttp(ILokio/BufferedSource;IZ)V return-void :cond_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 643 invoke-virtual {v0, p2}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream; move-result-object v0 if-nez v0, :cond_1 iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 645 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; invoke-virtual {p1, p2, v0}, Lokhttp3/internal/http2/Http2Connection;->writeSynResetLater$okhttp(ILokhttp3/internal/http2/ErrorCode;)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; int-to-long p1, p4 .line 646 invoke-virtual {p0, p1, p2}, Lokhttp3/internal/http2/Http2Connection;->updateConnectionFlowControl$okhttp(J)V .line 647 invoke-interface {p3, p1, p2}, Lokio/BufferedSource;->skip(J)V return-void .line 650 :cond_1 invoke-virtual {v0, p3, p4}, Lokhttp3/internal/http2/Http2Stream;->receiveData(Lokio/BufferedSource;I)V if-eqz p1, :cond_2 .line 652 sget-object p0, Lokhttp3/internal/Util;->EMPTY_HEADERS:Lokhttp3/Headers; const/4 p1, 0x1 invoke-virtual {v0, p0, p1}, Lokhttp3/internal/http2/Http2Stream;->receiveHeaders(Lokhttp3/Headers;Z)V :cond_2 return-void .end method .method public final getReader$okhttp()Lokhttp3/internal/http2/Http2Reader; .locals 0 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; return-object p0 .end method .method public goAway(ILokhttp3/internal/http2/ErrorCode;Lokio/ByteString;)V .locals 3 const-string v0, "errorCode" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string p2, "debugData" invoke-static {p3, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 817 invoke-virtual {p3}, Lokio/ByteString;->size()I iget-object p2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 823 monitor-enter p2 :try_start_0 iget-object p3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 824 invoke-virtual {p3}, Lokhttp3/internal/http2/Http2Connection;->getStreams$okhttp()Ljava/util/Map; move-result-object p3 invoke-interface {p3}, Ljava/util/Map;->values()Ljava/util/Collection; move-result-object p3 const/4 v0, 0x0 new-array v1, v0, [Lokhttp3/internal/http2/Http2Stream; .line 1055 invoke-interface {p3, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object p3 if-eqz p3, :cond_2 check-cast p3, [Lokhttp3/internal/http2/Http2Stream; iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; const/4 v2, 0x1 .line 825 invoke-static {v1, v2}, Lokhttp3/internal/http2/Http2Connection;->access$setShutdown$p(Lokhttp3/internal/http2/Http2Connection;Z)V .line 826 sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 823 monitor-exit p2 .line 829 array-length p2, p3 :goto_0 if-ge v0, p2, :cond_1 aget-object v1, p3, v0 .line 830 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->getId()I move-result v2 if-le v2, p1, :cond_0 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->isLocallyInitiated()Z move-result v2 if-eqz v2, :cond_0 .line 831 sget-object v2, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode; invoke-virtual {v1, v2}, Lokhttp3/internal/http2/Http2Stream;->receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 832 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Stream;->getId()I move-result v1 invoke-virtual {v2, v1}, Lokhttp3/internal/http2/Http2Connection;->removeStream$okhttp(I)Lokhttp3/internal/http2/Http2Stream; :cond_0 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_1 return-void .line 1055 :cond_2 :try_start_1 new-instance p0, Ljava/lang/NullPointerException; const-string p1, "null cannot be cast to non-null type kotlin.Array" invoke-direct {p0, p1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :catchall_0 move-exception p0 .line 823 monitor-exit p2 throw p0 .end method .method public headers(ZIILjava/util/List;)V .locals 15 .annotation system Ldalvik/annotation/Signature; value = { "(ZII", "Ljava/util/List<", "Lokhttp3/internal/http2/Header;", ">;)V" } .end annotation move-object v0, p0 move/from16 v11, p1 move/from16 v9, p2 move-object/from16 v10, p4 const-string v1, "headerBlock" invoke-static {v10, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 662 invoke-virtual {v1, v9}, Lokhttp3/internal/http2/Http2Connection;->pushedStream$okhttp(I)Z move-result v1 if-eqz v1, :cond_0 iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 663 invoke-virtual {v0, v9, v10, v11}, Lokhttp3/internal/http2/Http2Connection;->pushHeadersLater$okhttp(ILjava/util/List;Z)V return-void :cond_0 iget-object v12, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 667 monitor-enter v12 :try_start_0 iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 668 invoke-virtual {v1, v9}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream; move-result-object v8 if-nez v8, :cond_4 iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 672 invoke-static {v1}, Lokhttp3/internal/http2/Http2Connection;->access$isShutdown$p(Lokhttp3/internal/http2/Http2Connection;)Z move-result v1 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v1, :cond_1 monitor-exit v12 return-void :cond_1 :try_start_1 iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 675 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getLastGoodStreamId$okhttp()I move-result v1 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 if-gt v9, v1, :cond_2 monitor-exit v12 return-void .line 678 :cond_2 :try_start_2 rem-int/lit8 v1, v9, 0x2 iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v2}, Lokhttp3/internal/http2/Http2Connection;->getNextStreamId$okhttp()I move-result v2 rem-int/lit8 v2, v2, 0x2 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 if-ne v1, v2, :cond_3 monitor-exit v12 return-void .line 681 :cond_3 :try_start_3 invoke-static/range {p4 .. p4}, Lokhttp3/internal/Util;->toHeaders(Ljava/util/List;)Lokhttp3/Headers; move-result-object v6 .line 682 new-instance v7, Lokhttp3/internal/http2/Http2Stream; iget-object v3, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; const/4 v4, 0x0 move-object v1, v7 move/from16 v2, p2 move/from16 v5, p1 invoke-direct/range {v1 .. v6}, Lokhttp3/internal/http2/Http2Stream;->(ILokhttp3/internal/http2/Http2Connection;ZZLokhttp3/Headers;)V iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 683 invoke-virtual {v1, v9}, Lokhttp3/internal/http2/Http2Connection;->setLastGoodStreamId$okhttp(I)V iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 684 invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getStreams$okhttp()Ljava/util/Map; move-result-object v1 invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-interface {v1, v2, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; iget-object v1, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 687 invoke-static {v1}, Lokhttp3/internal/http2/Http2Connection;->access$getTaskRunner$p(Lokhttp3/internal/http2/Http2Connection;)Lokhttp3/internal/concurrent/TaskRunner; move-result-object v1 invoke-virtual {v1}, Lokhttp3/internal/concurrent/TaskRunner;->newQueue()Lokhttp3/internal/concurrent/TaskQueue; move-result-object v13 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V iget-object v2, v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v2}, Lokhttp3/internal/http2/Http2Connection;->getConnectionName$okhttp()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const/16 v2, 0x5b invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, "] onStream" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v4 const/4 v5, 0x1 .line 1011 new-instance v14, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$headers$$inlined$synchronized$lambda$1; move-object v1, v14 move-object v2, v4 move v3, v5 move-object v6, v7 move-object v7, p0 move/from16 v9, p2 move-object/from16 v10, p4 move/from16 v11, p1 invoke-direct/range {v1 .. v11}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$headers$$inlined$synchronized$lambda$1;->(Ljava/lang/String;ZLjava/lang/String;ZLokhttp3/internal/http2/Http2Stream;Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;Lokhttp3/internal/http2/Http2Stream;ILjava/util/List;Z)V check-cast v14, Lokhttp3/internal/concurrent/Task; const-wide/16 v0, 0x0 invoke-virtual {v13, v14, v0, v1}, Lokhttp3/internal/concurrent/TaskQueue;->schedule(Lokhttp3/internal/concurrent/Task;J)V :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 .line 697 monitor-exit v12 return-void .line 699 :cond_4 :try_start_4 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_0 .line 667 monitor-exit v12 .line 702 invoke-static/range {p4 .. p4}, Lokhttp3/internal/Util;->toHeaders(Ljava/util/List;)Lokhttp3/Headers; move-result-object v0 invoke-virtual {v8, v0, v11}, Lokhttp3/internal/http2/Http2Stream;->receiveHeaders(Lokhttp3/Headers;Z)V return-void :catchall_0 move-exception v0 .line 667 monitor-exit v12 throw v0 .end method .method public bridge synthetic invoke()Ljava/lang/Object; .locals 0 .line 609 invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->invoke()V sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; return-object p0 .end method .method public invoke()V .locals 6 .line 613 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode; .line 614 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode; const/4 v2, 0x0 .line 615 move-object v3, v2 check-cast v3, Ljava/io/IOException; :try_start_0 iget-object v3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; .line 617 move-object v4, p0 check-cast v4, Lokhttp3/internal/http2/Http2Reader$Handler; invoke-virtual {v3, v4}, Lokhttp3/internal/http2/Http2Reader;->readConnectionPreface(Lokhttp3/internal/http2/Http2Reader$Handler;)V :goto_0 iget-object v3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; .line 618 move-object v4, p0 check-cast v4, Lokhttp3/internal/http2/Http2Reader$Handler; const/4 v5, 0x0 invoke-virtual {v3, v5, v4}, Lokhttp3/internal/http2/Http2Reader;->nextFrame(ZLokhttp3/internal/http2/Http2Reader$Handler;)Z move-result v3 if-eqz v3, :cond_0 goto :goto_0 .line 620 :cond_0 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode; .line 621 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode; :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_1 :catchall_0 move-exception v3 goto :goto_2 :catch_0 move-exception v2 .line 624 :try_start_1 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; .line 625 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :goto_1 iget-object v3, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 627 invoke-virtual {v3, v0, v1, v2}, Lokhttp3/internal/http2/Http2Connection;->close$okhttp(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; .line 628 check-cast p0, Ljava/io/Closeable; invoke-static {p0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V return-void :goto_2 iget-object v4, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 627 invoke-virtual {v4, v0, v1, v2}, Lokhttp3/internal/http2/Http2Connection;->close$okhttp(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->reader:Lokhttp3/internal/http2/Http2Reader; .line 628 check-cast p0, Ljava/io/Closeable; invoke-static {p0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V throw v3 .end method .method public ping(ZII)V .locals 9 if-eqz p1, :cond_4 iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 787 monitor-enter p1 const/4 p3, 0x1 const-wide/16 v0, 0x1 if-eq p2, p3, :cond_3 const/4 p3, 0x2 if-eq p2, p3, :cond_2 const/4 p3, 0x3 if-eq p2, p3, :cond_0 .line 1042 :goto_0 :try_start_0 sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; goto :goto_1 :cond_0 iget-object p2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 796 invoke-static {p2}, Lokhttp3/internal/http2/Http2Connection;->access$getAwaitPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;)J move-result-wide v2 add-long/2addr v2, v0 invoke-static {p2, v2, v3}, Lokhttp3/internal/http2/Http2Connection;->access$setAwaitPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;J)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; if-eqz p0, :cond_1 .line 1042 check-cast p0, Ljava/lang/Object; invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V goto :goto_0 :cond_1 new-instance p0, Ljava/lang/NullPointerException; const-string p2, "null cannot be cast to non-null type java.lang.Object" invoke-direct {p0, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 :cond_2 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 793 invoke-static {p0}, Lokhttp3/internal/http2/Http2Connection;->access$getDegradedPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;)J move-result-wide p2 add-long/2addr v0, p2 invoke-static {p0, v0, v1}, Lokhttp3/internal/http2/Http2Connection;->access$setDegradedPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;J)V invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; goto :goto_1 :cond_3 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 790 invoke-static {p0}, Lokhttp3/internal/http2/Http2Connection;->access$getIntervalPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;)J move-result-wide p2 add-long/2addr v0, p2 invoke-static {p0, v0, v1}, Lokhttp3/internal/http2/Http2Connection;->access$setIntervalPongsReceived$p(Lokhttp3/internal/http2/Http2Connection;J)V invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 787 :goto_1 monitor-exit p1 goto :goto_2 :catchall_0 move-exception p0 monitor-exit p1 throw p0 :cond_4 iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 806 invoke-static {p1}, Lokhttp3/internal/http2/Http2Connection;->access$getWriterQueue$p(Lokhttp3/internal/http2/Http2Connection;)Lokhttp3/internal/concurrent/TaskQueue; move-result-object p1 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v1}, Lokhttp3/internal/http2/Http2Connection;->getConnectionName$okhttp()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " ping" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v4 const/4 v5, 0x1 .line 1047 new-instance v0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$ping$$inlined$execute$1; move-object v1, v0 move-object v2, v4 move v3, v5 move-object v6, p0 move v7, p2 move v8, p3 invoke-direct/range {v1 .. v8}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$ping$$inlined$execute$1;->(Ljava/lang/String;ZLjava/lang/String;ZLokhttp3/internal/http2/Http2Connection$ReaderRunnable;II)V check-cast v0, Lokhttp3/internal/concurrent/Task; const-wide/16 p2, 0x0 invoke-virtual {p1, v0, p2, p3}, Lokhttp3/internal/concurrent/TaskQueue;->schedule(Lokhttp3/internal/concurrent/Task;J)V :goto_2 return-void .end method .method public priority(IIIZ)V .locals 0 return-void .end method .method public pushPromise(IILjava/util/List;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(II", "Ljava/util/List<", "Lokhttp3/internal/http2/Header;", ">;)V" } .end annotation const-string p1, "requestHeaders" invoke-static {p3, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 867 invoke-virtual {p0, p2, p3}, Lokhttp3/internal/http2/Http2Connection;->pushRequestLater$okhttp(ILjava/util/List;)V return-void .end method .method public rstStream(ILokhttp3/internal/http2/ErrorCode;)V .locals 1 const-string v0, "errorCode" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 706 invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Connection;->pushedStream$okhttp(I)Z move-result v0 if-eqz v0, :cond_0 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 707 invoke-virtual {p0, p1, p2}, Lokhttp3/internal/http2/Http2Connection;->pushResetLater$okhttp(ILokhttp3/internal/http2/ErrorCode;)V return-void :cond_0 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 710 invoke-virtual {p0, p1}, Lokhttp3/internal/http2/Http2Connection;->removeStream$okhttp(I)Lokhttp3/internal/http2/Http2Stream; move-result-object p0 if-eqz p0, :cond_1 .line 711 invoke-virtual {p0, p2}, Lokhttp3/internal/http2/Http2Stream;->receiveRstStream(Lokhttp3/internal/http2/ErrorCode;)V :cond_1 return-void .end method .method public settings(ZLokhttp3/internal/http2/Settings;)V .locals 10 const-string v0, "settings" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 715 invoke-static {v0}, Lokhttp3/internal/http2/Http2Connection;->access$getWriterQueue$p(Lokhttp3/internal/http2/Http2Connection;)Lokhttp3/internal/concurrent/TaskQueue; move-result-object v0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; invoke-virtual {v2}, Lokhttp3/internal/http2/Http2Connection;->getConnectionName$okhttp()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, " applyAndAckSettings" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 const/4 v6, 0x1 .line 1022 new-instance v1, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$settings$$inlined$execute$1; move-object v2, v1 move-object v3, v5 move v4, v6 move-object v7, p0 move v8, p1 move-object v9, p2 invoke-direct/range {v2 .. v9}, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable$settings$$inlined$execute$1;->(Ljava/lang/String;ZLjava/lang/String;ZLokhttp3/internal/http2/Http2Connection$ReaderRunnable;ZLokhttp3/internal/http2/Settings;)V check-cast v1, Lokhttp3/internal/concurrent/Task; const-wide/16 p0, 0x0 invoke-virtual {v0, v1, p0, p1}, Lokhttp3/internal/concurrent/TaskQueue;->schedule(Lokhttp3/internal/concurrent/Task;J)V return-void .end method .method public windowUpdate(IJ)V .locals 3 if-nez p1, :cond_1 iget-object p1, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 839 monitor-enter p1 :try_start_0 iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 840 invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection;->getWriteBytesMaximum()J move-result-wide v1 add-long/2addr v1, p2 invoke-static {v0, v1, v2}, Lokhttp3/internal/http2/Http2Connection;->access$setWriteBytesMaximum$p(Lokhttp3/internal/http2/Http2Connection;J)V iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; if-eqz p0, :cond_0 .line 1056 check-cast p0, Ljava/lang/Object; invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V .line 842 sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 839 monitor-exit p1 goto :goto_0 .line 1056 :cond_0 :try_start_1 new-instance p0, Ljava/lang/NullPointerException; const-string p2, "null cannot be cast to non-null type java.lang.Object" invoke-direct {p0, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :catchall_0 move-exception p0 .line 839 monitor-exit p1 throw p0 :cond_1 iget-object p0, p0, Lokhttp3/internal/http2/Http2Connection$ReaderRunnable;->this$0:Lokhttp3/internal/http2/Http2Connection; .line 844 invoke-virtual {p0, p1}, Lokhttp3/internal/http2/Http2Connection;->getStream(I)Lokhttp3/internal/http2/Http2Stream; move-result-object p0 if-eqz p0, :cond_2 .line 846 monitor-enter p0 .line 847 :try_start_2 invoke-virtual {p0, p2, p3}, Lokhttp3/internal/http2/Http2Stream;->addBytesToWriteWindow(J)V .line 848 sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 .line 846 monitor-exit p0 goto :goto_0 :catchall_1 move-exception p1 monitor-exit p0 throw p1 :cond_2 :goto_0 return-void .end method