43 lines
1.0 KiB
Java
43 lines
1.0 KiB
Java
package org.webrtc;
|
|
|
|
import c.d.b.a.a;
|
|
import java.util.Map;
|
|
public class RTCStatsReport {
|
|
private final Map<String, RTCStats> stats;
|
|
private final long timestampUs;
|
|
|
|
public RTCStatsReport(long j, Map<String, RTCStats> map) {
|
|
this.timestampUs = j;
|
|
this.stats = map;
|
|
}
|
|
|
|
@CalledByNative
|
|
private static RTCStatsReport create(long j, Map map) {
|
|
return new RTCStatsReport(j, map);
|
|
}
|
|
|
|
public Map<String, RTCStats> getStatsMap() {
|
|
return this.stats;
|
|
}
|
|
|
|
public double getTimestampUs() {
|
|
return (double) this.timestampUs;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = a.K("{ timestampUs: ");
|
|
K.append(this.timestampUs);
|
|
K.append(", stats: [\n");
|
|
boolean z2 = true;
|
|
for (RTCStats rTCStats : this.stats.values()) {
|
|
if (!z2) {
|
|
K.append(",\n");
|
|
}
|
|
K.append(rTCStats);
|
|
z2 = false;
|
|
}
|
|
K.append(" ] }");
|
|
return K.toString();
|
|
}
|
|
}
|