Home
last modified time | relevance | path

Searched refs:ExerciseSegment (Results 1 – 20 of 20) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseSegmentTest.java25 import android.health.connect.datatypes.ExerciseSegment;
41 ExerciseSegment segment = in testExerciseSegment_buildSegment_buildCorrectObject()
42 new ExerciseSegment.Builder( in testExerciseSegment_buildSegment_buildCorrectObject()
57 ExerciseSegment segment = in testExerciseSegment_buildWithoutRepetitions_repetitionsIsZero()
58 new ExerciseSegment.Builder( in testExerciseSegment_buildWithoutRepetitions_repetitionsIsZero()
68 new ExerciseSegment.Builder( in testExerciseSegment_endTimeEarlierThanStartTime_throwsException()
75 new ExerciseSegment.Builder( in testExerciseSegment_repetitionsIsNegative_throwsException()
90 new ExerciseSegment.Builder( in testExerciseSegment_lapStartTimeIllegal_throwsException()
107 new ExerciseSegment.Builder( in testExerciseSegment_lapEndTimeIllegal_throwsException()
124 new ExerciseSegment.Builder( in testExerciseSegment_segmentsOverlap_throwsException()
[all …]
DExerciseSessionRecordTest.java55 import android.health.connect.datatypes.ExerciseSegment;
149 List<ExerciseSegment> segmentList = in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
151 new ExerciseSegment.Builder( in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
928 new ExerciseSegment.Builder( in buildRecordWithOneSegment()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseSegment.java33 public final class ExerciseSegment implements TimeInterval.TimeIntervalHolder { class
40 private ExerciseSegment( in ExerciseSegment() method in ExerciseSegment
97 if (!(o instanceof ExerciseSegment)) return false; in equals()
98 ExerciseSegment that = (ExerciseSegment) o; in equals()
154 public ExerciseSegment buildWithoutValidation() { in buildWithoutValidation()
155 return new ExerciseSegment(mInterval, mSegmentType, mRepetitionsCount, true); in buildWithoutValidation()
163 public ExerciseSegment build() { in build()
164 return new ExerciseSegment(mInterval, mSegmentType, mRepetitionsCount, false); in build()
DExerciseSessionRecord.java69 private final List<ExerciseSegment> mSegments;
97 @NonNull List<ExerciseSegment> segments, in ExerciseSessionRecord()
123 (List<ExerciseSegment>) in ExerciseSessionRecord()
164 public List<ExerciseSegment> getSegments() { in getSegments()
232 private final List<ExerciseSegment> mSegments;
351 public Builder setSegments(@NonNull List<ExerciseSegment> segments) { in setSegments()
467 .map(ExerciseSegment::toSegmentInternal) in toRecordInternal()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseSegmentInternalTest.java21 import android.health.connect.datatypes.ExerciseSegment;
38 ExerciseSegment externalSegment = in testExerciseSegmentInternal_convertToExternalAndBack_recordsAreEqual()
39 new ExerciseSegment.Builder( in testExerciseSegmentInternal_convertToExternalAndBack_recordsAreEqual()
45 ExerciseSegment converted = externalSegment.toSegmentInternal().toExternalRecord(); in testExerciseSegmentInternal_convertToExternalAndBack_recordsAreEqual()
51 ExerciseSegment externalSegment = in testExerciseSegmentInternal_convertToExternalAndBackNoReps_recordsAreEqual()
52 new ExerciseSegment.Builder( in testExerciseSegmentInternal_convertToExternalAndBackNoReps_recordsAreEqual()
57 ExerciseSegment converted = externalSegment.toSegmentInternal().toExternalRecord(); in testExerciseSegmentInternal_convertToExternalAndBackNoReps_recordsAreEqual()
93 ExerciseSegment converted, ExerciseSegment externalSegment) { in assertSegmentsAreEqual()
DExerciseSessionInternalTest.java23 import android.health.connect.datatypes.ExerciseSegment;
130 List<ExerciseSegment> externalSegments) { in assertSegmentsAreEqual()
139 ExerciseSegment externalSegment = externalSegments.get(i); in assertSegmentsAreEqual()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseSegmentInternal.java20 import android.health.connect.datatypes.ExerciseSegment;
68 static List<ExerciseSegment> getExternalSegments( in getExternalSegments()
70 List<ExerciseSegment> externalSegments = new ArrayList<>(internalSegments.size()); in getExternalSegments()
95 public ExerciseSegment toExternalRecord() { in toExternalRecord()
96 return new ExerciseSegment.Builder( in toExternalRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DExerciseSessionFormatterTest.kt23 import android.health.connect.datatypes.ExerciseSegment
89 buildList<ExerciseSegment> { in <lambda>()
91 ExerciseSegment.Builder( in <lambda>()
130 segments: List<ExerciseSegment> = emptyList() in getRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DExerciseDurationAggregationTest.java35 import android.health.connect.datatypes.ExerciseSegment;
172 ExerciseSegment restSegment = in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
173 new ExerciseSegment.Builder( in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
187 new ExerciseSegment.Builder( in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
288 new ExerciseSegment.Builder( in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DListInputField.kt22 import android.health.connect.datatypes.ExerciseSegment
108 ExerciseSegment::class.java -> { in addRow()
179 ExerciseSegment::class.java -> { in getFieldValue()
181 ExerciseSegment.Builder( in getFieldValue()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/
DLoadPermissionTypesUseCaseTest.kt9 import android.health.connect.datatypes.ExerciseSegment in <lambda>()
120 segments: List<ExerciseSegment> = emptyList() in <lambda>()
DLoadContributingAppsUseCaseTest.kt9 import android.health.connect.datatypes.ExerciseSegment in <lambda>()
129 segments: List<ExerciseSegment> = emptyList() in <lambda>()
DFilterPermissionTypesUseCaseTest.kt9 import android.health.connect.datatypes.ExerciseSegment in <lambda>()
152 segments: List<ExerciseSegment> = emptyList() in <lambda>()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java32 import android.health.connect.datatypes.ExerciseSegment;
565 .map(ExerciseSegment::getStartTime) in getExerciseSessionRecordValues()
570 .map(ExerciseSegment::getEndTime) in getExerciseSessionRecordValues()
574 record.getSegments().stream().mapToInt(ExerciseSegment::getSegmentType).toArray(); in getExerciseSessionRecordValues()
577 .mapToInt(ExerciseSegment::getRepetitionsCount) in getExerciseSessionRecordValues()
685 List<ExerciseSegment> segments = in createExerciseSessionRecord()
693 return new ExerciseSegment.Builder( in createExerciseSessionRecord()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/validation/
DExerciseSessionTypesValidation.java115 import android.health.connect.datatypes.ExerciseSegment;
282 int sessionType, List<ExerciseSegment> segments) { in validateSessionAndSegmentsTypes()
289 for (ExerciseSegment segment : segments) { in validateSessionAndSegmentsTypes()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java35 import android.health.connect.datatypes.ExerciseSegment;
229 new ExerciseSegment.Builder( in buildExerciseSession()
235 new ExerciseSegment.Builder( in buildExerciseSession()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DExerciseSessionFormatter.kt23 import android.health.connect.datatypes.ExerciseSegment in <lambda>()
172 private fun formatSegment(id: String, segment: ExerciseSegment): FormattedSessionDetail { in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt34 import android.health.connect.datatypes.ExerciseSegment
573 as List<ExerciseSegment>) in createRecordObjectHelper()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java84 import android.health.connect.datatypes.ExerciseSegment;
1056 new ExerciseSegment.Builder( in testAggregationOutputForExerciseSessionWithDataFromTwoAppsHavingDifferentPriority()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt792 public final class ExerciseSegment {
799 public static final class ExerciseSegment.Builder {
800 … ctor public ExerciseSegment.Builder(@NonNull java.time.Instant, @NonNull java.time.Instant, int);
801 method @NonNull public android.health.connect.datatypes.ExerciseSegment build();
802 …method @NonNull public android.health.connect.datatypes.ExerciseSegment.Builder setRepetitionsCoun…
882 …method @NonNull public java.util.List<android.health.connect.datatypes.ExerciseSegment> getSegment…
898 …ord.Builder setSegments(@NonNull java.util.List<android.health.connect.datatypes.ExerciseSegment>);