Home
last modified time | relevance | path

Searched refs:sbw (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java64 sbw = new double[n]; in LogHistParms()
66 sbw[0] = p * (m - 1.0) / (double) s; in LogHistParms()
69 sbw[i] = m * sbw[i - 1]; in LogHistParms()
83 public double[] sbw; // sub-bucket width field in MetricsUtils.LogHistParms
103 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
110 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
134 protoArray[i].start = (long) (hp.bb[key / hp.s] + hp.sbw[key / hp.s] * (key % hp.s)); in logHistogramToGenericBuckets()
135 protoArray[i].end = (long) (protoArray[i].start + hp.sbw[key / hp.s]); in logHistogramToGenericBuckets()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java814 collector.checkThat("HIST1.sbw[0]", HIST1.sbw[0], equalTo(1.0)); in testHistParamInit()
815 collector.checkThat("HIST1.sbw[1]", HIST1.sbw[1], equalTo(10.0)); in testHistParamInit()
816 collector.checkThat("HIST1.sbw[2]", HIST1.sbw[2], equalTo(100.0)); in testHistParamInit()
817 collector.checkThat("HIST1.sbw[3]", HIST1.sbw[3], equalTo(1000.0)); in testHistParamInit()
818 collector.checkThat("HIST1.sbw[4]", HIST1.sbw[4], equalTo(10000.0)); in testHistParamInit()
819 collector.checkThat("HIST1.sbw[5]", HIST1.sbw[5], equalTo(100000.0)); in testHistParamInit()
825 collector.checkThat("HIST2.sbw[0]", HIST2.sbw[0], equalTo(0.2)); in testHistParamInit()
826 collector.checkThat("HIST2.sbw[1]", HIST2.sbw[1], equalTo(1.0)); in testHistParamInit()
827 collector.checkThat("HIST2.sbw[2]", HIST2.sbw[2], equalTo(5.0)); in testHistParamInit()