/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | PriorityMigrationTest.java | 113 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 …]
|
D | PriorityMigrationHelperTest.java | 98 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/ |
D | HealthDataCategoryPriorityHelperTest.java | 168 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/ |
D | RecordTypeRecordCategoryMapper.java | 20 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/ |
D | HealthDataCategoryExtensions.kt | 36 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/ |
D | HealthPermissions.java | 1103 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()
|
D | HealthDataCategory.java | 39 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/ |
D | HealthDataCategoryExtensionsTest.kt | 22 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/ |
D | AppDataViewModelTest.kt | 106 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/ |
D | AllDataViewModelTest.kt | 102 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/ |
D | HealthDataAllCategoriesFragmentTest.kt | 21 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()
|
D | HealthDataCategoriesFragmentTest.kt | 71 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/ |
D | HealthPermissionCategoryPriorityTests.java | 20 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/ |
D | WeightRecordTest.java | 529 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/ |
D | TestUtils.java | 22 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/ |
D | DataTypeListFragmentTest.kt | 67 launchScenario(HealthDataCategory.BODY_MEASUREMENTS) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/ |
D | LoadPermissionTypeContributorAppsUseCaseTest.kt | 84 HealthDataCategory.BODY_MEASUREMENTS, in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/ |
D | HealthPermissionTypesFragmentTest.kt | 645 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/ |
D | HistoricAccessLimitWithPermissionTest.java | 217 setupAggregation(mContext.getPackageName(), HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
|
D | HistoricAccessLimitTest.java | 236 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ |
D | Constants.kt | 181 BODY_MEASUREMENTS(
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/ |
D | DataMigrationTest.java | 680 .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/ |
D | HealthDataCategoryPriorityHelper.java | 531 HealthDataCategory.BODY_MEASUREMENTS, in maybeAddContributingAppsIfEmpty()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregationApisTest.java | 102 setupAggregation(mPackageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
|
D | BasalCaloriesAggregationTest.java | 74 setupAggregation(packageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
|