Lines Matching refs:weight

119         // This cannot be done by a simple comparator since an Activity weight
180 * Attribute for the choice weight.
182 static final String ATTRIBUTE_WEIGHT = "weight";
201 * Default weight for a choice record.
523 * historical record with weight high enough that this activity will
525 * will eventually change if not used. Also the weight of the record for
538 final float weight;
540 // Add a record with weight enough to boost the chosen at the top.
541 weight = oldDefaultActivity.weight - newDefaultActivity.weight
544 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT;
551 System.currentTimeMillis(), weight);
771 * The record weight.
773 public final float weight;
780 * @param weight The weight of the record.
782 public HistoricalRecord(String activityName, long time, float weight) {
783 this(ComponentName.unflattenFromString(activityName), time, weight);
791 * @param weight The weight of the record.
793 public HistoricalRecord(ComponentName activityName, long time, float weight) {
796 this.weight = weight;
805 result = prime * result + Float.floatToIntBits(weight);
831 if (Float.floatToIntBits(weight) != Float.floatToIntBits(other.weight)) {
843 builder.append("; weight:").append(new BigDecimal(weight));
862 public float weight;
875 return 31 + Float.floatToIntBits(weight);
890 if (Float.floatToIntBits(weight) != Float.floatToIntBits(other.weight)) {
898 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
906 builder.append("; weight:").append(new BigDecimal(weight));
934 activity.weight = 0.0f;
948 activity.weight += historicalRecord.weight * nextRecordWeight;
1006 final float weight =
1008 HistoricalRecord readRecord = new HistoricalRecord(activity, time, weight);
1071 serializer.attribute(null, ATTRIBUTE_WEIGHT, String.valueOf(record.weight));