Home
last modified time | relevance | path

Searched refs:getWeightRecord (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java35 import static android.healthconnect.cts.utils.DataFactory.getWeightRecord;
257 getWeightRecord(50.0, time.minus(30, DAYS), dataZone), in groupByPeriod_weightAvg()
258 getWeightRecord(60.0, time.minus(15, DAYS), dataZone), in groupByPeriod_weightAvg()
259 getWeightRecord(70.0, time.minus(60, DAYS), dataZone))); in groupByPeriod_weightAvg()
295 getWeightRecord(50.0, time.minus(30, DAYS)), in aggregateWithInstantFilter_weightMax()
296 getWeightRecord(60.0, time.minus(15, DAYS)), in aggregateWithInstantFilter_weightMax()
297 getWeightRecord(70.0, time.minus(60, DAYS)))); in aggregateWithInstantFilter_weightMax()
312 WeightRecord record1 = getWeightRecord(50.0, time.minus(24, DAYS)); in groupByDurationWithInstantFilter_weightMin()
313 WeightRecord record2 = getWeightRecord(60.0, time.minus(11, DAYS)); in groupByDurationWithInstantFilter_weightMin()
314 WeightRecord record3 = getWeightRecord(70.0, time.minus(4, DAYS).minusMillis(1)); in groupByDurationWithInstantFilter_weightMin()
DAggregateWithFiltersTest.java35 import static android.healthconnect.cts.utils.DataFactory.getWeightRecord;
369 List.of(getWeightRecord(80, endTime), getWeightRecord(77, endTime.minusMillis(1)))); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt106 fun getWeightRecord(time: Instant = NOW, weight: Mass): WeightRecord { in getWeightRecord() method
365 val WEIGHT_DAY_100: WeightRecord = getWeightRecord(INSTANT_DAY, Mass.fromGrams(100000.0))
366 val WEIGHT_WEEK_100: WeightRecord = getWeightRecord(INSTANT_WEEK, Mass.fromGrams(100000.0))
367 val WEIGHT_MONTH_100: WeightRecord = getWeightRecord(INSTANT_MONTH3, Mass.fromGrams(100000.0))
368 val WEIGHT_STARTDATE_100: WeightRecord = getWeightRecord(START_TIME, Mass.fromGrams(100000.0))
398 getWeightRecord(instantTwoDaysAgo, Mass.fromGrams(95000.0)), in getMixedRecordsAcrossThreeDays()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DWeightRecordTest.java861 List<Record> updatedRecords = List.of(getWeightRecord(insertedId, now, 20.0)); in updateRecordsFromAnotherApp_byId_fail()
872 List<Record> updatedRecords = List.of(getWeightRecord(now, "id1", 20.0)); in updateRecordsFromAnotherApp_byClientRecordId_fail()
919 return getWeightRecord( in getWeightRecordWithTime()
923 private static WeightRecord getWeightRecord(String id, Instant time, double grams) { in getWeightRecord() method in WeightRecordTest
924 return getWeightRecord(id, time, /* offset= */ null, /* clientRecordId= */ null, grams); in getWeightRecord()
927 private static WeightRecord getWeightRecord(Instant time, String clientRecordId, double grams) { in getWeightRecord() method in WeightRecordTest
928 return getWeightRecord(time, /* offset= */ null, clientRecordId, grams); in getWeightRecord()
931 private static WeightRecord getWeightRecord( in getWeightRecord() method in WeightRecordTest
933 return getWeightRecord(/* id= */ null, time, offset, clientRecordId, grams); in getWeightRecord()
936 private static WeightRecord getWeightRecord( in getWeightRecord() method in WeightRecordTest
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/
DHistoricAccessLimitWithPermissionTest.java22 import static android.healthconnect.cts.utils.DataFactory.getWeightRecord;
278 return insertRecordAndGetId(getWeightRecord(value, time)); in insertWeightRecord()
DHistoricAccessLimitTest.java22 import static android.healthconnect.cts.utils.DataFactory.getWeightRecord;
449 return insertRecordAndGetId(getWeightRecord(value, time)); in insertWeightRecord()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java349 public static WeightRecord getWeightRecord(double grams, Instant time) { in getWeightRecord() method in DataFactory
354 public static WeightRecord getWeightRecord(double weight, Instant time, ZoneOffset offset) { in getWeightRecord() method in DataFactory