Home
last modified time | relevance | path

Searched refs:HealthPermission (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt34 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
35 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
36 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
37 import com.android.healthconnect.controller.permissions.data.HealthPermission.MedicalPermission in <lambda>()
85 private val _healthPermissionsList = MutableLiveData<List<HealthPermission>>() in <lambda>()
86 val healthPermissionsList: LiveData<List<HealthPermission>> in <lambda>()
157 private var requestedPermissions: MutableMap<HealthPermission, PermissionState> = mutableMapOf() in <lambda>()
163 private var grants: MutableMap<HealthPermission, PermissionState> = mutableMapOf() in <lambda>()
203 fun isPermissionLocallyGranted(permission: HealthPermission): Boolean { in <lambda>()
226 fun updateHealthPermission(permission: HealthPermission, grant: Boolean) { in <lambda>()
[all …]
DMedicalPermissionsFragment.kt28 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
129 allPermissions.filterIsInstance<HealthPermission.MedicalPermission>() in <lambda>()
131 allPermissions.filterIsInstance<HealthPermission.FitnessPermission>() in <lambda>()
133 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
213 private fun updateDataList(permissionsList: List<HealthPermission.MedicalPermission>) { in <lambda>()
241 permission: HealthPermission.MedicalPermission in <lambda>()
DFitnessPermissionsFragment.kt29 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
128 allPermissions.filterIsInstance<HealthPermission.FitnessPermission>() in <lambda>()
130 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
197 private fun updateDataList(permissionsList: List<HealthPermission.FitnessPermission>) { in <lambda>()
225 permission: HealthPermission.FitnessPermission in <lambda>()
DPermissionsActivity.kt44 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
127 allPermissions.filterIsInstance<HealthPermission.MedicalPermission>() in <lambda>()
129 allPermissions.filterIsInstance<HealthPermission.FitnessPermission>() in <lambda>()
131 allPermissions.filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
DPermissionsFragment.kt31 import com.android.healthconnect.controller.permissions.data.HealthPermission
77 fun handlePermissionResults(results: MutableMap<HealthPermission, PermissionState>) { in getAllowButton()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthPermissionReaderTest.kt10 import com.android.healthconnect.controller.permissions.data.HealthPermission
11 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
53 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES) in <lambda>()
69 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES, in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
71 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND, in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
72 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in getValidHealthPermissions_returnsDataTypeAndAdditionalPermissions()
86 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES) in <lambda>()
201 val perm = HealthPermission.AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in <lambda>()
207 val perm = HealthPermission.MedicalPermission(MedicalPermissionType.ALL_MEDICAL_DATA) in <lambda>()
213 val perm = HealthPermission.AdditionalPermission(HealthPermissions.READ_EXERCISE_ROUTES) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt20 sealed class HealthPermission { class
36 fun fromPermissionString(permission: String): HealthPermission { in fromPermissionString()
51 ) : HealthPermission() {
85 data class AdditionalPermission(val additionalPermission: String) : HealthPermission() {
114 HealthPermission() { in isExerciseRoutesPermission()
DAdditionalPermissionStrings.kt35 additionalPermission: HealthPermission.AdditionalPermission in fromAdditionalPermission()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/
DHealthPermissionTest.kt19 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
20 import com.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermiss… in <lambda>()
21 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
22 import com.android.healthconnect.controller.permissions.data.HealthPermission.MedicalPermission in <lambda>()
DFitnessPermissionStringsTest.kt17 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DFitnessPermissionsFragmentTest.kt40 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
41 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
42 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission.Com… in <lambda>()
328 HealthPermission.fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
329 HealthPermission.fromPermissionString(READ_HEART_RATE) to PermissionState.GRANTED, in <lambda>()
330 HealthPermission.fromPermissionString(WRITE_DISTANCE) to PermissionState.GRANTED, in <lambda>()
331 HealthPermission.fromPermissionString(WRITE_EXERCISE) to PermissionState.GRANTED) in <lambda>()
351 MutableLiveData(setOf(HealthPermission.fromPermissionString(READ_STEPS))) in <lambda>()
DMedicalPermissionsFragmentTest.kt39 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
40 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
41 import com.android.healthconnect.controller.permissions.data.HealthPermission.MedicalPermission in <lambda>()
42 import com.android.healthconnect.controller.permissions.data.HealthPermission.MedicalPermission.Com… in <lambda>()
86 val emptyFitnessPermissionList: List<HealthPermission> = listOf() in <lambda>()
334 HealthPermission.fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION) to in <lambda>()
336 HealthPermission.fromPermissionString(WRITE_DISTANCE) to PermissionState.GRANTED) in <lambda>()
352 setOf(HealthPermission.fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION))) in <lambda>()
DRequestPermissionViewModelTest.kt39 import com.android.healthconnect.controller.permissions.data.HealthPermission
40 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission
41 import com.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermiss…
42 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
157 val healthPermissionObserver = TestObserver<List<HealthPermission>>() in <lambda>()
200 val testObserver = TestObserver<List<HealthPermission>>() in <lambda>()
225 val testObserver = TestObserver<List<HealthPermission>>() in <lambda>()
268 val testObserver = TestObserver<List<HealthPermission>>() in <lambda>()
284 val testObserver = TestObserver<List<HealthPermission>>() in <lambda>()
DMockedPermissionsActivityTest.kt56 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
57 import com.android.healthconnect.controller.permissions.data.HealthPermission.AdditionalPermission in <lambda>()
58 import com.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermiss… in <lambda>()
59 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
701 MutableLiveData(emptyList<HealthPermission>()) in <lambda>()
901 private fun Array<String>.toPermissionsList(): List<HealthPermission> { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt26 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
105 .filterIsInstance<HealthPermission.FitnessPermission>() in <lambda>()
138 fun getValidHealthPermissions(packageName: String): List<HealthPermission> { in <lambda>()
183 private fun parsePermission(permission: String): HealthPermission? { in <lambda>()
185 HealthPermission.fromPermissionString(permission) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DLoadAppPermissionsStatusUseCase.kt21 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
48 data class HealthPermissionStatus(val healthPermission: HealthPermission, val isGranted: Boolean)
DAppPermissionViewModel.kt34 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
35 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
36 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission.Com… in <lambda>()
169 .filterIsInstance<HealthPermission.AdditionalPermission>() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DAdditionalAccessViewModel.kt38 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
146 val healthPermission = HealthPermission.fromPermissionString(permission) in <lambda>()
147 return ((healthPermission is HealthPermission.FitnessPermission) && in <lambda>()
DAdditionalAccessFragment.kt33 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
163 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DAppPermissionViewModelTest.kt29 import com.android.healthconnect.controller.permissions.data.HealthPermission
30 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
95 HealthPermission.AdditionalPermission.READ_EXERCISE_ROUTES
97 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_HISTORY
99 HealthPermission.AdditionalPermission.READ_HEALTH_DATA_IN_BACKGROUND
DLoadAppPermissionsStatusUseCaseTest.kt20 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DRevokeHealthPermissionUseCaseTest.kt23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
DGrantHealthPermissionUseCaseTest.kt23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt53 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>()
419 fun Array<String>.toPermissionsList(): List<HealthPermission> { in any()
420 return this.map { HealthPermission.fromPermissionString(it) }.toList() in any()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DLoadAccessUseCase.kt19 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()

12