/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | UiTestUtils.kt | 278 val testMetadataBuilder: Metadata.Builder = Metadata.Builder() in stepsRecord() constant 279 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in stepsRecord() 280 testMetadataBuilder.setClientRecordId("SR" + Math.random()) in stepsRecord() 281 return StepsRecord.Builder(testMetadataBuilder.build(), startTime, endTime, stepCount) in stepsRecord() 291 val testMetadataBuilder: Metadata.Builder = Metadata.Builder() in distanceRecord() constant 292 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord() 293 testMetadataBuilder.setClientRecordId("SR" + Math.random()) in distanceRecord() 295 testMetadataBuilder.build(), startTime, endTime, Length.fromMeters(500.0)) in distanceRecord() 301 val testMetadataBuilder: Metadata.Builder = Metadata.Builder() in distanceRecord() constant 302 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/ |
D | RateLimiterTest.java | 166 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in exceedRecordMemoryQuota() local 167 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in exceedRecordMemoryQuota() 168 testMetadataBuilder.setClientRecordId("HRR" + Math.random()); in exceedRecordMemoryQuota() 169 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in exceedRecordMemoryQuota() 179 testMetadataBuilder.build(), in exceedRecordMemoryQuota()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | StepsCadenceRecordTest.java | 636 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getStepsCadenceRecordWithClientVersion() local 637 testMetadataBuilder.setClientRecordId(clientRecordId); in getStepsCadenceRecordWithClientVersion() 638 testMetadataBuilder.setClientRecordVersion(version); in getStepsCadenceRecordWithClientVersion() 639 Metadata testMetaData = testMetadataBuilder.build(); in getStepsCadenceRecordWithClientVersion() 686 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in buildRecordForStepsCadence() local 687 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in buildRecordForStepsCadence() 688 testMetadataBuilder.setClientRecordId("SCR" + Math.random()); in buildRecordForStepsCadence() 689 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in buildRecordForStepsCadence() 699 testMetadataBuilder.build(), in buildRecordForStepsCadence()
|
D | MenstruationFlowRecordTest.java | 550 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteMenstruationFlowRecord() local 551 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteMenstruationFlowRecord() 552 testMetadataBuilder.setClientRecordId("MFR" + Math.random()); in getCompleteMenstruationFlowRecord() 553 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteMenstruationFlowRecord() 555 return new MenstruationFlowRecord.Builder(testMetadataBuilder.build(), Instant.now(), 1) in getCompleteMenstruationFlowRecord()
|
D | SexualActivityRecordTest.java | 533 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteSexualActivityRecord() local 534 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteSexualActivityRecord() 535 testMetadataBuilder.setClientRecordId("SAR" + Math.random()); in getCompleteSexualActivityRecord() 536 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteSexualActivityRecord() 538 return new SexualActivityRecord.Builder(testMetadataBuilder.build(), Instant.now(), 1) in getCompleteSexualActivityRecord()
|
D | OxygenSaturationRecordTest.java | 564 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteOxygenSaturationRecord() local 565 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteOxygenSaturationRecord() 566 testMetadataBuilder.setClientRecordId("OSR" + Math.random()); in getCompleteOxygenSaturationRecord() 567 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteOxygenSaturationRecord() 570 testMetadataBuilder.build(), Instant.now(), Percentage.fromValue(10.0)) in getCompleteOxygenSaturationRecord()
|
D | IntermenstrualBleedingRecordTest.java | 605 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteIntermenstrualBleedingRecord() local 606 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteIntermenstrualBleedingRecord() 607 testMetadataBuilder.setClientRecordId("IMB" + Math.random()); in getCompleteIntermenstrualBleedingRecord() 608 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteIntermenstrualBleedingRecord() 610 return new IntermenstrualBleedingRecord.Builder(testMetadataBuilder.build(), Instant.now()) in getCompleteIntermenstrualBleedingRecord()
|
D | OvulationTestRecordTest.java | 531 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteOvulationTestRecord() local 532 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteOvulationTestRecord() 533 testMetadataBuilder.setClientRecordId("OTR" + Math.random()); in getCompleteOvulationTestRecord() 534 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteOvulationTestRecord() 536 return new OvulationTestRecord.Builder(testMetadataBuilder.build(), Instant.now(), 1) in getCompleteOvulationTestRecord()
|
D | BodyTemperatureRecordTest.java | 566 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBodyTemperatureRecord() local 567 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBodyTemperatureRecord() 568 testMetadataBuilder.setClientRecordId("BTR" + Math.random()); in getCompleteBodyTemperatureRecord() 569 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBodyTemperatureRecord() 572 testMetadataBuilder.build(), in getCompleteBodyTemperatureRecord()
|
D | BoneMassRecordTest.java | 522 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBoneMassRecord() local 523 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBoneMassRecord() 524 testMetadataBuilder.setClientRecordId("BMR" + Math.random()); in getCompleteBoneMassRecord() 525 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBoneMassRecord() 528 testMetadataBuilder.build(), Instant.now(), Mass.fromGrams(10.0)) in getCompleteBoneMassRecord()
|
D | RespiratoryRateRecordTest.java | 552 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteRespiratoryRateRecord() local 553 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteRespiratoryRateRecord() 554 testMetadataBuilder.setClientRecordId("RRR" + Math.random()); in getCompleteRespiratoryRateRecord() 555 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteRespiratoryRateRecord() 557 return new RespiratoryRateRecord.Builder(testMetadataBuilder.build(), Instant.now(), 10.0) in getCompleteRespiratoryRateRecord()
|
D | CervicalMucusRecordTest.java | 535 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteCervicalMucusRecord() local 536 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteCervicalMucusRecord() 537 testMetadataBuilder.setClientRecordId("CMR" + Math.random()); in getCompleteCervicalMucusRecord() 538 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteCervicalMucusRecord() 540 return new CervicalMucusRecord.Builder(testMetadataBuilder.build(), Instant.now(), 1, 1) in getCompleteCervicalMucusRecord()
|
D | BodyFatRecordTest.java | 522 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBodyFatRecord() local 523 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBodyFatRecord() 524 testMetadataBuilder.setClientRecordId("BFR" + Math.random()); in getCompleteBodyFatRecord() 525 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBodyFatRecord() 528 testMetadataBuilder.build(), Instant.now(), Percentage.fromValue(10.0)) in getCompleteBodyFatRecord()
|
D | BodyWaterMassRecordTest.java | 581 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBodyWaterMassRecord() local 582 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBodyWaterMassRecord() 583 testMetadataBuilder.setClientRecordId("BWM" + Math.random()); in getCompleteBodyWaterMassRecord() 584 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBodyWaterMassRecord() 587 testMetadataBuilder.build(), Instant.now(), Mass.fromGrams(100.0)) in getCompleteBodyWaterMassRecord()
|
D | HeartRateVariabilityRmssdRecordTest.java | 617 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteHeartRateVariabilityRmssdRecord() local 618 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteHeartRateVariabilityRmssdRecord() 619 testMetadataBuilder.setClientRecordId("HRV" + Math.random()); in getCompleteHeartRateVariabilityRmssdRecord() 620 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteHeartRateVariabilityRmssdRecord() 623 testMetadataBuilder.build(), Instant.now(), 1.3) in getCompleteHeartRateVariabilityRmssdRecord()
|
D | LeanBodyMassRecordTest.java | 533 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteLeanBodyMassRecord() local 534 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteLeanBodyMassRecord() 535 testMetadataBuilder.setClientRecordId("LBMR" + Math.random()); in getCompleteLeanBodyMassRecord() 536 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteLeanBodyMassRecord() 539 testMetadataBuilder.build(), Instant.now(), Mass.fromGrams(10.0)) in getCompleteLeanBodyMassRecord()
|
D | ActiveCaloriesBurnedRecordTest.java | 612 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteActiveCaloriesBurnedRecord() local 613 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteActiveCaloriesBurnedRecord() 614 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteActiveCaloriesBurnedRecord() 615 testMetadataBuilder.setClientRecordId("ACBR" + Math.random()); in getCompleteActiveCaloriesBurnedRecord() 618 testMetadataBuilder.build(), in getCompleteActiveCaloriesBurnedRecord()
|
D | Vo2MaxRecordTest.java | 510 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteVo2MaxRecord() local 511 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteVo2MaxRecord() 512 testMetadataBuilder.setClientRecordId("VMR" + Math.random()); in getCompleteVo2MaxRecord() 513 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteVo2MaxRecord() 515 return new Vo2MaxRecord.Builder(testMetadataBuilder.build(), Instant.now(), 1, 10.0) in getCompleteVo2MaxRecord()
|
D | FloorsClimbedRecordTest.java | 556 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteFloorsClimbedRecord() local 557 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteFloorsClimbedRecord() 558 testMetadataBuilder.setClientRecordId("FCR" + Math.random()); in getCompleteFloorsClimbedRecord() 559 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteFloorsClimbedRecord() 561 testMetadataBuilder.build(), in getCompleteFloorsClimbedRecord()
|
D | BloodGlucoseRecordTest.java | 566 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBloodGlucoseRecord() local 567 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBloodGlucoseRecord() 568 testMetadataBuilder.setClientRecordId("BGR" + Math.random()); in getCompleteBloodGlucoseRecord() 569 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBloodGlucoseRecord() 572 testMetadataBuilder.build(), in getCompleteBloodGlucoseRecord()
|
D | BasalBodyTemperatureRecordTest.java | 587 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteBasalBodyTemperatureRecord() local 588 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteBasalBodyTemperatureRecord() 589 testMetadataBuilder.setClientRecordId("BBTR" + Math.random()); in getCompleteBasalBodyTemperatureRecord() 590 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteBasalBodyTemperatureRecord() 593 testMetadataBuilder.build(), in getCompleteBasalBodyTemperatureRecord()
|
D | HeightRecordTest.java | 766 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteHeightRecord() local 768 testMetadataBuilder.setId(id); in getCompleteHeightRecord() 770 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteHeightRecord() 771 testMetadataBuilder.setClientRecordId(clientRecordId); in getCompleteHeightRecord() 772 testMetadataBuilder.setClientRecordVersion(clientRecordVersion); in getCompleteHeightRecord() 773 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteHeightRecord() 775 return new HeightRecord.Builder(testMetadataBuilder.build(), time, height) in getCompleteHeightRecord()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 464 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteStepsRecord() local 466 testMetadataBuilder.setId(id); in getCompleteStepsRecord() 468 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteStepsRecord() 469 testMetadataBuilder.setClientRecordId(clientRecordId); in getCompleteStepsRecord() 470 testMetadataBuilder.setClientRecordVersion(clientRecordVersion); in getCompleteStepsRecord() 471 testMetadataBuilder.setRecordingMethod(RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteStepsRecord() 472 Metadata testMetaData = testMetadataBuilder.build(); in getCompleteStepsRecord()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 2139 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getStepsRecord() local 2140 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getStepsRecord() 2142 testMetadataBuilder.setClientRecordId(clientRecordId); in getStepsRecord() 2144 return new StepsRecord.Builder(testMetadataBuilder.build(), startTime, endTime, count) in getStepsRecord() 2173 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getHeartRateRecord() local 2174 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getHeartRateRecord() 2176 testMetadataBuilder.build(), in getHeartRateRecord() 2192 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getBasalMetabolicRateRecord() local 2193 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getBasalMetabolicRateRecord() 2195 testMetadataBuilder.setClientRecordId(clientRecordId); in getBasalMetabolicRateRecord() [all …]
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/ |
D | BackupRestoreE2ETest.java | 323 Metadata.Builder testMetadataBuilder = new Metadata.Builder(); in getCompleteActiveCaloriesBurnedRecord() local 324 testMetadataBuilder.setDevice(device).setDataOrigin(dataOrigin); in getCompleteActiveCaloriesBurnedRecord() 325 testMetadataBuilder.setRecordingMethod(Metadata.RECORDING_METHOD_ACTIVELY_RECORDED); in getCompleteActiveCaloriesBurnedRecord() 326 testMetadataBuilder.setClientRecordId("ClientRecordId" + UUID.randomUUID()); in getCompleteActiveCaloriesBurnedRecord() 331 testMetadataBuilder.build(), in getCompleteActiveCaloriesBurnedRecord()
|