Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java60 sbw = new double[n]; in LogHistParms()
62 sbw[0] = p * (m - 1.0) / (double) s; in LogHistParms()
65 sbw[i] = m * sbw[i - 1]; in LogHistParms()
79 public double[] sbw; // sub-bucket width field in MetricsUtils.LogHistParms
99 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
106 subBucketIndex = (int) ((x - hp.bb[bigBucketIndex]) / hp.sbw[bigBucketIndex]); in addValueToLogHistogram()
130 protoArray[i].start = (long) (hp.bb[key / hp.s] + hp.sbw[key / hp.s] * (key % hp.s)); in logHistogramToGenericBuckets()
131 protoArray[i].end = (long) (protoArray[i].start + hp.sbw[key / hp.s]); in logHistogramToGenericBuckets()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java545 collector.checkThat("HIST1.sbw[0]", HIST1.sbw[0], equalTo(1.0)); in testHistParamInit()
546 collector.checkThat("HIST1.sbw[1]", HIST1.sbw[1], equalTo(10.0)); in testHistParamInit()
547 collector.checkThat("HIST1.sbw[2]", HIST1.sbw[2], equalTo(100.0)); in testHistParamInit()
548 collector.checkThat("HIST1.sbw[3]", HIST1.sbw[3], equalTo(1000.0)); in testHistParamInit()
549 collector.checkThat("HIST1.sbw[4]", HIST1.sbw[4], equalTo(10000.0)); in testHistParamInit()
550 collector.checkThat("HIST1.sbw[5]", HIST1.sbw[5], equalTo(100000.0)); in testHistParamInit()
556 collector.checkThat("HIST2.sbw[0]", HIST2.sbw[0], equalTo(0.2)); in testHistParamInit()
557 collector.checkThat("HIST2.sbw[1]", HIST2.sbw[1], equalTo(1.0)); in testHistParamInit()
558 collector.checkThat("HIST2.sbw[2]", HIST2.sbw[2], equalTo(5.0)); in testHistParamInit()