ConnectionPool$1.smali
.class Lokhttp3/ConnectionPool$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/ConnectionPool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lokhttp3/ConnectionPool;
# direct methods
.method public constructor <init>(Lokhttp3/ConnectionPool;)V
.registers 2
iput-object p1, p0, Lokhttp3/ConnectionPool$1;->this$0:Lokhttp3/ConnectionPool;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 8
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v1
if-ne v0, v1, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
if-eqz v0, :cond_18
const-string v1, "run"
const-string v2, "okhttp3/ConnectionPool$1"
const-string v3, "runnable"
invoke-static {v1, v2, v3}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1
:cond_18
:goto_18
iget-object v1, p0, Lokhttp3/ConnectionPool$1;->this$0:Lokhttp3/ConnectionPool;
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Lokhttp3/ConnectionPool;->cleanup(J)J
move-result-wide v1
const-wide/16 v3, -0x1
cmp-long v5, v1, v3
if-nez v5, :cond_34
if-eqz v0, :cond_33
const-string v0, "run"
const-string v1, "okhttp3/ConnectionPool$1"
const-string v2, "runnable"
.line 2
invoke-static {v0, v1, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_33
return-void
:cond_34
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_18
const-wide/32 v3, 0xf4240
.line 3
div-long v5, v1, v3
mul-long v3, v3, v5
sub-long/2addr v1, v3
.line 4
iget-object v3, p0, Lokhttp3/ConnectionPool$1;->this$0:Lokhttp3/ConnectionPool;
monitor-enter v3
.line 5
:try_start_45
iget-object v4, p0, Lokhttp3/ConnectionPool$1;->this$0:Lokhttp3/ConnectionPool;
long-to-int v2, v1
invoke-virtual {v4, v5, v6, v2}, Ljava/lang/Object;->wait(JI)V
:try_end_4b
.catch Ljava/lang/InterruptedException; {:try_start_45 .. :try_end_4b} :catch_4e
.catchall {:try_start_45 .. :try_end_4b} :catchall_4c
goto :goto_4e
:catchall_4c
move-exception v1
goto :goto_50
.line 6
:catch_4e
:goto_4e
:try_start_4e
monitor-exit v3
goto :goto_18
:goto_50
monitor-exit v3
:try_end_51
.catchall {:try_start_4e .. :try_end_51} :catchall_4c
if-eqz v0, :cond_5c
const-string v0, "run"
const-string v2, "okhttp3/ConnectionPool$1"
const-string v3, "runnable"
invoke-static {v0, v2, v3}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_5c
throw v1
.end method