Lines Matching refs:weight

127         // This cannot be done by a simple comparator since an Activity weight
188 * Attribute for the choice weight.
190 private static final String ATTRIBUTE_WEIGHT = "weight";
209 * Default weight for a choice record.
537 * historical record with weight high enough that this activity will
539 * will eventually change if not used. Also the weight of the record for
552 final float weight;
554 // Add a record with weight enough to boost the chosen at the top.
555 weight = oldDefaultActivity.weight - newDefaultActivity.weight
558 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT;
565 System.currentTimeMillis(), weight);
796 * The record weight.
798 public final float weight;
805 * @param weight The weight of the record.
807 public HistoricalRecord(String activityName, long time, float weight) {
808 this(ComponentName.unflattenFromString(activityName), time, weight);
816 * @param weight The weight of the record.
818 public HistoricalRecord(ComponentName activityName, long time, float weight) {
821 this.weight = weight;
830 result = prime * result + Float.floatToIntBits(weight);
856 if (Float.floatToIntBits(weight) != Float.floatToIntBits(other.weight)) {
868 builder.append("; weight:").append(new BigDecimal(weight));
887 public float weight;
900 return 31 + Float.floatToIntBits(weight);
915 if (Float.floatToIntBits(weight) != Float.floatToIntBits(other.weight)) {
922 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
930 builder.append("; weight:").append(new BigDecimal(weight));
954 activity.weight = 0.0f;
968 activity.weight += historicalRecord.weight * nextRecordWeight;
1026 final float weight =
1028 HistoricalRecord readRecord = new HistoricalRecord(activity, time, weight);
1088 serializer.attribute(null, ATTRIBUTE_WEIGHT, String.valueOf(record.weight));