/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | HeartRateFormatterTest.kt | 24 import com.android.healthconnect.controller.tests.utils.getHeartRateRecord 58 val record: HeartRateRecord = getHeartRateRecord(listOf(100, 102)) in formatValue_returnsHeartRateValues() 66 val record: HeartRateRecord = getHeartRateRecord(listOf(100)) in formatValue_singleSampleValue_returnsSingleHeartRateValue() 72 val record: HeartRateRecord = getHeartRateRecord(listOf(100, 102)) in formatA11yValue_pluralValue_returnsA11yHeartRateValues() 81 val record: HeartRateRecord = getHeartRateRecord(listOf(1)) in formatA11yValue_singleSampleValue_returnsA11yHeartRateValues() 90 val record: HeartRateRecord = getHeartRateRecord(listOf(80, 90)) in <lambda>()
|
D | HealthDataEntryFormatterTest.kt | 26 import com.android.healthconnect.controller.tests.utils.getHeartRateRecord 62 val heartRateRecord = getHeartRateRecord(listOf(80, 81, 100)) in format_formatsHeartRateRecord()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 291 return getHeartRateRecord(72, getEmptyMetadata()); in getHeartRateRecordWithEmptyMetadata() 295 public static HeartRateRecord getHeartRateRecord(int heartRate, Metadata metadata) { in getHeartRateRecord() method in DataFactory 304 public static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord() method in DataFactory 305 return getHeartRateRecord(72); in getHeartRateRecord() 308 public static HeartRateRecord getHeartRateRecord(int heartRate, String clientId) { in getHeartRateRecord() method in DataFactory 309 return getHeartRateRecord(heartRate, NOW.plusMillis(100), clientId); in getHeartRateRecord() 312 public static HeartRateRecord getHeartRateRecord(int heartRate) { in getHeartRateRecord() method in DataFactory 313 return getHeartRateRecord(heartRate, NOW.plusMillis(100)); in getHeartRateRecord() 316 public static HeartRateRecord getHeartRateRecord(int heartRate, Instant instant) { in getHeartRateRecord() method in DataFactory 317 return getHeartRateRecord(heartRate, instant, "HR" + Math.random()); in getHeartRateRecord() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | HeartRateRecordTest.java | 26 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 242 getHeartRateRecord(72, Instant.now().minus(1, ChronoUnit.DAYS)), in testReadHeartRateRecordUsingFilters_withPageSize() 243 getHeartRateRecord(72, Instant.now().minus(2, ChronoUnit.DAYS))); in testReadHeartRateRecordUsingFilters_withPageSize() 257 getHeartRateRecord(72, Instant.now().minusMillis(1000)), in testReadHeartRateRecordUsingFilters_withPageToken() 258 getHeartRateRecord(72, Instant.now().minusMillis(2000)), in testReadHeartRateRecordUsingFilters_withPageToken() 259 getHeartRateRecord(72, Instant.now().minusMillis(3000)), in testReadHeartRateRecordUsingFilters_withPageToken() 260 getHeartRateRecord(72, Instant.now().minusMillis(4000))); in testReadHeartRateRecordUsingFilters_withPageToken() 282 List<Record> recordList = Arrays.asList(getHeartRateRecord(), getHeartRateRecord()); in testReadHeartRateRecordUsingFilters_nextPageTokenEnd() 608 getHeartRateRecord(71), getHeartRateRecord(72), getHeartRateRecord(73)); in testBpmAggregation_timeRange_not_present() 673 getHeartRateRecord(71), getHeartRateRecord(72), getHeartRateRecord(73)); in testBpmAggregation_withDataOrigin_incorrect() [all …]
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/ |
D | HealthConnectServiceLogsTests.java | 27 import static android.healthconnect.cts.testhelper.TestHelperUtils.getHeartRateRecord; 99 List.of(getBloodPressureRecord(), getHeartRateRecord()), mHealthConnectManager); in testHealthConnectInsertRecords() 112 List.of(getBloodPressureRecord(), getHeartRateRecord(), getStepsRecord()), in testHealthConnectUpdateRecords() 249 List.of(getBloodPressureRecord(), getHeartRateRecord()), mHealthConnectManager); in testHealthConnectGetChangeLogs() 355 List.of(getStepsRecord(), getBloodPressureRecord(), getHeartRateRecord()), in testHealthConnectDatabaseStats()
|
D | DailyLogsTests.java | 21 import static android.healthconnect.cts.testhelper.TestHelperUtils.getHeartRateRecord; 59 getHeartRateRecord()), in testInsertRecordsSucceed()
|
D | HealthConnectUiTestHelper.kt | 91 TestHelperUtils.getHeartRateRecord(), in openHomeFragment()
|
D | TestHelperUtils.java | 87 public static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord() method in TestHelperUtils
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/ |
D | PaginationTests.java | 20 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 172 getHeartRateRecord(60, now.minusMillis(5000), "id1"), in readOnePage_pageTokenSpecified_returnsCorrectPage() 173 getHeartRateRecord(70, now.minusMillis(4000), "id2"), in readOnePage_pageTokenSpecified_returnsCorrectPage() 174 getHeartRateRecord(80, now.minusMillis(3000), "id3"))); in readOnePage_pageTokenSpecified_returnsCorrectPage()
|
D | ReadByFilterTests.java | 21 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 89 getHeartRateRecord(72, heartRateId), in filterByDataType_dataOfOtherTypesExcluded()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectAccessLogsTest.java | 19 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 145 Record heartRateRecord = getHeartRateRecord(); in testAccessLogs_update_multipleRecordTypes() 155 getHeartRateRecord( in testAccessLogs_update_multipleRecordTypes()
|
D | HealthConnectManagerTest.java | 2047 getHeartRateRecord(), in getTestRecords() 2165 private static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord() method in HealthConnectManagerTest
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/ |
D | HealthConnectManagerNotAllPermissionsAreGrantedTest.java | 28 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 177 getHeartRateRecord(), in getTestRecords()
|
D | HealthConnectManagerNoPermissionsGrantedTest.java | 36 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 274 new Pair<>(getHeartRateRecord(), BPM_MAX), in testAggregate_noPermissions_expectError() 376 getHeartRateRecord(), in getTestRecords()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/ |
D | SeedData.kt | 104 getHeartRateRecord( in <lambda>() 146 private fun getHeartRateRecord( in <lambda>() method in com.android.healthconnect.testapps.toolbox.seed.SeedData
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 25 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 358 List<Record> testRecords = ImmutableList.of(getStepsRecord(), getHeartRateRecord()); in testChangeLogs_insert_filterRecordType_returnsUpsertedLogs() 488 insertRecords(ImmutableList.of(getStepsRecord(), getHeartRateRecord())); in testChangeLogs_insertAndDelete_recordFilter_onlyReturnsDeletedLogsForRecordType() 629 getHeartRateRecord(), in testChangeLogs_insert_withPageSize_paginatesThroughAllChangeLogs() 725 getHeartRateRecord(heartRate, yesterday.plus(i, MINUTES), "heartRateId_" + i)); in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregateWithFiltersTest.java | 33 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord; 477 getHeartRateRecord( in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults() 480 getHeartRateRecord( in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 131 getHeartRateRecord(getEmptyMetadata()), 659 getHeartRateRecord(getEmptyMetadata()), in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess() 1198 private static HeartRateRecord getHeartRateRecord(Metadata metadata) { in getHeartRateRecord() method in HealthConnectDeviceTest
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 70 fun getHeartRateRecord(heartRateValues: List<Long>, startTime: Instant = NOW): HeartRateRecord { in <lambda>() method
|