Searched refs:mHistogram (Results 1 – 3 of 3) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyHistogramTest.java | 29 private TelephonyHistogram mHistogram = null; field in TelephonyHistogramTest 33 mHistogram = null; in tearDown() 38 mHistogram = new TelephonyHistogram(TelephonyHistogram.TELEPHONY_CATEGORY_RIL, 1, 3); in setUp() 44 assertEquals(TelephonyHistogram.TELEPHONY_CATEGORY_RIL, mHistogram.getCategory()); in testTelephonyHistogramConstructor() 45 assertEquals(1, mHistogram.getId()); in testTelephonyHistogramConstructor() 46 assertEquals(Integer.MAX_VALUE, mHistogram.getMinTime()); in testTelephonyHistogramConstructor() 47 assertEquals(0, mHistogram.getMaxTime()); in testTelephonyHistogramConstructor() 48 assertEquals(0, mHistogram.getAverageTime()); in testTelephonyHistogramConstructor() 49 assertEquals(0, mHistogram.getSampleCount()); in testTelephonyHistogramConstructor() 50 assertEquals(3, mHistogram.getBucketCount()); in testTelephonyHistogramConstructor() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | IntHistogramTest.java | 48 private IntHistogram mHistogram; field in IntHistogramTest 53 mHistogram = null; in setUp() 57 mHistogram.increment(value); in incrementValueAndVerify() 59 mHistogram.getBucketByIndex(expectedBucketIndex).count, equalTo(expectedCount)); in incrementValueAndVerify() 67 mHistogram = new IntHistogram(TEST_BUCKET_BOUNDARIES); in testAddToHistogram() 87 mHistogram.numNonEmptyBuckets(), equalTo(TEST_BUCKET_BOUNDARIES.length + 1)); in testAddToHistogram() 92 mHistogram.toString(), equalTo(expectedStr)); in testAddToHistogram() 94 HistogramBucketInt32[] actualProto = mHistogram.toProto(); in testAddToHistogram() 111 mHistogram = new IntHistogram(TEST_BUCKET_BOUNDARIES); in testAddToHistogramWithGap() 129 mHistogram.numNonEmptyBuckets(), equalTo(4)); in testAddToHistogramWithGap() [all …]
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | ColorCutQuantizer.java | 77 int[] mHistogram; field in ColorCutQuantizer 95 final int[] hist = mHistogram = new int[1 << (QUANTIZE_WORD_WIDTH * 3)]; in quantize() 266 final int[] hist = mHistogram; in fitBox() 362 final int[] hist = mHistogram; in findSplitPoint() 393 final int[] hist = mHistogram; in getAverageColor()
|