Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DHistoryEvaluator.java59 sumValue += data.evaluation * data.weight; in weightedAverage()
60 sumWeight += data.weight; in weightedAverage()
88 list.get(i).weight *= factor; in decayValue()
92 while (!list.isEmpty() && isZero(list.get(0).weight)) { in decayValue()
107 public float weight; field in HistoryEvaluator.Data
111 weight = 1.0f; in Data()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java155 if (entry.weight < toRemove.weight) {
541 find(index + 1, weightLoss + me.weight, moveCost, itemsPlaced);
590 && itemsToPlace.get(index + 1).weight >= me.weight && !ignoreMove) {
591 find(index + 1, weightLoss + me.weight, moveCost, itemsPlaced);
596 weightLoss += itemsToPlace.get(i).weight;
598 find(itemsToPlace.size(), weightLoss + me.weight, moveCost, itemsPlaced);
637 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
646 entry.weight = WT_FOLDER_FACTOR * total;
712 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
720 entry.weight = Math.max(WT_WIDGET_MIN, WT_WIDGET_FACTOR
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java683 totalWeight += lp.weight; in measureVertical()
685 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { in measureVertical()
695 if (lp.height == 0 && lp.weight > 0) { in measureVertical()
737 if (i < baselineChildIndex && lp.weight > 0) { in measureVertical()
760 if (lp.weight > 0) { in measureVertical()
835 float childExtra = lp.weight; in measureVertical()
928 float childExtra = lp.weight; in measureVertical()
1479 public float weight; field in MatchParentShrinkingLinearLayout.LayoutParams
1512 weight = a.getFloat( in LayoutParams()
1525 weight = 0; in LayoutParams()
[all …]
DUsageView.java123 private void setWeight(int id, float weight) { in setWeight() argument
126 params.weight = weight; in setWeight()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java683 totalWeight += lp.weight; in measureVertical()
685 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { in measureVertical()
695 if (lp.height == 0 && lp.weight > 0) { in measureVertical()
737 if (i < baselineChildIndex && lp.weight > 0) { in measureVertical()
760 if (lp.weight > 0) { in measureVertical()
835 float childExtra = lp.weight; in measureVertical()
928 float childExtra = lp.weight; in measureVertical()
1479 public float weight; field in MatchParentShrinkingLinearLayout.LayoutParams
1512 weight = a.getFloat( in LayoutParams()
1525 weight = 0; in LayoutParams()
[all …]
DUsageView.java123 private void setWeight(int id, float weight) { in setWeight() argument
126 params.weight = weight; in setWeight()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataKind.java48 public int weight; field in DataKind
91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { in DataKind() argument
94 this.weight = weight; in DataKind()
113 sb.append(" weight=").append(weight); in toString()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataKind.java45 public int weight; field in DataKind
83 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { in DataKind() argument
86 this.weight = weight; in DataKind()
117 sb.append(" weight=").append(weight); in toString()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css14 font-weight: normal;
23 font-weight: normal;
56 font-weight: normal;
64 font-weight: normal;
110 font-weight: normal;
141 font-weight: normal;
170 font-weight: bold;
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dautocorrection_threshold_utils.cpp93 const float weight = 1.0f - static_cast<float>(distance) / static_cast<float>(afterLength); in calcNormalizedScore() local
97 return (static_cast<float>(score) / SUGGEST_INTERFACE_OUTPUT_SCALE) * weight; in calcNormalizedScore()
106 return (static_cast<float>(score) / maxScore) * weight; in calcNormalizedScore()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java101 public void registerEvaluator(Evaluator evaluator, double baseScore, double weight) { in registerEvaluator() argument
102 mEvaluators.add(new EvaluatorWrapper(this, evaluator, baseScore, weight)); in registerEvaluator()
279 Recommender recommender, Evaluator evaluator, double baseScore, double weight) { in EvaluatorWrapper() argument
283 mWeight = weight; in EvaluatorWrapper()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DChartDataUsagePreference.java141 float weight = policy.warningBytes / RESOLUTION / (float) top; in bindNetworkPolicy() local
142 float above = 1 - weight; in bindNetworkPolicy()
143 chart.setSideLabelWeights(above, weight); in bindNetworkPolicy()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java141 float weight = policy.warningBytes / RESOLUTION / (float) top; in bindNetworkPolicy() local
142 float above = 1 - weight; in bindNetworkPolicy()
143 chart.setSideLabelWeights(above, weight); in bindNetworkPolicy()
/packages/apps/Camera2/src/com/android/camera/util/
DGusterpolator.java78 float weight = difference / STEP_SIZE; in getInterpolation() local
80 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]); in getInterpolation()
DCameraUtil.java909 public static int addPixel(int pixel, int newPixel, float weight) { in addPixel() argument
912 int r = ((pixel & 0x00ff0000) + (int) ((newPixel & 0x00ff0000) * weight)) & 0x00ff0000; in addPixel()
913 int g = ((pixel & 0x0000ff00) + (int) ((newPixel & 0x0000ff00) * weight)) & 0x0000ff00; in addPixel()
914 int b = ((pixel & 0x000000ff) + (int) ((newPixel & 0x000000ff) * weight)) & 0x000000ff; in addPixel()
/packages/apps/PermissionController/src/android/support/wearable/view/
DGusterpolator.java80 float weight = difference / STEP_SIZE; in getInterpolation() local
82 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]); in getInterpolation()
/packages/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java145 float weight = mFeatureWeights.getOrDefault(featureName, 0.0f); in predict() local
146 sum += weight * target.valueAt(i); in predict()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DAccountType.java56 return object1.weight - object2.weight;
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountType.java303 return object1.weight - object2.weight;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java559 static void setLayoutWeight(final View v, final float weight, final int height) { in setLayoutWeight() argument
563 llp.weight = weight; in setLayoutWeight()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrGuidedActionsStylist.java50 ((LinearLayout.LayoutParams) v.getLayoutParams()).weight = sWidthWeight; in onCreateView()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DRecentAppsRowViewHolder.java71 params.weight = 1; in bind()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java100 outOfSpec |= (layoutParams.weight > 0f); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java427 float w = weight(width, height, p.minWidthDps, p.minHeightDps, WEIGHT_POWER); in invDistWeightedInterpolate()
439 private static float weight(float x0, float y0, float x1, float y1, float pow) { in weight() method in InvariantDeviceProfile
/packages/inputmethods/LatinIME/dictionaries/
Dsample.combined13 # As a special case, a weight of 0 is taken to mean profanity - words that

12