Searched refs:segmentType (Results 1 – 7 of 7) sorted by relevance
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | ExerciseSegment.java | 42 @ExerciseSegmentType.ExerciseSegmentTypes int segmentType, in ExerciseSegment() argument 48 mSegmentType = segmentType; in ExerciseSegment() 129 @ExerciseSegmentType.ExerciseSegmentTypes int segmentType) { in Builder() argument 133 mSegmentType = segmentType; in Builder()
|
D | ExerciseSegmentType.java | 397 public static boolean isKnownSegmentType(int segmentType) { in isKnownSegmentType() argument 398 if (segmentType < 0) { in isKnownSegmentType() 402 return VALID_TYPES.contains(segmentType); in isKnownSegmentType()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/ |
D | ExerciseSessionTypesValidation.java | 288 int segmentType; in validateSessionAndSegmentsTypes() local 290 segmentType = segment.getSegmentType(); in validateSessionAndSegmentsTypes() 292 if (!isKnownSegmentType(segmentType)) { in validateSessionAndSegmentsTypes() 293 Slog.w(TAG, "Unknown exercise segment type: " + segmentType); in validateSessionAndSegmentsTypes() 299 if (UNIVERSAL_SEGMENTS.contains(segmentType)) { in validateSessionAndSegmentsTypes() 304 && SESSION_TO_SEGMENT_MAPPING.get(sessionType).contains(segmentType))) { in validateSessionAndSegmentsTypes()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | ExerciseSessionFormatter.kt | 177 title = formatSegmentTitle(segment.repetitionsCount, segment.segmentType), in <lambda>() 178 titleA11y = formatSegmentTitleA11y(segment.repetitionsCount, segment.segmentType), in <lambda>() 193 val segmentType = exerciseSegmentTypeFormatter.getSegmentType(type) in <lambda>() constant 196 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>() 200 val segmentType = exerciseSegmentTypeFormatter.getSegmentType(type) in <lambda>() constant 203 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>()
|
D | ExerciseSegmentTypeFormatter.kt | 28 fun getSegmentType(segmentType: Int): String { in getSegmentType() 29 return when (segmentType) { in getSegmentType() 149 else -> throw IllegalArgumentException("Unknown exercise segment type $segmentType") in getSegmentType()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseSegmentInternal.java | 143 public ExerciseSegmentInternal setSegmentType(int segmentType) { in setSegmentType() argument 144 mSegmentType = segmentType; in setSegmentType()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseSessionRecordTest.java | 923 private ExerciseSessionRecord buildRecordWithOneSegment(int sessionType, int segmentType) { in buildRecordWithOneSegment() argument 929 SESSION_START_TIME, SESSION_END_TIME, segmentType) in buildRecordWithOneSegment()
|