Home
last modified time | relevance | path

Searched refs:totalWeight (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientFilter.java206 float totalWeight = 0.0f; in filter() local
215 totalWeight += weight; in filter()
217 if (totalWeight == 0.0f) { in filter()
220 return total / totalWeight; in filter()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java578 float totalWeight = 0; in calculateAmbientLux() local
595 totalWeight += weight; in calculateAmbientLux()
601 "totalWeight=" + totalWeight + ", " + in calculateAmbientLux()
602 "newAmbientLux=" + (sum / totalWeight)); in calculateAmbientLux()
604 return sum / totalWeight; in calculateAmbientLux()
/frameworks/base/core/java/android/widget/
DLinearLayout.java779 float totalWeight = 0; in measureVertical() local
817 totalWeight += lp.weight; in measureVertical()
841 final int usedHeight = totalWeight == 0 ? mTotalLength : 0; in measureVertical()
958 || ((sRemeasureWeightedChildren || remainingExcess != 0) && totalWeight > 0.0f)) { in measureVertical()
959 float remainingWeightSum = mWeightSum > 0.0f ? mWeightSum : totalWeight; in measureVertical()
1109 float totalWeight = 0; in measureHorizontal() local
1160 totalWeight += lp.weight; in measureHorizontal()
1203 final int usedWidth = totalWeight == 0 ? mTotalLength : 0; in measureHorizontal()
1342 || ((sRemeasureWeightedChildren || remainingExcess != 0) && totalWeight > 0.0f)) { in measureHorizontal()
1343 float remainingWeightSum = mWeightSum > 0.0f ? mWeightSum : totalWeight; in measureHorizontal()
DGridLayout.java1758 private void shareOutDelta(int totalDelta, float totalWeight) {
1769 int delta = Math.round((weight * totalDelta / totalWeight));
1774 totalWeight -= weight;
1788 float totalWeight = calculateTotalWeight();
1797 shareOutDelta(delta, totalWeight);
1809 shareOutDelta(validDelta, totalWeight);
1815 float totalWeight = 0f;
1823 totalWeight += spec.weight;
1825 return totalWeight;