Home
last modified time | relevance | path

Searched refs:bucketBoundaries (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java59 @NonNull float[] bucketBoundaries) { in AmbientBrightnessDayStats() argument
60 this(localDate, bucketBoundaries, null); in AmbientBrightnessDayStats()
72 @NonNull float[] bucketBoundaries, float[] stats) { in AmbientBrightnessDayStats() argument
74 Preconditions.checkNotNull(bucketBoundaries); in AmbientBrightnessDayStats()
75 Preconditions.checkArrayElementsInRange(bucketBoundaries, 0, Float.MAX_VALUE, in AmbientBrightnessDayStats()
77 if (bucketBoundaries.length < 1) { in AmbientBrightnessDayStats()
80 checkSorted(bucketBoundaries); in AmbientBrightnessDayStats()
82 stats = new float[bucketBoundaries.length]; in AmbientBrightnessDayStats()
85 if (bucketBoundaries.length != stats.length) { in AmbientBrightnessDayStats()
91 mBucketBoundaries = bucketBoundaries; in AmbientBrightnessDayStats()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java75 public IntHistogram(@NonNull int[] bucketBoundaries) { in IntHistogram() argument
76 if (bucketBoundaries == null || bucketBoundaries.length == 0) { in IntHistogram()
79 for (int i = 0; i < bucketBoundaries.length - 1; i++) { in IntHistogram()
80 int cur = bucketBoundaries[i]; in IntHistogram()
81 int next = bucketBoundaries[i + 1]; in IntHistogram()
90 mBucketBoundaries = bucketBoundaries.clone(); in IntHistogram()
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java235 String[] bucketBoundaries = parser.getAttributeValue(null, in readFromXML() local
239 if (bucketBoundaries.length != bucketStats.length in readFromXML()
240 || bucketBoundaries.length < 1) { in readFromXML()
243 float[] parsedBucketBoundaries = new float[bucketBoundaries.length]; in readFromXML()
245 for (int i = 0; i < bucketBoundaries.length; i++) { in readFromXML()
246 parsedBucketBoundaries[i] = Float.parseFloat(bucketBoundaries[i]); in readFromXML()