/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/ |
D | HealthPermissionType.kt | 21 enum class HealthPermissionType(val category: Int) { class 73 fun fromHealthPermissionCategory(healthPermissionCategory: Int): HealthPermissionType { in fromHealthPermissionCategory() 79 HealthPermissionType.ACTIVE_CALORIES_BURNED in fromHealthPermissionCategory() 80 HealthPermissionCategory.DISTANCE -> HealthPermissionType.DISTANCE in fromHealthPermissionCategory() 81 HealthPermissionCategory.ELEVATION_GAINED -> HealthPermissionType.ELEVATION_GAINED in fromHealthPermissionCategory() 82 HealthPermissionCategory.EXERCISE -> HealthPermissionType.EXERCISE in fromHealthPermissionCategory() 83 HealthPermissionCategory.PLANNED_EXERCISE -> HealthPermissionType.PLANNED_EXERCISE in fromHealthPermissionCategory() 84 HealthPermissionCategory.FLOORS_CLIMBED -> HealthPermissionType.FLOORS_CLIMBED in fromHealthPermissionCategory() 85 HealthPermissionCategory.STEPS -> HealthPermissionType.STEPS in fromHealthPermissionCategory() 86 HealthPermissionCategory.TOTAL_CALORIES_BURNED -> HealthPermissionType.TOTAL_CALORIES_BURNED in fromHealthPermissionCategory() [all …]
|
D | FitnessPermissionStrings.kt | 30 healthPermissionType: HealthPermissionType in fromPermissionType() 39 private val PERMISSION_TYPE_STRINGS: ImmutableMap<HealthPermissionType, FitnessPermissionStrings> = 40 ImmutableMap.Builder<HealthPermissionType, FitnessPermissionStrings>() 42 HealthPermissionType.ACTIVE_CALORIES_BURNED, 49 HealthPermissionType.DISTANCE, 56 HealthPermissionType.ELEVATION_GAINED, 63 HealthPermissionType.EXERCISE, 70 HealthPermissionType.SPEED, 77 HealthPermissionType.POWER, 84 HealthPermissionType.FLOORS_CLIMBED, [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/ |
D | HealthDataCategoryExtensions.kt | 23 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 33 fun @receiver:HealthDataCategoryInt Int.healthPermissionTypes(): List<HealthPermissionType> { in healthPermissionTypes() 86 fun fromHealthPermissionType(type: HealthPermissionType): Int { in fromHealthPermissionType() 100 HealthPermissionType.ACTIVE_CALORIES_BURNED, 101 HealthPermissionType.DISTANCE, 102 HealthPermissionType.ELEVATION_GAINED, 103 HealthPermissionType.EXERCISE, 104 HealthPermissionType.EXERCISE_ROUTE, 105 HealthPermissionType.FLOORS_CLIMBED, 106 HealthPermissionType.POWER, [all …]
|
D | HealthPermissionToDatatypeMapper.kt | 59 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 60 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.ACTIVE_CALORIES_B… 61 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BASAL_BODY_TEMPER… 62 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BASAL_METABOLIC_R… 63 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BLOOD_GLUCOSE 64 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BLOOD_PRESSURE 65 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BODY_FAT 66 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BODY_TEMPERATURE 67 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BODY_WATER_MASS 68 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BONE_MASS [all …]
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ |
D | Constants.kt | 173 val healthPermissionTypes: List<HealthPermissionType>, 207 HealthPermissionType.PLANNED_EXERCISE, 208 HealthPermissionType.ACTIVE_CALORIES_BURNED, 209 HealthPermissionType.DISTANCE, 210 HealthPermissionType.ELEVATION_GAINED, 211 HealthPermissionType.FLOORS_CLIMBED, 212 HealthPermissionType.POWER, 213 HealthPermissionType.SPEED, 214 HealthPermissionType.STEPS, 215 HealthPermissionType.STEPS_CADENCE, [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 9 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 88 HealthPermissionType.STEPS, stepsDate) in <lambda>() 90 HealthPermissionType.DISTANCE, distanceDate) in <lambda>() 92 HealthPermissionType.TOTAL_CALORIES_BURNED, caloriesDate) in <lambda>() 103 HealthPermissionType.STEPS, in <lambda>() 107 HealthPermissionType.DISTANCE, in <lambda>() 111 HealthPermissionType.TOTAL_CALORIES_BURNED, in <lambda>() 125 HealthPermissionType.STEPS, stepsDate) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories() 127 HealthPermissionType.DISTANCE, distanceDate) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories() 129 HealthPermissionType.TOTAL_CALORIES_BURNED, caloriesDate) in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories() [all …]
|
D | LoadLastDateWithPriorityDataUseCaseTest.kt | 16 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 101 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 116 healthPermissionType = HealthPermissionType.STEPS, in <lambda>() 120 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 135 healthPermissionType = HealthPermissionType.STEPS, in <lambda>() 139 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 155 healthPermissionType = HealthPermissionType.STEPS, in <lambda>() 159 val result = loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.STEPS) in <lambda>() 173 healthPermissionType = HealthPermissionType.STEPS, in <lambda>() 178 healthPermissionType = HealthPermissionType.STEPS, in <lambda>() [all …]
|
D | LoadPriorityEntriesUseCaseTest.kt | 16 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 101 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 111 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 117 val result = loadPriorityEntriesUseCase.invoke(HealthPermissionType.SLEEP, sleepDate) in <lambda>() 161 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 169 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 177 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 185 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 195 healthPermissionType = HealthPermissionType.SLEEP, in <lambda>() 201 val result = loadPriorityEntriesUseCase.invoke(HealthPermissionType.SLEEP, sleepDate) in <lambda>() [all …]
|
D | LoadPotentialPriorityListUseCaseTest.kt | 32 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 128 FitnessPermission(HealthPermissionType.DISTANCE, PermissionsAccessType.WRITE) in <lambda>() 134 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) in <lambda>() 140 FitnessPermission(HealthPermissionType.HEART_RATE, PermissionsAccessType.READ) in <lambda>() 159 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.READ) in <lambda>() 165 FitnessPermission(HealthPermissionType.SLEEP, PermissionsAccessType.WRITE) in <lambda>() 171 FitnessPermission(HealthPermissionType.HEART_RATE, PermissionsAccessType.READ) in <lambda>() 185 HealthPermissionType.STEPS.category, in <lambda>() 190 HealthPermissionType.DISTANCE.category, in <lambda>() 195 HealthPermissionType.HEART_RATE.category, in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/ |
D | HealthPermissionTypesFragmentTest.kt | 37 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 123 HealthPermissionType.DISTANCE, in deletePermissionTypeData_showsDialog() 124 HealthPermissionType.EXERCISE, in deletePermissionTypeData_showsDialog() 125 HealthPermissionType.STEPS))) in deletePermissionTypeData_showsDialog() 169 HealthPermissionType.DISTANCE, in permissionTypesFragment_activityCategory_isDisplayed() 170 HealthPermissionType.EXERCISE, in permissionTypesFragment_activityCategory_isDisplayed() 171 HealthPermissionType.STEPS))) in permissionTypesFragment_activityCategory_isDisplayed() 218 PermissionTypesState.WithData(listOf(HealthPermissionType.PLANNED_EXERCISE))) in permissionTypesFragment_activityCategory_trainingPlansAvailable_isDisplayed() 250 listOf(HealthPermissionType.SLEEP))) in permissionTypesFragment_sleepCategory_isDisplayed() 283 HealthPermissionType.DISTANCE, in permissionTypesFragment_emptyPriorityList_noPriorityButton() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/ |
D | DeletionViewModelTest.kt | 18 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 82 HealthPermissionType.DISTANCE, in deleteSet_setCorrectly() 83 HealthPermissionType.HEART_RATE, in deleteSet_setCorrectly() 84 HealthPermissionType.STEPS) in deleteSet_setCorrectly() 90 HealthPermissionType.DISTANCE, in deleteSet_setCorrectly() 91 HealthPermissionType.HEART_RATE, in deleteSet_setCorrectly() 92 HealthPermissionType.STEPS)) in deleteSet_setCorrectly() 97 viewModel.setDeleteSet(setOf(HealthPermissionType.DISTANCE)) in <lambda>() 102 DeletionType.DeletionTypeHealthPermissionTypes(listOf(HealthPermissionType.DISTANCE)) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/ |
D | DataEntriesFragmentViewModel.kt | 25 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 26 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.DISTANCE 27 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.STEPS 28 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.TOTAL_CALORIES_BU… 56 fun loadData(permissionType: HealthPermissionType, selectedDate: Instant) { in loadData() 64 HealthPermissionType.MENSTRUATION -> { in loadData() 90 permissionType: HealthPermissionType, in loadAggregation() 98 permissionType: HealthPermissionType, in loadEntries() 106 permissionType: HealthPermissionType, in addAggregation()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/ |
D | EntriesViewModel.kt | 30 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 31 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.DISTANCE 32 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.STEPS 33 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.TOTAL_CALORIES_BU… 70 permissionType: HealthPermissionType, in loadEntries() 78 permissionType: HealthPermissionType, in loadEntries() 87 permissionType: HealthPermissionType, in loadData() 102 HealthPermissionType.MENSTRUATION -> { in loadData() 130 permissionType: HealthPermissionType, in loadAppEntries() 152 permissionType: HealthPermissionType, in loadAggregation() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/ |
D | AllDataViewModelTest.kt | 32 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 144 HealthDataCategory.ACTIVITY, listOf(HealthPermissionType.STEPS)), in <lambda>() 146 HealthDataCategory.BODY_MEASUREMENTS, listOf(HealthPermissionType.WEIGHT)), in <lambda>() 151 HealthDataCategory.VITALS, listOf(HealthPermissionType.HEART_RATE))) in <lambda>() 160 viewModel.addToDeleteSet(HealthPermissionType.DISTANCE) in <lambda>() 162 assertThat(viewModel.getDeleteSet()).containsExactly(HealthPermissionType.DISTANCE) in <lambda>() 167 viewModel.addToDeleteSet(HealthPermissionType.DISTANCE) in <lambda>() 168 viewModel.addToDeleteSet(HealthPermissionType.MENSTRUATION) in <lambda>() 169 viewModel.removeFromDeleteSet(HealthPermissionType.DISTANCE) in <lambda>() 171 assertThat(viewModel.getDeleteSet()).containsExactly(HealthPermissionType.MENSTRUATION) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/ |
D | LoadMostRecentAggregationsUseCase.kt | 21 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 58 HealthPermissionType.STEPS, in <lambda>() 59 HealthPermissionType.DISTANCE, in <lambda>() 60 HealthPermissionType.TOTAL_CALORIES_BURNED) in <lambda>() 83 loadLastDateWithPriorityDataUseCase.invoke(HealthPermissionType.SLEEP)) { in <lambda>() 105 healthPermissionType: HealthPermissionType in <lambda>() 165 permissionType = HealthPermissionType.SLEEP, in <lambda>() 175 HealthPermissionType.SLEEP, useCaseResult.data, minStartTime, maxEndTime) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/ |
D | LoadEntriesHelperUseCaseTest.kt | 43 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 160 setupReadRecordTest(DateNavigationPeriod.PERIOD_DAY, HealthPermissionType.SLEEP) in <lambda>() 175 setupReadRecordTest(DateNavigationPeriod.PERIOD_WEEK, HealthPermissionType.SLEEP) in <lambda>() 195 setupReadRecordTest(DateNavigationPeriod.PERIOD_MONTH, HealthPermissionType.SLEEP) in <lambda>() 217 DateNavigationPeriod.PERIOD_WEEK, HealthPermissionType.HYDRATION) in <lambda>() 232 DateNavigationPeriod.PERIOD_DAY, HealthPermissionType.OXYGEN_SATURATION) in <lambda>() 246 DateNavigationPeriod.PERIOD_MONTH, HealthPermissionType.FLOORS_CLIMBED) in <lambda>() 259 DateNavigationPeriod.PERIOD_WEEK, HealthPermissionType.BODY_WATER_MASS) in <lambda>() 279 DateNavigationPeriod.PERIOD_MONTH, HealthPermissionType.BODY_TEMPERATURE) in <lambda>() 298 setupReadRecordTest(DateNavigationPeriod.PERIOD_MONTH, HealthPermissionType.DISTANCE) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/ |
D | LoadDataAggregationsUseCase.kt | 40 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 41 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.DISTANCE in <lambda>() 42 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.SLEEP in <lambda>() 43 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.STEPS in <lambda>() 44 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.TOTAL_CALORIES_BU… in <lambda>() 131 healthPermissionType: HealthPermissionType in <lambda>() 153 healthPermissionType: HealthPermissionType in <lambda>() 206 open val permissionType: HealthPermissionType, 212 override val permissionType: HealthPermissionType, 221 override val permissionType: HealthPermissionType,
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/api/ |
D | FilterPermissionTypesUseCase.kt | 8 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 30 ): List<HealthPermissionType> = in <lambda>() 41 ): List<HealthPermissionType> = in <lambda>() 63 ): List<HealthPermissionType> { in <lambda>() 82 permissionTypes: List<HealthPermissionType> in <lambda>() 83 ): List<HealthPermissionType> { in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/ |
D | DeletionType.kt | 20 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 26 val healthPermissionTypes: List<HealthPermissionType> in <lambda>() 32 ?: arrayOf(HealthPermissionType.ACTIVE_CALORIES_BURNED.toString())) in <lambda>() 33 .map { string -> HealthPermissionType.valueOf(string) } in <lambda>() 59 val healthPermissionTypes: List<HealthPermissionType>, in <lambda>() 67 ?: arrayOf(HealthPermissionType.ACTIVE_CALORIES_BURNED.toString())) in <lambda>() 69 .map { string -> HealthPermissionType.valueOf(string) }, in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/ |
D | DeletionType.kt | 20 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 48 val healthPermissionType: HealthPermissionType 53 HealthPermissionType.valueOf( 54 parcel.readString() ?: HealthPermissionType.ACTIVE_CALORIES_BURNED.toString())) {} 121 val healthPermissionType: HealthPermissionType, 128 HealthPermissionType.valueOf( 129 parcel.readString() ?: HealthPermissionType.ACTIVE_CALORIES_BURNED.toString()),
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/ |
D | AppDataFragmentTest.kt | 33 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 91 HealthPermissionType.DISTANCE, in appDataFragment_dataPresent_populatedDataTypesDisplayed() 92 HealthPermissionType.EXERCISE, in appDataFragment_dataPresent_populatedDataTypesDisplayed() 93 HealthPermissionType.EXERCISE_ROUTE, in appDataFragment_dataPresent_populatedDataTypesDisplayed() 94 HealthPermissionType.STEPS)), in appDataFragment_dataPresent_populatedDataTypesDisplayed() 98 HealthPermissionType.MENSTRUATION, in appDataFragment_dataPresent_populatedDataTypesDisplayed() 99 HealthPermissionType.SEXUAL_ACTIVITY))))) in appDataFragment_dataPresent_populatedDataTypesDisplayed()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/ |
D | FitnessPermissionToDatatypeMapperTest.kt | 24 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.ACTIVE_CALORIES_B… 25 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.BASAL_METABOLIC_R… 26 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.HEART_RATE 27 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.SPEED 28 import com.android.healthconnect.controller.permissions.data.HealthPermissionType.STEPS
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/alldata/ |
D | AllDataViewModel.kt | 26 import com.android.healthconnect.controller.permissions.data.HealthPermissionType 46 private var setOfPermissionTypesToBeDeleted: MutableSet<HealthPermissionType> = mutableSetOf() 72 fun addToDeleteSet(permissionType: HealthPermissionType) { in addToDeleteSet() 76 fun removeFromDeleteSet(permissionType: HealthPermissionType) { in removeFromDeleteSet() 80 fun getDeleteSet(): Set<HealthPermissionType> { in getDeleteSet()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/api/ |
D | DeletePermissionTypesFromAppUseCaseTest.kt | 29 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 73 HealthPermissionType.STEPS, in <lambda>() 74 HealthPermissionType.HEART_RATE, in <lambda>() 75 HealthPermissionType.SLEEP, in <lambda>() 76 HealthPermissionType.EXERCISE, in <lambda>() 77 HealthPermissionType.MENSTRUATION), in <lambda>()
|
D | DeletePermissionTypesUseCaseTest.kt | 28 import com.android.healthconnect.controller.permissions.data.HealthPermissionType in <lambda>() 72 HealthPermissionType.STEPS, in <lambda>() 73 HealthPermissionType.HEART_RATE, in <lambda>() 74 HealthPermissionType.SLEEP, in <lambda>() 75 HealthPermissionType.EXERCISE, in <lambda>() 76 HealthPermissionType.MENSTRUATION)) in <lambda>()
|