/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/ |
D | RequestPermissionViewModel.kt | 34 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 …]
|
D | MedicalPermissionsFragment.kt | 28 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>()
|
D | FitnessPermissionsFragment.kt | 29 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>()
|
D | PermissionsActivity.kt | 44 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>()
|
D | PermissionsFragment.kt | 31 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/ |
D | HealthPermissionReaderTest.kt | 10 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/ |
D | HealthPermission.kt | 20 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()
|
D | AdditionalPermissionStrings.kt | 35 additionalPermission: HealthPermission.AdditionalPermission in fromAdditionalPermission()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/ |
D | HealthPermissionTest.kt | 19 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>()
|
D | FitnessPermissionStringsTest.kt | 17 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/ |
D | FitnessPermissionsFragmentTest.kt | 40 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>()
|
D | MedicalPermissionsFragmentTest.kt | 39 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>()
|
D | RequestPermissionViewModelTest.kt | 39 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>()
|
D | MockedPermissionsActivityTest.kt | 56 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/ |
D | HealthPermissionReader.kt | 26 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/ |
D | LoadAppPermissionsStatusUseCase.kt | 21 import com.android.healthconnect.controller.permissions.data.HealthPermission in <lambda>() 48 data class HealthPermissionStatus(val healthPermission: HealthPermission, val isGranted: Boolean)
|
D | AppPermissionViewModel.kt | 34 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/ |
D | AdditionalAccessViewModel.kt | 38 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>()
|
D | AdditionalAccessFragment.kt | 33 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/ |
D | AppPermissionViewModelTest.kt | 29 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
|
D | LoadAppPermissionsStatusUseCaseTest.kt | 20 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/ |
D | RevokeHealthPermissionUseCaseTest.kt | 23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
|
D | GrantHealthPermissionUseCaseTest.kt | 23 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 53 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/ |
D | LoadAccessUseCase.kt | 19 import com.android.healthconnect.controller.permissions.data.HealthPermission.FitnessPermission in <lambda>()
|