Home
last modified time | relevance | path

Searched refs:additionalPermission (Results 1 – 5 of 5) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DAdditionalPermissionsFragment.kt153 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND in <lambda>() constant
155 AdditionalPermissionStrings.fromAdditionalPermission(additionalPermission) in <lambda>()
156 val value = viewModel.isPermissionLocallyGranted(additionalPermission) in <lambda>()
169 viewModel.updateHealthPermission(additionalPermission, newValue as Boolean) in <lambda>()
176 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>() constant
178 AdditionalPermissionStrings.fromAdditionalPermission(additionalPermission) in <lambda>()
179 val value = viewModel.isPermissionLocallyGranted(additionalPermission) in <lambda>()
192 viewModel.updateHealthPermission(additionalPermission, newValue as Boolean) in <lambda>()
199 val additionalPermission = AdditionalPermission.READ_HEALTH_DATA_HISTORY in <lambda>() constant
204 AdditionalPermissionStrings.fromAdditionalPermission(additionalPermission) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt85 data class AdditionalPermission(val additionalPermission: String) : HealthPermission() { constant in com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission
100 return additionalPermission in fromPermissionString()
104 this.additionalPermission == HealthPermissions.READ_EXERCISE_ROUTES in isExerciseRoutesPermission()
107 this.additionalPermission == HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND in isExerciseRoutesPermission()
110 this.additionalPermission == HealthPermissions.READ_HEALTH_DATA_HISTORY in isExerciseRoutesPermission()
DAdditionalPermissionStrings.kt35 additionalPermission: HealthPermission.AdditionalPermission in fromAdditionalPermission()
37 return ADDITIONAL_PERMISSION_STRINGS[additionalPermission.additionalPermission] in fromAdditionalPermission()
39 "No strings for additional permission $additionalPermission") in fromAdditionalPermission()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt297 readExerciseRoutesPermission.additionalPermission, in <lambda>()
298 readHistoryDataPermission.additionalPermission, in <lambda>()
299 readDataInBackgroundPermission.additionalPermission)) in <lambda>()
336 .invoke(TEST_APP_PACKAGE_NAME, readExerciseRoutesPermission.additionalPermission) in <lambda>()
338 .invoke(TEST_APP_PACKAGE_NAME, readDataInBackgroundPermission.additionalPermission) in <lambda>()
340 .invoke(TEST_APP_PACKAGE_NAME, readHistoryDataPermission.additionalPermission) in <lambda>()
362 readHistoryDataPermission.additionalPermission, in <lambda>()
363 readDataInBackgroundPermission.additionalPermission)) in <lambda>()
400 .invoke(TEST_APP_PACKAGE_NAME, readExerciseRoutesPermission.additionalPermission) in <lambda>()
402 .invoke(TEST_APP_PACKAGE_NAME, readDataInBackgroundPermission.additionalPermission) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt170 .map { it.additionalPermission } in <lambda>()