Home
last modified time | relevance | path

Searched refs:fromPermissionString (Results 1 – 16 of 16) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DRequestPermissionViewModelTest.kt41 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString
164 fromPermissionString(READ_EXERCISE), in <lambda>()
165 fromPermissionString(READ_SLEEP), in <lambda>()
166 fromPermissionString(WRITE_EXERCISE))) in <lambda>()
170 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>()
171 fromPermissionString(READ_HEALTH_DATA_HISTORY))) in <lambda>()
175 fromPermissionString(READ_EXERCISE), in <lambda>()
176 fromPermissionString(READ_SLEEP), in <lambda>()
177 fromPermissionString(WRITE_EXERCISE), in <lambda>()
178 fromPermissionString(READ_HEALTH_DATA_IN_BACKGROUND), in <lambda>()
[all …]
DMockedPermissionsActivityTest.kt58 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString in <lambda>()
115 fromPermissionString(READ_STEPS), in <lambda>()
116 fromPermissionString(READ_HEART_RATE), in <lambda>()
117 fromPermissionString(WRITE_DISTANCE), in <lambda>()
118 fromPermissionString(WRITE_EXERCISE)) in <lambda>()
167 fromPermissionString(READ_STEPS) to PermissionState.GRANTED, in <lambda>()
168 fromPermissionString(READ_HEART_RATE) to PermissionState.GRANTED, in <lambda>()
169 fromPermissionString(WRITE_DISTANCE) to PermissionState.GRANTED, in <lambda>()
170 fromPermissionString(WRITE_EXERCISE) to PermissionState.GRANTED) in <lambda>()
227 fromPermissionString(READ_HEALTH_DATA_HISTORY) to PermissionState.GRANTED, in <lambda>()
[all …]
DFitnessPermissionsFragmentTest.kt42 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>()
114 fromPermissionString(READ_STEPS), in <lambda>()
115 fromPermissionString(WRITE_HEART_RATE), in <lambda>()
159 fromPermissionString(READ_STEPS), in <lambda>()
160 fromPermissionString(WRITE_HEART_RATE), in <lambda>()
184 fromPermissionString(READ_STEPS), in <lambda>()
185 fromPermissionString(READ_HEART_RATE), in <lambda>()
211 fromPermissionString(WRITE_DISTANCE), in <lambda>()
212 fromPermissionString(WRITE_EXERCISE), in <lambda>()
238 fromPermissionString(READ_DISTANCE), in <lambda>()
[all …]
DMedicalPermissionsFragmentTest.kt42 …nnect.controller.permissions.data.HealthPermission.MedicalPermission.Companion.fromPermissionString in <lambda>()
118 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>()
119 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>()
160 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>()
161 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>()
185 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>()
186 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>()
209 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>()
230 fromPermissionString(WRITE_MEDICAL_DATA), in <lambda>()
251 fromPermissionString(READ_MEDICAL_DATA_IMMUNIZATION), in <lambda>()
[all …]
DAdditionalPermissionsFragmentTest.kt28 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString
271 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_noAdditionalPermissionsSelected_isDisabled()
273 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_noAdditionalPermissionsSelected_isDisabled()
310 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_additionalPermissionsSelected_isEnabled()
312 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_additionalPermissionsSelected_isEnabled()
347 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_HISTORY) to in allowButton_medicalRequestConcluded_isEnabled()
349 fromPermissionString(HealthPermissions.READ_HEALTH_DATA_IN_BACKGROUND) to in allowButton_medicalRequestConcluded_isEnabled()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/data/
DHealthPermissionTest.kt20 …m.android.healthconnect.controller.permissions.data.HealthPermission.Companion.fromPermissionString in <lambda>()
51 assertThat(fromPermissionString("android.permission.health.READ_ACTIVE_CALORIES_BURNED")) in <lambda>()
57 assertThat(fromPermissionString("android.permission.health.WRITE_BLOOD_GLUCOSE")) in <lambda>()
69 assertThat(fromPermissionString(permissionString).toString()) in <lambda>()
81 assertThat(fromPermissionString(permissionString).toString()) in <lambda>()
88 assertThat(fromPermissionString("android.permission.health.READ_HEALTH_DATA_HISTORY")) in <lambda>()
91 assertThat(fromPermissionString("android.permission.health.READ_HEALTH_DATA_IN_BACKGROUND")) in <lambda>()
97 assertThat(fromPermissionString("android.permission.health.WRITE_MEDICAL_DATA")) in <lambda>()
101 fromPermissionString( in <lambda>()
109 fromPermissionString("Unsupported_permission") in <lambda>()
DFitnessPermissionStringsTest.kt55 val type = FitnessPermission.fromPermissionString(permission).healthPermissionType in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermission.kt36 fun fromPermissionString(permission: String): HealthPermission { in fromPermissionString() method
38 AdditionalPermission.fromPermissionString(permission) in fromPermissionString()
40 MedicalPermission.fromPermissionString(permission) in fromPermissionString()
42 FitnessPermission.fromPermissionString(permission) in fromPermissionString()
56 fun fromPermissionString(permission: String): FitnessPermission { in fromPermissionString() method
88 fun fromPermissionString(permission: String): AdditionalPermission = in fromPermissionString() method
121 fun fromPermissionString(permission: String): MedicalPermission { in isExerciseRoutesPermission() method
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DDisableExerciseRoutePermissionDialog.kt31 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>()
84 packageName, fromPermissionString(READ_EXERCISE), grant = true) in <lambda>()
DAdditionalAccessViewModel.kt146 val healthPermission = HealthPermission.fromPermissionString(permission) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt36 …nnect.controller.permissions.data.HealthPermission.FitnessPermission.Companion.fromPermissionString in <lambda>()
291 revokePermission(fromPermissionString(READ_EXERCISE), packageName) in <lambda>()
346 .map { permission -> fromPermissionString(permission) } in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionViewModel.kt324 val healthPermission = HealthPermission.fromPermissionString(permission) in <lambda>()
353 HealthPermission.fromPermissionString(permissionString) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DHealthDataCategoryExtensionsTest.kt65 val fitnessPermission = FitnessPermission.fromPermissionString(permissionString) in <lambda>()
DHealthPermissionReaderTest.kt218 return FitnessPermission.fromPermissionString(this) in String()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPermissionReader.kt185 HealthPermission.fromPermissionString(permission) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt420 return this.map { HealthPermission.fromPermissionString(it) }.toList() in any()