/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseLapTest.java | 20 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 75 SESSION_START_TIME, in testLaps_lapStartTimeIllegal_throwsException() local 76 SESSION_START_TIME.plusSeconds(200), in testLaps_lapStartTimeIllegal_throwsException() 81 SESSION_START_TIME.minusSeconds(1), in testLaps_lapStartTimeIllegal_throwsException() 82 SESSION_START_TIME.plusSeconds(100)) in testLaps_lapStartTimeIllegal_throwsException() 91 SESSION_START_TIME, in testLaps_lapEndTimeIllegal_throwsException() local 92 SESSION_START_TIME.plusSeconds(200), in testLaps_lapEndTimeIllegal_throwsException() 97 SESSION_START_TIME, in testLaps_lapEndTimeIllegal_throwsException() 98 SESSION_START_TIME.plusSeconds(1200)) in testLaps_lapEndTimeIllegal_throwsException() 107 SESSION_START_TIME, in testLaps_lapsOverlaps_throwsException() local [all …]
|
D | ExerciseSegmentTest.java | 20 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 85 SESSION_START_TIME, in testExerciseSegment_lapStartTimeIllegal_throwsException() local 86 SESSION_START_TIME.plusSeconds(200), in testExerciseSegment_lapStartTimeIllegal_throwsException() 91 SESSION_START_TIME.minusSeconds(2), in testExerciseSegment_lapStartTimeIllegal_throwsException() 92 SESSION_START_TIME.plusSeconds(100), in testExerciseSegment_lapStartTimeIllegal_throwsException() 102 SESSION_START_TIME, in testExerciseSegment_lapEndTimeIllegal_throwsException() local 103 SESSION_START_TIME.plusSeconds(200), in testExerciseSegment_lapEndTimeIllegal_throwsException() 108 SESSION_START_TIME, in testExerciseSegment_lapEndTimeIllegal_throwsException() 109 SESSION_START_TIME.plusSeconds(1200), in testExerciseSegment_lapEndTimeIllegal_throwsException() 119 SESSION_START_TIME, in testExerciseSegment_segmentsOverlap_throwsException() local [all …]
|
D | PlannedExerciseSessionRecordTest.java | 20 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 230 .setStartTime(SESSION_START_TIME.plus(2, DAYS)) in insertMultipleRecords() 293 SESSION_START_TIME, in updateExerciseSession_dropTheReferenceToTrainingPlan_trainingPlanAlsoUpdated() 306 SESSION_START_TIME, in updateExerciseSession_dropTheReferenceToTrainingPlan_trainingPlanAlsoUpdated() 337 SESSION_START_TIME, in updateExerciseSession_introduceReferenceToTrainingPlan_trainingPlanAlsoUpdated() 349 SESSION_START_TIME, in updateExerciseSession_introduceReferenceToTrainingPlan_trainingPlanAlsoUpdated() 406 SESSION_START_TIME, in insertSession_sessionReferencesPlannedExerciseSession_idReferencesCreatedBothWays() 432 SESSION_START_TIME, in insertSession_referenceToNonExistentTrainingPlan_insertionFails() 452 SESSION_START_TIME, in bidirectionalReference_nullifiedWhenTrainingPlanDeleted() 479 SESSION_START_TIME, in bidirectionalReference_keptWhenTrainingPlanUpdated() [all …]
|
D | SleepSessionRecordTest.java | 20 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 474 metadataWithId, SESSION_START_TIME, SESSION_START_TIME.plusSeconds(800)) in getSleepSessionRecord_update() 480 SESSION_START_TIME, in getSleepSessionRecord_update() 481 SESSION_START_TIME.plusSeconds(100), in getSleepSessionRecord_update() 484 SESSION_START_TIME.plusSeconds(200), in getSleepSessionRecord_update() 485 SESSION_START_TIME.plusSeconds(300), in getSleepSessionRecord_update() 488 SESSION_START_TIME.plusSeconds(400), in getSleepSessionRecord_update() 489 SESSION_START_TIME.plusSeconds(500), in getSleepSessionRecord_update() 506 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in buildSleepSessionMinimal()
|
D | ExerciseSessionRecordTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 107 assertThat(record.getStartTime()).isEqualTo(SESSION_START_TIME); in testExerciseSession_buildSession_buildCorrectObject() 130 SESSION_START_TIME, in testExerciseSession_buildEqualSessions_equalsReturnsTrue() 137 SESSION_START_TIME, in testExerciseSession_buildEqualSessions_equalsReturnsTrue() 152 SESSION_START_TIME, in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 160 new ExerciseLap.Builder(SESSION_START_TIME, SESSION_END_TIME) in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 166 SESSION_START_TIME, in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 197 SESSION_START_TIME, in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 226 SESSION_START_TIME, in testExerciseSessionBuilds_routeTimestampAfterSessionEnd_throwsException() 242 SESSION_START_TIME, in testExerciseSessionBuilds_routeTimestampBeforeSessionStart_throwsException() [all …]
|
D | ExerciseRouteTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 114 new ExerciseRoute(List.of(buildLocationTimePoint(SESSION_START_TIME))); in testExerciseRouteLocation_buildRoute_success()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | SleepDurationAggregationTest.java | 21 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 89 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSession_returnsItsDuration() 109 SESSION_START_TIME, in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 110 SESSION_START_TIME.plusSeconds(100), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 114 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 119 SESSION_START_TIME.plusSeconds(200), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 120 SESSION_START_TIME.plusSeconds(1400), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 124 SESSION_START_TIME.plusSeconds(1500), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 125 SESSION_START_TIME.plusSeconds(2000), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 129 SESSION_START_TIME.plusSeconds(2100), in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() [all …]
|
D | ExerciseDurationAggregationTest.java | 21 import static android.healthconnect.cts.utils.DataFactory.SESSION_START_TIME; 63 .setStartTime(SESSION_START_TIME) 105 SESSION_START_TIME, in testSimpleAggregation_oneSession_returnsItsDuration() 129 SESSION_START_TIME.minusSeconds(10), in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() 139 .isEqualTo(SESSION_END_TIME.toEpochMilli() - SESSION_START_TIME.toEpochMilli()); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() 152 SESSION_START_TIME.minusSeconds(100), in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() 162 .isEqualTo(SESSION_END_TIME.toEpochMilli() - SESSION_START_TIME.toEpochMilli()); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() 174 SESSION_START_TIME, in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() 175 SESSION_START_TIME.plusSeconds(100), in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() 181 SESSION_START_TIME, in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() [all …]
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 69 public static final Instant SESSION_START_TIME = NOW.minus(10, ChronoUnit.DAYS); field in DataFactory 70 public static final Instant SESSION_END_TIME = SESSION_START_TIME.plus(1, ChronoUnit.HOURS); 174 return new SleepSessionRecord.Builder(metadata, SESSION_START_TIME, SESSION_END_TIME) in buildSleepSession() 180 SESSION_START_TIME, in buildSleepSession() 181 SESSION_START_TIME.plusSeconds(300), in buildSleepSession() 184 SESSION_START_TIME.plusSeconds(300), in buildSleepSession() 185 SESSION_START_TIME.plusSeconds(600), in buildSleepSession() 188 SESSION_START_TIME.plusSeconds(900), in buildSleepSession() 189 SESSION_START_TIME.plusSeconds(1200), in buildSleepSession() 213 SESSION_START_TIME, in buildExerciseSession() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/ |
D | GarageModeRecorderTest.java | 23 import static com.android.car.garagemode.GarageModeRecorder.SESSION_START_TIME; 161 return SESSION_START_TIME + mDateFormat.format(new Date(mSessionStartTime)); in getSessionStartString()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageModeRecorder.java | 49 static final String SESSION_START_TIME = "Session start time: "; field in GarageModeRecorder 188 stringBuilder.append(SESSION_START_TIME); in recordEvent()
|