Searched refs:WeightGoalInternal (Results 1 – 3 of 3) sorted by relevance
31 import android.health.connect.internal.datatypes.ExercisePerformanceGoalInternal.WeightGoalInternal;184 WeightGoalInternal original = new WeightGoalInternal(Mass.fromGrams(80_000)); in weightGoal_writeToParcelThenRestore_objectsAreIdentical()187 WeightGoalInternal restored = in weightGoal_writeToParcelThenRestore_objectsAreIdentical()188 (WeightGoalInternal) in weightGoal_writeToParcelThenRestore_objectsAreIdentical()191 assertThat(restored).isInstanceOf(WeightGoalInternal.class); in weightGoal_writeToParcelThenRestore_objectsAreIdentical()198 ExercisePerformanceGoalInternal.WeightGoalInternal original = in weightGoal_convertToExternalAndBack_objectsAreIdentical()199 new ExercisePerformanceGoalInternal.WeightGoalInternal(Mass.fromGrams(5_000)); in weightGoal_convertToExternalAndBack_objectsAreIdentical()202 ((WeightGoalInternal) in weightGoal_convertToExternalAndBack_objectsAreIdentical()
71 case WeightGoalInternal.WEIGHT_GOAL_TYPE_ID: in readFromParcel()72 result.add(WeightGoalInternal.readFieldsFromParcel(parcel)); in readFromParcel()114 return new WeightGoalInternal(goal.getMass()); in fromExternalObject()317 public static final class WeightGoalInternal extends ExercisePerformanceGoalInternal { class in ExercisePerformanceGoalInternal325 static WeightGoalInternal readFieldsFromParcel(Parcel parcel) { in readFieldsFromParcel()326 return new WeightGoalInternal(Mass.fromGrams(parcel.readDouble())); in readFieldsFromParcel()336 public WeightGoalInternal(Mass mass) { in WeightGoalInternal() method in ExercisePerformanceGoalInternal.WeightGoalInternal
68 import android.health.connect.internal.datatypes.ExercisePerformanceGoalInternal.WeightGoalInternal;367 case WeightGoalInternal.WEIGHT_GOAL_TYPE_ID: in extractPerformanceGoal()368 return new WeightGoalInternal( in extractPerformanceGoal()538 } else if (performanceGoal instanceof WeightGoalInternal) { in getPerformanceGoalUpsert()542 ((WeightGoalInternal) performanceGoal).getMass().getInGrams())); in getPerformanceGoalUpsert()