/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | ExerciseDurationAggregationTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 104 generateMetadata(), in testSimpleAggregation_oneSession_returnsItsDuration() 128 generateMetadata(), in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() 151 generateMetadata(), in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() 180 generateMetadata(), in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() 216 generateMetadata(), in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups() 251 generateMetadata(), in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset() 280 generateMetadata(), in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
|
D | SleepDurationAggregationTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 89 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSession_returnsItsDuration() 114 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 155 new SleepSessionRecord.Builder(generateMetadata(), SESSION_START_TIME, endTime) in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 84 public static Metadata generateMetadata() { in generateMetadata() method in DataFactory 85 return generateMetadata(UUID.randomUUID().toString()); in generateMetadata() 89 public static Metadata generateMetadata(String id) { in generateMetadata() method in DataFactory 90 return generateMetadata(id, "clientRecordId" + Math.random()); in generateMetadata() 94 public static Metadata generateMetadata(String id, String clientId) { in generateMetadata() method in DataFactory 108 return generateMetadata(UUID.randomUUID().toString(), clientId); in generateMetadataWithClientId() 159 return buildSleepSession(generateMetadata()); in buildSleepSession() 196 return buildExerciseSession(generateMetadata()); in buildExerciseSession() 370 return getStepsRecord(steps, generateMetadata()); in getStepsRecord() 395 return new StepsRecord.Builder(generateMetadata(id), NOW, NOW.plusMillis(1000), 10).build(); in getStepsRecord() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExerciseLapTest.java | 21 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 74 generateMetadata(), in testLaps_lapStartTimeIllegal_throwsException() 90 generateMetadata(), in testLaps_lapEndTimeIllegal_throwsException() 106 generateMetadata(), in testLaps_lapsOverlaps_throwsException()
|
D | ExerciseSegmentTest.java | 21 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 84 generateMetadata(), in testExerciseSegment_lapStartTimeIllegal_throwsException() 101 generateMetadata(), in testExerciseSegment_lapEndTimeIllegal_throwsException() 118 generateMetadata(), in testExerciseSegment_segmentsOverlap_throwsException()
|
D | SleepSessionRecordTest.java | 22 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 104 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, INTERMEDIATE_TIME) in testSleepSession_sleepStageEndTimeIllegal_throwsException() 117 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testSleepSession_stagesOverlap_throwsException() 155 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testSleepSession_setsStagesOneByOne_stagesEqualsToLastSet() 164 new SleepSessionRecord.Builder(generateMetadata(), INTERMEDIATE_TIME, END_TIME) in testSleepSession_sleepStageStartTimeIllegal_throwsException() 180 new SleepSessionRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testSleepSession_buildSession_buildsCorrectObject() 506 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME) in buildSleepSessionMinimal()
|
D | MenstruationPeriodRecordTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 327 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testZoneOffsets() 344 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testMenstruationPeriod_buildSession_buildCorrectObject() 352 Metadata metadata = generateMetadata(); in testMenstruationPeriod_buildEqualSessions_equalsReturnsTrue() 363 new MenstruationPeriodRecord.Builder(generateMetadata(), START_TIME, END_TIME) in testMenstruationPeriod_buildSessionWithAllFields_buildCorrectObject()
|
D | IntermenstrualBleedingRecordTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 348 new IntermenstrualBleedingRecord.Builder(generateMetadata(), TIME).build(); in testIntermenstrualBleeding_buildSession_buildCorrectObject() 354 Metadata metadata = generateMetadata(); in testIntermenstrualBleeding_buildEqualSessions_equalsReturnsTrue() 365 new IntermenstrualBleedingRecord.Builder(generateMetadata(), TIME) in testIntermenstrualBleeding_buildSessionWithAllFields_buildCorrectObject()
|
D | BodyWaterMassRecordTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 321 new BodyWaterMassRecord.Builder(generateMetadata(), TIME, Mass.fromGrams(40)) in testBodyWaterMass_buildSession_buildCorrectObject() 328 Metadata metadata = generateMetadata(); in testBodyWaterMass_buildEqualSessions_equalsReturnsTrue() 339 new BodyWaterMassRecord.Builder(generateMetadata(), TIME, Mass.fromGrams(40)) in testBodyWaterMass_buildSessionWithAllFields_buildCorrectObject()
|
D | HeartRateVariabilityRmssdRecordTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 350 new HeartRateVariabilityRmssdRecord.Builder(generateMetadata(), TIME, 1.3).build(); in testHeartRateVariabilityRmssd_buildSession_buildCorrectObject() 356 Metadata metadata = generateMetadata(); in testHeartRateVariabilityRmssd_buildEqualSessions_equalsReturnsTrue() 367 new HeartRateVariabilityRmssdRecord.Builder(generateMetadata(), TIME, 1.3) in testHeartRateVariabilityRmssd_buildSessionWithAllFields_buildCorrectObject()
|
D | WeightRecordTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 724 generateMetadata(), in testAggregateLocalFilter_minOffsetRecord() 730 generateMetadata(), in testAggregateLocalFilter_minOffsetRecord() 771 generateMetadata(), in testOffset() 777 generateMetadata(), in testOffset() 801 generateMetadata(), in testAggregateLocalFilter_daysPeriod()
|
D | ExerciseSessionRecordTest.java | 27 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 126 Metadata metadata = generateMetadata(); in testExerciseSession_buildEqualSessions_equalsReturnsTrue() 165 generateMetadata(), in testExerciseSession_buildSessionWithAllFields_buildCorrectObject() 323 generateMetadata(), in testExerciseSessionBuilds_zoneOffsets_offsetsAreDefault() 925 generateMetadata(), SESSION_START_TIME, SESSION_END_TIME, sessionType) in buildRecordWithOneSegment()
|
D | StepsRecordTest.java | 23 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 1337 generateMetadata(), in testAggregateLocalFilter_minOffsetRecord() 1345 generateMetadata(), in testAggregateLocalFilter_minOffsetRecord()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 20 import static android.healthconnect.cts.utils.DataFactory.generateMetadata; 793 generateMetadata(), in getStepsRecord_minusDays()
|