Home
last modified time | relevance | path

Searched refs:DurationGoalInternal (Results 1 – 3 of 3) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseCompletionGoalInternalTest.java27 …port android.health.connect.internal.datatypes.ExerciseCompletionGoalInternal.DurationGoalInternal;
92 DurationGoalInternal original = new DurationGoalInternal(Duration.ofHours(5)); in durationGoal_writeToParcelThenRestore_objectsAreIdentical()
95 DurationGoalInternal restored = in durationGoal_writeToParcelThenRestore_objectsAreIdentical()
96 (DurationGoalInternal) ExerciseCompletionGoalInternal.readFromParcel(parcel); in durationGoal_writeToParcelThenRestore_objectsAreIdentical()
98 assertThat(restored).isInstanceOf(DurationGoalInternal.class); in durationGoal_writeToParcelThenRestore_objectsAreIdentical()
105 DurationGoalInternal original = new DurationGoalInternal(Duration.ofMinutes(45)); in durationGoal_convertToExternalAndBack_objectsAreIdentical()
108 ((DurationGoalInternal) in durationGoal_convertToExternalAndBack_objectsAreIdentical()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseCompletionGoalInternal.java61 return new DurationGoalInternal(goal.getDuration()); in fromExternalObject()
96 case DurationGoalInternal.DURATION_GOAL_TYPE_ID: in readFromParcel()
97 return DurationGoalInternal.readFieldsFromParcel(parcel); in readFromParcel()
189 public static final class DurationGoalInternal extends ExerciseCompletionGoalInternal { class in ExerciseCompletionGoalInternal
199 public static DurationGoalInternal readFieldsFromParcel(@NonNull Parcel parcel) { in readFieldsFromParcel()
200 return new DurationGoalInternal(Duration.ofMillis(parcel.readLong())); in readFieldsFromParcel()
205 public DurationGoalInternal(@NonNull Duration duration) { in DurationGoalInternal() method in ExerciseCompletionGoalInternal.DurationGoalInternal
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java56 …port android.health.connect.internal.datatypes.ExerciseCompletionGoalInternal.DurationGoalInternal;
320 case DurationGoalInternal.DURATION_GOAL_TYPE_ID: in extractCompletionGoal()
321 return new DurationGoalInternal( in extractCompletionGoal()
465 } else if (completionGoal instanceof DurationGoalInternal) { in getCompletionGoalUpsert()
469 ((DurationGoalInternal) completionGoal).getDuration().toMillis())); in getCompletionGoalUpsert()