Home
last modified time | relevance | path

Searched refs:getHeartRateRecord (Results 1 – 19 of 19) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DHeartRateFormatterTest.kt24 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>()
DHealthDataEntryFormatterTest.kt26 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/
DDataFactory.java291 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/
DHeartRateRecordTest.java26 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/
DHealthConnectServiceLogsTests.java27 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()
DDailyLogsTests.java21 import static android.healthconnect.cts.testhelper.TestHelperUtils.getHeartRateRecord;
59 getHeartRateRecord()), in testInsertRecordsSucceed()
DHealthConnectUiTestHelper.kt91 TestHelperUtils.getHeartRateRecord(), in openHomeFragment()
DTestHelperUtils.java87 public static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord() method in TestHelperUtils
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DPaginationTests.java20 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()
DReadByFilterTests.java21 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord;
89 getHeartRateRecord(72, heartRateId), in filterByDataType_dataOfOtherTypesExcluded()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectAccessLogsTest.java19 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord;
145 Record heartRateRecord = getHeartRateRecord(); in testAccessLogs_update_multipleRecordTypes()
155 getHeartRateRecord( in testAccessLogs_update_multipleRecordTypes()
DHealthConnectManagerTest.java2047 getHeartRateRecord(), in getTestRecords()
2165 private static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord() method in HealthConnectManagerTest
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java28 import static android.healthconnect.cts.utils.DataFactory.getHeartRateRecord;
177 getHeartRateRecord(), in getTestRecords()
DHealthConnectManagerNoPermissionsGrantedTest.java36 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/
DSeedData.kt104 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/
DHealthConnectChangeLogsTests.java25 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/
DAggregateWithFiltersTest.java33 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/
DHealthConnectDeviceTest.java131 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/
DTestConstants.kt70 fun getHeartRateRecord(heartRateValues: List<Long>, startTime: Instant = NOW): HeartRateRecord { in <lambda>() method