Searched refs:totalWeight (Results 1 – 4 of 4) sorted by relevance
206 float totalWeight = 0.0f; in filter() local215 totalWeight += weight; in filter()217 if (totalWeight == 0.0f) { in filter()220 return total / totalWeight; in filter()
578 float totalWeight = 0; in calculateAmbientLux() local595 totalWeight += weight; in calculateAmbientLux()601 "totalWeight=" + totalWeight + ", " + in calculateAmbientLux()602 "newAmbientLux=" + (sum / totalWeight)); in calculateAmbientLux()604 return sum / totalWeight; in calculateAmbientLux()
779 float totalWeight = 0; in measureVertical() local817 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() local1160 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()
1758 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;