Home
last modified time | relevance | path

Searched refs:ExerciseSegmentType (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DExerciseSegmentTypeFormatter.kt19 import android.health.connect.datatypes.ExerciseSegmentType
30 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BACK_EXTENSION -> in getSegmentType()
32 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BARBELL_SHOULDER_PRESS -> in getSegmentType()
34 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BENCH_PRESS -> in getSegmentType()
36 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BENCH_SIT_UP -> in getSegmentType()
38 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE -> context.getString(R.string.burpee) in getSegmentType()
39 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_CRUNCH -> context.getString(R.string.crunch) in getSegmentType()
40 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_DEADLIFT -> in getSegmentType()
42 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_LEFT_ARM -> in getSegmentType()
44 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_RIGHT_ARM -> in getSegmentType()
[all …]
DSpeedFormatter.kt19 import android.health.connect.datatypes.ExerciseSegmentType
252 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ELLIPTICAL,
253 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING,
254 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING_TREADMILL,
255 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_WALKING,
259 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTROKE,
260 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE,
261 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_BUTTERFLY,
262 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_FREESTYLE,
263 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_MIXED,
[all …]
DExercisePerformanceGoalFormatter.kt20 import android.health.connect.datatypes.ExerciseSegmentType
41 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING,
42 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING_STATIONARY,
43 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ROWING_MACHINE,
44 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_WHEELCHAIR)
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/
DExerciseSessionTypesValidation.java19 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL;
20 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BACK_EXTEN…
21 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BALL_SLAM;
22 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BARBELL_SH…
23 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BENCH_PRES…
24 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BENCH_SIT_…
25 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING;
26 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING_STA…
27 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE;
28 import static android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_CRUNCH;
[all …]
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseSegmentTest.java26 import android.health.connect.datatypes.ExerciseSegmentType;
45 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_buildSegment_buildCorrectObject()
51 .isEqualTo(ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL); in testExerciseSegment_buildSegment_buildCorrectObject()
61 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_buildWithoutRepetitions_repetitionsIsZero()
69 END_TIME, START_TIME, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_endTimeEarlierThanStartTime_throwsException()
76 START_TIME, END_TIME, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegment_repetitionsIsNegative_throwsException()
93 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE) in testExerciseSegment_lapStartTimeIllegal_throwsException()
110 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE) in testExerciseSegment_lapEndTimeIllegal_throwsException()
127 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE) in testExerciseSegment_segmentsOverlap_throwsException()
132 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_CRUNCH) in testExerciseSegment_segmentsOverlap_throwsException()
DExerciseSessionRecordTest.java56 import android.health.connect.datatypes.ExerciseSegmentType;
154 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_OTHER_WORKOUT) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
260 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE); in testExerciseSessionBuilds_sessionTypeDoesntMatchSegment_throwsException()
267 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE); in testExerciseSessionBuilds_sessionTypeSwimming_noException()
274 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE); in testExerciseSessionBuilds_segmentsTypeExercises_noException()
281 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST); in testExerciseSessionBuilds_segmentTypeRest_noException()
288 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST); in testExerciseSessionBuilds_universalSegment_noException()
293 buildRecordWithOneSegment(-1, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST); in testExerciseSessionBuilds_negativeSessionType_throwsException()
303 buildRecordWithOneSegment(1000, ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST); in testExerciseSessionBuilds_unknownSessionType_noException()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DPlannedExerciseBlockFormatterTest.kt21 import android.health.connect.datatypes.ExerciseSegmentType
73 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
98 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
108 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING, in <lambda>()
135 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
145 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING, in <lambda>()
161 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
185 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING, in <lambda>()
DPlannedExerciseSessionRecordFormatterTest.kt21 import android.health.connect.datatypes.ExerciseSegmentType
75 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
91 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
119 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
135 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
166 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
197 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in <lambda>()
DExercisePerformanceGoalFormatterTest.kt30 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING
31 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING
32 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTRO…
33 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_UNKNOWN
34 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_WEIGHTLIFTING
DPlannedExerciseStepFormatterTest.kt25 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING
DExerciseSessionFormatterTest.kt24 import android.health.connect.datatypes.ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_JUMPING_JACK
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseSegment.java36 @ExerciseSegmentType.ExerciseSegmentTypes private final int mSegmentType;
42 @ExerciseSegmentType.ExerciseSegmentTypes int segmentType, in ExerciseSegment()
59 @ExerciseSegmentType.ExerciseSegmentTypes
122 @ExerciseSegmentType.ExerciseSegmentTypes private final int mSegmentType;
129 @ExerciseSegmentType.ExerciseSegmentTypes int segmentType) { in Builder()
DExerciseSegmentType.java27 public final class ExerciseSegmentType { class
233 private ExerciseSegmentType() {} in ExerciseSegmentType() method in ExerciseSegmentType
316 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_PAUSE,
317 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST);
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseSegmentInternalTest.java22 import android.health.connect.datatypes.ExerciseSegmentType;
42 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegmentInternal_convertToExternalAndBack_recordsAreEqual()
55 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegmentInternal_convertToExternalAndBackNoReps_recordsAreEqual()
67 .setSegmentType(ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in testExerciseSegmentInternal_writeToParcelAndBack_recordsAreEqual()
83 .setSegmentType(ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL); in testExerciseSegmentInternal_writeToParcelAndBackNoReps_recordsAreEqual()
DTestUtils.java21 import android.health.connect.datatypes.ExerciseSegmentType;
99 .setExerciseType(ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING) in buildPlannedExerciseSessionInternal()
125 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in buildExerciseStepInternal()
170 .setSegmentType(ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_ARM_CURL) in buildExerciseSegment()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPlannedExerciseStepInternal.java20 import android.health.connect.datatypes.ExerciseSegmentType;
34 @ExerciseSegmentType.ExerciseSegmentTypes private int mExerciseType;
47 @ExerciseSegmentType.ExerciseSegmentTypes
52 public void setExerciseType(@ExerciseSegmentType.ExerciseSegmentTypes int exerciseType) { in setExerciseType()
DExerciseSegmentInternal.java21 import android.health.connect.datatypes.ExerciseSegmentType;
41 @ExerciseSegmentType.ExerciseSegmentTypes private int mSegmentType;
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DExerciseSegmentTypesTest.java21 import android.health.connect.datatypes.ExerciseSegmentType;
45 for (Field field : ExerciseSegmentType.class.getDeclaredFields()) { in getAllDeclaredExerciseSegmentTypes()
47 types.add((Integer) field.get(ExerciseSegmentType.class)); in getAllDeclaredExerciseSegmentTypes()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DExerciseDurationAggregationTest.java36 import android.health.connect.datatypes.ExerciseSegmentType;
176 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_REST) in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
190 ExerciseSegmentType in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
291 ExerciseSegmentType in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DExerciseBlockInputField.kt7 import android.health.connect.datatypes.ExerciseSegmentType
48 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in getFieldValue()
DListInputField.kt23 import android.health.connect.datatypes.ExerciseSegmentType
113 getStaticFieldNamesAndValues(ExerciseSegmentType::class)) in addRow()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java36 import android.health.connect.datatypes.ExerciseSegmentType;
232 ExerciseSegmentType in buildExerciseSession()
238 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BURPEE) in buildExerciseSession()
279 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_BIKING, in plannedExerciseSession()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt27 import android.health.connect.datatypes.ExerciseSegmentType in <lambda>()
158 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in getSamplePlannedExerciseSessionRecord()
174 exerciseSegmentType = ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in getSamplePlannedExerciseSessionRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/entrydetails/
DDataEntryDetailsFragmentTest.kt38 import android.health.connect.datatypes.ExerciseSegmentType
335 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails()
523 ExerciseSegmentType.EXERCISE_SEGMENT_TYPE_RUNNING, in getPlannedExerciseStepBuilder()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DExerciseSegmentRecordHelper.java19 import static android.health.connect.datatypes.ExerciseSegmentType.DURATION_EXCLUDE_TYPES;

12