Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DHysteresisLevels.java114 private float getReferenceLevel(float value, float[] thresholdLevels, in getReferenceLevel() argument
116 if (thresholdLevels == null || thresholdLevels.length == 0 || value < thresholdLevels[0]) { in getReferenceLevel()
120 while (index < thresholdLevels.length - 1 && value >= thresholdLevels[index + 1]) { in getReferenceLevel()
H A DDisplayDeviceConfig.java2883 float[] thresholdLevels = new float[size]; in getBrightnessLevelAndPercentage() local
2888 thresholdLevels[i] = point.getThreshold().floatValue(); in getBrightnessLevelAndPercentage()
2892 return new Pair<>(thresholdLevels, thresholdPercentages); in getBrightnessLevelAndPercentage()
2948 private float[] constraintInRangeIfNeeded(float[] thresholdLevels) { in constraintInRangeIfNeeded() argument
2949 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()