Home
last modified time | relevance | path

Searched refs:getProtein (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DNutritionRecord.java1607 public Mass getProtein() { in getProtein() method in NutritionRecord
1890 && Objects.equals(getProtein(), that.getProtein()) in equals()
1943 getProtein(), in hashCode()
2031 if (!Objects.isNull(getProtein())) { in toRecordInternal()
2032 recordInternal.setProtein(getProtein().getInGrams()); in toRecordInternal()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DNutritionRecordInternal.java206 public double getProtein() { in getProtein() method in NutritionRecordInternal
584 .setProtein(Mass.fromGrams(getProtein())) in toExternalRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java296 assertThat(newRecord.getProtein()).isEqualTo(testRecord.getProtein()); in testReadNutritionRecordUsingFilters_dataFilter_correct()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DNutritionRecordHelper.java495 contentValues.put(PROTEIN_COLUMN_NAME, nutritionRecord.getProtein()); in populateSpecificContentValues()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java669 assertThat(getRecordById(records, id1).getProtein()).isEqualTo(protein1); in testInsertRecords_nutritionNoClientIdsAndSameTime_doesNotOverwrite()
670 assertThat(getRecordById(records, id2).getProtein()).isEqualTo(protein2); in testInsertRecords_nutritionNoClientIdsAndSameTime_doesNotOverwrite()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java570 mExpect.that(records.stream().map(NutritionRecord::getProtein).toList()) in migrateNutrition_noClientIdsAndSameTime_notIgnored()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1236 method @Nullable public android.health.connect.datatypes.units.Mass getProtein();