Home
last modified time | relevance | path

Searched refs:ExerciseSessionType (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DExerciseSessionFormatter.kt25 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON in <lambda>()
26 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BASEBALL in <lambda>()
27 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BASKETBALL in <lambda>()
28 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING in <lambda>()
29 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING_STATIONARY in <lambda>()
30 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BOOT_CAMP in <lambda>()
31 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING in <lambda>()
32 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS in <lambda>()
33 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_CRICKET in <lambda>()
34 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_DANCING in <lambda>()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/
DExerciseSessionTypesValidation.java88 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING;
89 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING_STA…
90 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BOOT_CAMP;
91 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENI…
92 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_ELLIPTICAL;
93 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_EXERCISE_C…
94 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_GYMNASTICS;
95 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_HIGH_INTEN…
96 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_HIKING;
97 import static android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_OTHER_WORK…
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPlannedExerciseStepTest.java23 import android.health.connect.datatypes.ExerciseSessionType;
54 ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING, in hashCodeAndEquals_sensitiveToAllFields()
59 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
62 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BASEBALL) in hashCodeAndEquals_sensitiveToAllFields()
65 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
69 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BASEBALL) in hashCodeAndEquals_sensitiveToAllFields()
73 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
76 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
79 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
83 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
[all …]
DPlannedExerciseSessionRecordTest.java44 import android.health.connect.datatypes.ExerciseSessionType;
119 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions()
133 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_noBlocks()
145 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_singleBlock()
158 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_multipleBlocks()
178 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_singleStep()
201 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_multipleSteps()
229 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertMultipleRecords()
232 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertMultipleRecords()
245 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in updateTrainingPlan()
[all …]
DPlannedExerciseBlockTest.java22 import android.health.connect.datatypes.ExerciseSessionType;
73 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in hashCodeAndEquals_sensitiveToAllFields()
78 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in hashCodeAndEquals_sensitiveToAllFields()
82 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
99 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in clearSteps_removesAllExistingSteps()
121 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in addStep()
DExerciseLapTest.java27 import android.health.connect.datatypes.ExerciseSessionType;
77 ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS) in testLaps_lapStartTimeIllegal_throwsException()
93 ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS) in testLaps_lapEndTimeIllegal_throwsException()
109 ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS) in testLaps_lapsOverlaps_throwsException()
DExerciseSegmentTest.java28 import android.health.connect.datatypes.ExerciseSessionType;
87 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSegment_lapStartTimeIllegal_throwsException()
104 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSegment_lapEndTimeIllegal_throwsException()
121 ExerciseSessionType.EXERCISE_SESSION_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING) in testExerciseSegment_segmentsOverlap_throwsException()
DExerciseSessionRecordTest.java58 import android.health.connect.datatypes.ExerciseSessionType;
135 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
142 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
171 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
186 .isEqualTo(ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
202 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
231 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException()
247 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSessionBuilds_routeTimestampBeforeSessionStart_throwsException()
262 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING_STATIONARY, in testExerciseSessionBuilds_sessionTypeDoesntMatchSegment_throwsException()
269 ExerciseSessionType.EXERCISE_SESSION_TYPE_SWIMMING_OPEN_WATER, in testExerciseSessionBuilds_sessionTypeSwimming_noException()
[all …]
DExercisePerformanceGoalTest.java30 import android.health.connect.datatypes.ExerciseSessionType;
371 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createPlannedSessionWithPerformanceGoal()
382 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createStepWithPerformanceGoal()
DExerciseCompletionGoalTest.java29 import android.health.connect.datatypes.ExerciseSessionType;
372 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createPlannedSessionWithCompletionGoal()
383 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createStepWithCompletionGoal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DExerciseDurationAggregationTest.java38 import android.health.connect.datatypes.ExerciseSessionType;
109 ExerciseSessionType in testSimpleAggregation_oneSession_returnsItsDuration()
133 ExerciseSessionType in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
156 ExerciseSessionType in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
185 ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS) in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
221 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
256 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset()
285 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPlannedExerciseSessionRecord.java48 @ExerciseSessionType.ExerciseSessionTypes private final int mExerciseType;
84 @NonNull @ExerciseSessionType.ExerciseSessionTypes int exerciseType, in PlannedExerciseSessionRecord()
105 @ExerciseSessionType.ExerciseSessionTypes
195 @ExerciseSessionType.ExerciseSessionTypes private int mExerciseType;
211 @ExerciseSessionType.ExerciseSessionTypes int exerciseType, in Builder()
237 @ExerciseSessionType.ExerciseSessionTypes int exerciseType, in Builder()
263 public Builder setExerciseType(@ExerciseSessionType.ExerciseSessionTypes int exerciseType) { in setExerciseType()
405 if (!ExerciseSessionType.isKnownSessionType(mExerciseType)) { in build()
DExerciseSessionType.java31 public final class ExerciseSessionType { class
226 private ExerciseSessionType() {} in ExerciseSessionType() method in ExerciseSessionType
DExerciseSessionRecord.java93 @NonNull @ExerciseSessionType.ExerciseSessionTypes int exerciseType, in ExerciseSessionRecord()
136 @ExerciseSessionType.ExerciseSessionTypes
249 @ExerciseSessionType.ExerciseSessionTypes int exerciseType) { in Builder()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/
DSeedActivityData.kt34 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
883 ExerciseSessionType.EXERCISE_SESSION_TYPE_EXERCISE_CLASS, in <lambda>()
911 ExerciseSessionType.EXERCISE_SESSION_TYPE_EXERCISE_CLASS, in <lambda>()
916 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_WEIGHTLIFTING) in <lambda>()
924 ExerciseSessionType.EXERCISE_SESSION_TYPE_WEIGHTLIFTING, in <lambda>()
931 ExerciseSessionType.EXERCISE_SESSION_TYPE_WEIGHTLIFTING, in <lambda>()
938 ExerciseSessionType.EXERCISE_SESSION_TYPE_WEIGHTLIFTING, in <lambda>()
945 ExerciseSessionType.EXERCISE_SESSION_TYPE_STRETCHING, in <lambda>()
961 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING_TREADMILL, in <lambda>()
974 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING_TREADMILL, in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DExerciseSessionFormatterTest.kt26 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING
27 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_OTHER_WORKOUT
28 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DLoadExerciseRouteUseCaseTest.kt23 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
88 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
109 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
DExerciseRouteViewModelTest.kt24 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
129 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
148 getMetaData(), start, end, ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
DRouteRequestActivityTest.kt26 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
92 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING, in <lambda>()
218 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING, in <lambda>()
246 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING, in <lambda>()
325 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING, in <lambda>()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DTestUtils.java22 import android.health.connect.datatypes.ExerciseSessionType;
75 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_OTHER_WORKOUT) in buildExerciseSessionInternal()
180 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_OTHER_WORKOUT) in buildExerciseSessionInternalNoExtraFields()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPlannedExerciseSessionRecordInternal.java20 import android.health.connect.datatypes.ExerciseSessionType;
117 @ExerciseSessionType.ExerciseSessionTypes
DExerciseSessionRecordInternal.java22 import android.health.connect.datatypes.ExerciseSessionType;
73 @ExerciseSessionType.ExerciseSessionTypes
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteTestHelper.java39 import android.health.connect.datatypes.ExerciseSessionType;
109 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in getExerciseSession()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DInsertRecordFragment.kt28 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
296 ExerciseSessionRecord::class -> mapOf("mExerciseType" to ExerciseSessionType::class) in <lambda>()
299 mapOf("mPlannedExerciseType" to ExerciseSessionType::class) in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DMindfulnessTest.kt22 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING

12