Home
last modified time | relevance | path

Searched refs:ExerciseSessionType (Results 1 – 25 of 34) 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;
53 ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING, in hashCodeAndEquals_sensitiveToAllFields()
58 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
61 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BASEBALL) in hashCodeAndEquals_sensitiveToAllFields()
64 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
68 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BASEBALL) in hashCodeAndEquals_sensitiveToAllFields()
72 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
75 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
78 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
82 builder.setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
[all …]
DPlannedExerciseSessionRecordTest.java45 import android.health.connect.datatypes.ExerciseSessionType;
116 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions()
130 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_noBlocks()
142 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_singleBlock()
155 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_multipleBlocks()
175 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_singleStep()
198 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in insertRecord_multipleSteps()
226 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertMultipleRecords()
229 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) in insertMultipleRecords()
242 basePlannedExerciseSession(ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING); in updateTrainingPlan()
[all …]
DPlannedExerciseBlockTest.java22 import android.health.connect.datatypes.ExerciseSessionType;
72 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in hashCodeAndEquals_sensitiveToAllFields()
77 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in hashCodeAndEquals_sensitiveToAllFields()
81 .setExerciseType(ExerciseSessionType.EXERCISE_SESSION_TYPE_BOXING) in hashCodeAndEquals_sensitiveToAllFields()
98 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in clearSteps_removesAllExistingSteps()
120 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()
DExerciseSessionRecordTest.java58 import android.health.connect.datatypes.ExerciseSessionType;
132 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
139 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
168 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
183 .isEqualTo(ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN); in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
199 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
228 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException()
244 ExerciseSessionType.EXERCISE_SESSION_TYPE_FOOTBALL_AMERICAN) in testExerciseSessionBuilds_routeTimestampBeforeSessionStart_throwsException()
259 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING_STATIONARY, in testExerciseSessionBuilds_sessionTypeDoesntMatchSegment_throwsException()
266 ExerciseSessionType.EXERCISE_SESSION_TYPE_SWIMMING_OPEN_WATER, in testExerciseSessionBuilds_sessionTypeSwimming_noException()
[all …]
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()
DExercisePerformanceGoalTest.java30 import android.health.connect.datatypes.ExerciseSessionType;
369 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createPlannedSessionWithPerformanceGoal()
380 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createStepWithPerformanceGoal()
DExerciseCompletionGoalTest.java29 import android.health.connect.datatypes.ExerciseSessionType;
370 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createPlannedSessionWithCompletionGoal()
381 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;
107 ExerciseSessionType in testSimpleAggregation_oneSession_returnsItsDuration()
131 ExerciseSessionType in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
154 ExerciseSessionType in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
183 ExerciseSessionType.EXERCISE_SESSION_TYPE_CALISTHENICS) in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
219 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
254 ExerciseSessionType.EXERCISE_SESSION_TYPE_BADMINTON) in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset()
283 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.java28 public final class ExerciseSessionType { class
216 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/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/
DFilterPermissionTypesUseCaseTest.kt11 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
63 getRecord(type = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) to in <lambda>()
102 getRecord(type = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) to in <lambda>()
107 getRecord(type = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) to in <lambda>()
148 type: Int = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in <lambda>()
DLoadPermissionTypesUseCaseTest.kt11 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
63 getRecord(type = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) to in <lambda>()
116 type: Int = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in <lambda>()
DLoadContributingAppsUseCaseTest.kt11 import android.health.connect.datatypes.ExerciseSessionType in <lambda>()
65 getRecord(type = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING) to in <lambda>()
125 type: Int = ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in <lambda>()
/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>()
130 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
149 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>()
212 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
237 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
309 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()
177 .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/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

12