/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/ |
D | OrderingTests.java | 19 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 72 getDistanceRecord(567.8, startTime2, startTime2.plusMillis(1)), in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 73 getDistanceRecord(901.2, startTime3, startTime3.plusMillis(1)), in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 74 getDistanceRecord(123.4, startTime1, startTime1.plusMillis(1)))); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 95 getDistanceRecord(567.8, startTime2, startTime2.plusMillis(1)), in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 96 getDistanceRecord(901.2, startTime3, startTime3.plusMillis(1)), in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 97 getDistanceRecord(123.4, startTime1, startTime1.plusMillis(1)))); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 173 getDistanceRecord(567.8, startTime2, startTime2.plusMillis(1)), in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() 174 getDistanceRecord(345.6, startTime4, startTime4.plusMillis(1)), in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() 175 getDistanceRecord(901.2, startTime3, startTime3.plusMillis(1)), in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() [all …]
|
D | ReadByFilterTests.java | 20 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 87 getDistanceRecord(123.0, startTime, startTime.plusMillis(1000), distanceId), in filterByDataType_dataOfOtherTypesExcluded() 187 getDistanceRecord( in filterByTimeRange_physicalTime_returnsDataWithinRange() 192 getDistanceRecord( in filterByTimeRange_physicalTime_returnsDataWithinRange() 197 getDistanceRecord( in filterByTimeRange_physicalTime_returnsDataWithinRange() 202 getDistanceRecord( in filterByTimeRange_physicalTime_returnsDataWithinRange() 231 getDistanceRecord( in filterByTimeRange_localTime_returnsDataWithinRange() 236 getDistanceRecord( in filterByTimeRange_localTime_returnsDataWithinRange() 241 getDistanceRecord( in filterByTimeRange_localTime_returnsDataWithinRange() 246 getDistanceRecord( in filterByTimeRange_localTime_returnsDataWithinRange()
|
D | PaginationTests.java | 19 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 79 getDistanceRecord( in readAllData_moreThanOnePage_allPagesReturnedCorrectly() 84 getDistanceRecord(1.0, startTime, startTime.plus(5, MINUTES), "id1"), in readAllData_moreThanOnePage_allPagesReturnedCorrectly() 85 getDistanceRecord( in readAllData_moreThanOnePage_allPagesReturnedCorrectly() 90 getDistanceRecord( in readAllData_moreThanOnePage_allPagesReturnedCorrectly() 95 getDistanceRecord( in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
|
D | ReadByIdTests.java | 19 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 66 List<Record> records = insertRecords(List.of(getDistanceRecord())); in readDataById_noPageTokenSet()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | DistanceFormatterTest.kt | 61 val record = getDistanceRecord(10087.0) in <lambda>() 69 val record = getDistanceRecord(9088.0) in <lambda>() 77 val record = getDistanceRecord(1007.0) in <lambda>() 85 val record = getDistanceRecord(1009.0) in <lambda>() 90 private fun getDistanceRecord(lengthInMeters: Double): DistanceRecord { in getDistanceRecord() method in com.android.healthconnect.controller.tests.dataentries.formatters.DistanceFormatterTest
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 496 public static DistanceRecord getDistanceRecord() { in getDistanceRecord() method in DataFactory 497 return getDistanceRecord(10.0, NOW, NOW.plusMillis(1000)); in getDistanceRecord() 502 return getDistanceRecord( in getDistanceRecordWithClientId() 513 return getDistanceRecord( in getDistanceRecordWithNonEmptyId() 524 return getDistanceRecord( in getDistanceRecordWithEmptyMetadata() 534 public static DistanceRecord getDistanceRecord(double distance, Instant start, Instant end) { in getDistanceRecord() method in DataFactory 535 return getDistanceRecord( in getDistanceRecord() 545 public static DistanceRecord getDistanceRecord( in getDistanceRecord() method in DataFactory 547 return getDistanceRecord(distance, start, end, offset, offset, getEmptyMetadata()); in getDistanceRecord() 551 public static DistanceRecord getDistanceRecord( in getDistanceRecord() method in DataFactory [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 88 fun getDistanceRecord(distance: Length, time: Instant = NOW): DistanceRecord { in getDistanceRecord() method 138 getDistanceRecord( in getRandomRecord() 363 getDistanceRecord(Length.fromMeters(1500.0), START_TIME) 389 getDistanceRecord(Length.fromMeters(2500.0), instantYesterday), in getMixedRecordsAcrossTwoDays() 399 getDistanceRecord(Length.fromMeters(2000.0), instantTwoDaysAgo))) in getMixedRecordsAcrossThreeDays()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/ |
D | HealthConnectManagerNoPermissionsGrantedTest.java | 34 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 276 new Pair<>(getDistanceRecord(), DISTANCE_TOTAL), in testAggregate_noPermissions_expectError()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregationApisTest.java | 32 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 216 getDistanceRecord(210.0, time, time.plus(21, MINUTES), dataZone), in groupByDurationWithLocalFilter_distanceTotal() 217 getDistanceRecord( in groupByDurationWithLocalFilter_distanceTotal()
|
D | AggregateWithFiltersTest.java | 32 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 506 insertRecords(List.of(getDistanceRecord(123.4, startTime, startTime.plusMillis(1000)))); in aggregationTypeFilter_noDataForFilteredType_noDataReturned()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 24 import static android.healthconnect.cts.utils.DataFactory.getDistanceRecord; 704 String preExistingRecordId = insertRecordAndGetId(getDistanceRecord()); in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
|