/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | autocorrection_threshold_utils.cpp | 92 // add a weight based on edit distance. 93 const float weight = 1.0f - static_cast<float>(distance) / static_cast<float>(afterLength); local 97 return (static_cast<float>(score) / SUGGEST_INTERFACE_OUTPUT_SCALE) * weight; 106 return (static_cast<float>(score) / maxScore) * weight;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
H A D | DataKind.java | 48 public int weight; field in class:DataKind 91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { argument 94 this.weight = weight; 113 sb.append(" weight=").append(weight);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ProcessStatsMemDetail.java | 133 private void addMemUseDetailsItem(ViewGroup parent, CharSequence title, double weight) { argument 134 if (weight > 0) { 135 float level = (float)(weight/mMemTotalWeight); 137 (long)((weight * 1024) / mTotalTime));
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
H A D | Recommender.java | 96 * {@code baseScore} + {@code weight} (inclusive). 100 * @param weight Weight value to rearrange the score evaluated by {@code evaluator}. 102 public void registerEvaluator(Evaluator evaluator, double baseScore, double weight) { argument 103 mEvaluators.add(new EvaluatorWrapper(this, evaluator, baseScore, weight)); 277 // The weight of the recommender. The return-value of getScore() will be multiplied by 282 double baseScore, double weight) { 286 mWeight = weight; 281 EvaluatorWrapper(Recommender recommender, Evaluator evaluator, double baseScore, double weight) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InvariantDeviceProfile.java | 293 float w = weight(width, height, p.minWidthDps, p.minHeightDps, WEIGHT_POWER); 324 private float weight(float x0, float y0, float x1, float y1, float pow) { method in class:InvariantDeviceProfile
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | ContactsSource.java | 146 * {@link Comparator} to sort by {@link DataKind#weight}. 150 return object1.weight - object2.weight; 156 * {@link DataKind#weight}. 195 public int weight; field in class:ContactsSource.DataKind 227 public DataKind(String mimeType, int titleRes, int iconRes, int weight, boolean editable) { argument 231 this.weight = weight;
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | GridSizeMigrationTask.java | 138 * entries is more than what can fit in the new hotseat, we drop the entries with least weight. 139 * For weight calculation {@see #WT_SHORTCUT}, {@see #WT_APPLICATION} 152 // Find the item with least weight. 154 if (entry.weight < toRemove.weight) { 373 * @param outLoss array of size 2. The first entry is filled with weight loss, and the second 448 * @param weightLoss total weight loss upto this point 545 // causes it to get skipped in most cases due to higher weight loss, and prevents 547 find(index + 1, weightLoss + me.weight, moveCost, itemsPlaced); 590 // 2) if the next item has the same weight (al 820 public float weight; field in class:GridSizeMigrationTask.DbEntry [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripLayoutHelper.java | 559 static void setLayoutWeight(final View v, final float weight, final int height) { argument 563 llp.weight = weight;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
H A D | BaseAccountType.java | 760 int titleRes, int weight, StringInflater actionHeader, StringInflater actionBody) 767 final DataKind kind = new DataKind(mimeType, titleRes, weight, true); 758 newDataKind(Context context, XmlPullParser parser, AttributeSet attrs, boolean isPseudo, String mimeType, String typeColumn, int titleRes, int weight, StringInflater actionHeader, StringInflater actionBody) argument
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | MatchParentShrinkingLinearLayout.java | 435 * When true, all children with a weight will be considered having 439 * @return True to measure children with a weight using the minimum 449 * When set to true, all children with a weight will be considered having 455 * @param enabled True to measure children with a weight using the 571 * @return A number greater than 0.0f if the weight sum is defined, or 572 * a number lower than or equals to 0.0f if not weight sum is 588 * to 0.0f if the weight sum should be computed from the children's 683 totalWeight += lp.weight; 685 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { 695 if (lp.height == 0 && lp.weight > 1479 public float weight; field in class:MatchParentShrinkingLinearLayout.LayoutParams 1538 LayoutParams(int width, int height, float weight) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 901 * weight. 903 * @param pixel pixel color value of weight 1 904 * @param newPixel second pixel color value where the weight will be applied 905 * @param weight a float weight that will be applied to the second pixel 909 public static int addPixel(int pixel, int newPixel, float weight) { argument 910 // TODO: scale weight to [0, 1024] to avoid casting to float and back to 912 int r = ((pixel & 0x00ff0000) + (int) ((newPixel & 0x00ff0000) * weight)) & 0x00ff0000; 913 int g = ((pixel & 0x0000ff00) + (int) ((newPixel & 0x0000ff00) * weight)) & 0x0000ff00; 914 int b = ((pixel & 0x000000ff) + (int) ((newPixel & 0x000000ff) * weight)) [all...] |
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
H A D | CarDrawerLayout.java | 969 private int weightedAverage(int starting, int ending, float weight) { argument 970 return (int) ((1f - weight) * starting + weight * ending);
|
/packages/services/Telecomm/libs/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ... |
/packages/apps/TV/usbtuner/libs/ |
H A D | exoplayer_1.5.6.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer/ ... |