Home
last modified time | relevance | path

Searched refs:HydrationRecord (Results 1 – 18 of 18) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHydrationRecordTest.java19 import static android.health.connect.datatypes.HydrationRecord.VOLUME_TOTAL;
39 import android.health.connect.datatypes.HydrationRecord;
81 HydrationRecord.class, in tearDown()
105 ReadRecordsRequestUsingIds<HydrationRecord> request = in testReadHydrationRecord_invalidIds()
106 new ReadRecordsRequestUsingIds.Builder<>(HydrationRecord.class) in testReadHydrationRecord_invalidIds()
109 List<HydrationRecord> result = TestUtils.readRecords(request); in testReadHydrationRecord_invalidIds()
123 ReadRecordsRequestUsingIds<HydrationRecord> request = in testReadHydrationRecord_invalidClientRecordIds()
124 new ReadRecordsRequestUsingIds.Builder<>(HydrationRecord.class) in testReadHydrationRecord_invalidClientRecordIds()
127 List<HydrationRecord> result = TestUtils.readRecords(request); in testReadHydrationRecord_invalidClientRecordIds()
133 List<HydrationRecord> oldHydrationRecords = in testReadHydrationRecordUsingFilters_default()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DHydrationRecord.java32 public final class HydrationRecord extends IntervalRecord { class
56 private HydrationRecord( in HydrationRecord() method in HydrationRecord
98 HydrationRecord that = (HydrationRecord) o; in equals()
180 public HydrationRecord buildWithoutValidation() { in buildWithoutValidation()
181 return new HydrationRecord( in buildWithoutValidation()
195 public HydrationRecord build() { in build()
196 return new HydrationRecord( in build()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DHydrationRecordInternal.java19 import android.health.connect.datatypes.HydrationRecord;
30 public final class HydrationRecordInternal extends IntervalRecordInternal<HydrationRecord> {
46 public HydrationRecord toExternalRecord() { in toExternalRecord()
47 return new HydrationRecord.Builder( in toExternalRecord()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DHydrationFormatter.kt19 import android.health.connect.datatypes.HydrationRecord
31 EntryFormatter<HydrationRecord>(context) {
34 record: HydrationRecord, in formatValue()
41 record: HydrationRecord, in formatA11yValue()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt30 import android.health.connect.datatypes.HydrationRecord in <lambda>()
126 fun getHydrationRecord(startTime: Instant, endTime: Instant, volume: Volume): HydrationRecord { in getHydrationRecord()
127 return HydrationRecord.Builder(getMetaData(), startTime, endTime, volume).build() in getHydrationRecord()
291 fun verifyHydrationListsEqual(actual: List<Record>, expected: List<HydrationRecord>) { in verifyHydrationListsEqual()
294 assertThat(element is HydrationRecord).isTrue() in verifyHydrationListsEqual()
296 val actualElement = element as HydrationRecord in verifyHydrationListsEqual()
350 val HYDRATION_MONTH: HydrationRecord =
352 val HYDRATION_MONTH2: HydrationRecord =
354 val HYDRATION_MONTH3: HydrationRecord =
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DHydrationFormatterTest.kt19 import android.health.connect.datatypes.HydrationRecord
87 private fun getRecord(liters: Double): HydrationRecord { in getRecord()
88 return HydrationRecord.Builder( in getRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadEntriesHelperUseCaseTest.kt27 import android.health.connect.datatypes.HydrationRecord in <lambda>()
136 ArgumentCaptor<ReadRecordsRequestUsingFilters<HydrationRecord>> in <lambda>()
223 hydrationRequestCaptor, timeRangeFilter, HydrationRecord::class.java) in <lambda>()
515 (InvocationOnMock) -> ReadRecordsResponse<HydrationRecord> { in <lambda>()
518 args.arguments[2] as OutcomeReceiver<ReadRecordsResponse<HydrationRecord>, *> in <lambda>()
602 private fun getHydrationRecords(): ReadRecordsResponse<HydrationRecord> { in <lambda>()
603 return ReadRecordsResponse<HydrationRecord>( in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt36 import android.health.connect.datatypes.HydrationRecord
78 HYDRATION(HydrationRecord::class.java),
DHealthPermissionToDatatypeMapper.kt36 import android.health.connect.datatypes.HydrationRecord
117 HYDRATION to listOf(HydrationRecord::class.java),
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt36 import android.health.connect.datatypes.HydrationRecord
302 HYDRATION(HydrationRecord::class, R.string.hydration_label),
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java61 import android.health.connect.datatypes.HydrationRecord;
526 new HydrationRecord.Builder(getMetadata(), mStartTime, mEndTime, volume1).build(), in migrateHydration_noClientIdsAndSameTime_notIgnored()
532 new HydrationRecord.Builder(getMetadata(), mStartTime, mEndTime, volume2).build(), in migrateHydration_noClientIdsAndSameTime_notIgnored()
537 final List<HydrationRecord> records = getRecords(HydrationRecord.class); in migrateHydration_noClientIdsAndSameTime_notIgnored()
538 mExpect.that(records.stream().map(HydrationRecord::getVolume).toList()) in migrateHydration_noClientIdsAndSameTime_notIgnored()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt41 import android.health.connect.datatypes.HydrationRecord
384 HydrationRecord::class -> { in createRecordObjectHelper()
386 HydrationRecord.Builder( in createRecordObjectHelper()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryFormatter.kt39 import android.health.connect.datatypes.HydrationRecord
171 is HydrationRecord -> hydrationFormatter.format(record, appName) in format()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordMapper.java38 import android.health.connect.datatypes.HydrationRecord;
233 RecordTypeIdentifier.RECORD_TYPE_HYDRATION, HydrationRecord.class); in RecordMapper()
DAggregationTypeIdMapper.java41 import static android.health.connect.datatypes.HydrationRecord.VOLUME_TOTAL;
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java84 import android.health.connect.datatypes.HydrationRecord;
631 final List<HydrationRecord> records = in testInsertRecords_hydrationNoClientIdsAndSameTime_doesNotOverwrite()
633 new ReadRecordsRequestUsingIds.Builder<>(HydrationRecord.class) in testInsertRecords_hydrationNoClientIdsAndSameTime_doesNotOverwrite()
2200 private static HydrationRecord getHydrationRecord( in getHydrationRecord()
2209 return new HydrationRecord.Builder(testMetadataBuilder.build(), startTime, endTime, volume) in getHydrationRecord()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java113 import android.health.connect.datatypes.HydrationRecord;
666 HydrationRecord.class, in populateAndResetExpectedResponseMap()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1030 public final class HydrationRecord extends android.health.connect.datatypes.IntervalRecord {
1035 public static final class HydrationRecord.Builder {
1036 …ctor public HydrationRecord.Builder(@NonNull android.health.connect.datatypes.Metadata, @NonNull j…
1037 method @NonNull public android.health.connect.datatypes.HydrationRecord build();
1038 …method @NonNull public android.health.connect.datatypes.HydrationRecord.Builder clearEndZoneOffset…
1039 …method @NonNull public android.health.connect.datatypes.HydrationRecord.Builder clearStartZoneOffs…
1040 …method @NonNull public android.health.connect.datatypes.HydrationRecord.Builder setEndZoneOffset(@…
1041 …method @NonNull public android.health.connect.datatypes.HydrationRecord.Builder setStartZoneOffset…