/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | ExerciseSessionFormatter.kt | 25 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/ |
D | ExerciseSessionTypesValidation.java | 88 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/ |
D | PlannedExerciseStepTest.java | 23 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 …]
|
D | PlannedExerciseSessionRecordTest.java | 45 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 …]
|
D | PlannedExerciseBlockTest.java | 22 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()
|
D | ExerciseLapTest.java | 27 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()
|
D | ExerciseSessionRecordTest.java | 58 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 …]
|
D | ExerciseSegmentTest.java | 28 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()
|
D | ExercisePerformanceGoalTest.java | 30 import android.health.connect.datatypes.ExerciseSessionType; 369 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createPlannedSessionWithPerformanceGoal() 380 ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING, in createStepWithPerformanceGoal()
|
D | ExerciseCompletionGoalTest.java | 29 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/ |
D | ExerciseDurationAggregationTest.java | 38 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/ |
D | PlannedExerciseSessionRecord.java | 48 @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()
|
D | ExerciseSessionType.java | 28 public final class ExerciseSessionType { class 216 private ExerciseSessionType() {} in ExerciseSessionType() method in ExerciseSessionType
|
D | ExerciseSessionRecord.java | 93 @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/ |
D | FilterPermissionTypesUseCaseTest.kt | 11 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>()
|
D | LoadPermissionTypesUseCaseTest.kt | 11 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>()
|
D | LoadContributingAppsUseCaseTest.kt | 11 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/ |
D | LoadExerciseRouteUseCaseTest.kt | 23 import android.health.connect.datatypes.ExerciseSessionType in <lambda>() 88 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>() 109 ExerciseSessionType.EXERCISE_SESSION_TYPE_RUNNING) in <lambda>()
|
D | ExerciseRouteViewModelTest.kt | 24 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>()
|
D | RouteRequestActivityTest.kt | 26 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/ |
D | TestUtils.java | 22 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/ |
D | PlannedExerciseSessionRecordInternal.java | 20 import android.health.connect.datatypes.ExerciseSessionType; 117 @ExerciseSessionType.ExerciseSessionTypes
|
D | ExerciseSessionRecordInternal.java | 22 import android.health.connect.datatypes.ExerciseSessionType; 73 @ExerciseSessionType.ExerciseSessionTypes
|
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/ |
D | ExerciseRouteTestHelper.java | 39 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/ |
D | ExerciseSessionFormatterTest.kt | 26 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_BIKING 27 import android.health.connect.datatypes.ExerciseSessionType.EXERCISE_SESSION_TYPE_OTHER_WORKOUT
|