Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 41) 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.java157 if (entry.weight < toRemove.weight) {
543 find(index + 1, weightLoss + me.weight, moveCost, itemsPlaced);
592 && itemsToPlace.get(index + 1).weight >= me.weight && !ignoreMove) {
593 find(index + 1, weightLoss + me.weight, moveCost, itemsPlaced);
598 weightLoss += itemsToPlace.get(i).weight;
600 find(itemsToPlace.size(), weightLoss + me.weight, moveCost, itemsPlaced);
639 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
648 entry.weight = WT_FOLDER_FACTOR * total;
714 entry.weight = entry.itemType == Favorites.ITEM_TYPE_APPLICATION ?
722 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/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/toolbar/
DExtendedShadowTypeface.java28 protected static Typeface create(Typeface family, int weight, boolean italic) { in create() argument
31 int style = italic ? weight + 10 : weight; in create()
/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.java103 public void registerEvaluator(Evaluator evaluator, double baseScore, double weight) { in registerEvaluator() argument
104 mEvaluators.add(new EvaluatorWrapper(this, evaluator, baseScore, weight)); in registerEvaluator()
281 Recommender recommender, Evaluator evaluator, double baseScore, double weight) { in EvaluatorWrapper() argument
285 mWeight = weight; in EvaluatorWrapper()
/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/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/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/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DNetworkAttributes.java177 private float samenessContribution(final float weight, in samenessContribution() argument
180 return (null == o2) ? weight * NULL_MATCH_WEIGHT : 0f; in samenessContribution()
182 return Objects.equals(o1, o2) ? weight : 0f; in samenessContribution()
/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/Car/Dialer/tests/robotests/src/com/android/car/dialer/
DShadowTypeface.java31 public static Typeface create(Typeface family, int weight, boolean italic) { in create() argument
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTypeface.java30 public static Typeface create(Typeface family, int weight, boolean italic) { in create() argument
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrGuidedActionsStylist.java50 ((LinearLayout.LayoutParams) v.getLayoutParams()).weight = sWidthWeight; in onCreateView()

12