a.smali
.class public final Lk0/a;
.super Lokhttp3/EventListener;
.source "NetEventListener.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lk0/a$a;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u0093\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\n\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0005*\u0001\u000b\u0008\u0000\u0018\u0000 N2\u00020\u0001:\u0001NB\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u00a2\u0006\u0002\u0010\u0006J\u0010\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u0018\u0010\u001e\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001f\u001a\u00020 H\u0016J\u0010\u0010!\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J*\u0010\"\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&2\u0008\u0010\'\u001a\u0004\u0018\u00010(H\u0016J2\u0010)\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&2\u0008\u0010\'\u001a\u0004\u0018\u00010(2\u0006\u0010\u001f\u001a\u00020 H\u0016J \u0010*\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020&H\u0016J\u0018\u0010+\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010,\u001a\u00020-H\u0016J\u0018\u0010.\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010,\u001a\u00020-H\u0016J\u0010\u0010/\u001a\u00020\u001b2\u0006\u00100\u001a\u000201H\u0002J&\u00102\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u00103\u001a\u0002012\u000c\u00104\u001a\u0008\u0012\u0004\u0012\u00020605H\u0016J\u0018\u00107\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u00103\u001a\u000201H\u0016J\u0010\u00108\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0002J\u0016\u00109\u001a\u00020\u001b2\u000c\u00104\u001a\u0008\u0012\u0004\u0012\u00020605H\u0002J\u0012\u0010:\u001a\u00020\u001b2\u0008\u0010;\u001a\u0004\u0018\u00010<H\u0002J\u0010\u0010=\u001a\u00020\u001b2\u0006\u0010>\u001a\u000201H\u0002J\u0018\u0010?\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010@\u001a\u00020\u0008H\u0016J\u0010\u0010A\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u0018\u0010B\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010C\u001a\u00020DH\u0016J\u0010\u0010E\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u0018\u0010F\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010@\u001a\u00020\u0008H\u0016J\u0010\u0010G\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u0018\u0010H\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010I\u001a\u00020JH\u0016J\u0010\u0010K\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u001a\u0010L\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0008\u0010;\u001a\u0004\u0018\u00010<H\u0016J\u0010\u0010M\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016R\u0010\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\n\u001a\u00020\u000bX\u0082\u0004\u00a2\u0006\u0004\n\u0002\u0010\u000cR\u000e\u0010\r\u001a\u00020\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u000eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0011\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0012\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0013\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0014\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0015\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0016\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0017\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\u0019X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006O"
}
d2 = {
"Lcom/argusapm/android/okhttp3/event/NetEventListener;",
"Lokhttp3/EventListener;",
"processManager",
"Lcom/argusapm/android/okhttp3/process/NetProcessManager;",
"customUrlSplitter",
"Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;",
"(Lcom/argusapm/android/okhttp3/process/NetProcessManager;Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;)V",
"mCallStartTimeStamp",
"",
"mDnsStartTimeStamp",
"mGetUrlProcessor",
"com/argusapm/android/okhttp3/event/NetEventListener$mGetUrlProcessor$1",
"Lcom/argusapm/android/okhttp3/event/NetEventListener$mGetUrlProcessor$1;",
"mHasNewConnectionCreated",
"",
"mHasRequestNetwork",
"mIsHttps",
"mReqBeenSentTimeStamp",
"mReqBodySentStartTimeStamp",
"mReqSentStartTimeStamp",
"mRespBodyStartTimeStamp",
"mRespStartTimeStamp",
"mSslStartTimeStamp",
"mTcpConnectStartTimeStamp",
"netInfo",
"Lcom/shopee/hamster/base/apm/api/net/NetInfo;",
"callEnd",
"",
"call",
"Lokhttp3/Call;",
"callFailed",
"ioe",
"Ljava/io/IOException;",
"callStart",
"connectEnd",
"inetSocketAddress",
"Ljava/net/InetSocketAddress;",
"proxy",
"Ljava/net/Proxy;",
"protocol",
"Lokhttp3/Protocol;",
"connectFailed",
"connectStart",
"connectionAcquired",
"connection",
"Lokhttp3/Connection;",
"connectionReleased",
"d",
"msg",
"",
"dnsEnd",
"domainName",
"inetAddressList",
"",
"Ljava/net/InetAddress;",
"dnsStart",
"endRecord",
"printDNSParseResult",
"printHandshakeInfo",
"handshake",
"Lokhttp3/Handshake;",
"processUrl",
"url",
"requestBodyEnd",
"byteCount",
"requestBodyStart",
"requestHeadersEnd",
"request",
"Lokhttp3/Request;",
"requestHeadersStart",
"responseBodyEnd",
"responseBodyStart",
"responseHeadersEnd",
"response",
"Lokhttp3/Response;",
"responseHeadersStart",
"secureConnectEnd",
"secureConnectStart",
"Companion",
"hamster-okhttp_release"
}
k = 0x1
mv = {
0x1,
0x4,
0x2
}
.end annotation
# instance fields
.field public final a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
.field public b:J
.field public c:J
.field public d:J
.field public e:J
.field public f:J
.field public g:J
.field public h:J
.field public i:J
.field public j:J
.field public k:Z
.field public l:Z
.field public m:Z
.field public final n:Lk0/a$b;
.field public final o:Ll0/b;
.field public final p:Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;
# direct methods
.method public static constructor <clinit>()V
.registers 2
new-instance v0, Lk0/a$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lk0/a$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(Ll0/b;Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;)V
.registers 11
const-string v0, "processManager"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Lokhttp3/EventListener;-><init>()V
iput-object p1, p0, Lk0/a;->o:Ll0/b;
iput-object p2, p0, Lk0/a;->p:Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;
new-instance p1, Lcom/shopee/hamster/base/apm/api/net/NetInfo;
const-string v2, "okhttp"
const-wide/16 v3, 0xbb9
const/4 v5, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move-object v1, p1
invoke-direct/range {v1 .. v7}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;-><init>(Ljava/lang/String;JLjava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
new-instance p1, Lk0/a$b;
invoke-direct {p1}, Lk0/a$b;-><init>()V
iput-object p1, p0, Lk0/a;->n:Lk0/a$b;
return-void
.end method
.method public static final synthetic a(Lk0/a;)Lcom/shopee/hamster/base/apm/api/net/NetInfo;
.registers 1
iget-object p0, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
return-object p0
.end method
# virtual methods
.method public final a(Ljava/lang/String;)V
.registers 7
sget-object v0, Lcom/shopee/hamster/base/log/HamsterLog;->INSTANCE:Lcom/shopee/hamster/base/log/HamsterLog;
sget-object v1, Lcom/shopee/hamster/base/apm/api/log/HamsterLogState;->DEBUG:Lcom/shopee/hamster/base/apm/api/log/HamsterLogState;
invoke-virtual {v0}, Lcom/shopee/hamster/base/log/HamsterLog;->getIntLevel()I
move-result v0
invoke-virtual {v1}, Lcom/shopee/hamster/base/apm/api/log/HamsterLogState;->getValue()I
move-result v1
if-lt v0, v1, :cond_40
sget-object v0, Lcom/shopee/hamster/base/log/HamsterLog;->INSTANCE:Lcom/shopee/hamster/base/log/HamsterLog;
invoke-virtual {v0}, Lcom/shopee/hamster/base/log/HamsterLog;->getProxy()Lcom/shopee/hamster/logger/ILogger;
move-result-object v0
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/String;
const/4 v2, 0x0
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "[rid="
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p0}, Lk0/a;->a(Lk0/a;)Lcom/shopee/hamster/base/apm/api/net/NetInfo;
move-result-object v4
invoke-virtual {v4}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getRid()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v4, 0x5d
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
aput-object p1, v1, v2
const-string p1, "NetEventListener"
invoke-interface {v0, p1, v1}, Lcom/shopee/hamster/logger/ILogger;->d(Ljava/lang/String;[Ljava/lang/String;)V
:cond_40
return-void
.end method
.method public final a(Ljava/util/List;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"+",
"Ljava/net/InetAddress;",
">;)V"
}
.end annotation
sget-object v0, Lcom/shopee/hamster/base/HamsterContext;->INSTANCE:Lcom/shopee/hamster/base/HamsterContext;
invoke-virtual {v0}, Lcom/shopee/hamster/base/HamsterContext;->isDebug()Z
move-result v0
if-eqz v0, :cond_43
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_11
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2a
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/net/InetAddress;
invoke-virtual {v1}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ","
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_11
:cond_2a
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "dnsEnd: ["
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v0, 0x5d
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
:cond_43
return-void
.end method
.method public final a(Lokhttp3/Call;)V
.registers 7
iget-boolean v0, p0, Lk0/a;->k:Z
if-eqz v0, :cond_36
sget-object v0, Lcom/shopee/hamster/netquality/NetQualityManager;->INSTANCE:Lcom/shopee/hamster/netquality/NetQualityManager;
invoke-virtual {v0}, Lcom/shopee/hamster/netquality/NetQualityManager;->getHasInit()Z
move-result v1
if-eqz v1, :cond_14
invoke-virtual {v0}, Lcom/shopee/hamster/netquality/NetQualityManager;->getSpeed()Lcom/shopee/hamster/netquality/speed/NetSpeedManager;
move-result-object v0
invoke-virtual {v0}, Lcom/shopee/hamster/netquality/speed/NetSpeedManager;->stopSampling()V
goto :goto_21
:cond_14
sget-object v0, Lcom/shopee/hamster/base/log/HamsterLog;->INSTANCE:Lcom/shopee/hamster/base/log/HamsterLog;
const-string v1, "call before init"
filled-new-array {v1}, [Ljava/lang/String;
move-result-object v1
const-string v2, "NetQualityManager"
invoke-virtual {v0, v2, v1}, Lcom/shopee/hamster/base/log/HamsterLog;->w(Ljava/lang/String;[Ljava/lang/String;)V
:goto_21
iget-object v0, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v1
iget-wide v3, p0, Lk0/a;->b:J
sub-long/2addr v1, v3
invoke-virtual {v0, v1, v2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTotalCost(J)V
iget-object v0, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/shopee/hamster/base/apm/api/info/BaseInfo;->setRecordTime(J)V
:cond_36
iget-object v0, p0, Lk0/a;->o:Ll0/b;
iget-boolean v1, p0, Lk0/a;->k:Z
invoke-virtual {v0, p1, v1}, Ll0/b;->a(Lokhttp3/Call;Z)V
return-void
.end method
.method public final a(Lokhttp3/Handshake;)V
.registers 4
sget-object v0, Lcom/shopee/hamster/base/HamsterContext;->INSTANCE:Lcom/shopee/hamster/base/HamsterContext;
invoke-virtual {v0}, Lcom/shopee/hamster/base/HamsterContext;->isDebug()Z
move-result v0
if-eqz v0, :cond_2b
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
if-eqz p1, :cond_17
const-string v1, ": "
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;
:cond_17
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "secureConnectEnd"
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
:cond_2b
return-void
.end method
.method public final b(Ljava/lang/String;)V
.registers 4
iget-object v0, p0, Lk0/a;->p:Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;
if-eqz v0, :cond_9
invoke-interface {v0, p1}, Lcom/shopee/hamster/base/apm/api/net/IUrlSplitter;->split(Ljava/lang/String;)Lkotlin/Pair;
move-result-object v0
goto :goto_a
:cond_9
const/4 v0, 0x0
:goto_a
if-eqz v0, :cond_23
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v0}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p1, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setUrl(Ljava/lang/String;)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v0}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setUrlParams(Ljava/lang/String;)V
return-void
:cond_23
iget-object v0, p0, Lk0/a;->n:Lk0/a$b;
invoke-virtual {v0, p1}, Lk0/a$b;->split(Ljava/lang/String;)Lkotlin/Pair;
move-result-object v0
if-eqz v0, :cond_42
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v0}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p1, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setUrl(Ljava/lang/String;)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v0}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {p1, v0}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setUrlParams(Ljava/lang/String;)V
return-void
:cond_42
iget-object v0, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v0, p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setUrl(Ljava/lang/String;)V
return-void
.end method
.method public callEnd(Lokhttp3/Call;)V
.registers 3
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->callEnd(Lokhttp3/Call;)V
invoke-virtual {p0, p1}, Lk0/a;->a(Lokhttp3/Call;)V
const-string p1, "callEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public callFailed(Lokhttp3/Call;Ljava/io/IOException;)V
.registers 4
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "ioe"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->callFailed(Lokhttp3/Call;Ljava/io/IOException;)V
iget-object v0, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {p2, v0}, Lj0/a;->a(Ljava/io/IOException;Lcom/shopee/hamster/base/apm/api/net/NetInfo;)V
invoke-virtual {p0, p1}, Lk0/a;->a(Lokhttp3/Call;)V
const-string p1, "callFailed"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public callStart(Lokhttp3/Call;)V
.registers 6
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->callStart(Lokhttp3/Call;)V
const-class v0, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
invoke-static {v0}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
if-eqz v0, :cond_20
invoke-interface {p1}, Lokhttp3/Call;->request()Lokhttp3/Request;
move-result-object v1
const-string v2, "call.request()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v0, v1}, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;->url(Lokhttp3/Request;)Lokhttp3/HttpUrl;
move-result-object v0
goto :goto_21
:cond_20
const/4 v0, 0x0
:goto_21
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v1
iput-wide v1, p0, Lk0/a;->b:J
iget-object v1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setStartTime(J)V
invoke-virtual {p0, v0}, Lk0/a;->b(Ljava/lang/String;)V
iget-object v1, p0, Lk0/a;->o:Ll0/b;
sget-object v2, Lcom/shopee/hamster/net/process/NetProcessInfo;->Companion:Lcom/shopee/hamster/net/process/NetProcessInfo$Companion;
iget-object v3, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {v2, v3}, Lcom/shopee/hamster/net/process/NetProcessInfo$Companion;->build(Lcom/shopee/hamster/base/apm/api/net/NetInfo;)Lcom/shopee/hamster/net/process/NetProcessInfo;
move-result-object v2
invoke-virtual {v1, p1, v2}, Ll0/b;->a(Lokhttp3/Call;Lcom/shopee/hamster/net/process/NetProcessInfo;)V
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "callStart: "
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public connectEnd(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
.registers 9
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "inetSocketAddress"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "proxy"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3, p4}, Lokhttp3/EventListener;->connectEnd(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
iget-boolean p1, p0, Lk0/a;->m:Z
if-nez p1, :cond_36
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide p3
invoke-virtual {p2, p3, p4}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide p2
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide p2
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lk0/a;->d:J
sub-long/2addr v0, v2
add-long/2addr p2, v0
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
:cond_36
const-string p1, "connectEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public connectFailed(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;Ljava/io/IOException;)V
.registers 8
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "inetSocketAddress"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "proxy"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "ioe"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super/range {p0 .. p5}, Lokhttp3/EventListener;->connectFailed(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;Ljava/io/IOException;)V
iget-boolean p1, p0, Lk0/a;->m:Z
if-nez p1, :cond_3b
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide p3
invoke-virtual {p2, p3, p4}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide p2
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide p2
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide p4
iget-wide v0, p0, Lk0/a;->d:J
sub-long/2addr p4, v0
add-long/2addr p2, p4
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
:cond_3b
const-string p1, "connectFailed"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public connectStart(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;)V
.registers 6
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "inetSocketAddress"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "proxy"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3}, Lokhttp3/EventListener;->connectStart(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;)V
const/4 p1, 0x1
iput-boolean p1, p0, Lk0/a;->k:Z
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->d:J
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p3, "connectStart: addr="
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/net/InetSocketAddress;->getAddress()Ljava/net/InetAddress;
move-result-object p2
const-string p3, "inetSocketAddress.address"
invoke-static {p2, p3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p2}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public connectionAcquired(Lokhttp3/Call;Lokhttp3/Connection;)V
.registers 7
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "connection"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->connectionAcquired(Lokhttp3/Call;Lokhttp3/Connection;)V
:try_start_d
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-interface {p2}, Lokhttp3/Connection;->socket()Ljava/net/Socket;
move-result-object p2
const-string v0, "connection.socket()"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p2}, Ljava/net/Socket;->getInetAddress()Ljava/net/InetAddress;
move-result-object p2
const-string v0, "connection.socket().inetAddress"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p2}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setDstIp(Ljava/lang/String;)V
:try_end_28
.catch Ljava/lang/Exception; {:try_start_d .. :try_end_28} :catch_29
goto :goto_2a
:catch_29
nop
:goto_2a
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getRetryAndFollowUpCount()I
move-result p2
add-int/lit8 p2, p2, 0x1
invoke-virtual {p1, p2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setRetryAndFollowUpCount(I)V
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getRetryAndFollowUpCount()I
iget-boolean p1, p0, Lk0/a;->l:Z
if-nez p1, :cond_48
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lk0/a;->b:J
sub-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setQueueingCost(J)V
:cond_48
const-string p1, "connectionAcquired"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public connectionReleased(Lokhttp3/Call;Lokhttp3/Connection;)V
.registers 4
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "connection"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->connectionReleased(Lokhttp3/Call;Lokhttp3/Connection;)V
const-string p1, "connectionReleased"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public dnsEnd(Lokhttp3/Call;Ljava/lang/String;Ljava/util/List;)V
.registers 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Call;",
"Ljava/lang/String;",
"Ljava/util/List<",
"+",
"Ljava/net/InetAddress;",
">;)V"
}
.end annotation
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "domainName"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "inetAddressList"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3}, Lokhttp3/EventListener;->dnsEnd(Lokhttp3/Call;Ljava/lang/String;Ljava/util/List;)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getDnsCost()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setDnsCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getDnsCost()J
move-result-wide v0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
iget-wide v4, p0, Lk0/a;->c:J
sub-long/2addr v2, v4
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setDnsCost(J)V
invoke-virtual {p0, p3}, Lk0/a;->a(Ljava/util/List;)V
return-void
.end method
.method public dnsStart(Lokhttp3/Call;Ljava/lang/String;)V
.registers 7
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "domainName"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->dnsStart(Lokhttp3/Call;Ljava/lang/String;)V
const/4 p1, 0x1
iput-boolean p1, p0, Lk0/a;->k:Z
iput-boolean p1, p0, Lk0/a;->l:Z
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->c:J
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
iget-wide v2, p0, Lk0/a;->b:J
sub-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setQueueingCost(J)V
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "dnsStart: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public requestBodyEnd(Lokhttp3/Call;J)V
.registers 8
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3}, Lokhttp3/EventListener;->requestBodyEnd(Lokhttp3/Call;J)V
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->h:J
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getSentBytes()J
move-result-wide v0
add-long/2addr v0, p2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setSentBytes(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReqCost()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide p2
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReqCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReqCost()J
move-result-wide p2
iget-wide v0, p0, Lk0/a;->h:J
iget-wide v2, p0, Lk0/a;->g:J
sub-long/2addr v0, v2
add-long/2addr p2, v0
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReqCost(J)V
const-string p1, "requestBodyEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public requestBodyStart(Lokhttp3/Call;)V
.registers 4
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->requestBodyStart(Lokhttp3/Call;)V
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->g:J
const-string p1, "requestBodyStart"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public requestHeadersEnd(Lokhttp3/Call;Lokhttp3/Request;)V
.registers 9
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "request"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->requestHeadersEnd(Lokhttp3/Call;Lokhttp3/Request;)V
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->h:J
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getSentBytes()J
move-result-wide v0
const-class v2, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
invoke-static {v2}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
if-eqz v2, :cond_2e
invoke-interface {v2, p2}, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;->headers(Lokhttp3/Request;)Lokhttp3/Headers;
move-result-object p2
if-eqz p2, :cond_2e
invoke-virtual {p2}, Lokhttp3/Headers;->byteCount()J
move-result-wide v2
goto :goto_30
:cond_2e
const-wide/16 v2, 0x0
:goto_30
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setSentBytes(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReqCost()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReqCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReqCost()J
move-result-wide v0
iget-wide v2, p0, Lk0/a;->h:J
iget-wide v4, p0, Lk0/a;->f:J
sub-long/2addr v2, v4
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReqCost(J)V
const-string p1, "requestHeadersEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public requestHeadersStart(Lokhttp3/Call;)V
.registers 4
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->requestHeadersStart(Lokhttp3/Call;)V
const/4 p1, 0x1
iput-boolean p1, p0, Lk0/a;->k:Z
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->f:J
const-string p1, "requestHeadersStart"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public responseBodyEnd(Lokhttp3/Call;J)V
.registers 8
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2, p3}, Lokhttp3/EventListener;->responseBodyEnd(Lokhttp3/Call;J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReceivedBytes()J
move-result-wide v0
add-long/2addr v0, p2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReceivedBytes(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getContentDownloadCost()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide p2
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setContentDownloadCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getContentDownloadCost()J
move-result-wide p2
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lk0/a;->j:J
sub-long/2addr v0, v2
add-long/2addr p2, v0
invoke-virtual {p1, p2, p3}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setContentDownloadCost(J)V
const-string p1, "responseBodyEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public responseBodyStart(Lokhttp3/Call;)V
.registers 4
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->responseBodyStart(Lokhttp3/Call;)V
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->j:J
const-string p1, "responseBodyStart"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public responseHeadersEnd(Lokhttp3/Call;Lokhttp3/Response;)V
.registers 9
const-class v0, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
const-string v1, "call"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "response"
invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->responseHeadersEnd(Lokhttp3/Call;Lokhttp3/Response;)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getReceivedBytes()J
move-result-wide v1
invoke-static {v0}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
if-eqz v3, :cond_28
invoke-interface {v3, p2}, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;->headers(Lokhttp3/Response;)Lokhttp3/Headers;
move-result-object v3
if-eqz v3, :cond_28
invoke-virtual {v3}, Lokhttp3/Headers;->byteCount()J
move-result-wide v3
goto :goto_2a
:cond_28
const-wide/16 v3, 0x0
:goto_2a
add-long/2addr v1, v3
invoke-virtual {p1, v1, v2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setReceivedBytes(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-static {v0}, Ltb/b;->b(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;
if-eqz v0, :cond_3d
invoke-interface {v0, p2}, Lcom/argusapm/android/okhttp3/adapter/IOkHttpAdapter;->code(Lokhttp3/Response;)I
move-result p2
goto :goto_3e
:cond_3d
const/4 p2, 0x0
:goto_3e
invoke-virtual {p1, p2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setStatusCode(I)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object p2, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getContentDownloadCost()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setContentDownloadCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getContentDownloadCost()J
move-result-wide v0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
iget-wide v4, p0, Lk0/a;->i:J
sub-long/2addr v2, v4
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setContentDownloadCost(J)V
const-string p1, "responseHeadersEnd"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public responseHeadersStart(Lokhttp3/Call;)V
.registers 6
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->responseHeadersStart(Lokhttp3/Call;)V
sget-object p1, Lcom/shopee/hamster/netquality/NetQualityManager;->INSTANCE:Lcom/shopee/hamster/netquality/NetQualityManager;
invoke-virtual {p1}, Lcom/shopee/hamster/netquality/NetQualityManager;->getHasInit()Z
move-result v0
if-eqz v0, :cond_18
invoke-virtual {p1}, Lcom/shopee/hamster/netquality/NetQualityManager;->getSpeed()Lcom/shopee/hamster/netquality/speed/NetSpeedManager;
move-result-object p1
invoke-virtual {p1}, Lcom/shopee/hamster/netquality/speed/NetSpeedManager;->startSampling()V
goto :goto_25
:cond_18
sget-object p1, Lcom/shopee/hamster/base/log/HamsterLog;->INSTANCE:Lcom/shopee/hamster/base/log/HamsterLog;
const-string v0, "call before init"
filled-new-array {v0}, [Ljava/lang/String;
move-result-object v0
const-string v1, "NetQualityManager"
invoke-virtual {p1, v1, v0}, Lcom/shopee/hamster/base/log/HamsterLog;->w(Ljava/lang/String;[Ljava/lang/String;)V
:goto_25
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->i:J
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
iget-wide v2, p0, Lk0/a;->h:J
sub-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setWaitingTTFBCost(J)V
const-string p1, "responseHeadersStart"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public secureConnectEnd(Lokhttp3/Call;Lokhttp3/Handshake;)V
.registers 9
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1, p2}, Lokhttp3/EventListener;->secureConnectEnd(Lokhttp3/Call;Lokhttp3/Handshake;)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object v0, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getSslCost()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setSslCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getSslCost()J
move-result-wide v0
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
iget-wide v4, p0, Lk0/a;->e:J
sub-long/2addr v2, v4
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setSslCost(J)V
invoke-virtual {p0, p2}, Lk0/a;->a(Lokhttp3/Handshake;)V
return-void
.end method
.method public secureConnectStart(Lokhttp3/Call;)V
.registers 8
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-super {p0, p1}, Lokhttp3/EventListener;->secureConnectStart(Lokhttp3/Call;)V
const/4 p1, 0x1
iput-boolean p1, p0, Lk0/a;->m:Z
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lk0/a;->e:J
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
sget-object v0, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->Companion:Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide v1
invoke-virtual {v0, v1, v2}, Lcom/shopee/hamster/base/apm/api/net/NetInfo$Companion;->initCost(J)J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
iget-object p1, p0, Lk0/a;->a:Lcom/shopee/hamster/base/apm/api/net/NetInfo;
invoke-virtual {p1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->getTcpConnectCost()J
move-result-wide v0
iget-wide v2, p0, Lk0/a;->e:J
iget-wide v4, p0, Lk0/a;->d:J
sub-long/2addr v2, v4
add-long/2addr v0, v2
invoke-virtual {p1, v0, v1}, Lcom/shopee/hamster/base/apm/api/net/NetInfo;->setTcpConnectCost(J)V
const-string p1, "secureConnectStart"
invoke-virtual {p0, p1}, Lk0/a;->a(Ljava/lang/String;)V
return-void
.end method