Home
last modified time | relevance | path

Searched refs:SESSION_END_TIME (Results 1 – 8 of 8) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DExerciseDurationAggregationTest.java20 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
64 .setEndTime(SESSION_END_TIME)
106 SESSION_END_TIME, in testSimpleAggregation_oneSession_returnsItsDuration()
130 SESSION_END_TIME, in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
139 .isEqualTo(SESSION_END_TIME.toEpochMilli() - SESSION_START_TIME.toEpochMilli()); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
153 SESSION_END_TIME.plusSeconds(100), in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
162 .isEqualTo(SESSION_END_TIME.toEpochMilli() - SESSION_START_TIME.toEpochMilli()); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
182 SESSION_END_TIME, in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest()
DSleepDurationAggregationTest.java20 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
89 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSession_returnsItsDuration()
114 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPlannedExerciseSessionRecordTest.java19 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
231 .setEndTime(SESSION_END_TIME.plus(2, DAYS)) in insertMultipleRecords()
294 SESSION_END_TIME, in updateExerciseSession_dropTheReferenceToTrainingPlan_trainingPlanAlsoUpdated()
307 SESSION_END_TIME, in updateExerciseSession_dropTheReferenceToTrainingPlan_trainingPlanAlsoUpdated()
338 SESSION_END_TIME, in updateExerciseSession_introduceReferenceToTrainingPlan_trainingPlanAlsoUpdated()
350 SESSION_END_TIME, in updateExerciseSession_introduceReferenceToTrainingPlan_trainingPlanAlsoUpdated()
407 SESSION_END_TIME, in insertSession_sessionReferencesPlannedExerciseSession_idReferencesCreatedBothWays()
433 SESSION_END_TIME, in insertSession_referenceToNonExistentTrainingPlan_insertionFails()
453 SESSION_END_TIME, in bidirectionalReference_nullifiedWhenTrainingPlanDeleted()
480 SESSION_END_TIME, in bidirectionalReference_keptWhenTrainingPlanUpdated()
[all …]
DExerciseSessionRecordTest.java22 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
108 assertThat(record.getEndTime()).isEqualTo(SESSION_END_TIME); in testExerciseSession_buildSession_buildCorrectObject()
131 SESSION_END_TIME, in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
138 SESSION_END_TIME, in testExerciseSession_buildEqualSessions_equalsReturnsTrue()
153 SESSION_END_TIME, in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
160 new ExerciseLap.Builder(SESSION_START_TIME, SESSION_END_TIME) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
167 SESSION_END_TIME, in testExerciseSession_buildSessionWithAllFields_buildCorrectObject()
198 SESSION_END_TIME, in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate()
227 SESSION_END_TIME, in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException()
233 SESSION_END_TIME.plusSeconds(1), 10.0, 10.0) in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException()
[all …]
DExerciseLapTest.java19 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
108 SESSION_END_TIME, in testLaps_lapsOverlaps_throwsException() local
DExerciseSegmentTest.java19 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
120 SESSION_END_TIME, in testExerciseSegment_segmentsOverlap_throwsException() local
DSleepSessionRecordTest.java19 import static android.healthconnect.cts.utils.DataFactory.SESSION_END_TIME;
506 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in buildSleepSessionMinimal()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java70 public static final Instant SESSION_END_TIME = SESSION_START_TIME.plus(1, ChronoUnit.HOURS); field in DataFactory
174 return new SleepSessionRecord.Builder(metadata, SESSION_START_TIME, SESSION_END_TIME) in buildSleepSession()
214 SESSION_END_TIME, in buildExerciseSession()
225 SESSION_END_TIME.minusSeconds(20), SESSION_END_TIME) in buildExerciseSession()
272 SESSION_END_TIME); in plannedExerciseSession()