Home
last modified time | relevance | path

Searched refs:HeartRateRecord (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHeartRateRecordTest.java20 import static android.health.connect.datatypes.HeartRateRecord.BPM_AVG;
21 import static android.health.connect.datatypes.HeartRateRecord.BPM_MAX;
22 import static android.health.connect.datatypes.HeartRateRecord.BPM_MIN;
23 import static android.health.connect.datatypes.HeartRateRecord.HEART_MEASUREMENTS_COUNT;
52 import android.health.connect.datatypes.HeartRateRecord;
95 HeartRateRecord.class, in tearDown()
131 ReadRecordsRequestUsingIds<HeartRateRecord> request = in testReadHeartRateRecord_invalidIds()
132 new ReadRecordsRequestUsingIds.Builder<>(HeartRateRecord.class) in testReadHeartRateRecord_invalidIds()
135 List<HeartRateRecord> result = TestUtils.readRecords(request); in testReadHeartRateRecord_invalidIds()
149 new HeartRateRecord.HeartRateSample(301, Instant.now().plusMillis(100)); in testCreateHeartRateRecord_invalidValue()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DHeartRateRecordInternal.java21 import android.health.connect.datatypes.HeartRateRecord;
39 extends SeriesRecordInternal<HeartRateRecord, HeartRateRecord.HeartRateSample> {
91 public HeartRateRecord toExternalRecord() { in toExternalRecord()
92 return new HeartRateRecord.Builder( in toExternalRecord()
118 private List<HeartRateRecord.HeartRateSample> getExternalSamples() { in getExternalSamples()
119 List<HeartRateRecord.HeartRateSample> heartRateRecords = in getExternalSamples()
124 new HeartRateRecord.HeartRateSample( in getExternalSamples()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DHeartRateFormatter.kt19 import android.health.connect.datatypes.HeartRateRecord in <lambda>()
35 EntryFormatter<HeartRateRecord>(context), RecordDetailsFormatter<HeartRateRecord> { in <lambda>()
40 record: HeartRateRecord, in <lambda>()
55 record: HeartRateRecord, in <lambda>()
68 record: HeartRateRecord, in <lambda>()
83 override suspend fun formatRecordDetails(record: HeartRateRecord): List<FormattedEntry> { in <lambda>()
95 sample: HeartRateRecord.HeartRateSample in <lambda>()
112 record: HeartRateRecord, in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DPaginationTests.java38 import android.health.connect.datatypes.HeartRateRecord;
176 ReadRecordsRequest<HeartRateRecord> request1 = in readOnePage_pageTokenSpecified_returnsCorrectPage()
177 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class) in readOnePage_pageTokenSpecified_returnsCorrectPage()
180 ReadRecordsResponse<HeartRateRecord> page1 = getReadRecordsResponse(request1); in readOnePage_pageTokenSpecified_returnsCorrectPage()
182 ReadRecordsRequest<HeartRateRecord> request2 = in readOnePage_pageTokenSpecified_returnsCorrectPage()
183 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class) in readOnePage_pageTokenSpecified_returnsCorrectPage()
187 ReadRecordsResponse<HeartRateRecord> page2 = getReadRecordsResponse(request2); in readOnePage_pageTokenSpecified_returnsCorrectPage()
190 ReadRecordsRequest<HeartRateRecord> request3 = in readOnePage_pageTokenSpecified_returnsCorrectPage()
191 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class) in readOnePage_pageTokenSpecified_returnsCorrectPage()
195 ReadRecordsResponse<HeartRateRecord> page3 = getReadRecordsResponse(request3); in readOnePage_pageTokenSpecified_returnsCorrectPage()
[all …]
DReadByFilterTests.java40 import android.health.connect.datatypes.HeartRateRecord;
104 ReadRecordsRequest<HeartRateRecord> heartRateRequest = in filterByDataType_dataOfOtherTypesExcluded()
105 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class).build(); in filterByDataType_dataOfOtherTypesExcluded()
106 List<HeartRateRecord> heartRateRecords = readRecords(heartRateRequest); in filterByDataType_dataOfOtherTypesExcluded()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DHeartRateRecord.java36 public final class HeartRateRecord extends IntervalRecord { class
85 private HeartRateRecord( in HeartRateRecord() method in HeartRateRecord
127 if (super.equals(object) && object instanceof HeartRateRecord) { in equals()
128 HeartRateRecord other = (HeartRateRecord) object; in equals()
307 public HeartRateRecord buildWithoutValidation() { in buildWithoutValidation()
308 return new HeartRateRecord( in buildWithoutValidation()
322 public HeartRateRecord build() { in build()
323 return new HeartRateRecord( in build()
352 for (HeartRateRecord.HeartRateSample heartRateSample : getSamples()) { in toRecordInternal()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java39 import android.health.connect.datatypes.HeartRateRecord;
290 public static HeartRateRecord getHeartRateRecordWithEmptyMetadata() { in getHeartRateRecordWithEmptyMetadata()
295 public static HeartRateRecord getHeartRateRecord(int heartRate, Metadata metadata) { in getHeartRateRecord()
297 HeartRateRecord.HeartRateSample heartRateSample = in getHeartRateRecord()
298 new HeartRateRecord.HeartRateSample(heartRate, instant.plusMillis(10)); in getHeartRateRecord()
299 return new HeartRateRecord.Builder( in getHeartRateRecord()
304 public static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord()
308 public static HeartRateRecord getHeartRateRecord(int heartRate, String clientId) { in getHeartRateRecord()
312 public static HeartRateRecord getHeartRateRecord(int heartRate) { in getHeartRateRecord()
316 public static HeartRateRecord getHeartRateRecord(int heartRate, Instant instant) { in getHeartRateRecord()
[all …]
DToStringUtils.java20 import android.health.connect.datatypes.HeartRateRecord;
21 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample;
87 if (record instanceof HeartRateRecord heartRateRecord) { in recordToString()
95 StringBuilder stringBuilder, int indentation, HeartRateRecord heartRateRecord) { in heartRateRecordToString()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DSharedMemoryTest.java43 import android.health.connect.datatypes.HeartRateRecord;
185 ArrayList<HeartRateRecord.HeartRateSample> insertedSamples = new ArrayList<>(); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
188 HeartRateRecord.HeartRateSample sample = in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
189 new HeartRateRecord.HeartRateSample(heartRate, now.minusMillis(i)); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
193 HeartRateRecord insertedRecord = in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
194 new HeartRateRecord.Builder( in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
201 List<HeartRateRecord> readRecords = in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
203 new ReadRecordsRequestUsingIds.Builder<>(HeartRateRecord.class) in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
208 List<HeartRateRecord.HeartRateSample> readSamples = readRecords.get(0).getSamples(); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
212 readSamples.sort(comparing(HeartRateRecord.HeartRateSample::getTime)); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
[all …]
DDeleteUsingFiltersRequestTest.java25 import android.health.connect.datatypes.HeartRateRecord;
52 .addRecordType(HeartRateRecord.class) in testCreateDeleteUsingFiltersRequest()
53 .addRecordType(HeartRateRecord.class) in testCreateDeleteUsingFiltersRequest()
61 .isEqualTo(Set.of(BloodGlucoseRecord.class, HeartRateRecord.class)); in testCreateDeleteUsingFiltersRequest()
75 .addRecordType(HeartRateRecord.class) in testCreateDeleteUsingFiltersRequest_clearDataOriginsAndRecords()
76 .addRecordType(HeartRateRecord.class) in testCreateDeleteUsingFiltersRequest_clearDataOriginsAndRecords()
DHealthConnectAccessLogsTest.java34 import android.health.connect.datatypes.HeartRateRecord;
104 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class).build()); in testAccessLogs_read_multipleRecordTypes()
169 assertThat(accessLog.getRecordTypes()).contains(HeartRateRecord.class); in testAccessLogs_update_multipleRecordTypes()
210 assertThat(accessLog.getRecordTypes()).contains(HeartRateRecord.class); in testAccessLogs_insert_multipleRecordTypes()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DHeartRateFormatterTest.kt19 import android.health.connect.datatypes.HeartRateRecord
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>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateWithFiltersTest.java21 import static android.health.connect.datatypes.HeartRateRecord.BPM_AVG;
22 import static android.health.connect.datatypes.HeartRateRecord.BPM_MAX;
23 import static android.health.connect.datatypes.HeartRateRecord.BPM_MIN;
24 import static android.health.connect.datatypes.HeartRateRecord.HEART_MEASUREMENTS_COUNT;
59 import android.health.connect.datatypes.HeartRateRecord;
461 ImmutableList.Builder<HeartRateRecord.HeartRateSample> inRangeSamples = in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
463 inRangeSamples.add(new HeartRateRecord.HeartRateSample(123, startTime.plusMillis(1000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
464 inRangeSamples.add(new HeartRateRecord.HeartRateSample(80, startTime.plusMillis(2000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
465 inRangeSamples.add(new HeartRateRecord.HeartRateSample(75, startTime.plusMillis(3000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
466 inRangeSamples.add(new HeartRateRecord.HeartRateSample(96, startTime.plusMillis(4000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
[all …]
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DTestHelperUtils.java30 import android.health.connect.datatypes.HeartRateRecord;
31 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample;
87 public static HeartRateRecord getHeartRateRecord() { in getHeartRateRecord()
90 return new HeartRateRecord.Builder( in getHeartRateRecord()
211 .addRecordType(HeartRateRecord.class) in deleteAllRecordsAddedByTestApp()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/
DRateLimiterTest.java39 import android.health.connect.datatypes.HeartRateRecord;
171 HeartRateRecord.HeartRateSample heartRateRecord = in exceedRecordMemoryQuota()
172 new HeartRateRecord.HeartRateSample(10, Instant.now().plusMillis(100)); in exceedRecordMemoryQuota()
174 ArrayList<HeartRateRecord.HeartRateSample> heartRateRecords = in exceedRecordMemoryQuota()
177 HeartRateRecord testHeartRateRecord = in exceedRecordMemoryQuota()
178 new HeartRateRecord.Builder( in exceedRecordMemoryQuota()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/
DSeedData.kt22 import android.health.connect.datatypes.HeartRateRecord in <lambda>()
150 ): HeartRateRecord { in <lambda>()
151 return HeartRateRecord.Builder( in <lambda>()
155 heartRateValues.map { HeartRateRecord.HeartRateSample(it.first, it.second) }) in <lambda>()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java86 import android.health.connect.datatypes.HeartRateRecord;
387 HeartRateRecord.class, in testAppWithReadPerms_readOtherAppsDataByFilters_expectSuccess()
612 List<HeartRateRecord> heartRateRecords = in testAppCanReadRecordsUsingDataOriginFilters()
614 new ReadRecordsRequestUsingFilters.Builder<>(HeartRateRecord.class) in testAppCanReadRecordsUsingDataOriginFilters()
633 .addRecordType(HeartRateRecord.class) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
639 .addRecordType(HeartRateRecord.class) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
649 .addRecordType(HeartRateRecord.class) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
1127 recordClassesToRead.add(HeartRateRecord.class.getName()); in testToVerifyNoPermissionChangeLog()
1135 .addRecordType(HeartRateRecord.class) in testToVerifyNoPermissionChangeLog()
1161 .addRecordType(HeartRateRecord.class) in testToVerifyNoPermissionChangeLog()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DFitnessPermissionToDatatypeMapperTest.kt20 import android.health.connect.datatypes.HeartRateRecord
43 assertThat(getDataTypes(HEART_RATE)).containsExactly(HeartRateRecord::class.java) in getDataTypes_heartRate_returnsCorrectRecords()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java34 import android.health.connect.datatypes.HeartRateRecord;
426 } else if (record instanceof HeartRateRecord heartRateRecord) { in fromRecord()
479 } else if (Objects.equals(recordClassName, HeartRateRecord.class.getName())) { in toRecord()
731 private static Bundle getHeartRateRecordValues(HeartRateRecord record) { in getHeartRateRecordValues()
735 .map(HeartRateRecord.HeartRateSample::getTime) in getHeartRateRecordValues()
740 .mapToLong(HeartRateRecord.HeartRateSample::getBeatsPerMinute) in getHeartRateRecordValues()
781 private static HeartRateRecord createHeartRateRecord( in createHeartRateRecord()
792 List<HeartRateRecord.HeartRateSample> samples = in createHeartRateRecord()
796 new HeartRateRecord.HeartRateSample( in createHeartRateRecord()
800 return new HeartRateRecord.Builder(metadata, startTime, endTime, samples) in createHeartRateRecord()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/viewmodels/
DPerformanceTestingViewModel.kt6 import android.health.connect.datatypes.HeartRateRecord
158 HeartRateRecord::class.java, in readRecordsForPerformanceTesting()
187 HeartRateRecord::class.java, in readRecordsForPerformanceTestingOverASpanOfTime()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/
DHealthConnectChangeLogsTests.java60 import android.health.connect.datatypes.HeartRateRecord;
174 .addRecordType(HeartRateRecord.class) in testGetChangeLogToken_superRecordTypes_throwsException()
739 HeartRateRecord heartRateRecordToUpdate = (HeartRateRecord) records.get(68); in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
740 HeartRateRecord updatedHeartRateRecord = in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
741 new HeartRateRecord.Builder( in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
748 new HeartRateRecord.HeartRateSample( in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
759 HeartRateRecord.class, in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryDetailsFormatter.kt23 import android.health.connect.datatypes.HeartRateRecord
62 is HeartRateRecord -> heartRateFormatter.formatRecordDetails(record) in formatDetails()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DPermissionTypesFragmentTest.kt20 import android.health.connect.datatypes.HeartRateRecord
77 HeartRateRecord::class.java, in teardown()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataFragmentTest.kt25 import android.health.connect.datatypes.HeartRateRecord in <lambda>()
121 HeartRateRecord::class.java to in <lambda>()
212 HeartRateRecord::class.java to in <lambda>()
245 HeartRateRecord::class.java to in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/api/
DDeletePermissionTypesFromAppUseCaseTest.kt23 import android.health.connect.datatypes.HeartRateRecord in <lambda>()
93 HeartRateRecord::class.java, in <lambda>()

12