Searched refs:numBuckets (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/com/android/internal/util/ |
D | ExponentiallyBucketedHistogram.java | 38 public ExponentiallyBucketedHistogram(@IntRange(from = 1, to = 31) int numBuckets) { in ExponentiallyBucketedHistogram() 39 numBuckets = Preconditions.checkArgumentInRange(numBuckets, 1, 31, "numBuckets"); in ExponentiallyBucketedHistogram() 41 mData = new int[numBuckets]; in ExponentiallyBucketedHistogram()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuThreadReader.java | 129 int numBuckets, in KernelCpuThreadReader() argument 139 setNumBuckets(numBuckets); in KernelCpuThreadReader() 148 public static KernelCpuThreadReader create(int numBuckets, Predicate<Integer> uidPredicate) { in create() argument 151 numBuckets, in create() 226 void setNumBuckets(int numBuckets) { in setNumBuckets() argument 227 if (numBuckets < 1) { in setNumBuckets() 228 Slog.w(TAG, "Number of buckets must be at least 1, but was " + numBuckets); in setNumBuckets() 232 if (mFrequenciesKhz != null && mFrequenciesKhz.length == numBuckets) { in setNumBuckets() 236 new FrequencyBucketCreator(mProcTimeInStateReader.getFrequenciesKhz(), numBuckets); in setNumBuckets()
|
D | MemoryPowerCalculator.java | 14 int numBuckets = profile.getNumElements(PowerProfile.POWER_MEMORY); in MemoryPowerCalculator() local 15 powerAverages = new double[numBuckets]; in MemoryPowerCalculator() 16 for (int i = 0; i < numBuckets; i++) { in MemoryPowerCalculator()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BackgroundScanSchedulerTest.java | 692 private void assertBuckets(WifiNative.ScanSettings schedule, int numBuckets) { in assertBuckets() argument 693 assertEquals("num_buckets", numBuckets, schedule.num_buckets); in assertBuckets() 697 for (int i = 0; i < numBuckets; i++) { in assertBuckets()
|