public class android.net.metrics.NetworkMetrics
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: android.net.metrics.NetworkMetrics
super_class: java.lang.Object
{
private static final int INITIAL_DNS_BATCH_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private static final int CONNECT_LATENCY_MAXIMUM_RECORDS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 20000
public final int netId;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final long transports;
descriptor: J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final android.net.metrics.ConnectStats connectMetrics;
descriptor: Landroid/net/metrics/ConnectStats;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final android.net.metrics.DnsEvent dnsMetrics;
descriptor: Landroid/net/metrics/DnsEvent;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final android.net.metrics.NetworkMetrics$Summary summary;
descriptor: Landroid/net/metrics/NetworkMetrics$Summary;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public android.net.metrics.NetworkMetrics$Summary pendingSummary;
descriptor: Landroid/net/metrics/NetworkMetrics$Summary;
flags: (0x0001) ACC_PUBLIC
public void <init>(int, long, com.android.internal.util.TokenBucket);
descriptor: (IJLcom/android/internal/util/TokenBucket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield android.net.metrics.NetworkMetrics.netId:I
2: aload 0
lload 2
putfield android.net.metrics.NetworkMetrics.transports:J
3: aload 0
4: new android.net.metrics.ConnectStats
dup
iload 1
lload 2
aload 4
sipush 20000
invokespecial android.net.metrics.ConnectStats.<init>:(IJLcom/android/internal/util/TokenBucket;I)V
5: putfield android.net.metrics.NetworkMetrics.connectMetrics:Landroid/net/metrics/ConnectStats;
6: aload 0
new android.net.metrics.DnsEvent
dup
iload 1
lload 2
bipush 100
invokespecial android.net.metrics.DnsEvent.<init>:(IJI)V
putfield android.net.metrics.NetworkMetrics.dnsMetrics:Landroid/net/metrics/DnsEvent;
7: aload 0
new android.net.metrics.NetworkMetrics$Summary
dup
iload 1
lload 2
invokespecial android.net.metrics.NetworkMetrics$Summary.<init>:(IJ)V
putfield android.net.metrics.NetworkMetrics.summary:Landroid/net/metrics/NetworkMetrics$Summary;
8: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Landroid/net/metrics/NetworkMetrics;
0 9 1 netId I
0 9 2 transports J
0 9 4 tb Lcom/android/internal/util/TokenBucket;
MethodParameters:
Name Flags
netId
transports
tb
public android.net.metrics.NetworkMetrics$Summary getPendingStats();
descriptor: ()Landroid/net/metrics/NetworkMetrics$Summary;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
astore 1
start local 1 1: aload 0
aconst_null
putfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
2: aload 1
ifnull 4
3: aload 0
getfield android.net.metrics.NetworkMetrics.summary:Landroid/net/metrics/NetworkMetrics$Summary;
aload 1
invokevirtual android.net.metrics.NetworkMetrics$Summary.merge:(Landroid/net/metrics/NetworkMetrics$Summary;)V
4: StackMap locals: android.net.metrics.NetworkMetrics$Summary
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Landroid/net/metrics/NetworkMetrics;
1 5 1 s Landroid/net/metrics/NetworkMetrics$Summary;
public void addDnsResult(int, int, int);
descriptor: (III)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
ifnonnull 2
1: aload 0
new android.net.metrics.NetworkMetrics$Summary
dup
aload 0
getfield android.net.metrics.NetworkMetrics.netId:I
aload 0
getfield android.net.metrics.NetworkMetrics.transports:J
invokespecial android.net.metrics.NetworkMetrics$Summary.<init>:(IJ)V
putfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
2: StackMap locals:
StackMap stack:
aload 0
getfield android.net.metrics.NetworkMetrics.dnsMetrics:Landroid/net/metrics/DnsEvent;
iload 1
i2b
iload 2
i2b
iload 3
invokevirtual android.net.metrics.DnsEvent.addResult:(BBI)Z
istore 4
start local 4 3: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.dnsLatencies:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 3
i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
4: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.dnsErrorRate:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 4
ifeq 5
iconst_0
goto 6
StackMap locals: android.net.metrics.NetworkMetrics int int int int
StackMap stack: android.net.metrics.NetworkMetrics$Metrics
5: iconst_1
StackMap locals: android.net.metrics.NetworkMetrics int int int int
StackMap stack: android.net.metrics.NetworkMetrics$Metrics int
6: i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Landroid/net/metrics/NetworkMetrics;
0 8 1 eventType I
0 8 2 returnCode I
0 8 3 latencyMs I
3 8 4 isSuccess Z
MethodParameters:
Name Flags
eventType
returnCode
latencyMs
public void addConnectResult(int, int, java.lang.String);
descriptor: (IILjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
ifnonnull 2
1: aload 0
new android.net.metrics.NetworkMetrics$Summary
dup
aload 0
getfield android.net.metrics.NetworkMetrics.netId:I
aload 0
getfield android.net.metrics.NetworkMetrics.transports:J
invokespecial android.net.metrics.NetworkMetrics$Summary.<init>:(IJ)V
putfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
2: StackMap locals:
StackMap stack:
aload 0
getfield android.net.metrics.NetworkMetrics.connectMetrics:Landroid/net/metrics/ConnectStats;
iload 1
iload 2
aload 3
invokevirtual android.net.metrics.ConnectStats.addEvent:(IILjava/lang/String;)Z
istore 4
start local 4 3: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.connectErrorRate:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 4
ifeq 4
iconst_0
goto 5
StackMap locals: android.net.metrics.NetworkMetrics int int java.lang.String int
StackMap stack: android.net.metrics.NetworkMetrics$Metrics
4: iconst_1
StackMap locals: android.net.metrics.NetworkMetrics int int java.lang.String int
StackMap stack: android.net.metrics.NetworkMetrics$Metrics int
5: i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
6: iload 1
invokestatic android.net.metrics.ConnectStats.isNonBlocking:(I)Z
ifeq 8
7: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.connectLatencies:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 2
i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
8: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Landroid/net/metrics/NetworkMetrics;
0 9 1 error I
0 9 2 latencyMs I
0 9 3 ipAddr Ljava/lang/String;
3 9 4 isSuccess Z
MethodParameters:
Name Flags
error
latencyMs
ipAddr
public void addTcpStatsResult(int, int, int, int);
descriptor: (IIII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
ifnonnull 2
1: aload 0
new android.net.metrics.NetworkMetrics$Summary
dup
aload 0
getfield android.net.metrics.NetworkMetrics.netId:I
aload 0
getfield android.net.metrics.NetworkMetrics.transports:J
invokespecial android.net.metrics.NetworkMetrics$Summary.<init>:(IJ)V
putfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
2: StackMap locals:
StackMap stack:
aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.tcpLossRate:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 2
i2d
iload 1
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(DI)V
3: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.roundTripTimeUs:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 3
i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
4: aload 0
getfield android.net.metrics.NetworkMetrics.pendingSummary:Landroid/net/metrics/NetworkMetrics$Summary;
getfield android.net.metrics.NetworkMetrics$Summary.sentAckTimeDiffenceMs:Landroid/net/metrics/NetworkMetrics$Metrics;
iload 4
i2d
invokevirtual android.net.metrics.NetworkMetrics$Metrics.count:(D)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Landroid/net/metrics/NetworkMetrics;
0 6 1 sent I
0 6 2 lost I
0 6 3 rttUs I
0 6 4 sentAckDiffMs I
MethodParameters:
Name Flags
sent
lost
rttUs
sentAckDiffMs
}
SourceFile: "NetworkMetrics.java"
NestMembers:
android.net.metrics.NetworkMetrics$Metrics android.net.metrics.NetworkMetrics$Summary
InnerClasses:
Metrics = android.net.metrics.NetworkMetrics$Metrics of android.net.metrics.NetworkMetrics
public Summary = android.net.metrics.NetworkMetrics$Summary of android.net.metrics.NetworkMetrics