.class public Lorg/webrtc/RTCStats; .super Ljava/lang/Object; .source "RTCStats.java" # instance fields .field private final id:Ljava/lang/String; .field private final members:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;" } .end annotation .end field .field private final timestampUs:J .field private final type:Ljava/lang/String; # direct methods .method public constructor (JLjava/lang/String;Ljava/lang/String;Ljava/util/Map;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(J", "Ljava/lang/String;", "Ljava/lang/String;", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;)V" } .end annotation .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V iput-wide p1, p0, Lorg/webrtc/RTCStats;->timestampUs:J iput-object p3, p0, Lorg/webrtc/RTCStats;->type:Ljava/lang/String; iput-object p4, p0, Lorg/webrtc/RTCStats;->id:Ljava/lang/String; iput-object p5, p0, Lorg/webrtc/RTCStats;->members:Ljava/util/Map; return-void .end method .method private static appendValue(Ljava/lang/StringBuilder;Ljava/lang/Object;)V .locals 2 .line 90 instance-of v0, p1, [Ljava/lang/Object; if-eqz v0, :cond_2 .line 91 check-cast p1, [Ljava/lang/Object; const/16 v0, 0x5b .line 92 invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; const/4 v0, 0x0 .line 93 :goto_0 array-length v1, p1 if-ge v0, v1, :cond_1 if-eqz v0, :cond_0 const-string v1, ", " .line 95 invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 97 :cond_0 aget-object v1, p1, v0 invoke-static {p0, v1}, Lorg/webrtc/RTCStats;->appendValue(Ljava/lang/StringBuilder;Ljava/lang/Object;)V add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_1 const/16 p1, 0x5d .line 99 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; goto :goto_1 .line 100 :cond_2 instance-of v0, p1, Ljava/lang/String; if-eqz v0, :cond_3 const/16 v0, 0x22 .line 102 invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; goto :goto_1 .line 104 :cond_3 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; :goto_1 return-void .end method .method static create(JLjava/lang/String;Ljava/lang/String;Ljava/util/Map;)Lorg/webrtc/RTCStats; .locals 7 .line 112 new-instance v6, Lorg/webrtc/RTCStats; move-object v0, v6 move-wide v1, p0 move-object v3, p2 move-object v4, p3 move-object v5, p4 invoke-direct/range {v0 .. v5}, Lorg/webrtc/RTCStats;->(JLjava/lang/String;Ljava/lang/String;Ljava/util/Map;)V return-object v6 .end method # virtual methods .method public getId()Ljava/lang/String; .locals 0 iget-object p0, p0, Lorg/webrtc/RTCStats;->id:Ljava/lang/String; return-object p0 .end method .method public getMembers()Ljava/util/Map; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;" } .end annotation iget-object p0, p0, Lorg/webrtc/RTCStats;->members:Ljava/util/Map; return-object p0 .end method .method public getTimestampUs()D .locals 2 iget-wide v0, p0, Lorg/webrtc/RTCStats;->timestampUs:J long-to-double v0, v0 return-wide v0 .end method .method public getType()Ljava/lang/String; .locals 0 iget-object p0, p0, Lorg/webrtc/RTCStats;->type:Ljava/lang/String; return-object p0 .end method .method public toString()Ljava/lang/String; .locals 4 .line 73 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "{ timestampUs: " .line 74 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-wide v2, p0, Lorg/webrtc/RTCStats;->timestampUs:J .line 75 invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, ", type: " .line 76 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Lorg/webrtc/RTCStats;->type:Ljava/lang/String; .line 77 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, ", id: " .line 78 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget-object v2, p0, Lorg/webrtc/RTCStats;->id:Ljava/lang/String; .line 79 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object p0, p0, Lorg/webrtc/RTCStats;->members:Ljava/util/Map; .line 81 invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p0 invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p0 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_0 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/util/Map$Entry; const-string v2, ", " .line 82 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/String; invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 const-string v3, ": " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 83 invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v1 invoke-static {v0, v1}, Lorg/webrtc/RTCStats;->appendValue(Ljava/lang/StringBuilder;Ljava/lang/Object;)V goto :goto_0 :cond_0 const-string p0, " }" .line 85 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 86 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method