/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | HeartRateRecordInternal.java | 39 extends SeriesRecordInternal<HeartRateRecord, HeartRateRecord.HeartRateSample> { 40 public static final class HeartRateSample implements Sample { class in HeartRateRecordInternal 44 public HeartRateSample(int beatsPerMinute, long epochMillis) { in HeartRateSample() method in HeartRateRecordInternal.HeartRateSample 59 if (super.equals(object) && object instanceof HeartRateRecordInternal.HeartRateSample) { in equals() 60 HeartRateRecordInternal.HeartRateSample other = in equals() 61 (HeartRateRecordInternal.HeartRateSample) object; in equals() 74 private Set<HeartRateSample> mHeartRateHeartRateSamples; 79 public Set<HeartRateSample> getSamples() { in getSamples() 85 this.mHeartRateHeartRateSamples = (Set<HeartRateSample>) samples; in setSamples() 105 new HeartRateSample(parcel.readInt(), parcel.readLong())); in populateIntervalRecordFrom() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | HeartRateRecord.java | 83 private final List<HeartRateSample> mHeartRateSamples; 91 @NonNull List<HeartRateSample> heartRateSamples, in HeartRateRecord() 106 heartRateSamples.stream().map(HeartRateSample::getTime).toList()); in HeartRateRecord() 115 public List<HeartRateSample> getSamples() { in getSamples() 150 public static final class HeartRateSample { class in HeartRateRecord 160 public HeartRateSample(long beatsPerMinute, @NonNull Instant time) { in HeartRateSample() method in HeartRateRecord.HeartRateSample 172 public HeartRateSample(long beatsPerMinute, @NonNull Instant time, boolean skipValidation) { in HeartRateSample() method in HeartRateRecord.HeartRateSample 205 if (super.equals(object) && object instanceof HeartRateSample) { in equals() 206 HeartRateSample other = (HeartRateSample) object; in equals() 233 private final List<HeartRateSample> mHeartRateSamples; [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | SharedMemoryTest.java | 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() 208 List<HeartRateRecord.HeartRateSample> readSamples = readRecords.get(0).getSamples(); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual() 212 readSamples.sort(comparing(HeartRateRecord.HeartRateSample::getTime)); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual() 213 insertedSamples.sort(comparing(HeartRateRecord.HeartRateSample::getTime)); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual() 215 HeartRateRecord.HeartRateSample expected = insertedSamples.get(i); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual() 216 HeartRateRecord.HeartRateSample value = readSamples.get(i); in seriesDataWithHugeSampleCount_viaSharedMemory_recordEqual()
|
D | HealthConnectManagerTest.java | 2068 HeartRateRecord.HeartRateSample heartRateSample = in setTestRecordId() 2069 new HeartRateRecord.HeartRateSample(72, Instant.now().plusMillis(100)); in setTestRecordId() 2070 ArrayList<HeartRateRecord.HeartRateSample> heartRateSamples = new ArrayList<>(); in setTestRecordId() 2166 HeartRateRecord.HeartRateSample heartRateSample = in getHeartRateRecord() 2167 new HeartRateRecord.HeartRateSample(72, Instant.now().plusMillis(100)); in getHeartRateRecord() 2168 ArrayList<HeartRateRecord.HeartRateSample> heartRateSamples = new ArrayList<>(); in getHeartRateRecord()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HeartRateRecordHelper.java | 54 HeartRateRecordInternal, HeartRateRecordInternal.HeartRateSample> { 126 HashSet<HeartRateRecordInternal.HeartRateSample> heartRateSamplesSet = new HashSet<>(); in populateSpecificValues() 130 new HeartRateRecordInternal.HeartRateSample( in populateSpecificValues() 143 ContentValues contentValues, HeartRateRecordInternal.HeartRateSample heartRateSample) { in populateSampleTo()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | HeartRateRecordTest.java | 149 new HeartRateRecord.HeartRateSample(301, Instant.now().plusMillis(100)); in testCreateHeartRateRecord_invalidValue() 339 HeartRateRecord.HeartRateSample heartRateRecord = in getBaseHeartRateRecord() 340 new HeartRateRecord.HeartRateSample(50, time.plusMillis(100)); in getBaseHeartRateRecord() 341 ArrayList<HeartRateRecord.HeartRateSample> heartRateRecords = new ArrayList<>(); in getBaseHeartRateRecord() 533 HeartRateRecord.HeartRateSample heartRateRecord = in testZoneOffsets() 534 new HeartRateRecord.HeartRateSample(10, timeInstant); in testZoneOffsets() 535 ArrayList<HeartRateRecord.HeartRateSample> heartRateRecords = new ArrayList<>(); in testZoneOffsets() 1097 HeartRateRecord.HeartRateSample heartRateRecordSample = in getHeartRateRecord_update() 1098 new HeartRateRecord.HeartRateSample(8, Instant.now().plusMillis(100)); in getHeartRateRecord_update() 1116 HeartRateRecord.HeartRateSample heartRateRecord = in getBaseHeartRateRecord() [all …]
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/ |
D | ListInputField.kt | 24 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample 88 HeartRateSample::class.java -> { in addRow() 154 HeartRateSample::class.java -> { in getFieldValue() 155 samples.add(HeartRateSample(dataPointString.toLong(), instant.getFieldValue())) in getFieldValue()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregateWithFiltersTest.java | 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() 467 ImmutableList.Builder<HeartRateRecord.HeartRateSample> outOfRangeSamples = in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults() 469 outOfRangeSamples.add(new HeartRateRecord.HeartRateSample(55, startTime.plusMillis(6000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults() 470 outOfRangeSamples.add(new HeartRateRecord.HeartRateSample(147, startTime.plusMillis(7000))); in aggregationTypeFilter_multipleTypesForDifferentRecordTypes_correctResults()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 297 HeartRateRecord.HeartRateSample heartRateSample = in getHeartRateRecord() 298 new HeartRateRecord.HeartRateSample(heartRate, instant.plusMillis(10)); in getHeartRateRecord() 321 List<HeartRateRecord.HeartRateSample> samples, Instant start, Instant end) { in getHeartRateRecord() 328 HeartRateRecord.HeartRateSample heartRateSample = in getHeartRateRecord() 329 new HeartRateRecord.HeartRateSample(heartRate, instant); in getHeartRateRecord() 330 ArrayList<HeartRateRecord.HeartRateSample> heartRateSamples = new ArrayList<>(); in getHeartRateRecord()
|
D | ToStringUtils.java | 21 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample; 96 List<HeartRateSample> samples = heartRateRecord.getSamples(); in heartRateRecordToString()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/ |
D | RateLimiterTest.java | 171 HeartRateRecord.HeartRateSample heartRateRecord = in exceedRecordMemoryQuota() 172 new HeartRateRecord.HeartRateSample(10, Instant.now().plusMillis(100)); in exceedRecordMemoryQuota() 174 ArrayList<HeartRateRecord.HeartRateSample> heartRateRecords = in exceedRecordMemoryQuota()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/ |
D | TestHelperUtils.java | 31 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample; 94 List.of(new HeartRateSample(100, startTime))) in getHeartRateRecord()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | BundleHelper.java | 735 .map(HeartRateRecord.HeartRateSample::getTime) in getHeartRateRecordValues() 740 .mapToLong(HeartRateRecord.HeartRateSample::getBeatsPerMinute) in getHeartRateRecordValues() 792 List<HeartRateRecord.HeartRateSample> samples = in createHeartRateRecord() 796 new HeartRateRecord.HeartRateSample( in createHeartRateRecord()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | HeartRateFormatter.kt | 95 sample: HeartRateRecord.HeartRateSample in <lambda>()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/ |
D | SeedData.kt | 155 heartRateValues.map { HeartRateRecord.HeartRateSample(it.first, it.second) }) in <lambda>()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | InsertOrUpdateRecords.kt | 38 import android.health.connect.datatypes.HeartRateRecord.HeartRateSample 240 as List<HeartRateSample>) in createRecordObjectHelper()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 75 heartRateValues.map { HeartRateRecord.HeartRateSample(it, NOW) }) in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 748 new HeartRateRecord.HeartRateSample( in testChangeLogs_operationCombinations_expectCorrectChangeLogs()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 1205 List.of(new HeartRateRecord.HeartRateSample(75, startTime.plusSeconds(5)))) in getHeartRateRecord()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 983 …blic java.util.List<android.health.connect.datatypes.HeartRateRecord.HeartRateSample> getSamples(); 991 …nstant, @NonNull java.util.List<android.health.connect.datatypes.HeartRateRecord.HeartRateSample>); 999 public static final class HeartRateRecord.HeartRateSample { 1000 ctor public HeartRateRecord.HeartRateSample(long, @NonNull java.time.Instant);
|