Home
last modified time | relevance | path

Searched refs:NutritionRecord (Results 1 – 17 of 17) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java19 import static android.health.connect.datatypes.NutritionRecord.BIOTIN_TOTAL;
20 import static android.health.connect.datatypes.NutritionRecord.CAFFEINE_TOTAL;
21 import static android.health.connect.datatypes.NutritionRecord.CALCIUM_TOTAL;
22 import static android.health.connect.datatypes.NutritionRecord.CHLORIDE_TOTAL;
23 import static android.health.connect.datatypes.NutritionRecord.CHOLESTEROL_TOTAL;
24 import static android.health.connect.datatypes.NutritionRecord.CHROMIUM_TOTAL;
25 import static android.health.connect.datatypes.NutritionRecord.COPPER_TOTAL;
26 import static android.health.connect.datatypes.NutritionRecord.DIETARY_FIBER_TOTAL;
27 import static android.health.connect.datatypes.NutritionRecord.ENERGY_FROM_FAT_TOTAL;
28 import static android.health.connect.datatypes.NutritionRecord.ENERGY_TOTAL;
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DAggregationTypeIdMapper.java42 import static android.health.connect.datatypes.NutritionRecord.BIOTIN_TOTAL;
43 import static android.health.connect.datatypes.NutritionRecord.CAFFEINE_TOTAL;
44 import static android.health.connect.datatypes.NutritionRecord.CALCIUM_TOTAL;
45 import static android.health.connect.datatypes.NutritionRecord.CHLORIDE_TOTAL;
46 import static android.health.connect.datatypes.NutritionRecord.CHOLESTEROL_TOTAL;
47 import static android.health.connect.datatypes.NutritionRecord.CHROMIUM_TOTAL;
48 import static android.health.connect.datatypes.NutritionRecord.COPPER_TOTAL;
49 import static android.health.connect.datatypes.NutritionRecord.DIETARY_FIBER_TOTAL;
50 import static android.health.connect.datatypes.NutritionRecord.ENERGY_FROM_FAT_TOTAL;
51 import static android.health.connect.datatypes.NutritionRecord.ENERGY_TOTAL;
[all …]
DRecordMapper.java43 import android.health.connect.datatypes.NutritionRecord;
242 RecordTypeIdentifier.RECORD_TYPE_NUTRITION, NutritionRecord.class); in RecordMapper()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DNutritionFormatter.kt20 import android.health.connect.datatypes.NutritionRecord in <lambda>()
37 EntryFormatter<NutritionRecord>(context) { in <lambda>()
40 record: NutritionRecord, in <lambda>()
55 record: NutritionRecord, in <lambda>()
70 record: NutritionRecord, in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DNutritionFormatterTest.kt19 import android.health.connect.datatypes.NutritionRecord
207 private fun getBuilder(): NutritionRecord.Builder { in getBuilder()
208 return NutritionRecord.Builder(getMetaData(), NOW, NOW.plusSeconds(10)) in getBuilder()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1210 public final class NutritionRecord extends android.health.connect.datatypes.IntervalRecord {
1299 public static final class NutritionRecord.Builder {
1300 …ctor public NutritionRecord.Builder(@NonNull android.health.connect.datatypes.Metadata, @NonNull j…
1301 method @NonNull public android.health.connect.datatypes.NutritionRecord build();
1302 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder clearEndZoneOffset…
1303 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder clearStartZoneOffs…
1304 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder setBiotin(@Nullabl…
1305 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder setCaffeine(@Nulla…
1306 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder setCalcium(@Nullab…
1307 …method @NonNull public android.health.connect.datatypes.NutritionRecord.Builder setChloride(@Nulla…
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DNutritionRecordInternal.java24 import android.health.connect.datatypes.NutritionRecord;
35 public final class NutritionRecordInternal extends IntervalRecordInternal<NutritionRecord> {
571 public NutritionRecord toExternalRecord() { in toExternalRecord()
572 return new NutritionRecord.Builder(buildMetaData(), getStartTime(), getEndTime()) in toExternalRecord()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt41 import android.health.connect.datatypes.NutritionRecord
85 NUTRITION(NutritionRecord::class.java),
DHealthPermissionToDatatypeMapper.kt41 import android.health.connect.datatypes.NutritionRecord
124 NUTRITION to listOf(NutritionRecord::class.java),
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DNutritionRecord.java35 public final class NutritionRecord extends IntervalRecord { class
674 public NutritionRecord buildWithoutValidation() { in buildWithoutValidation()
675 return new NutritionRecord( in buildWithoutValidation()
732 public NutritionRecord build() { in build()
733 return new NutritionRecord( in build()
1364 private NutritionRecord( in NutritionRecord() method in NutritionRecord
1878 NutritionRecord that = (NutritionRecord) o; in equals()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt41 import android.health.connect.datatypes.NutritionRecord
303 NUTRITION(NutritionRecord::class, R.string.nutrition_label),
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java63 import android.health.connect.datatypes.NutritionRecord;
554 new NutritionRecord.Builder(getMetadata(), mStartTime, mEndTime) in migrateNutrition_noClientIdsAndSameTime_notIgnored()
562 new NutritionRecord.Builder(getMetadata(), mStartTime, mEndTime) in migrateNutrition_noClientIdsAndSameTime_notIgnored()
569 final List<NutritionRecord> records = getRecords(NutritionRecord.class); in migrateNutrition_noClientIdsAndSameTime_notIgnored()
570 mExpect.that(records.stream().map(NutritionRecord::getProtein).toList()) in migrateNutrition_noClientIdsAndSameTime_notIgnored()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt47 import android.health.connect.datatypes.NutritionRecord
610 NutritionRecord::class -> { in createRecordObjectHelper()
612 NutritionRecord.Builder( in createRecordObjectHelper()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryFormatter.kt43 import android.health.connect.datatypes.NutritionRecord
178 is NutritionRecord -> nutritionFormatter.format(record, appName) in format()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java88 import android.health.connect.datatypes.NutritionRecord;
661 final List<NutritionRecord> records = in testInsertRecords_nutritionNoClientIdsAndSameTime_doesNotOverwrite()
663 new ReadRecordsRequestUsingIds.Builder<>(NutritionRecord.class) in testInsertRecords_nutritionNoClientIdsAndSameTime_doesNotOverwrite()
2213 private static NutritionRecord getNutritionRecord( in getNutritionRecord()
2222 return new NutritionRecord.Builder(testMetadataBuilder.build(), startTime, endTime) in getNutritionRecord()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DHealthConnectServiceLogsTests.java20 import static android.health.connect.datatypes.NutritionRecord.BIOTIN_TOTAL;
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java121 import android.health.connect.datatypes.NutritionRecord;
739 NutritionRecord.class, in populateAndResetExpectedResponseMap()