package org.webrtc; import java.util.HashMap; import java.util.Map; /* loaded from: classes3.dex */ public class Metrics { private static final String TAG = "Metrics"; public final Map map = new HashMap(); private static native void nativeEnable(); private static native Metrics nativeGetAndReset(); Metrics() { } /* loaded from: classes3.dex */ public static class HistogramInfo { public final int bucketCount; public final int max; public final int min; public final Map samples = new HashMap(); public HistogramInfo(int i, int i2, int i3) { this.min = i; this.max = i2; this.bucketCount = i3; } public void addSample(int i, int i2) { this.samples.put(Integer.valueOf(i), Integer.valueOf(i2)); } } private void add(String str, HistogramInfo histogramInfo) { this.map.put(str, histogramInfo); } public static void enable() { nativeEnable(); } public static Metrics getAndReset() { return nativeGetAndReset(); } }