Searched refs:thresholdLevels (Results 1 – 2 of 2) sorted by relevance
114 private float getReferenceLevel(float value, float[] thresholdLevels, in getReferenceLevel() argument116 if (thresholdLevels == null || thresholdLevels.length == 0 || value < thresholdLevels[0]) { in getReferenceLevel()120 while (index < thresholdLevels.length - 1 && value >= thresholdLevels[index + 1]) { in getReferenceLevel()
2883 float[] thresholdLevels = new float[size]; in getBrightnessLevelAndPercentage() local2888 thresholdLevels[i] = point.getThreshold().floatValue(); in getBrightnessLevelAndPercentage()2892 return new Pair<>(thresholdLevels, thresholdPercentages); in getBrightnessLevelAndPercentage()2948 private float[] constraintInRangeIfNeeded(float[] thresholdLevels) { in constraintInRangeIfNeeded() argument2949 if (isAllInRange(thresholdLevels, /* minValueInclusive= */ 0.0f, in constraintInRangeIfNeeded()2951 return thresholdLevels; in constraintInRangeIfNeeded()2955 float[] thresholdLevelsScaled = new float[thresholdLevels.length]; in constraintInRangeIfNeeded()2956 for (int index = 0; thresholdLevels.length > index; ++index) { in constraintInRangeIfNeeded()2957 thresholdLevelsScaled[index] = thresholdLevels[index] / 255.0f; in constraintInRangeIfNeeded()