Home
last modified time | relevance | path

Searched refs:BODY_MEASUREMENTS (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DPriorityMigrationTest.java113 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
118 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
130 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated()
137 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
144 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
156 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
168 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
190 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
205 eq(HealthDataCategory.BODY_MEASUREMENTS), in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
216 when(mPriorityMigrationHelper.getPreMigrationPriority(HealthDataCategory.BODY_MEASUREMENTS)) in testMigratePriority_preMigrationPriorityNewAppChangedOrderInPayload_priorityMigrated()
[all …]
DPriorityMigrationHelperTest.java98 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
112 HealthDataCategory.BODY_MEASUREMENTS, in testPopulatePreMigrationPriority_preMigrationPriorityExists_prioritySaved()
124 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testPopulatePreMigrationPriority_preMigrationTableIsPopulated_noOperationPerformed()
162 .thenReturn(HealthDataCategory.BODY_MEASUREMENTS, HealthDataCategory.ACTIVITY); in testGetPreMigrationPriority_priorityReadFromDatabased()
170 HealthDataCategory.BODY_MEASUREMENTS); in testGetPreMigrationPriority_priorityReadFromDatabased()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java168 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_ifAppInList_doesNotAddToList()
173 APP_PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS, mContext, true); in testAppendToPriorityList_ifAppInList_doesNotAddToList()
182 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
189 APP_PACKAGE_NAME_4, HealthDataCategory.BODY_MEASUREMENTS, mContext, false); in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
195 assertThat(spy.getAppIdPriorityOrder(HealthDataCategory.BODY_MEASUREMENTS)) in testAppendToPriorityList_activeDefaultApp_addsToTopOfList()
203 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
210 APP_PACKAGE_NAME_4, HealthDataCategory.BODY_MEASUREMENTS, mContext, false); in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
216 assertThat(spy.getAppIdPriorityOrder(HealthDataCategory.BODY_MEASUREMENTS)) in testAppendToPriorityList_ifNonDefaultApp_addsToBottomOfList()
224 HealthDataCategory.BODY_MEASUREMENTS, List.of(APP_PACKAGE_ID, APP_PACKAGE_ID_2)); in testAppendToPriorityList_inactiveDefaultApp_addsToBottomOfList()
231 APP_PACKAGE_NAME_4, HealthDataCategory.BODY_MEASUREMENTS, mContext, true); in testAppendToPriorityList_inactiveDefaultApp_addsToBottomOfList()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordTypeRecordCategoryMapper.java20 import static android.health.connect.HealthDataCategory.BODY_MEASUREMENTS;
88 put(RECORD_TYPE_BASAL_METABOLIC_RATE, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
102 put(RECORD_TYPE_BONE_MASS, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
105 put(RECORD_TYPE_BODY_FAT, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
112 put(RECORD_TYPE_HEIGHT, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
114 put(RECORD_TYPE_WEIGHT, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
115 put(RECORD_TYPE_LEAN_BODY_MASS, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
119 put(RECORD_TYPE_BODY_WATER_MASS, BODY_MEASUREMENTS); in populateRecordTypeToRecordCategoryMap()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthDataCategoryExtensions.kt36 HealthDataCategory.BODY_MEASUREMENTS -> BODY_MEASUREMENTS_PERMISSION_GROUPS in healthPermissionTypes()
49 HealthDataCategory.BODY_MEASUREMENTS -> R.string.body_measurements_category_lowercase in lowercaseTitle()
62 HealthDataCategory.BODY_MEASUREMENTS -> R.string.body_measurements_category_uppercase in uppercaseTitle()
75 HealthDataCategory.BODY_MEASUREMENTS -> R.attr.bodyMeasurementsCategoryIcon in icon()
156 HealthDataCategory.BODY_MEASUREMENTS,
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissions.java1103 WRITE_BASAL_METABOLIC_RATE, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1105 WRITE_BODY_FAT, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1107 WRITE_BODY_WATER_MASS, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1109 WRITE_BONE_MASS, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1111 WRITE_HEIGHT, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1113 WRITE_LEAN_BODY_MASS, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1115 WRITE_WEIGHT, HealthDataCategory.BODY_MEASUREMENTS); in populateWriteHealthPermissionToHealthDataCategoryMap()
1173 HealthDataCategory.BODY_MEASUREMENTS, in populateWriteHealthPermissionToHealthDataCategoryMap()
DHealthDataCategory.java39 public static final int BODY_MEASUREMENTS = 2; field in HealthDataCategory
54 BODY_MEASUREMENTS,
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthDataCategoryExtensionsTest.kt22 import android.health.connect.HealthDataCategory.BODY_MEASUREMENTS in <lambda>()
77 assertThat(BODY_MEASUREMENTS.uppercaseTitle()) in <lambda>()
96 assertThat(BODY_MEASUREMENTS.lowercaseTitle()) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAppDataViewModelTest.kt106 PermissionTypesPerCategory(HealthDataCategory.BODY_MEASUREMENTS, listOf()), in <lambda>()
129 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
149 PermissionTypesPerCategory(HealthDataCategory.BODY_MEASUREMENTS, listOf()), in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataViewModelTest.kt102 PermissionTypesPerCategory(HealthDataCategory.BODY_MEASUREMENTS, listOf()), in <lambda>()
125 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
146 HealthDataCategory.BODY_MEASUREMENTS, listOf(HealthPermissionType.WEIGHT)), in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/categories/
DHealthDataAllCategoriesFragmentTest.kt21 import android.health.connect.HealthDataCategory.BODY_MEASUREMENTS
70 HealthCategoryUiState(category = BODY_MEASUREMENTS, hasData = false),
143 HealthCategoryUiState(category = BODY_MEASUREMENTS, hasData = true)))) in allCategoriesFragment_noDataForSomeCategories_isDisplayedNoDataLabel()
DHealthDataCategoriesFragmentTest.kt71 HealthCategoryUiState(category = HealthDataCategory.BODY_MEASUREMENTS, hasData = true),
240 category = HealthDataCategory.BODY_MEASUREMENTS, hasData = false), in seeAllCategoriesPreference_withNoData_isDisplayed()
261 category = HealthDataCategory.BODY_MEASUREMENTS, hasData = false), in deleteAllData_withNoData_isDisabled()
294 category = HealthDataCategory.BODY_MEASUREMENTS, hasData = true), in categoriesFragment_withAllCategoriesPresent_seeAllCategoriesPreferenceIsNotDisplayed()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthPermissionCategoryPriorityTests.java20 import static android.health.connect.HealthDataCategory.BODY_MEASUREMENTS;
56 Set.of(ACTIVITY, BODY_MEASUREMENTS, CYCLE_TRACKING, NUTRITION, SLEEP, VITALS);
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DWeightRecordTest.java529 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregatePeriod_withLocalDateTime_responsesAnswerAndBoundariesCorrect()
539 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregatePeriodForZoneOffset()
583 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateDuration_differentTimeZones_correctBucketTimes()
656 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testDurationLocalTimeAggregationZoneOffset()
707 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateLocalFilter_minOffsetRecord()
754 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testOffset()
795 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateLocalFilter_daysPeriod()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java22 import static android.health.connect.HealthDataCategory.BODY_MEASUREMENTS;
705 BODY_MEASUREMENTS, in populateAndResetExpectedResponseMap()
711 BODY_MEASUREMENTS, HealthPermissionCategory.WEIGHT, new ArrayList<>())); in populateAndResetExpectedResponseMap()
715 BODY_MEASUREMENTS, HealthPermissionCategory.BONE_MASS, new ArrayList<>())); in populateAndResetExpectedResponseMap()
733 BODY_MEASUREMENTS, HealthPermissionCategory.BODY_FAT, new ArrayList<>())); in populateAndResetExpectedResponseMap()
745 BODY_MEASUREMENTS, in populateAndResetExpectedResponseMap()
785 BODY_MEASUREMENTS, HealthPermissionCategory.HEIGHT, new ArrayList<>())); in populateAndResetExpectedResponseMap()
803 BODY_MEASUREMENTS, BASAL_METABOLIC_RATE, new ArrayList<>())); in populateAndResetExpectedResponseMap()
/packages/modules/HealthFitness/testapps/toolbox/tests/src/com/android/healthconnect/testapps/toolbox/
DDataTypeListFragmentTest.kt67 launchScenario(HealthDataCategory.BODY_MEASUREMENTS) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DLoadPermissionTypeContributorAppsUseCaseTest.kt84 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/
DHealthPermissionTypesFragmentTest.kt645 MutableLiveData(HealthDataCategory.BODY_MEASUREMENTS.lowercaseTitle()) in permissionTypesFragment_whenBodyMeasurementsCategory_doesNotShowOldPriorityButton()
678 MutableLiveData(HealthDataCategory.BODY_MEASUREMENTS.lowercaseTitle()) in permissionTypesFragment_whenBodyMeasurementsCategory_doesNotShowNewPriorityButton()
872 HealthDataCategoriesFragment.CATEGORY_KEY, HealthDataCategory.BODY_MEASUREMENTS) in bodyMeasurementsCategoryBundle()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/
DHistoricAccessLimitWithPermissionTest.java217 setupAggregation(mContext.getPackageName(), HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
DHistoricAccessLimitTest.java236 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt181 BODY_MEASUREMENTS(
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java680 .setDataCategory(HealthDataCategory.BODY_MEASUREMENTS) in migratePriority_additionalAppsInMigrationPayload_prioritySaved()
694 getHealthDataCategoryPriority(HealthDataCategory.BODY_MEASUREMENTS); in migratePriority_additionalAppsInMigrationPayload_prioritySaved()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelper.java531 HealthDataCategory.BODY_MEASUREMENTS, in maybeAddContributingAppsIfEmpty()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java102 setupAggregation(mPackageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
DBasalCaloriesAggregationTest.java74 setupAggregation(packageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()

12