Home
last modified time | relevance | path

Searched refs:NUTRITION (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthDataCategoryExtensions.kt38 HealthDataCategory.NUTRITION -> NUTRITION_PERMISSION_GROUPS in healthPermissionTypes()
51 HealthDataCategory.NUTRITION -> R.string.nutrition_category_lowercase in lowercaseTitle()
64 HealthDataCategory.NUTRITION -> R.string.nutrition_category_uppercase in uppercaseTitle()
77 HealthDataCategory.NUTRITION -> R.attr.nutritionCategoryIcon in icon()
134 listOf(HealthPermissionType.HYDRATION, HealthPermissionType.NUTRITION)
158 HealthDataCategory.NUTRITION,
DHealthPermissionToDatatypeMapper.kt81 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.NUTRITION
124 NUTRITION to listOf(NutritionRecord::class.java),
DDataType.kt85 NUTRITION(NutritionRecord::class.java),
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermissionType.kt55 NUTRITION(HealthPermissionCategory.NUTRITION),
108 HealthPermissionCategory.NUTRITION -> HealthPermissionType.NUTRITION in fromHealthPermissionCategory()
DFitnessPermissionStrings.kt210 HealthPermissionType.NUTRITION,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/
DRecentAccessFragmentTest.kt96 HealthDataCategory.NUTRITION.uppercaseTitle())) in test_RecentAccessFragment_displaysCorrectly()
107 HealthDataCategory.NUTRITION.uppercaseTitle()), in test_RecentAccessFragment_displaysCorrectly()
155 HealthDataCategory.NUTRITION.uppercaseTitle())) in test_RecentAccessFragment_inactiveApp_doesNotNavigate()
170 HealthDataCategory.NUTRITION.uppercaseTitle())) in test_RecentAccessFragment_inactiveApp_doesNotNavigate()
200 HealthDataCategory.NUTRITION.uppercaseTitle())) in test_RecentAccessFragment_display12HourFormatCorrectly()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthDataCategory.java41 public static final int NUTRITION = 4; field in HealthDataCategory
56 NUTRITION,
DHealthPermissionCategory.java128 public static final int NUTRITION = 24; field in HealthPermissionCategory
204 NUTRITION,
DHealthPermissions.java42 import static android.health.connect.HealthPermissionCategory.NUTRITION;
1015 sHealthCategoryToWritePermissionMap.put(NUTRITION, WRITE_NUTRITION); in populateHealthPermissionToHealthPermissionCategoryMap()
1058 sHealthCategoryToReadPermissionMap.put(NUTRITION, READ_NUTRITION); in populateHealthPermissionToHealthPermissionCategoryMap()
1129 WRITE_HYDRATION, HealthDataCategory.NUTRITION); in populateWriteHealthPermissionToHealthDataCategoryMap()
1131 WRITE_NUTRITION, HealthDataCategory.NUTRITION); in populateWriteHealthPermissionToHealthDataCategoryMap()
1195 HealthDataCategory.NUTRITION, new String[] {WRITE_HYDRATION, WRITE_NUTRITION}); in populateWriteHealthPermissionToHealthDataCategoryMap()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthDataCategoryExtensionsTest.kt24 import android.health.connect.HealthDataCategory.NUTRITION in <lambda>()
81 assertThat(NUTRITION.uppercaseTitle()).isEqualTo(R.string.nutrition_category_uppercase) in <lambda>()
100 assertThat(NUTRITION.lowercaseTitle()).isEqualTo(R.string.nutrition_category_lowercase) in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordTypeRecordCategoryMapper.java22 import static android.health.connect.HealthDataCategory.NUTRITION;
99 put(RECORD_TYPE_HYDRATION, NUTRITION); in populateRecordTypeToRecordCategoryMap()
100 put(RECORD_TYPE_NUTRITION, NUTRITION); in populateRecordTypeToRecordCategoryMap()
DRecordTypePermissionCategoryMapper.java106 put(RECORD_TYPE_NUTRITION, HealthPermissionCategory.NUTRITION); in populateDataTypeHealthPermissionCategoryMap()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionCategoryPriorityTests.java22 import static android.health.connect.HealthDataCategory.NUTRITION;
56 Set.of(ACTIVITY, BODY_MEASUREMENTS, CYCLE_TRACKING, NUTRITION, SLEEP, VITALS);
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/categories/
DHealthDataCategoriesFragmentTest.kt75 HealthCategoryUiState(category = HealthDataCategory.NUTRITION, hasData = false),
245 HealthCategoryUiState(category = HealthDataCategory.NUTRITION, hasData = false), in seeAllCategoriesPreference_withNoData_isDisplayed()
266 HealthCategoryUiState(category = HealthDataCategory.NUTRITION, hasData = false), in deleteAllData_withNoData_isDisabled()
298 HealthCategoryUiState(category = HealthDataCategory.NUTRITION, hasData = true), in categoriesFragment_withAllCategoriesPresent_seeAllCategoriesPreferenceIsNotDisplayed()
DHealthDataAllCategoriesFragmentTest.kt23 import android.health.connect.HealthDataCategory.NUTRITION
74 HealthCategoryUiState(category = NUTRITION, hasData = true),
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt197 NUTRITION(
242 listOf(HealthPermissionType.HYDRATION, HealthPermissionType.NUTRITION)
303 NUTRITION(NutritionRecord::class, R.string.nutrition_label),
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAppDataViewModelTest.kt108 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
151 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataViewModelTest.kt104 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
148 PermissionTypesPerCategory(HealthDataCategory.NUTRITION, listOf()), in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/
DHealthPermissionTypesFragmentTest.kt750 listOf(HealthPermissionType.NUTRITION))) in permissionTypesFragment_whenNutritionCategory_doesNotShowOldPriorityButton()
766 MutableLiveData(HealthDataCategory.NUTRITION.lowercaseTitle()) in permissionTypesFragment_whenNutritionCategory_doesNotShowOldPriorityButton()
780 listOf(HealthPermissionType.NUTRITION))) in permissionTypesFragment_whenNutritionCategory_doesNotShowNewPriorityButton()
796 MutableLiveData(HealthDataCategory.NUTRITION.lowercaseTitle()) in permissionTypesFragment_whenNutritionCategory_doesNotShowNewPriorityButton()
884 bundle.putInt(HealthDataCategoriesFragment.CATEGORY_KEY, HealthDataCategory.NUTRITION) in nutritionCategoryBundle()
/packages/modules/HealthFitness/testapps/toolbox/tests/src/com/android/healthconnect/testapps/toolbox/
DDataTypeListFragmentTest.kt94 launchScenario(HealthDataCategory.NUTRITION) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/home/
DHomeFragmentTest.kt224 HealthDataCategory.NUTRITION.uppercaseTitle())) in <lambda>()
259 HealthDataCategory.NUTRITION.uppercaseTitle())) in <lambda>()
302 HealthDataCategory.NUTRITION.uppercaseTitle())) in <lambda>()
788 HealthDataCategory.NUTRITION.uppercaseTitle())) in <lambda>()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java24 import static android.health.connect.HealthDataCategory.NUTRITION;
668 NUTRITION, HealthPermissionCategory.HYDRATION, new ArrayList<>())); in populateAndResetExpectedResponseMap()
741 NUTRITION, HealthPermissionCategory.NUTRITION, new ArrayList<>())); in populateAndResetExpectedResponseMap()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java865 HealthDataCategory.NUTRITION)) in testOldReSyncHealthDataPriorityTable_addsNewApps_withWritePermission()
1604 APP_PACKAGE_NAME_4, HealthDataCategory.NUTRITION)) in testAppHasDataInCategory_forAppsWithoutDataInCategory_returnsFalse()
1640 APP_PACKAGE_NAME_4, HealthDataCategory.NUTRITION)) in testAppHasDataInCategory_ifContributingPackagesMapEmpty_returnsFalse()
1683 .isEqualTo(Set.of(HealthDataCategory.ACTIVITY, HealthDataCategory.NUTRITION)); in testGetDataCategoriesWithDataForPackage_returnsCorrectCategories()
1714 expectedResult.put(HealthDataCategory.NUTRITION, Set.of(APP_PACKAGE_NAME_2)); in testGetAllContributorApps_returnsJustAppsWithData()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java436 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionValuesTotal()
558 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionEnergyValuesTotal()
/packages/modules/HealthFitness/framework/api/
Dsystem-current.txt85 field public static final int NUTRITION = 4; // 0x4
115 field public static final int NUTRITION = 24; // 0x18

12