Lines Matching defs:weight
120 // This cannot be done by a simple comparator since an Activity weight
181 * Attribute for the choice weight.
183 private static final String ATTRIBUTE_WEIGHT = "weight";
202 * Default weight for a choice record.
524 * historical record with weight high enough that this activity will
526 * will eventually change if not used. Also the weight of the record for
539 final float weight;
541 // Add a record with weight enough to boost the chosen at the top.
542 weight = oldDefaultActivity.weight - newDefaultActivity.weight
545 weight = DEFAULT_HISTORICAL_RECORD_WEIGHT;
552 System.currentTimeMillis(), weight);
772 * The record weight.
774 public final float weight;
781 * @param weight The weight of the record.
783 public HistoricalRecord(String activityName, long time, float weight) {
784 this(ComponentName.unflattenFromString(activityName), time, weight);
792 * @param weight The weight of the record.
794 public HistoricalRecord(ComponentName activityName, long time, float weight) {
797 this.weight = weight;
806 result = prime * result + Float.floatToIntBits(weight);
832 if (Float.floatToIntBits(weight) != Float.floatToIntBits(other.weight)) {
844 builder.append("; weight:").append(new BigDecimal(weight));
863 public float weight;
876 return 31 + Float.floatToIntBits(weight);
891 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));
930 activity.weight = 0.0f;
944 activity.weight += historicalRecord.weight * nextRecordWeight;
1002 final float weight =
1004 HistoricalRecord readRecord = new HistoricalRecord(activity, time, weight);
1064 serializer.attribute(null, ATTRIBUTE_WEIGHT, String.valueOf(record.weight));